123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- GRIT := grit
- CC := arm-none-eabi-gcc
- AR := arm-none-eabi-ar
-
- CFLAGS := -mthumb -mno-thumb-interwork -mcpu=arm7tdmi -mlong-calls -march=armv4t -O3 -std=c99
-
- ASSET_ROOT := sots-private/assets
- GFX_BUILD := gfx_build
-
- PNG_MET_BG := assets/meteor/bg0.png
- PNG_MET_SKY := assets/meteor/bg1.png
- PNG_MET_FG := assets/meteor/bg2.png
- PNG_MET_CLOUDS := assets/meteor/clouds.png
- PNG_MET_METEOR := assets/meteor/oam.png
- PNG_AS_T := assets/render/ascii.png
-
- C_MET_BG := src/assets/meteor/met_background.c
- C_MET_SKY := src/assets/meteor/met_sky.c
- C_MET_FG := src/assets/meteor/met_foreground.c
- C_MET_CLOUDS := src/assets/meteor/met_clouds.c
- C_MET_METEOR := src/assets/meteor/met_meteor.c
- C_AS_T := src/include/assets/ascii.c
-
- PNG_EMOT := assets/interface/emoticons.png
- PNG_TB := assets/interface/text_box.png
- PNG_MB := assets/interface/menu_box.png
- PNG_ARR := assets/interface/arrows.png
-
- B_EMOT := src/include/assets/interface/emoticons.img.bin
- B_TB := src/include/assets/interface/text_box.img.bin
- B_MB := src/include/assets/interface/menu_box.img.bin
- B_ARR := src/include/assets/interface/arrows.img.bin
-
- .PHONY: all
- all: $(C_MET_BG) $(C_MET_SKY) $(C_MET_FG) $(C_MET_CLOUDS) $(C_MET_METEOR) $(C_AS_T) $(B_EMOT) $(B_TB) $(B_MB) $(B_ARR)
-
-
- # generate object files
- #$(O_MET_BG): $(C_MET_BG)
- # $(CC) $(CFLAGS) -c -o $@ $<
- #
- #$(O_MET_SKY): $(C_MET_SKY)
- # $(CC) $(CFLAGS) -c -o $@ $<
- #
- #$(O_MET_FG): $(C_MET_FG)
- # $(CC) $(CFLAGS) -c -o $@ $<
- #
- #$(O_MET_CLOUDS): $(C_MET_CLOUDS)
- # $(CC) $(CFLAGS) -c -o $@ $<
- #
- #$(O_MET_METEOR): $(C_MET_METEOR)
- # $(CC) $(CFLAGS) -c -o $@ $<
-
- # generate C files
- $(C_MET_BG): $(PNG_MET_BG)
- $(GRIT) $< -gu32 -gT00FF00 -gzl -gB 4 -gt -m -mu16 -mzl -mp0 -mRtpf -p -pu16 -pzl -ftc -o $@
-
- $(C_MET_SKY): $(PNG_MET_SKY)
- $(GRIT) $< -gu32 -gzl -gB 4 -gt -m -mu16 -mzl -mp1 -mRtpf -p -pu16 -pzl -ftc -o $@
-
- $(C_MET_FG): $(PNG_MET_FG)
- $(GRIT) $< -gu32 -gzl -gB 4 -gt -m -mu16 -mzl -mp3 -mRtpf -p -pu16 -pzl -ftc -o $@
-
- $(C_MET_CLOUDS): $(PNG_MET_CLOUDS)
- $(GRIT) $< -gu32 -gzl -gB 4 -gt -m -mu16 -mzl -mp2 -mRtpf -p -pu16 -pzl -ftc -o $@
-
- $(C_MET_METEOR): $(PNG_MET_METEOR)
- $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -ftc -o $@
-
- $(C_AS_T): $(PNG_AS_T)
- $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
-
-
- $(B_EMOT): $(PNG_EMOT)
- $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
-
- $(B_TB): $(PNG_TB)
- $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
-
- $(B_MB): $(PNG_MB)
- $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
-
- $(B_ARR): $(PNG_ARR)
- $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
|