Minor documentation improvements.
[pub/USBasp.git] / LUFA / makefile
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2016.
4 #
5 # dean [at] fourwalledcubicle [dot] com
6 # www.lufa-lib.org
7 #
8 # ---------------------------------------
9 # Makefile for the LUFA library itself.
10 # ---------------------------------------
11
12 LUFA_VERSION_NUM := $(shell grep LUFA_VERSION_STRING $(LUFA_PATH)/Version.h | cut -d'"' -f2)
13
14 # Default target - no default action when attempting to build the core directly
15 all:
16
17 # Display the LUFA version of this library copy
18 version:
19 @echo "LUFA $(LUFA_VERSION_NUM)"
20
21 LUFA_PATH := .
22 ARCH := {AVR8,UC3,XMEGA}
23 DOXYGEN_OVERRIDE_PARAMS := QUIET=YES PROJECT_NUMBER=$(LUFA_VERSION_NUM)
24
25 # Remove all object and associated files from the LUFA library core
26 clean:
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)
30
31 # Include LUFA-specific DMBS extension modules
32 DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
33 include $(DMBS_LUFA_PATH)/lufa-sources.mk
34
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
39
40 .PHONY: all version