Overview
This is my first project on GitHub, which provides a simple configuration and compilation framework for modular software.
Simple-build-framework
Usage Prerequisites
- Divide your project into a master module and a number of other modules;
- Ensure that each module is self-contained, in addition to the public interface, all the source code of this module, private header files, configuration files, etc. should be placed in the corresponding module directory.
Function:
- Add modules using simple makefile fragments (module name only, source file list, optional compilation options, etc.);
- Add 1 files to 1 modules with as few modifications as possible (name and optional compilation options, etc.);
- Support module nesting;
- Support for specifying compilation options for each file or module;
- Supports output directory designation.
How to use
- Create the main module and other modules based on the MAIN/MOD1/MOD2 in the frame;
- Add source code, compile options, and module.mk for each of the lowest-level modules;
- Executing the make command at the root of the compiled framework, the target file and the final executable will be generated in the specified or default output directory.
Note :
You can use make help to get all the supported make commands and their usage.
Todo
- Supports C + + files and headers; support for c++/assembly files and header files;
- Support Kconfig (make config, make menuconfig, etc.);
- Support MINGGW Environment;
- Support for more configuration items (compiler designation, executable file name, compile information level, etc.).
Simple compilation Framework