Без опису

123456789101112131415161718192021222324252627282930
  1. AS = arm-none-eabi-as
  2. AR = arm-none-eabi-ar
  3. WAV_FILES = $(sort $(wildcard WAV/*.wav))
  4. OBJ_FILES = $(addprefix OBJ/,$(notdir $(WAV_FILES:.wav=.o)))
  5. TABLE_S = TABLE/_forward_crytable.s TABLE/_reverse_crytable.s
  6. TABLE_OBJ = $(TABLE_S:.s=.o)
  7. all: cry.a
  8. .PHONY: clean
  9. clean:
  10. rm -f OBJ/*.o cry.a
  11. OBJ/%.o: S/%.s
  12. $(AS) $< -o $@
  13. S/cry_492.s: WAV/cry_492.wav
  14. wav2agb $< $@
  15. S/%.s: WAV/%.wav
  16. wav2agb $< $@ -c
  17. TABLE/%.o: TABLE/%.s
  18. $(AS) $< -o $@
  19. cry.a: $(OBJ_FILES) $(TABLE_OBJ) OBJ/cry_NULL.o
  20. $(AR) rcs $@ $^