Bez popisu

assets.makefile 4.5KB

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