summaryrefslogtreecommitdiff
path: root/lib/lufa/LUFA/Build/DMBS/DMBS/core.md
blob: 406abfecd760834fa7abf4fd2a18dd79d2eb857c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
DMBS - Dean's Makefile Build System
===================================


Module: CORE
------------

The CORE module provides the core DMBS infrastructure used by other DMBS
modules, and must always be imported. Additionally, this module provides the
help system for DMBS.

## Importing This Module into a Makefile:

To use this module in your application makefile, add the following code to your
makefile:

    include $(DMBS_PATH)/core.mk

## Prerequisites:

None.

## Build Targets:

The following targets are supported by this module:

<table>
 <tbody>
   <tr>
    <td>help</td>
    <td>Show help for the current project, including a list of all available targets, variables and macros from the imported modules.</td>
   </tr>
   <tr>
    <td>list_targets</td>
    <td>Show a list of all build targets from the imported modules.</td>
   </tr>
   <tr>
    <td>list_modules</td>
    <td>Show a list of all imported modules.</td>
   </tr>
   <tr>
    <td>list_mandatory</td>
    <td>Show a list of all mandatory variables from the imported modules.</td>
   </tr>
   <tr>
    <td>list_optional</td>
    <td>Show a list of all optional variables from the imported modules.</td>
   </tr>
   <tr>
    <td>list_provided</td>
    <td>Show a list of all variables provided by the imported modules.</td>
   </tr>
   <tr>
    <td>list_macros</td>
    <td>Show a list of all macros provided by the imported modules.</td>
   </tr>
 </tbody>
</table>

## Mandatory Variables:

The following variables must be defined (with a `NAME = VALUE` syntax, one
variable per line) in the user makefile to be able to use this module:

<table>
 <tbody>
   <tr>
    <td>N/A</td>
    <td>This module has no mandatory variables.</td>
   </tr>
 </tbody>
</table>

## Optional Variables:

The following variables may be defined (with a `NAME = VALUE` syntax, one
variable per line) in the user makefile. If not specified, a default value will
be assumed.

<table>
 <tbody>
   <tr>
    <td>N/A</td>
    <td>This module has no optional variables.</td>
   </tr>
 </tbody>
</table>

## Provided Variables:

The following variables may be referenced in a user makefile (via `$(NAME)`
syntax) if desired, as they are provided by this module.

<table>
 <tbody>
   <tr>
    <td>DMBS_VERSION</td>
    <td>Current version of this DMBS release, as a ISO 8601 integer (such as `20160403` for `2016-04-03`).</td>
   </tr>
 </tbody>
</table>

## Provided Macros:

The following macros may be referenced in a user makefile (via
`$(call NAME, ARG1, ARG2, ...)` syntax) if desired, as they are provided by
this module.

<table>
 <tbody>
   <tr>
    <td>DMBS_CHECK_VERSION</td>
    <td>Macro to check the current DMBS version against the first argument and abort if the required version is newer than the current version.</td>
   </tr>
   <tr>
    <td>ERROR_IF_UNSET</td>
    <td>Macro to check the given makefile variable name passed as the first argument, and abort if it has not been set by any makefile module.</td>
   </tr>
   <tr>
    <td>ERROR_IF_EMPTY</td>
    <td>Macro to check the given makefile variable name passed as the first argument, and abort if it has an empty value.</td>
   </tr>
   <tr>
    <td>ERROR_IF_NONBOOL</td>
    <td>Macro to check the given makefile variable name passed as the first argument, and abort if it has a value other than `Y` or `N`.</td>
   </tr>
 </tbody>
</table>

## Module Changelog:

The changes to this module since its initial release are listed below, as of the
DMBS version where the change was made.

### 20160403
Initial release.