Replace makefile with shell script
commit4e9c4cf6277cf0e165fbb13d42482147ee02cf50
authorff <_ff@tuta.io>
Thu, 14 Dec 2017 20:14:41 +0000 (14 21:14 +0100)
committerff <_ff@tuta.io>
Thu, 14 Dec 2017 20:14:41 +0000 (14 21:14 +0100)
tree098fdac0ebc8b2f49bc6ef5f683ff27442780946
parent6b719b5ea987a7c9ec87104dc1863c1dc7fc5df3
Replace makefile with shell script

We needed to replace make,
because it does not work when filenames contain spaces.
Also, the makefile was for GNU make, thus not POSIX.
It is replaced with a script for sh, the POSIX shell.
The script build.sh [args...] executes [args...]
on each “.c” file in src/.
To compile using gcc and the option “-O3”,
run “./build.sh gcc -O3”.
Executing build.sh without arguments compiles using
“clang -DNDEBUG -ferror-limit=1 -flto -fvisibility=hidden
-march=native -O3 -s -static -std=c11 -Werror -Weverything
-Wno-disabled-macro-expansion -Wno-reserved-id-macro”.
GNUmakefile [deleted file]
build.sh [new file with mode: 0755]