Add --with parameters to configure for compiler selection
[fw/altos] / src / telepyro-v0.1 / Makefile
index 2ccd565f2008cf5fb9440d5a50112d9c90eef76d..025b324a360833c6befa99fb84b4aab561713c5d 100644 (file)
@@ -5,18 +5,12 @@
 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
 
 INC = \
        ao.h \
@@ -96,7 +90,7 @@ ao_product.o: ao_product.c ao_product.h
 distclean:     clean
 
 clean:
-       rm -f $(OBJ)
+       rm -f $(OBJ) $(PROG) $(PROG).hex
        rm -f ao_product.h
 
 install: