Have *.o files depend on Makefile, in case we change gcc -O values there.
This commit is contained in:
parent
10890b3f15
commit
8d2190a86a
@ -53,7 +53,7 @@ $(BINARY): $(OBJS) $(BINARY).ld
|
||||
@printf " LD $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(LD) $(LDFLAGS) -o $(BINARY) $(OBJS) -lopenstm32
|
||||
|
||||
%.o: %.c
|
||||
%.o: %.c Makefile
|
||||
@printf " CC $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)$(CC) $(CFLAGS) -o $@ -c $<
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user