Simple C build system
- C 100%
| sample | ||
| .clang-format | ||
| .clangd | ||
| cb.c | ||
| compile_flags.txt | ||
| LICENSE | ||
| README.md | ||
Simple C Build System
This project is still in development
cb provides a simple and quick way to build C projects with zero configuration or scripting, either using shell or using a DSL. Everything you have to provide is the source files:
./cb . # Finds all .c files in the project
./cb main.c # Compiles just main.c
./cb main.c -Iinclude # Include header files
# A little bit more customization:
./cb main.c -DNDEBUG -o main -lcurses -j16 -t release -s
Although the point is to make the process of building a C project effortless with absolute zero configuration, it's impossible to make cb compile every project, due to the diversity on how C is written. For these cases, a configuration file may be provided as an ini file. An example is provided at samples/build.ini, covering everything currently supported.
License
This repository is licensed under the MIT License, allowing for extensive use, modification, copying, and distribution.