From f975594e55bdc05ee436bc7bdcd6e09aec5357b1 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 7 Apr 2024 10:53:40 +0300 Subject: Finished implementation for formatting for human readability --- Makefile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3c3b8ae..e5bfd68 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,25 @@ -stdu : stdu.o intmath.o intmath.h config-parser.h config-parser.o - cc -o stdu stdu.o intmath.o config-parser.o +stdu : stdu.o intmath.o intmath.h config-parser.h config-parser.o formatting.o \ + formatting.h + cc -g -o stdu stdu.o intmath.o config-parser.o formatting.o stdu.o : stdu.c - cc -c stdu.c + cc -g -c stdu.c + +formatting.o : formatting.h formatting.c intmath.h intmath.c minitest.h + cc -g -c formatting.c intmath.o : intmath.c minitest.h intmath.h - cc -c intmath.c + cc -g -c intmath.c config-parser.o : config-parser.c config-parser.h minitest.h - cc -c config-parser.c + cc -g -c config-parser.c + +tests : tests.c minitest.h intmath.c config-parser.c formatting.c + cc -g -o tests tests.c -test : tests.c minitest.h intmath.c config-parser.c - cc -o test tests.c - ./test +test : tests + ./tests clean : - rm stdu stdu.o intmath.o test config-parser.o + rm stdu stdu.o intmath.o tests config-parser.o formatting.o -- cgit v1.2.3