|
2 years ago | |
---|---|---|
cmd | 2 years ago | |
lib | 2 years ago | |
test | 3 years ago | |
.gitignore | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
build.bx | 3 years ago |
Boxberry is a build system which aims to be usable for tiny projects, all the way down to single source files.
Not all projects need a big Makefile or a huge CMakeLists.txt.
However, almost all projects grow to the size where they need some library,
or some compiler flag, maybe an optimization option.
Boxberry aims to make the path from running cc file.c
to running
cc -lpthread file.c
to cc file.c $(pkg-config --libs --cflags libfoo) -lpthread
as easy as possible.
//#bx pkgs := libfoo
//#bx ldlibs := -lpthread ldflags := -fsanitize=address cflags := -fsanitize=address
build.bx
file.
Each directory can have a build.bx file, and each directory inherits the
configuration of its parent.files
variable in a build.bx
file.This project can be built by running either make
or box
.
The only dependency is pthreads
.
--print-compile-commands
$(CC) -MM
to make recompiles faster when
little has changed