Oops - really fix logic errors in USBMode.h.
[pub/USBasp.git] / BuildTests / ModuleTest / makefile
index 6cdd575..93a49e8 100644 (file)
@@ -12,6 +12,8 @@
 # all module headers in a simple C and C++\r
 # application.\r
 \r
+# Path to the LUFA library core\r
+LUFA_PATH         = ../../LUFA/\r
 \r
 # List of device families per architecture, one device per architecture sub-family\r
 AVR8_FAMILIES  = at90usb1287 at90usb1286 atmega16u4 atmega16u2 at90usb162\r
@@ -46,13 +48,13 @@ end:
        $(MAKE) -s -f makefile.test clean elf ARCH=UC3 MCU=$(@:%.uc3=%)\r
 \r
 clean:\r
-       $(MAKE) -s -f makefile.test clean ARCH=AVR8\r
-       $(MAKE) -s -f makefile.test clean ARCH=XMEGA\r
-       $(MAKE) -s -f makefile.test clean ARCH=UC3\r
+       $(MAKE) -s -f makefile.test clean ARCH=AVR8 MCU=$(firstword $(AVR8_FAMILIES))\r
+       $(MAKE) -s -f makefile.test clean ARCH=XMEGA MCU=$(firstword $(XMEGA_FAMILIES))\r
+       $(MAKE) -s -f makefile.test clean ARCH=UC3 MCU=$(firstword $(UC3_FAMILIES))\r
 \r
 %:\r
 \r
 .PHONY: all arch_avr8 arch_xmega arch_uc3 begin end\r
 \r
 # Include LUFA build script makefiles\r
-include $(LUFA_ROOT_PATH)/LUFA/Build/lufa.core.in\r
+include $(LUFA_PATH)/Build/lufa.core.in\r