#include "build.h" // That's it.
No build tools, just code.
Single file inclusion with no dependencies
Small API that's easy to learn and use
Works across platforms with no additional requirements
Clearly see what's happening during builds
Efficient compilation with parallel build support
Handles everything from simple projects to complex builds
# Option 1: Copy directly to your project
cp includebuild/build.h your_project/
# Option 2: Copy to system include directory
git clone https://github.com/korzewarrior/includebuild.git
sudo mkdir -p /usr/local/include/includebuild
sudo cp includebuild/build.h /usr/local/include/includebuild/
// build.c
#include "build.h"
int main() {
// Initialize IncludeBuild
ib_init();
// Enable verbose output
ib_set_verbose(true);
// (Optional) Add a specific target
ib_add_target("my_program", "main.c");
// Run the build
ib_build();
return 0;
}
# Compile your build script
gcc -o build build.c
# Run it to build your project
./build
# That's it! Now run your program
./my_program
Feature | IncludeBuild | Makefiles | CMake |
---|---|---|---|
Self-contained | ✓ Single header | × Requires external tool | × Requires CMake |
Learning curve | ✓ Just C | ⚠️ Custom syntax | × Complex syntax |
Power | ⚠️ Medium | ✓ High | ✓ Very high |
Transparency | ✓ High | ⚠️ Medium | × Low |
Large projects | ⚠️ Medium | ✓ Good | ✓ Excellent |
Makefiles have Makefile syntax. CMake has CMakeLists.txt. IncludeBuild has... nothing. Just code.