3 # Copyright (C) Dean Camera, 2016.
5 # dean [at] fourwalledcubicle [dot] com
8 # ---------------------------------------
9 # Makefile for the LUFA library itself.
10 # ---------------------------------------
12 LUFA_VERSION_NUM := $(shell grep LUFA_VERSION_STRING $(LUFA_PATH)/Version.h | cut -d'"' -f2)
14 # Default target - no default action when attempting to build the core directly
17 # Display the LUFA version of this library copy
19 @echo "LUFA $(LUFA_VERSION_NUM)"
22 ARCH := {AVR8,UC3,XMEGA}
23 DOXYGEN_OVERRIDE_PARAMS := QUIET=YES PROJECT_NUMBER=$(LUFA_VERSION_NUM)
25 # Remove all object and associated files from the LUFA library core
27 rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
28 rm -f $(LUFA_SRC_ALL_FILES:%.c=%.d)
29 rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
31 # Include LUFA-specific DMBS extension modules
32 DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
33 include $(DMBS_LUFA_PATH)/lufa-sources.mk
35 # Include common DMBS build system modules
36 DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS
37 include $(DMBS_PATH)/core.mk
38 include $(DMBS_PATH)/doxygen.mk