]> git.gir.st - tmk_keyboard.git/blob - tmk_core/protocol/lufa/LUFA-git/BuildTests/SingleUSBModeTest/makefile
Merge commit '22b6e15a179031afb7c3534cf7b109b0668b602c'
[tmk_keyboard.git] / tmk_core / protocol / lufa / LUFA-git / BuildTests / SingleUSBModeTest / makefile
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2014.
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 # Build test cannot be run with multiple parallel jobs
18 .NOTPARALLEL:
19
20 all: begin compile clean end
21
22 begin:
23 @echo Executing build test "SingleUSBModeTest".
24 @echo
25
26 end:
27 @echo Build test "SingleUSBModeTest" complete.
28 @echo
29
30 compile:
31 @echo Building SingleUSBModeTest for ARCH=AVR8 in device only mode...
32 $(MAKE) -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_DEVICE_ONLY'
33
34 @echo Building SingleUSBModeTest for ARCH=AVR8 in host only mode...
35 $(MAKE) -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_HOST_ONLY'
36
37 @echo Building SingleUSBModeTest for ARCH=XMEGA in device only mode...
38 $(MAKE) -f makefile.test clean elf ARCH=XMEGA MCU=atxmega128a1u CC_FLAGS='-D USB_DEVICE_ONLY'
39
40 @echo Building SingleUSBModeTest for ARCH=UC3 in device only mode...
41 $(MAKE) -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_DEVICE_ONLY'
42
43 @echo Building SingleUSBModeTest for ARCH=UC3 in host only mode...
44 $(MAKE) -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_HOST_ONLY'
45
46 clean:
47 $(MAKE) -f makefile.test clean ARCH=AVR8 MCU=at90usb1287
48 $(MAKE) -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u
49 $(MAKE) -f makefile.test clean ARCH=UC3 MCU=uc3a0256
50
51 %:
52
53 .PHONY: begin end compile clean
54
55 # Include LUFA build script makefiles
56 include $(LUFA_PATH)/Build/lufa_core.mk
Imprint / Impressum