aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Kronqvist <joelkronqvist@proton.me>2024-03-24 10:00:19 +0200
committerJoel Kronqvist <joelkronqvist@proton.me>2024-03-24 10:00:19 +0200
commit1ef526c695df4b37aa184867fb5b62c93118aa02 (patch)
treee223eda40193d584f55c9f11e8d511988d7e1136 /Makefile
parente26279107edf7012e6b9cd558aaa09a8f0ca4764 (diff)
downloadstdu-1ef526c695df4b37aa184867fb5b62c93118aa02.tar.gz
stdu-1ef526c695df4b37aa184867fb5b62c93118aa02.zip
Refactored configuration parsing to a separate file and added unit tests to it
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 685f42a..3c3b8ae 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-stdu : stdu.o intmath.o intmath.h
- cc -o stdu stdu.o intmath.o
+stdu : stdu.o intmath.o intmath.h config-parser.h config-parser.o
+ cc -o stdu stdu.o intmath.o config-parser.o
stdu.o : stdu.c
cc -c stdu.c
@@ -8,9 +8,12 @@ stdu.o : stdu.c
intmath.o : intmath.c minitest.h intmath.h
cc -c intmath.c
-test : tests.c minitest.h intmath.c
+config-parser.o : config-parser.c config-parser.h minitest.h
+ cc -c config-parser.c
+
+test : tests.c minitest.h intmath.c config-parser.c
cc -o test tests.c
./test
clean :
- rm stdu stdu.o intmath.o test
+ rm stdu stdu.o intmath.o test config-parser.o