Geen omschrijving

assets.makefile 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. GRIT := grit
  2. CC := arm-none-eabi-gcc
  3. AR := arm-none-eabi-ar
  4. CFLAGS := -mthumb -mno-thumb-interwork -mcpu=arm7tdmi -mlong-calls -march=armv4t -O3 -std=c99
  5. PNG_MET_BG := assets/meteor/bg0.png
  6. PNG_MET_SKY := assets/meteor/bg1.png
  7. PNG_MET_FG := assets/meteor/bg2.png
  8. PNG_MET_CLOUDS := assets/meteor/clouds.png
  9. PNG_MET_METEOR := assets/meteor/oam.png
  10. PNG_AS_T := assets/render/ascii.png
  11. C_MET_BG := src/assets/meteor/met_background.c
  12. C_MET_SKY := src/assets/meteor/met_sky.c
  13. C_MET_FG := src/assets/meteor/met_foreground.c
  14. C_MET_CLOUDS := src/assets/meteor/met_clouds.c
  15. C_MET_METEOR := src/assets/meteor/met_meteor.c
  16. C_AS_T := src/include/assets/ascii.c
  17. PNG_MUG_00 := assets/mug/mug_00.png
  18. PNG_MUG_01 := assets/mug/mug_01.png
  19. PNG_MUG_02 := assets/mug/mug_02.png
  20. PNG_MUG_05 := assets/mug/mug_05.png
  21. PNG_MUG_06 := assets/mug/mug_06.png
  22. PNG_MUG_07 := assets/mug/mug_07.png
  23. PNG_MUG_08 := assets/mug/mug_08.png
  24. PNG_MUG_09 := assets/mug/mug_09.png
  25. PNG_MUG_10 := assets/mug/mug_10.png
  26. PNG_MUG_11 := assets/mug/mug_11.png
  27. C_MUG_00 := src/include/assets/mug/mug_00.c
  28. C_MUG_01 := src/include/assets/mug/mug_01.c
  29. C_MUG_02 := src/include/assets/mug/mug_02.c
  30. C_MUG_05 := src/include/assets/mug/mug_05.c
  31. C_MUG_06 := src/include/assets/mug/mug_06.c
  32. C_MUG_07 := src/include/assets/mug/mug_07.c
  33. C_MUG_08 := src/include/assets/mug/mug_08.c
  34. C_MUG_09 := src/include/assets/mug/mug_09.c
  35. C_MUG_10 := src/include/assets/mug/mug_10.c
  36. C_MUG_11 := src/include/assets/mug/mug_11.c
  37. PNG_EMOT := assets/interface/emoticons.png
  38. PNG_TB := assets/interface/text_box.png
  39. PNG_MB := assets/interface/menu_box.png
  40. PNG_ARR := assets/interface/arrows.png
  41. B_EMOT := src/include/assets/interface/emoticons.img.bin
  42. B_TB := src/include/assets/interface/text_box.img.bin
  43. B_MB := src/include/assets/interface/menu_box.img.bin
  44. B_ARR := src/include/assets/interface/arrows.img.bin
  45. .PHONY: all
  46. all: $(C_MET_BG) $(C_MET_SKY) $(C_MET_FG) $(C_MET_CLOUDS) $(C_MET_METEOR) $(C_AS_T) $(C_MUG_00) $(C_MUG_01) $(C_MUG_02) $(C_MUG_05) $(C_MUG_06) $(C_MUG_07) $(C_MUG_08) $(C_MUG_09) $(C_MUG_10) $(C_MUG_11) $(B_EMOT) $(B_TB) $(B_MB) $(B_ARR)
  47. # generate object files
  48. #$(O_MET_BG): $(C_MET_BG)
  49. # $(CC) $(CFLAGS) -c -o $@ $<
  50. #
  51. #$(O_MET_SKY): $(C_MET_SKY)
  52. # $(CC) $(CFLAGS) -c -o $@ $<
  53. #
  54. #$(O_MET_FG): $(C_MET_FG)
  55. # $(CC) $(CFLAGS) -c -o $@ $<
  56. #
  57. #$(O_MET_CLOUDS): $(C_MET_CLOUDS)
  58. # $(CC) $(CFLAGS) -c -o $@ $<
  59. #
  60. #$(O_MET_METEOR): $(C_MET_METEOR)
  61. # $(CC) $(CFLAGS) -c -o $@ $<
  62. # generate C files
  63. $(C_MET_BG): $(PNG_MET_BG)
  64. $(GRIT) $< -gu32 -gT00FF00 -gzl -gB 4 -gt -m -mu16 -mzl -mp0 -mRtpf -p -pu16 -pzl -ftc -o $@
  65. $(C_MET_SKY): $(PNG_MET_SKY)
  66. $(GRIT) $< -gu32 -gzl -gB 4 -gt -m -mu16 -mzl -mp1 -mRtpf -p -pu16 -pzl -ftc -o $@
  67. $(C_MET_RG): $(PNG_MET_RG)
  68. $(GRIT) $< -gu32 -gzl -gB 4 -gt -m -mu16 -mzl -mp3 -mRtpf -p -pu16 -pzl -ftc -o $@
  69. $(C_MET_CLOUDS): $(PNG_MET_CLOUDS)
  70. $(GRIT) $< -gu32 -gzl -gB 4 -gt -m -mu16 -mzl -mp2 -mRtpf -p -pu16 -pzl -ftc -o $@
  71. $(C_MET_METEOR): $(PNG_MET_METEOR)
  72. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -ftc -o $@
  73. $(C_AS_T): $(PNG_AS_T)
  74. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  75. $(C_MUG_00): $(PNG_MUG_00)
  76. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  77. $(C_MUG_01): $(PNG_MUG_01)
  78. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  79. $(C_MUG_02): $(PNG_MUG_02)
  80. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  81. $(C_MUG_05): $(PNG_MUG_05)
  82. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  83. $(C_MUG_06): $(PNG_MUG_06)
  84. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  85. $(C_MUG_07): $(PNG_MUG_07)
  86. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  87. $(C_MUG_08): $(PNG_MUG_08)
  88. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  89. $(C_MUG_09): $(PNG_MUG_09)
  90. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  91. $(C_MUG_10): $(PNG_MUG_10)
  92. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  93. $(C_MUG_11): $(PNG_MUG_11)
  94. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  95. $(B_EMOT): $(PNG_EMOT)
  96. $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
  97. $(B_TB): $(PNG_TB)
  98. $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
  99. $(B_MB): $(PNG_MB)
  100. $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
  101. $(B_ARR): $(PNG_ARR)
  102. $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@