The Gist
Your build system is just C code.
// build.c
#define INCLUDEBUILD_IMPLEMENTATION
#include "build.h"
int main() {
ib_init();
ib_build(); // Automatically finds and builds your project
return 0;
}
Compile and run it:
$ gcc -o build build.c
$ ./build
[INFO] IncludeBuild v1.0.2 initialized
[INFO] Building target: app
[INFO] Compiling: src/main.c
[INFO] Linking: build/app
[INFO] Build successful.
Why?
- Minimalism: Single header file (`build.h`). Copy it and go.
- Transparency: It's just C. You can debug your build system.
- Zero Dependencies: Works on Windows, macOS, and Linux with just a C compiler.
- Self-Contained: No need to install Python, CMake, Ninja, or Make.
Getting Started
Get Started
Just drop it in your project root.
2. Create a `build.c` file in your project root.
3. Define `INCLUDEBUILD_IMPLEMENTATION` in exactly one file (usually `build.c`) if you are customizing the implementation, or just link against it.
Note: The basic usage just needs included header.
Features
- Automatic dependency tracking (rebuilds only what changed).
- Cross-platform path handling.
- Support for custom compiler flags and include directories.
- Parallel compilation (coming soon).