diff options
| author | uxtbd <dev@kthread.dev> | 2026-08-18 15:41:53 +0200 |
|---|---|---|
| committer | uxtbd <dev@kthread.dev> | 2026-08-18 15:41:53 +0200 |
| commit | ad0302ab8213e35070e50beba03d8da5c57f4fc4 (patch) | |
| tree | dd19bf94c36c90e95cb9d26908bed4ba4d351fca /4init/build.ninja | |
| parent | 4init: minimal but functional init (diff) | |
| download | 4suite-ad0302ab8213e35070e50beba03d8da5c57f4fc4.tar.gz 4suite-ad0302ab8213e35070e50beba03d8da5c57f4fc4.tar.bz2 4suite-ad0302ab8213e35070e50beba03d8da5c57f4fc4.tar.xz 4suite-ad0302ab8213e35070e50beba03d8da5c57f4fc4.zip | |
4suite: move to shinobi
Diffstat (limited to '')
| -rw-r--r-- | 4init/build.ninja | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/4init/build.ninja b/4init/build.ninja new file mode 100644 index 0000000..41f1d7d --- /dev/null +++ b/4init/build.ninja | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | # this file was generated from a makefile by shinobi | ||
| 2 | build __shin_always_build__: phony | ||
| 3 | |||
| 4 | build all: phony 4init | ||
| 5 | |||
| 6 | rule r1 | ||
| 7 | command = musl-gcc -s -static -o 4init 4init.o | ||
| 8 | generator = 1 | ||
| 9 | |||
| 10 | build 4init: r1 4init.o | ||
| 11 | description = build 4init | ||
| 12 | |||
| 13 | rule r2 | ||
| 14 | command = musl-gcc -std=c99 -Wextra -Wall -Os -fhardened -c 4init.c | ||
| 15 | generator = 1 | ||
| 16 | |||
| 17 | build 4init.o: r2 4init.c config.h | ||
| 18 | description = build 4init.o | ||
| 19 | |||
| 20 | rule r3 | ||
| 21 | command = sh -c 'mkdir -pv /usr/local/bin' && sh -c 'cp -fv 4init /usr/local/bin' | ||
| 22 | generator = 1 | ||
| 23 | |||
| 24 | build install: r3 | ||
| 25 | description = build install | ||
| 26 | |||
| 27 | rule r4 | ||
| 28 | command = rm -f /usr/local/bin/4init | ||
| 29 | generator = 1 | ||
| 30 | |||
| 31 | build uninstall: r4 | ||
| 32 | description = build uninstall | ||
| 33 | |||
| 34 | rule r5 | ||
| 35 | command = rm -f 4init.o 4init | ||
| 36 | generator = 1 | ||
| 37 | |||
| 38 | build clean: r5 | ||
| 39 | description = build clean | ||
| 40 | |||
| 41 | default all | ||
