diff --git a/src/Makefile b/src/Makefile index ec34d36..05f032e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -73,7 +73,7 @@ ifndef OWN_HL SRC += jtag_scan.c jtagtap.c swdptap.c endif -OBJ = $(SRC:.c=.o) +OBJ = $(patsubst %.S,%.o,$(patsubst %.c,%.o,$(SRC))) $(TARGET): include/version.h $(OBJ) @echo " LD $@" @@ -83,6 +83,10 @@ $(TARGET): include/version.h $(OBJ) @echo " CC $<" $(Q)$(CC) $(CFLAGS) -c $< -o $@ +%.o: %.S + @echo " AS $<" + $(Q)$(CC) $(CFLAGS) -c $< -o $@ + %.bin: % @echo " OBJCOPY $@" $(Q)$(OBJCOPY) -O binary $^ $@