aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-17 23:43:16 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-17 23:43:16 +1300
commit4efc813ad5aeef94d624c2bd4a0815e6a76a4cf3 (patch)
tree0628b77d69650b29e2f481aaf978bc8c386c06d6 /Makefile
parentQuick and utterly wrong pwd(1) implementation (diff)
downloadtunics-4efc813ad5aeef94d624c2bd4a0815e6a76a4cf3.tar.gz
tunics-4efc813ad5aeef94d624c2bd4a0815e6a76a4cf3.zip
Handle dependences properly
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7e350b8..eacea17 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,15 @@ CFLAGS = -std=c90 -Weverything
all : ls pwd sort
+ls : ls.c ls.h
+ $(CC) $(CFLAGS) ls.c -o ls
+
+pwd : pwd.c pwd.h
+ $(CC) $(CFLAGS) pwd.c -o pwd
+
+sort : sort.c sort.h
+ $(CC) $(CFLAGS) sort.c -o sort
+
clean :
rm -f -- *.o
rm -f ls pwd sort