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/micropeak | |
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/micropeak')
-rw-r--r-- | src/micropeak/Makefile | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/micropeak/Makefile b/src/micropeak/Makefile index e51b2847..35dfaab8 100644 --- a/src/micropeak/Makefile +++ b/src/micropeak/Makefile @@ -6,21 +6,15 @@ vpath % ../attiny:../drivers:../core:../product:.. vpath ao-make-product.5c ../util vpath make-altitude-pa ../util +include ../avr/Makefile.defs + MCU=attiny85 DUDECPUTYPE=t85 #PROGRAMMER=stk500v2 -P usb -PROGRAMMER=usbtiny -LOADCMD=avrdude LOADSLOW=-i 32 -B 32 LOADARG=-p $(DUDECPUTYPE) -c $(PROGRAMMER) -e -U flash:w: -CC=avr-gcc -OBJCOPY=avr-objcopy - -LDFLAGS=-L/usr/lib/ldscripts -Tavr25.x -ifndef VERSION -include ../Version -endif +LDFLAGS=-L$(LDSCRIPTS) -Tavr25.x ALTOS_SRC = \ ao_micropeak.c \ |