No Description

Makefile 282B

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