Aucune description

Makefile 242B

12345678910111213141516171819
  1. AS = arm-none-eabi-as
  2. AR = arm-none-eabi-ar
  3. S_FILES = $(wildcard *.s)
  4. OBJ_FILES = $(S_FILES:.s=.o)
  5. all: songlist.a
  6. .PHONY: clean
  7. clean:
  8. rm -f *.o songlist.a
  9. %.o: %.s
  10. $(AS) $< -o $@
  11. songlist.a: $(OBJ_FILES)
  12. rm -f $@
  13. $(AR) rcs $@ $^