From d42a9e09e10f28dac78a35118e7db9731af28805 Mon Sep 17 00:00:00 2001 From: haemmerlre98889 Date: Wed, 10 Dec 2025 19:06:28 +0100 Subject: [PATCH] Makefile angepasst --- makefile | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 1f15f75..46cf394 100644 --- a/makefile +++ b/makefile @@ -31,13 +31,35 @@ doble : main.o $(program_obj_files) $(program_obj_filesobj_files): %.o: %.c $(CC) -c $(FLAGS) $^ -o $@ - # -------------------------- # Unit Tests # -------------------------- unitTests: echo "needs to be implemented" +bintree: bintree.c + $(CC) $(FLAGS) -c bintree bintree.c + +bintreeTests: stack.o bintree.o bintreeTests.c $(unityfolder)/unity.c + $(CC) $(FLAGS) -o runbintreeTests bintreeTests.c bintree.o stack.o $(unityfolder)/unity.c + +highscore: highscore.c + $(CC) $(FLAGS) -c highscore highscore.c + +numbers: numbers.c + $(CC) $(FLAGS) -c numbers numbers.c + +test_numbers: numbers.o bintree.o stack.o test_numbers.c $(unityfolder)/unity.c + $(CC) $(FLAGS) -o run_numbersTests test_numbers.c numbers.o bintree.o stack.o $(unityfolder)/unity.c + +stack: stack.c + $(CC) $(FLAGS) -c stack stack.c + +test_stack: stack.o test_stack.c $(unityfolder)/unity.c + $(CC) $(FLAGS) -o runstackTests test_stack.c stack.o $(unityfolder)/unity.c + +timer: timer.c + $(CC) $(FLAGS) -c timer timer.c # -------------------------- # Clean # --------------------------