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.zip | |
4init: minimal but functional init
Diffstat (limited to '4init/Makefile')
| -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 @@ +include config.mk + +BIN = 4init +OBJ = 4init.o + +all: $(BIN) + +$(BIN): $(OBJ) + $(CC) $(LDFLAGS) -o $@ $(OBJ) + +$(OBJ): config.h + +install: all + mkdir -pv $(DESTDIR)$(PREFIX)/bin + cp -fv $(BIN) $(DESTDIR)$(PREFIX)/bin + +uninstall: all + rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) + +clean: all + rm -f 4init.o 4init |
