Add a list of module provided make variables and macros to the build system modules.
[pub/USBasp.git] / BuildTests / SingleUSBModeTest / makefile
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2012.
4 #
5 # dean [at] fourwalledcubicle [dot] com
6 # www.lufa-lib.org
7 #
8
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
13
14 # Path to the LUFA library core
15 LUFA_PATH = ../../LUFA/
16
17 all: begin compile clean end
18
19 begin:
20 @echo Executing build test "SingleUSBModeTest".
21 @echo
22
23 end:
24 @echo Build test "SingleUSBModeTest" complete.
25 @echo
26
27 compile:
28 $(MAKE) -s -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_DEVICE_ONLY'
29 $(MAKE) -s -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_HOST_ONLY'
30
31 $(MAKE) -s -f makefile.test clean elf ARCH=XMEGA MCU=atxmega128a1u CC_FLAGS='-D USB_DEVICE_ONLY'
32
33 $(MAKE) -s -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_DEVICE_ONLY'
34 $(MAKE) -s -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_HOST_ONLY'
35
36 clean:
37 $(MAKE) -s -f makefile.test clean ARCH=AVR8 MCU=at90usb1287
38 $(MAKE) -s -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u
39 $(MAKE) -s -f makefile.test clean ARCH=UC3 MCU=uc3a0256
40
41 %:
42
43 .PHONY: begin end compile clean
44
45 # Include LUFA build script makefiles
46 include $(LUFA_PATH)/Build/lufa.core.in