Update library documentation on the standard LUFA makefile template configuration.
[pub/USBasp.git] / LUFA / makefile
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2012.
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 Version.h | cut -d'"' -f2)
13 EXCLUDE_FROM_EXPORT = Documentation DoxygenPages CodeTemplates Build *.conf *.tar *.o *.lss *.lst *.hex *.elf *.bin
14 DOXYGEN_OVERRIDE_PARAMS = PROJECT_NUMBER=$(LUFA_VERSION_NUM)
15
16 export_tar:
17 @echo Exporting LUFA library to a TAR archive...
18 @tar -cf LUFA_$(LUFA_VERSION_NUM).tar --directory=. $(EXCLUDE_FROM_EXPORT:%=--exclude=%) *
19 @tar -cf LUFA_$(LUFA_VERSION_NUM)_Code_Templates.tar CodeTemplates
20 @echo Export LUFA_$(LUFA_VERSION_NUM).tar complete.
21
22 version:
23 @echo "LUFA $(LUFA_VERSION_NUM)"
24
25 # Check if this is being included from a legacy or non LUFA build system makefile
26 ifneq ($(LUFA_PATH),)
27 LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA/
28 include $(LUFA_PATH)/LUFA/Build/lufa.sources.in
29 else
30 LUFA_BUILD_MODULES += LIBCORE
31 LUFA_BUILD_TARGETS += export_tar version
32
33 LUFA_PATH = .
34 ARCH = {AVR8,UC3,XMEGA}
35
36 all:
37
38 clean:
39 rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
40 rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
41
42 # Include LUFA build script makefiles
43 include Build/lufa.core.in
44 include Build/lufa.sources.in
45 include Build/lufa.doxygen.in
46 endif