summaryrefslogtreecommitdiffstats
path: root/4init/Makefile
diff options
context:
space:
mode:
authoruxtbd <dev@kthread.dev>2026-08-18 14:40:18 +0200
committeruxtbd <dev@kthread.dev>2026-08-18 14:40:18 +0200
commit1ea2764a30cd2fbad93a1a6d8b13ce1e5fdb8f8c (patch)
tree23cbf7bd324159ee618901e201fce82579e8510e /4init/Makefile
parentInitial commit (diff)
download4suite-1ea2764a30cd2fbad93a1a6d8b13ce1e5fdb8f8c.tar.gz
4suite-1ea2764a30cd2fbad93a1a6d8b13ce1e5fdb8f8c.tar.bz2
4suite-1ea2764a30cd2fbad93a1a6d8b13ce1e5fdb8f8c.tar.xz
4suite-1ea2764a30cd2fbad93a1a6d8b13ce1e5fdb8f8c.zip
4init: minimal but functional init
Diffstat (limited to '')
-rw-r--r--4init/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/4init/Makefile b/4init/Makefile
new file mode 100644
index 0000000..e56e105
--- /dev/null
+++ b/4init/Makefile
@@ -0,0 +1,21 @@
1include config.mk
2
3BIN = 4init
4OBJ = 4init.o
5
6all: $(BIN)
7
8$(BIN): $(OBJ)
9 $(CC) $(LDFLAGS) -o $@ $(OBJ)
10
11$(OBJ): config.h
12
13install: all
14 mkdir -pv $(DESTDIR)$(PREFIX)/bin
15 cp -fv $(BIN) $(DESTDIR)$(PREFIX)/bin
16
17uninstall: all
18 rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
19
20clean: all
21 rm -f 4init.o 4init