Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # LUFA Library
  3. # Copyright (C) Dean Camera, 2021.
  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. MCU = atmega32u4
  13. ARCH = AVR8
  14. BOARD = LEONARDO
  15. F_CPU = 16000000
  16. F_USB = $(F_CPU)
  17. OPTIMIZATION = s
  18. TARGET = usbcas
  19. SRC = $(TARGET).c Descriptors.c reboot.c fmtx.c fmrx.c \
  20. $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
  21. LUFA_PATH = ../LUFA/LUFA
  22. CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
  23. LD_FLAGS =
  24. # Arduino bootloader programming
  25. AVRDUDE_PROGRAMMER = avr109
  26. AVRDUDE_PORT = /dev/ttyACM0
  27. # Default target
  28. all:
  29. # Include LUFA-specific DMBS extension modules
  30. DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
  31. include $(DMBS_LUFA_PATH)/lufa-sources.mk
  32. include $(DMBS_LUFA_PATH)/lufa-gcc.mk
  33. # Include common DMBS build system modules
  34. DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  35. include $(DMBS_PATH)/core.mk
  36. include $(DMBS_PATH)/cppcheck.mk
  37. include $(DMBS_PATH)/doxygen.mk
  38. include $(DMBS_PATH)/dfu.mk
  39. include $(DMBS_PATH)/gcc.mk
  40. include $(DMBS_PATH)/hid.mk
  41. include $(DMBS_PATH)/avrdude.mk
  42. include $(DMBS_PATH)/atprogram.mk