From 4efc813ad5aeef94d624c2bd4a0815e6a76a4cf3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 17 Mar 2016 23:43:16 +1300 Subject: Handle dependences properly --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3