Permalink
Browse files

Also do *.cc dependencies.

  • Loading branch information...
1 parent 542a1e4 commit e17e9cd5e9ed44be97e14afc439c02c729b34363 @benlaurie committed May 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile
View
@@ -29,8 +29,9 @@ BIN = test/blink.bin test/test_clock.bin test/test_enc28j60.bin \
all: avr-ports.h $(BIN) $(BIN:.bin=.lst) sizes/sizes.html
-.depend: test/*.cc *.h
- $(CC) $(DEFS) -mmcu=$(MCU_TARGET) -MM test/*.cc | sed 's;^\(.*\):;test/\1:;'> .depend
+.depend: *.cc test/*.cc *.h
+ $(CC) $(DEFS) -mmcu=$(MCU_TARGET) -MM *.cc > .depend
+ $(CC) $(DEFS) -mmcu=$(MCU_TARGET) -MM test/*.cc | sed 's;^\(.*\):;test/\1:;' >> .depend
.SUFFIXES: .elf .lst .bin _upload

0 comments on commit e17e9cd

Please sign in to comment.