From ea4756a768fa05c3f88bacc9d14356b0a0e5973f Mon Sep 17 00:00:00 2001 From: m0 Date: Thu, 27 Aug 2026 17:18:34 -0300 Subject: repo: test --- 4init/build.ninja | 41 ----------------------------------------- 4init/config.mk | 14 ++++++++++---- README | 4 ++++ README.md | 4 ---- 4 files changed, 14 insertions(+), 49 deletions(-) delete mode 100644 4init/build.ninja create mode 100644 README delete mode 100644 README.md 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 diff --git a/README b/README new file mode 100644 index 0000000..de0e8a0 --- /dev/null +++ b/README @@ -0,0 +1,4 @@ +# 4suite + +A self-contained C boot stack (init, rc, logger, user). +Each component has it's own README.md, worth checking it out. diff --git a/README.md b/README.md deleted file mode 100644 index de0e8a0..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# 4suite - -A self-contained C boot stack (init, rc, logger, user). -Each component has it's own README.md, worth checking it out. -- cgit v1.3.1