diff options
| author | uxtbd <dev@kthread.dev> | 2026-08-18 14:40:18 +0200 |
|---|---|---|
| committer | uxtbd <dev@kthread.dev> | 2026-08-18 14:40:18 +0200 |
| commit | 1ea2764a30cd2fbad93a1a6d8b13ce1e5fdb8f8c (patch) | |
| tree | 23cbf7bd324159ee618901e201fce82579e8510e /4init/Makefile | |
| parent | Initial commit (diff) | |
| download | 4suite-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/Makefile | 21 |
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 @@ | |||
| 1 | include config.mk | ||
| 2 | |||
| 3 | BIN = 4init | ||
| 4 | OBJ = 4init.o | ||
| 5 | |||
| 6 | all: $(BIN) | ||
| 7 | |||
| 8 | $(BIN): $(OBJ) | ||
| 9 | $(CC) $(LDFLAGS) -o $@ $(OBJ) | ||
| 10 | |||
| 11 | $(OBJ): config.h | ||
| 12 | |||
| 13 | install: all | ||
| 14 | mkdir -pv $(DESTDIR)$(PREFIX)/bin | ||
| 15 | cp -fv $(BIN) $(DESTDIR)$(PREFIX)/bin | ||
| 16 | |||
| 17 | uninstall: all | ||
| 18 | rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) | ||
| 19 | |||
| 20 | clean: all | ||
| 21 | rm -f 4init.o 4init | ||
