aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a93df43..cdb151a 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,10 @@
CC = clang
CFLAGS = -std=c90 -Weverything
-all : ls pwd sort whoami
+all : hostname ls pwd sort whoami
+
+hostname : hostname.c hostname.h
+ $(CC) $(CFLAGS) hostname.c -o hostname
ls : ls.c ls.h
$(CC) $(CFLAGS) ls.c -o ls
@@ -19,5 +22,5 @@ whoami : whoami.c whoami.h
clean :
rm -f -- *.o
- rm -f ls pwd sort whoami
+ rm -f hostname ls pwd sort whoami