1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

Makefile: Generate dependency files (#141)

This commit is contained in:
Saleem Rashid 2017-01-15 13:49:36 +00:00 committed by Pavol Rusnak
parent 466155270b
commit 11d37c87cd

View File

@ -118,10 +118,10 @@ $(NAME).elf: $(OBJS) $(LDSCRIPT) $(TOOLCHAIN_DIR)/lib/libopencm3_stm32f2.a $(TOP
$(LD) -o $(NAME).elf $(OBJS) -ltrezor -lopencm3_stm32f2 $(LDFLAGS) $(LD) -o $(NAME).elf $(OBJS) -ltrezor -lopencm3_stm32f2 $(LDFLAGS)
%.o: %.c Makefile %.o: %.c Makefile
$(CC) $(CFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -MMD -o $@ -c $<
%.small.o: %.c Makefile %.small.o: %.c Makefile
$(CC) $(CFLAGS) -o $@ -c $< $(CC) $(CFLAGS) -MMD -o $@ -c $<
clean: clean:
rm -f $(OBJS) rm -f $(OBJS)
@ -133,3 +133,5 @@ clean:
rm -f *.list rm -f *.list
rm -f *.log rm -f *.log
rm -f *.srec rm -f *.srec
-include $(OBJS:.o=.d)