3 # Copyright (C) Dean Camera, 2018.
5 # dean [at] fourwalledcubicle [dot] com
8 # --------------------------------------
9 # LUFA Project Makefile.
10 # --------------------------------------
12 # Run "make help" for target help.
14 AVRISP_PATH = ../AVRISP-MKII
23 SRC = $(TARGET).c Lib/SoftUART.c USARTDescriptors.c $(AVRISP_PATH)/AVRISPDescriptors.c $(AVRISP_PATH)/Lib/V2Protocol.c \
24 $(AVRISP_PATH)/Lib/V2ProtocolParams.c \
25 $(AVRISP_PATH)/Lib/XPROG/XPROGProtocol.c $(AVRISP_PATH)/Lib/XPROG/XPROGTarget.c \
26 $(AVRISP_PATH)/Lib/XPROG/XMEGANVM.c $(AVRISP_PATH)/Lib/XPROG/TINYNVM.c \
27 $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
28 LUFA_PATH = ../../LUFA
29 CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -I$(AVRISP_PATH)
35 # Since this project borrows files from the AVRISP-MKII project which may also have an
36 # identical OBJDIR directory, we need to enforce the use of this project's object file
37 # directory as the one where the build object files are to be stored, by giving it a
38 # path relative to the current folder.
41 # Include LUFA-specific DMBS extension modules
42 DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
43 include $(DMBS_LUFA_PATH)/lufa-sources.mk
44 include $(DMBS_LUFA_PATH)/lufa-gcc.mk
46 # Include common DMBS build system modules
47 DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
48 include $(DMBS_PATH)/core.mk
49 include $(DMBS_PATH)/cppcheck.mk
50 include $(DMBS_PATH)/doxygen.mk
51 include $(DMBS_PATH)/dfu.mk
52 include $(DMBS_PATH)/gcc.mk
53 include $(DMBS_PATH)/hid.mk
54 include $(DMBS_PATH)/avrdude.mk
55 include $(DMBS_PATH)/atprogram.mk