macaw/macaw-arm/tests/arm/Makefile

15 lines
213 B
Makefile

CC=arm-none-eabi-gcc
all: $(patsubst %c,%exe,$(wildcard *.c))
%.exe: %.s
$(CC) -fno-stack-protector -nostdlib $< -o $@
%.s: %.c
$(CC) -fno-stack-protector -S -c $< -o $@
.PRECIOUS: %.s
clean:
rm *.s *.exe