zerobuild - a very simple build tool for C programs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AUTHORS
ChangeLog
LICENSE
README
global.h
make.c
make.sh
parser.c
process.c
zerobuild.txt

README

ZEROBUILD
=========

Zerobuild is a very simple build tool for C programs.
I wrote it because sometimes I did not have an environment with a full bash & automake tools.

PROS: very simple syntax of "makefiles". Zerobuild is only one executable.

CONS: you have to set up search paths by "hand".

TODO: check if .h files are changed.
I now compiled my Nano VM with zerobuild!

Here is the zerobuild.txt of zerobuild:

-------- snip ---------------
# zerobuild makefile

[executable, name = zerobuild]
sources = global.h, parser.c, make.c, process.c

ccompiler = clang-3.9
-------- snip ---------------

That's it!

You can use a different name as "zerobuild.txt" too:

$ zerobuild foobar.txt

And to force a full build:

$ zerobuild force


Here is an example of how to build a shared library:

------------------ snip ------
# zerobuild makefile

[library, shared, name = libtest.so]
sources = arr.c, libtest.c, mutex.c, nanovmlib.c

includes = ../include

ccompiler = gcc
archiver = ar
linker = ld
aflags = "cru"

cflags = "-g -ffast-math -fomit-frame-pointer -O3 -march=native"
lflags = "-lc -shared"
----------------- snip -------


Stefan Pietzonke  15.09.2017