summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 56985ff..1368da2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,17 @@
CC=gcc
-main : main.o
- $(CC) main.o -lcgreen -o main
+main : main.o words_test.o words.o
+ $(CC) main.o words_test.o words.o -lcgreen -o main
./main
main.o : main.c
$(CC) -c main.c
+words.o : words.c
+ $(CC) -c words.c
+
+words_test.o : words_test.c
+ $(CC) -c words_test.c
+
clean:
- rm main main.o
+ rm main *.o