Без опису

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. C_MUG_00 := src/include/assets/mug/mug_00.c
  29. C_MUG_01 := src/include/assets/mug/mug_01.c
  30. C_MUG_02 := src/include/assets/mug/mug_02.c
  31. C_MUG_03 := src/include/assets/mug/mug_03.c
  32. C_MUG_04 := src/include/assets/mug/mug_04.c
  33. C_MUG_05 := src/include/assets/mug/mug_05.c
  34. C_MUG_06 := src/include/assets/mug/mug_06.c
  35. C_MUG_07 := src/include/assets/mug/mug_07.c
  36. C_MUG_08 := src/include/assets/mug/mug_08.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_03) $(C_MUG_04) $(C_MUG_05) $(C_MUG_06) $(C_MUG_07) $(C_MUG_08) $(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_FG): $(PNG_MET_FG)
  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_03): $(PNG_MUG_03)
  82. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  83. $(C_MUG_04): $(PNG_MUG_04)
  84. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  85. $(C_MUG_05): $(PNG_MUG_05)
  86. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  87. $(C_MUG_06): $(PNG_MUG_06)
  88. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  89. $(C_MUG_07): $(PNG_MUG_07)
  90. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  91. $(C_MUG_08): $(PNG_MUG_08)
  92. $(GRIT) $< -gu32 -gzl -gB 4 -gt -p -pu16 -pz! -m! -ftc -o $@
  93. $(B_EMOT): $(PNG_EMOT)
  94. $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
  95. $(B_TB): $(PNG_TB)
  96. $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
  97. $(B_MB): $(PNG_MB)
  98. $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@
  99. $(B_ARR): $(PNG_ARR)
  100. $(GRIT) $< -gu32 -gz! -gB 4 -gt -p! -m! -ftb -o $@