Improved makefile

This commit is contained in:
qorg11 2020-06-02 22:12:55 +02:00
parent 3843efd08f
commit 14e32f35bc
Signed by: qorg11
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 13 additions and 5 deletions

View File

@ -1,7 +1,15 @@
CCCOMPILER: cc $CC = cc
compile: compile:
cc echo.c -o echo cc -c *.c
cc touch.c -o touch cc -o cat cat.o
cc pwd.c -o pwd cc -o dirname dirname.o
cc cat.c -o cat 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
clean:
rm *.o cat dirname echo ln mkdir pwd rmdir touch yes