3 # Copyright (C) Dean Camera, 2012.
5 # dean [at] fourwalledcubicle [dot] com
9 # Makefile for the single USB mode build test.
10 # This test attempts to build the USB module
11 # under fixed device and fixed host modes under
12 # all supported architectures
14 # Path to the LUFA library core
15 LUFA_PATH = ../../LUFA/
17 all: begin compile clean end
20 @echo Executing build test "SingleUSBModeTest".
24 @echo Build test "SingleUSBModeTest" complete.
28 @echo Building SingleUSBModeTest for ARCH=AVR8 in device only mode...
29 $(MAKE) -s -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_DEVICE_ONLY'
31 @echo Building SingleUSBModeTest for ARCH=AVR8 in host only mode...
32 $(MAKE) -s -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_HOST_ONLY'
34 @echo Building SingleUSBModeTest for ARCH=XMEGA in device only mode...
35 $(MAKE) -s -f makefile.test clean elf ARCH=XMEGA MCU=atxmega128a1u CC_FLAGS='-D USB_DEVICE_ONLY'
37 @echo Building SingleUSBModeTest for ARCH=UC3 in device only mode...
38 $(MAKE) -s -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_DEVICE_ONLY'
40 @echo Building SingleUSBModeTest for ARCH=UC3 in host only mode...
41 $(MAKE) -s -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_HOST_ONLY'
44 $(MAKE) -s -f makefile.test clean ARCH=AVR8 MCU=at90usb1287
45 $(MAKE) -s -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u
46 $(MAKE) -s -f makefile.test clean ARCH=UC3 MCU=uc3a0256
50 .PHONY: begin end compile clean
52 # Include LUFA build script makefiles
53 include $(LUFA_PATH)/Build/lufa.core.in