aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Kronqvist <joelkronqvist@proton.me>2024-03-23 17:56:49 +0200
committerJoel Kronqvist <joelkronqvist@proton.me>2024-03-23 18:00:51 +0200
commite26279107edf7012e6b9cd558aaa09a8f0ca4764 (patch)
tree2bcd2eb3c6c2ade2e85c9f52ca1fc41d3c720811 /Makefile
downloadstdu-e26279107edf7012e6b9cd558aaa09a8f0ca4764.tar.gz
stdu-e26279107edf7012e6b9cd558aaa09a8f0ca4764.zip
Initial commit
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