diff options
author | Keith Packard <keithp@keithp.com> | 2013-10-08 09:22:03 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-10-08 09:22:03 -0700 |
commit | 6a1e398e590121458176758858bb4210f3eb5a55 (patch) | |
tree | 15f90c050ad470528af9f7d00ad2a7e2bb7fd47c /src/telescience-v0.1 | |
parent | 16965716c02eb79b449d9d3b264814d775660134 (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/telescience-v0.1')
-rw-r--r-- | src/telescience-v0.1/Makefile | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/telescience-v0.1/Makefile b/src/telescience-v0.1/Makefile index 81054a75..a65b3ad0 100644 --- a/src/telescience-v0.1/Makefile +++ b/src/telescience-v0.1/Makefile @@ -5,20 +5,14 @@ vpath % ..:../core:../product:../drivers:../avr 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 - -LDFLAGS=-L/usr/lib/ldscripts -Tavr5.x -ifndef VERSION -include ../Version -endif +LDFLAGS=-L$(LDSCRIPTS) -Tavr5.x INC = \ ao.h \ |