Have *.o files depend on Makefile, in case we change gcc -O values there.

This commit is contained in:
Uwe Hermann 2009-07-18 05:17:49 +02:00
parent 10890b3f15
commit 8d2190a86a

View File

@ -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 $<