MNT Reform: Open Source Portable Computer https://mntre.com/reform
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.

43 lines
1.1KB

  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. MCU = atmega32u2
  13. ARCH = AVR8
  14. F_CPU = 16000000
  15. F_USB = $(F_CPU)
  16. OPTIMIZATION = s
  17. TARGET = Mouse
  18. SRC = $(TARGET).c i2cmaster/i2cmaster.S Descriptors.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
  19. LUFA_PATH = ./lufa-master/LUFA
  20. CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
  21. LD_FLAGS =
  22. # Default target
  23. all:
  24. # Include LUFA-specific DMBS extension modules
  25. DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
  26. include $(DMBS_LUFA_PATH)/lufa-sources.mk
  27. include $(DMBS_LUFA_PATH)/lufa-gcc.mk
  28. # Include common DMBS build system modules
  29. DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  30. include $(DMBS_PATH)/core.mk
  31. include $(DMBS_PATH)/cppcheck.mk
  32. include $(DMBS_PATH)/doxygen.mk
  33. include $(DMBS_PATH)/dfu.mk
  34. include $(DMBS_PATH)/gcc.mk
  35. include $(DMBS_PATH)/hid.mk
  36. include $(DMBS_PATH)/avrdude.mk
  37. include $(DMBS_PATH)/atprogram.mk