makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # LUFA Library
  3. # Copyright (C) Dean Camera, 2017.
  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 common DMBS build system modules
  41. DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  42. include $(DMBS_PATH)/core.mk