makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 = Webserver
  19. SRC = $(TARGET).c Descriptors.c USBDeviceMode.c USBHostMode.c Lib/SCSI.c Lib/DataflashManager.c \
  20. Lib/uIPManagement.c Lib/DHCPCommon.c Lib/DHCPClientApp.c Lib/DHCPServerApp.c Lib/HTTPServerApp.c \
  21. Lib/TELNETServerApp.c Lib/uip/uip.c Lib/uip/uip_arp.c Lib/uip/timer.c Lib/uip/clock.c \
  22. Lib/uip/uip-split.c Lib/FATFs/diskio.c Lib/FATFs/ff.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
  23. LUFA_PATH = ../../LUFA
  24. CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -ILib/uip/ -ILib/FATFs/
  25. LD_FLAGS =
  26. # Default target
  27. all:
  28. # Include LUFA-specific DMBS extension modules
  29. DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
  30. include $(DMBS_LUFA_PATH)/lufa-sources.mk
  31. include $(DMBS_LUFA_PATH)/lufa-gcc.mk
  32. # Include common DMBS build system modules
  33. DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
  34. include $(DMBS_PATH)/core.mk
  35. include $(DMBS_PATH)/cppcheck.mk
  36. include $(DMBS_PATH)/doxygen.mk
  37. include $(DMBS_PATH)/dfu.mk
  38. include $(DMBS_PATH)/gcc.mk
  39. include $(DMBS_PATH)/hid.mk
  40. include $(DMBS_PATH)/avrdude.mk
  41. include $(DMBS_PATH)/atprogram.mk