makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 = at90usb1287
  13. ARCH = AVR8
  14. BOARD = USBKEY
  15. F_CPU = 8000000
  16. F_USB = $(F_CPU)
  17. OPTIMIZATION = s
  18. TARGET = TempDataLogger
  19. SRC = $(TARGET).c Descriptors.c Lib/DataflashManager.c Lib/RTC.c Lib/SCSI.c Lib/FATFs/diskio.c Lib/FATFs/ff.c \
  20. $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS) $(LUFA_SRC_SERIAL) $(LUFA_SRC_TWI) $(LUFA_SRC_TEMPERATURE)
  21. LUFA_PATH = ../../LUFA
  22. CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
  23. LD_FLAGS =
  24. # Default target
  25. all:
  26. # Include LUFA-specific DMBS extension modules
  27. DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
  28. include $(DMBS_LUFA_PATH)/lufa-sources.mk
  29. include $(DMBS_LUFA_PATH)/lufa-gcc.mk
  30. # Include common DMBS build system modules
  31. DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  32. include $(DMBS_PATH)/core.mk
  33. include $(DMBS_PATH)/cppcheck.mk
  34. include $(DMBS_PATH)/doxygen.mk
  35. include $(DMBS_PATH)/dfu.mk
  36. include $(DMBS_PATH)/gcc.mk
  37. include $(DMBS_PATH)/hid.mk
  38. include $(DMBS_PATH)/avrdude.mk
  39. include $(DMBS_PATH)/atprogram.mk