diff options
| -rw-r--r-- | 4init/build.ninja | 41 | ||||
| -rw-r--r-- | 4init/config.mk | 14 | ||||
| -rw-r--r-- | README (renamed from README.md) | 0 |
3 files changed, 10 insertions, 45 deletions
diff --git a/4init/build.ninja b/4init/build.ninja deleted file mode 100644 index 41f1d7d..0000000 --- a/4init/build.ninja +++ /dev/null @@ -1,41 +0,0 @@ -# this file was generated from a makefile by shinobi -build __shin_always_build__: phony - -build all: phony 4init - -rule r1 - command = musl-gcc -s -static -o 4init 4init.o - generator = 1 - -build 4init: r1 4init.o - description = build 4init - -rule r2 - command = musl-gcc -std=c99 -Wextra -Wall -Os -fhardened -c 4init.c - generator = 1 - -build 4init.o: r2 4init.c config.h - description = build 4init.o - -rule r3 - command = sh -c 'mkdir -pv /usr/local/bin' && sh -c 'cp -fv 4init /usr/local/bin' - generator = 1 - -build install: r3 - description = build install - -rule r4 - command = rm -f /usr/local/bin/4init - generator = 1 - -build uninstall: r4 - description = build uninstall - -rule r5 - command = rm -f 4init.o 4init - generator = 1 - -build clean: r5 - description = build clean - -default all diff --git a/4init/config.mk b/4init/config.mk index ab7e752..acec08c 100644 --- a/4init/config.mk +++ b/4init/config.mk @@ -1,5 +1,11 @@ -PREFIX = /usr/local +PREFIX = /usr/local +BINDIR = $(PREFIX)/sbin -CC = musl-gcc -CFLAGS = -std=c99 -Wextra -Wall -Os -fhardened -LDFLAGS = -s -static +CC = tcc + +CFLAGS = -Wall -Werror +CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 + +LDFLAGS = +# if you are on musl libc, or any other non-shitty, gnu infested libc, I highly suggest enabling static linking +# LDFLAGS = -static |
