aboutsummaryrefslogtreecommitdiff
path: root/tools/avr_codegen/Makefile
diff options
context:
space:
mode:
authorCharles Lohr <lohr85@gmail.com>2016-12-06 00:19:44 -0500
committerCharles Lohr <lohr85@gmail.com>2016-12-06 00:19:44 -0500
commit09efa97593f2ba47cbc528b76172e877662ced49 (patch)
tree0572d71becb86f04f76d8ad095cd4ec549754db0 /tools/avr_codegen/Makefile
parent110e71c2334950b0fcdd2f90bff595f55390666d (diff)
downloadlibsurvive-09efa97593f2ba47cbc528b76172e877662ced49.tar.gz
libsurvive-09efa97593f2ba47cbc528b76172e877662ced49.tar.bz2
Update with changes from livestream.
Diffstat (limited to 'tools/avr_codegen/Makefile')
-rw-r--r--tools/avr_codegen/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/avr_codegen/Makefile b/tools/avr_codegen/Makefile
index e7b8673..2d3a17e 100644
--- a/tools/avr_codegen/Makefile
+++ b/tools/avr_codegen/Makefile
@@ -12,11 +12,11 @@ test.hex : test.elf
avr-objcopy -j .text -j .data -O ihex test.elf test.hex
avrdude -c usbtiny -p $(PROGPART) -V -U flash:w:test.hex
-test.elf : test.c
- avr-gcc -I -g $(CFLAGS) -mmcu=$(PART) -Wl,-Map,test.map -o $@ test.c -L/usr/lib/binutils/avr/2.18
+test.elf : test.c avr_print.c
+ avr-gcc -I -g $(CFLAGS) -mmcu=$(PART) -Wl,-Map,test.map -o $@ test.c avr_print.c -L/usr/lib/binutils/avr/2.18
-test.lst : test.c
- avr-gcc -c -g -Wa,-a,-ad $(CFLAGS) test.c > $@
+test.lst : test.c avr_print.c
+ avr-gcc -c -g -Wa,-a,-ad $(CFLAGS) test.c avr_print.c > $@
burn : test.hex
avrdude -c usbtiny -p $(PROGPART) -V -U flash:w:test.hex