summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9d01eb8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+CC=c89
+CFLAGS=-Wall -Wextra -Wpedantic
+
+testlibc: main.o test.o assert.o ctype.o
+ $(CC) -o $@ *.o
+
+assert.o: assert.c test.h
+
+ctype.o: ctype.c test.h
+
+test.o: test.c test.h
+
+main.o: main.c test.h
+
+clean:
+ rm -f *.o testlibc