]> git.gir.st - tmk_keyboard.git/blob - tmk_core/protocol/lufa/LUFA-120730/LUFA/makefile
Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core'
[tmk_keyboard.git] / tmk_core / protocol / lufa / LUFA-120730 / 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 *.d *.lss *.lst *.hex *.elf *.hex *.eep *.map *.bin
14
15 all:
16
17 export_tar:
18 @echo Exporting LUFA library to a TAR archive...
19 @tar -cf LUFA_$(LUFA_VERSION_NUM).tar --directory=. $(EXCLUDE_FROM_EXPORT:%=--exclude=%) *
20 @tar -cf LUFA_$(LUFA_VERSION_NUM)_Code_Templates.tar CodeTemplates
21 @echo Export LUFA_$(LUFA_VERSION_NUM).tar complete.
22
23 version:
24 @echo "LUFA $(LUFA_VERSION_NUM)"
25
26 # Check if this is being included from a legacy or non LUFA build system makefile
27 ifneq ($(LUFA_PATH),)
28 LUFA_ROOT_PATH = $(patsubst %/,%,$(LUFA_PATH))/LUFA/
29
30 include $(patsubst %/,%,$(LUFA_PATH))/LUFA/Build/lufa.sources.in
31 else
32 LUFA_BUILD_MODULES += MASTER
33 LUFA_BUILD_TARGETS += export_tar version
34
35 LUFA_PATH = .
36 ARCH = {AVR8,UC3,XMEGA}
37 DOXYGEN_OVERRIDE_PARAMS = QUIET=YES PROJECT_NUMBER=$(LUFA_VERSION_NUM)
38
39 clean:
40 rm -f $(LUFA_SRC_ALL_FILES:%.c=%.o)
41 rm -f $(LUFA_SRC_ALL_FILES:%.c=%.d)
42 rm -f $(LUFA_SRC_ALL_FILES:%.c=%.lst)
43
44 include Build/lufa_core.mk
45 include Build/lufa_sources.mk
46 include Build/lufa_doxygen.mk
47 endif
48
49
50 .PHONY: all export_tar version clean
Imprint / Impressum