https://github.com/koder77/zerobuild
zerobuild - a very simple build tool for C programs
https://github.com/koder77/zerobuild
build programs tool
Last synced: 3 months ago
JSON representation
zerobuild - a very simple build tool for C programs
- Host: GitHub
- URL: https://github.com/koder77/zerobuild
- Owner: koder77
- License: gpl-3.0
- Created: 2017-09-14T22:37:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-23T21:29:18.000Z (about 1 year ago)
- Last Synced: 2025-01-22T01:36:34.682Z (11 months ago)
- Topics: build, programs, tool
- Language: C
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
ZEROBUILD
=========
[](https://ko-fi.com/P5P2Y3KP)
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 use zerobuild to build my L1VM!
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 27. July 2022