Add --with parameters to configure for compiler selection
[fw/altos] / src / telescience-v0.1 / Makefile
index 10e4a2a301e01f5600fa56f3270dcd6e111b7427..a65b3ad0a2fda384b6ee4ae73f08dc2c4d2a9c53 100644 (file)
@@ -5,18 +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
 
-ifndef VERSION
-include ../Version
-endif
+LDFLAGS=-L$(LDSCRIPTS) -Tavr5.x
 
 INC = \
        ao.h \
@@ -105,7 +101,7 @@ ao_product.o: ao_product.c ao_product.h
 distclean:     clean
 
 clean:
-       rm -f $(OBJ)
+       rm -f *.o $(PROG) $(PROG).hex
        rm -f ao_product.h
 
 install: