No Description

Makefile 976B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. CC = arm-none-eabi-gcc
  2. NM = arm-none-eabi-nm
  3. AR = arm-none-eabi-ar
  4. LD = arm-none-eabi-ld
  5. MAKE = make
  6. MUS_OBJECT = "buildMusic.o"
  7. CRY_OBJECT = "buildCry.o"
  8. SND_DATA = "snd_data.o"
  9. MUSIC_AR = ../Music/music.a
  10. SMPL_AR = ../Samples/sample.a
  11. VOICE_AR = ../Voicegroup/voice.a
  12. LIST_AR = ../Songtable/songlist.a
  13. CRY_AR = ../Crys/cry.a
  14. all: $(SND_DATA)
  15. $(SND_DATA): $(LIST_AR) $(MUSIC_AR) $(SMPL_AR) $(VOICE_AR) $(CRY_AR)
  16. $(LD) -r -o $@ --whole-archive --start-group $^ --end-group
  17. .PHONY: clean
  18. clean:
  19. $(MAKE) -C $(dir $(MUSIC_AR)) clean
  20. $(MAKE) -C $(dir $(SMPL_AR)) clean
  21. $(MAKE) -C $(dir $(VOICE_AR)) clean
  22. $(MAKE) -C $(dir $(LIST_AR)) clean
  23. $(MAKE) -C $(dir $(CRY_AR)) clean
  24. .PHONY: $(MUSIC_AR)
  25. $(MUSIC_AR):
  26. $(MAKE) -C $(dir $@) all
  27. .PHONY: $(SMPL_AR)
  28. $(SMPL_AR):
  29. $(MAKE) -C $(dir $@) all
  30. .PHONY: $(VOICE_AR)
  31. $(VOICE_AR):
  32. $(MAKE) -C $(dir $@) all
  33. .PHONY: $(LIST_AR)
  34. $(LIST_AR):
  35. $(MAKE) -C $(dir $@) all
  36. .PHONY: $(CRY_AR)
  37. $(CRY_AR):
  38. $(MAKE) -C $(dir $@) all