From 1ef526c695df4b37aa184867fb5b62c93118aa02 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 24 Mar 2024 10:00:19 +0200 Subject: Refactored configuration parsing to a separate file and added unit tests to it --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3