summaryrefslogtreecommitdiff
path: root/src/avr-demo/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-10-08 09:22:03 -0700
committerKeith Packard <keithp@keithp.com>2013-10-08 09:22:03 -0700
commit6a1e398e590121458176758858bb4210f3eb5a55 (patch)
tree15f90c050ad470528af9f7d00ad2a7e2bb7fd47c /src/avr-demo/Makefile
parent16965716c02eb79b449d9d3b264814d775660134 (diff)
Add --with parameters to configure for compiler selectionnew-state
This allows the user to specify which compiler to use for each target CPU. Also checks to make sure the arm compiler supports -m0 and -m3 cpu type flags. The build now actually uses the specified compilers too. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/avr-demo/Makefile')
-rw-r--r--src/avr-demo/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/avr-demo/Makefile b/src/avr-demo/Makefile
index 93295166..6d9bfea2 100644
--- a/src/avr-demo/Makefile
+++ b/src/avr-demo/Makefile
@@ -11,18 +11,12 @@ vpath load_csv.5c ../kalman
vpath matrix.5c ../kalman
vpath ao-make-product.5c ../util
+include ../avr/Makefile.defs
+
MCU=atmega32u4
DUDECPUTYPE=m32u4
#PROGRAMMER=stk500v2 -P usb
-PROGRAMMER=usbtiny
-LOADCMD=avrdude
LOADARG=-p $(DUDECPUTYPE) -c $(PROGRAMMER) -e -U flash:w:
-CC=avr-gcc
-OBJCOPY=avr-objcopy
-
-ifndef VERSION
-include ../Version
-endif
INC = \
ao.h \