Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

makefile 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # LUFA Library
  3. # Copyright (C) Dean Camera, 2014.
  4. #
  5. # dean [at] fourwalledcubicle [dot] com
  6. # www.lufa-lib.org
  7. #
  8. # Makefile for the single USB mode build test.
  9. # This test attempts to build the USB module
  10. # under fixed device and fixed host modes under
  11. # all supported architectures
  12. # Path to the LUFA library core
  13. LUFA_PATH := ../../LUFA/
  14. # Build test cannot be run with multiple parallel jobs
  15. .NOTPARALLEL:
  16. all: begin compile clean end
  17. begin:
  18. @echo Executing build test "SingleUSBModeTest".
  19. @echo
  20. end:
  21. @echo Build test "SingleUSBModeTest" complete.
  22. @echo
  23. compile:
  24. @echo Building SingleUSBModeTest for ARCH=AVR8 in device only mode...
  25. $(MAKE) -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_DEVICE_ONLY'
  26. @echo Building SingleUSBModeTest for ARCH=AVR8 in host only mode...
  27. $(MAKE) -f makefile.test clean elf ARCH=AVR8 MCU=at90usb1287 CC_FLAGS='-D USB_HOST_ONLY'
  28. @echo Building SingleUSBModeTest for ARCH=XMEGA in device only mode...
  29. $(MAKE) -f makefile.test clean elf ARCH=XMEGA MCU=atxmega128a1u CC_FLAGS='-D USB_DEVICE_ONLY'
  30. @echo Building SingleUSBModeTest for ARCH=UC3 in device only mode...
  31. $(MAKE) -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_DEVICE_ONLY'
  32. @echo Building SingleUSBModeTest for ARCH=UC3 in host only mode...
  33. $(MAKE) -f makefile.test clean elf ARCH=UC3 MCU=uc3a0256 CC_FLAGS='-D USB_HOST_ONLY'
  34. clean:
  35. $(MAKE) -f makefile.test clean ARCH=AVR8 MCU=at90usb1287
  36. $(MAKE) -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u
  37. $(MAKE) -f makefile.test clean ARCH=UC3 MCU=uc3a0256
  38. %:
  39. .PHONY: begin end compile clean
  40. # Include LUFA build script makefiles
  41. include $(LUFA_PATH)/Build/lufa_core.mk