Makefile
changeset 51 ec6271f0637b
parent 50 e4ac5a591dcd
child 58 a445e08b63e0
--- a/Makefile	Thu Apr 03 18:54:50 2014 +0300
+++ b/Makefile	Thu Apr 03 19:44:13 2014 +0300
@@ -2,6 +2,7 @@
 # console
 # dmx
 
+ELF = build/src/$(PROG).elf
 HEX = build/src/$(PROG).hex
 
 all: $(HEX)
@@ -24,13 +25,16 @@
 	$(CC) -MM $(CPPFLAGS) -MT $@ -MF build/$*.d $*.c
 
 # existing .d files for rebuilding existing .o's
--include $(wildcard build/*.d)
+-include $(wildcard build/*/*.d)
 
 build/%.hex: build/%.elf
 	avr-objcopy -O ihex -R .eeprom $< $@
 
 .PRECIOUS: build/%.elf
 
+dump: $(ELF)
+	avr-objdump -d $(ELF)
+
 ## Assembler
 AS = avra
 ASFLAGS =