makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #
  2. # LUFA Library
  3. # Copyright (C) Dean Camera, 2018.
  4. #
  5. # dean [at] fourwalledcubicle [dot] com
  6. # www.lufa-lib.org
  7. #
  8. # --------------------------------------
  9. # LUFA Project Makefile.
  10. # --------------------------------------
  11. # Run "make help" for target help.
  12. AVRISP_PATH = ../AVRISP-MKII
  13. MCU = at90usb1287
  14. ARCH = AVR8
  15. BOARD = XPLAIN
  16. F_CPU = 8000000
  17. F_USB = $(F_CPU)
  18. OPTIMIZATION = s
  19. TARGET = XPLAINBridge
  20. SRC = $(TARGET).c Lib/SoftUART.c USARTDescriptors.c $(AVRISP_PATH)/AVRISPDescriptors.c $(AVRISP_PATH)/Lib/V2Protocol.c \
  21. $(AVRISP_PATH)/Lib/V2ProtocolParams.c \
  22. $(AVRISP_PATH)/Lib/XPROG/XPROGProtocol.c $(AVRISP_PATH)/Lib/XPROG/XPROGTarget.c \
  23. $(AVRISP_PATH)/Lib/XPROG/XMEGANVM.c $(AVRISP_PATH)/Lib/XPROG/TINYNVM.c \
  24. $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
  25. LUFA_PATH = ../../LUFA
  26. CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -I$(AVRISP_PATH)
  27. LD_FLAGS =
  28. # Default target
  29. all:
  30. # Since this project borrows files from the AVRISP-MKII project which may also have an
  31. # identical OBJDIR directory, we need to enforce the use of this project's object file
  32. # directory as the one where the build object files are to be stored, by giving it a
  33. # path relative to the current folder.
  34. OBJDIR := ./obj
  35. # Include LUFA-specific DMBS extension modules
  36. DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
  37. include $(DMBS_LUFA_PATH)/lufa-sources.mk
  38. include $(DMBS_LUFA_PATH)/lufa-gcc.mk
  39. # Include common DMBS build system modules
  40. DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  41. include $(DMBS_PATH)/core.mk
  42. include $(DMBS_PATH)/cppcheck.mk
  43. include $(DMBS_PATH)/doxygen.mk
  44. include $(DMBS_PATH)/dfu.mk
  45. include $(DMBS_PATH)/gcc.mk
  46. include $(DMBS_PATH)/hid.mk
  47. include $(DMBS_PATH)/avrdude.mk
  48. include $(DMBS_PATH)/atprogram.mk