alles zusammengefuegt

This commit is contained in:
Giorgi Kesidis
2025-12-15 23:48:33 +01:00
parent c325131503
commit 8e0428e91e
20 changed files with 598 additions and 14 deletions
+30 -4
View File
@@ -35,15 +35,41 @@ $(program_obj_filesobj_files): %.o: %.c
# --------------------------
# Unit Tests
# --------------------------
unitTests:
echo "needs to be implemented"
unitTests: test_stack test_tree test_numbers
test_stack: test_stack.o stack.o unity/unity.c
$(CC) $(FLAGS) -I$(unityfolder) $^ -o test_stack
test_tree: test_tree.o bintree.o stack.o unity/unity.c
$(CC) $(FLAGS) -I$(unityfolder) $^ -o test_tree
test_numbers: test_numbers.o numbers.o bintree.o stack.o unity/unity.c
$(CC) $(FLAGS) -I$(unityfolder) $^ -o test_numbers
test_stack.o: test_stack.c
$(CC) -c $(FLAGS) -I$(unityfolder) $< -o $@
stack.o: stack.c
$(CC) -c $(FLAGS) $< -o $@
test_tree.o: test_tree.c
$(CC) -c $(FLAGS) -I$(unityfolder) $< -o $@
test_numbers.o: test_numbers.c
$(CC) -c $(FLAGS) -I$(unityfolder) $< -o $@
bintree.o: bintree.c
$(CC) -c $(FLAGS) $< -o $@
numbers.o: numbers.c
$(CC) -c $(FLAGS) $< -o $@
# --------------------------
# Clean
# --------------------------
clean:
ifeq ($(OS),Windows_NT)
del /f *.o doble
del /f *.o doble $(TEST_BIN).exe
else
rm -f *.o doble
rm -f *.o doble $(TEST_BIN)
endif