Squashed 'tmk_core/' changes from caca2c0..dc0e46e
dc0e46e Rename LUFA to LUFA-git 3bfa7fa Remove LUFA-120730 215b764 Merge commit 'afa0f22a9299686fd88f58ce09c5b521ac917e8f' as 'protocol/lufa/LUFA' afa0f22 Squashed 'protocol/lufa/LUFA/' content from commit def7fca c0c42fa Remove submodule of LUFA 30f897d Merge commit '87ced33feb74e79c3281dda36eb6d6d153399b41' as 'protocol/usb_hid/USB_Host_Shield_2.0' 87ced33 Squashed 'protocol/usb_hid/USB_Host_Shield_2.0/' content from commit aab4a69 14f6d49 Remove submodule of USB_Host_Shield_2.0 git-subtree-dir: tmk_core git-subtree-split: dc0e46eaa4367d4e218f8816e3c117895820f07c
This commit is contained in:
56
protocol/lufa/LUFA-git/BuildTests/SingleUSBModeTest/makefile
Normal file
56
protocol/lufa/LUFA-git/BuildTests/SingleUSBModeTest/makefile
Normal file
@ -0,0 +1,56 @@
|
||||
#
|
||||
# LUFA Library
|
||||
# Copyright (C) Dean Camera, 2014.
|
||||
#
|
||||
# dean [at] fourwalledcubicle [dot] com
|
||||
# www.lufa-lib.org
|
||||
#
|
||||
|
||||
# Makefile for the single USB mode build test.
|
||||
# This test attempts to build the USB module
|
||||
# under fixed device and fixed host modes under
|
||||
# all supported architectures
|
||||
|
||||
# Path to the LUFA library core
|
||||
LUFA_PATH := ../../LUFA/
|
||||
|
||||
# Build test cannot be run with multiple parallel jobs
|
||||
.NOTPARALLEL:
|
||||
|
||||
all: begin compile clean end
|
||||
|
||||
begin:
|
||||
@echo Executing build test "SingleUSBModeTest".
|
||||
@echo
|
||||
|
||||
end:
|
||||
@echo Build test "SingleUSBModeTest" complete.
|
||||
@echo
|
||||
|
||||
compile:
|
||||
@echo Building SingleUSBModeTest for ARCH=AVR8 in device only mode...
|
||||
$(MAKE) -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_DEVICE_ONLY'
|
||||
|
||||
@echo Building SingleUSBModeTest for ARCH=AVR8 in host only mode...
|
||||
$(MAKE) -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_HOST_ONLY'
|
||||
|
||||
@echo Building SingleUSBModeTest for ARCH=XMEGA in device only mode...
|
||||
$(MAKE) -f makefile.test clean elf ARCH=XMEGA MCU=atxmega128a1u CC_FLAGS='-D USB_DEVICE_ONLY'
|
||||
|
||||
@echo Building SingleUSBModeTest for ARCH=UC3 in device only mode...
|
||||
$(MAKE) -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_DEVICE_ONLY'
|
||||
|
||||
@echo Building SingleUSBModeTest for ARCH=UC3 in host only mode...
|
||||
$(MAKE) -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_HOST_ONLY'
|
||||
|
||||
clean:
|
||||
$(MAKE) -f makefile.test clean ARCH=AVR8 MCU=at90usb1287
|
||||
$(MAKE) -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u
|
||||
$(MAKE) -f makefile.test clean ARCH=UC3 MCU=uc3a0256
|
||||
|
||||
%:
|
||||
|
||||
.PHONY: begin end compile clean
|
||||
|
||||
# Include LUFA build script makefiles
|
||||
include $(LUFA_PATH)/Build/lufa_core.mk
|
Reference in New Issue
Block a user