1 DMBS - Dean's Makefile Build System
2 ===================================
8 GNU Make is scary, and it's tough to get the rules right sometimes. Many
9 projects get by via simple copy-pasting of old makefiles, resulting in many
10 redundant copies of the same old rules. DMBS aims to solve this by providing a
11 simple modular set of makefiles which can be included by your project to quickly
12 add various build functionality.
14 This aims to replace the old WinAVR "mfile" makefile template, giving better
15 functionality and much simpler user makefiles.
21 Apart from much simpler, cleaner makefiles DMBS carries the aim of making the
22 process of troubleshooting build issues a little easier. Lots can go wrong, so
23 DMBS tries to sanity check its inputs wherever possible, and produce
24 human-readable error messages. Forgotten to set a variable? Get a
25 `Makefile {X} value not set.` message, rather than a possibly unrelated message.
26 Have the wrong filename? See `Source file does not exist: {X}` rather than the
27 infamous `No rule to make target {X}` message.
33 A template user makefile is provided in the `Template` directory. DMBS modules
34 are included via a GNU Make `include` directive. While the DMBS `core` module is
35 always required, you can pick and choose what other modules you wish to add to
38 DMBS is also used in the LUFA Project which provides a
39 [detailed documentation](http://www.fourwalledcubicle.com/files/LUFA/Doc/151115/html/_page__build_system.html)
42 Here's an example user makefile:
56 # Include DMBS build script makefiles
58 include $(DMBS_PATH)/core.mk
59 include $(DMBS_PATH)/gcc.mk
60 include $(DMBS_PATH)/cppcheck.mk
61 include $(DMBS_PATH)/doxygen.mk
62 include $(DMBS_PATH)/dfu.mk
63 include $(DMBS_PATH)/hid.mk
64 include $(DMBS_PATH)/avrdude.mk
65 include $(DMBS_PATH)/atprogram.mk
67 Each DMBS module can optionally supply one or more Make variables and macros,
68 which you can reference in your user makefile. Additionally, modules can require
69 one or more variables to be set by the user makefile, with (in some cases) sane
70 defaults used if left out.
72 As modules are added, you can get a list of available targets by simply typing
73 `make help` from the command line. This will produce a formatted list of targets
74 as well as mandatory and optional variables and exposed variables and macros.
80 DMBS is released into the public domain, making is suitable for use everywhere,
81 by everyone. Contributions are greatly appreciated however, in order to make
82 DMBS better for everyone.
84 The actual license text is as follows:
86 This is free and unencumbered software released into the public domain.
88 Anyone is free to copy, modify, publish, use, compile, sell, or
89 distribute this software, either in source code form or as a compiled
90 binary, for any purpose, commercial or non-commercial, and by any
93 In jurisdictions that recognize copyright laws, the author or authors
94 of this software dedicate any and all copyright interest in the
95 software to the public domain. We make this dedication for the benefit
96 of the public at large and to the detriment of our heirs and
97 successors. We intend this dedication to be an overt act of
98 relinquishment in perpetuity of all present and future rights to this
99 software under copyright law.
101 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
102 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
103 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
104 IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
105 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
106 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
107 OTHER DEALINGS IN THE SOFTWARE.
109 For more information, please refer to <http://unlicense.org/>