Ensure build tests use the system provided $(MAKE) variable to determine the command...
[pub/USBasp.git] / LUFA / Build / lufa.core.in
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 LUFA_BUILD_MODULES += CORE
10 LUFA_BUILD_TARGETS += info help list_targets list_modules list_mandatory list_optional
11 LUFA_BUILD_MANDATORY_VARS +=
12 LUFA_BUILD_OPTIONAL_VARS +=
13
14 # -----------------------------------------------------------------------------
15 # LUFA Core Buildsystem Makefile Module.
16 # -----------------------------------------------------------------------------
17 # DESCRIPTION:
18 # Provides a set of core build targets for the LUFA buildsystem
19 # -----------------------------------------------------------------------------
20 # TARGETS:
21 #
22 # info - Build system information
23 # help - Build system help
24 # list_targets - List all build targets
25 # list_modules - List all build modules
26 # list_mandatory - List all mandatory make variables required by
27 # the included build modules of the application
28 # list_optional - List all optional make variables required by
29 # the included build modules of the application
30 #
31 # MANDATORY PARAMETERS:
32 #
33 # (None)
34 #
35 # OPTIONAL PARAMETERS:
36 #
37 # (None)
38 #
39 # -----------------------------------------------------------------------------
40
41 info:
42 @echo "==================================================================="
43 @echo " LUFA Build System 2.0 "
44 @echo " (C) Dean Camera { dean @ fourwalledcubicle . com } "
45 @echo "==================================================================="
46
47 .PHONY: info
48 help: info
49 @echo "DESCRIPTION: "
50 @echo " This build system is a set of makefile modules for (GNU) Make, to "
51 @echo " provide a simple system for building LUFA powered applications. "
52 @echo " Each makefile module can be included from within a user makefile, "
53 @echo " to expose the build rules documented in the comments at the top of"
54 @echo " each build module. "
55 @echo " "
56 @echo "USAGE: "
57 @echo " To execute a rule, define all variables indicated in the desired "
58 @echo " module as a required parameter before including the build module "
59 @echo " in your project makefile. Parameters marked as optional will "
60 @echo " assume a default value in the module if not user-assigned. "
61 @echo "==================================================================="
62 @echo " Currently used modules in this application: "
63 @echo " "
64 @echo " [" $(sort $(LUFA_BUILD_MODULES)) "]"
65 @echo " "
66 @echo " "
67 @echo " Currently available build targets in this application: "
68 @echo " "
69 @echo " [" $(sort $(LUFA_BUILD_TARGETS)) "]"
70 @echo " "
71 @echo " "
72 @echo " Mandatory variables required by the selected build Modules: "
73 @echo " "
74 @echo " [" $(sort $(LUFA_BUILD_MANDATORY_VARS)) "]"
75 @echo " "
76 @echo " "
77 @echo " Optional variables required by the selected build Modules: "
78 @echo " "
79 @echo " [" $(sort $(LUFA_BUILD_OPTIONAL_VARS)) "]"
80 @echo " "
81 @echo "==================================================================="
82 @echo " The LUFA BuildSystem 2.0 - Powered By Unicorns (tm) "
83 @echo "==================================================================="
84
85 list_targets:
86 @echo Currently Available Build Targets: $(sort $(LUFA_BUILD_TARGETS))
87
88 list_modules:
89 @echo Currently Build Modules: $(sort $(LUFA_BUILD_MODULES))
90
91 list_mandatory:
92 @echo Mandatory Variables for Included Modules: $(sort $(LUFA_BUILD_MANDATORY_VARS))
93
94 list_optional:
95 @echo Optional Variables for Included Modules: $(sort $(LUFA_BUILD_OPTIONAL_VARS))