commit 07c86b10fbbfb4e86a0b87e4ad729639b760aee8 parent 30bc6754a50243fd293a57d3563aa42a7aef3aff Author: qorg11 <qorg@vxempire.xyz> Date: Sun, 9 Aug 2020 03:00:20 +0200 Improved makefile Diffstat:
M | src/Makefile | | | 57 | +++++++++++++++++++++++++++++++++++++++++++-------------- |
A | src/bin/useless_but_usefull_file | | | 0 |
2 files changed, 43 insertions(+), 14 deletions(-)
diff --git a/src/Makefile b/src/Makefile @@ -3,19 +3,48 @@ CC = cc compile: - $(CC) -c *.c - $(CC) -o cat cat.o - $(CC) -o kill kill.o - $(CC) -o dirname dirname.o - $(CC) -o echo echo.o - $(CC) -o ln ln.o - $(CC) -o mkdir mkdir.o - $(CC) -o pwd pwd.o - $(CC) -o rmdir rmdir.o - $(CC) -o touch touch.o - $(CC) -o yes yes.o + $(CC) -c *.c + $(CC) -o bin/cat cat.o + $(CC) -o bin/chmod chmod.o + $(CC) -o bin/chown chown.o + $(CC) -o bin/cp cp.o + $(CC) -o bin/dirname dirname.o + $(CC) -o bin/echo echo.o + $(CC) -o bin/exec exec.o + $(CC) -o bin/false false.o + $(CC) -o bin/groups groups.o + $(CC) -o bin/head head.o + $(CC) -o bin/hostid hostid.o + $(CC) -o bin/hostname hostname.o + $(CC) -o bin/id id.o + $(CC) -o bin/kill kill.o + $(CC) -o bin/ln ln.o + $(CC) -o bin/longname logname.o + $(CC) -o bin/ls ls.o + $(CC) -o bin/mkdir mkdir.o + $(CC) -o bin/mount mount.o + $(CC) -o bin/mv mv.o + $(CC) -o bin/nproc nproc.o + $(CC) -o bin/pwd pwd.o + $(CC) -o bin/rm rm.o + $(CC) -o bin/rmdir rmdir.o + $(CC) -o bin/shred shred.o + $(CC) -o bin/sleep sleep.o + $(CC) -o bin/sync sync.o + $(CC) -o bin/touch touch.o + $(CC) -o bin/true true.o + $(CC) -o bin/tty tty.o + $(CC) -o bin/umount umount.o + $(CC) -o bin/unlink unlink.o + $(CC) -o bin/wc wc.o + $(CC) -o bin/whoami whoami.o + $(CC) -o bin/yes yes.o -clean: - rm *.o cat dirname echo ln mkdir pwd rmdir touch yes kill -.PHONY: clean objclean compile +clean: + rm *.o +install: + mkdir /usr/local/k9core + mv bin/* /usr/local/k9core/ +.PHONY: + clean objclean compile diff --git a/src/bin/useless_but_usefull_file b/src/bin/useless_but_usefull_file