aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..685f42a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+
+stdu : stdu.o intmath.o intmath.h
+ cc -o stdu stdu.o intmath.o
+
+stdu.o : stdu.c
+ cc -c stdu.c
+
+intmath.o : intmath.c minitest.h intmath.h
+ cc -c intmath.c
+
+test : tests.c minitest.h intmath.c
+ cc -o test tests.c
+ ./test
+
+clean :
+ rm stdu stdu.o intmath.o test