Simple C build system
2026-01-09 17:04:06 -03:00
sample Add cb 2026-01-09 16:46:15 -03:00
.clang-format Add cb 2026-01-09 16:46:15 -03:00
.clangd Add cb 2026-01-09 16:46:15 -03:00
cb.c Add cb 2026-01-09 16:46:15 -03:00
compile_flags.txt Add cb 2026-01-09 16:46:15 -03:00
LICENSE Add README and License 2026-01-09 17:04:06 -03:00
README.md Add README and License 2026-01-09 17:04:06 -03:00

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.