makfile tests hinzugefügt bintreeTests erstellt

This commit is contained in:
2025-12-10 23:35:40 +01:00
parent 33b370f0d2
commit 8c95340c77
2 changed files with 31 additions and 6 deletions
+11 -3
View File
@@ -1,5 +1,6 @@
CC = gcc
FLAGS = -g -Wall -lm
NAMES = doble bintreeTests stackTests numbersTests
ifeq ($(OS),Windows_NT)
include makefile_windows.variables
@@ -36,14 +37,21 @@ $(program_obj_filesobj_files): %.o: %.c
# Unit Tests
# --------------------------
unitTests:
echo "needs to be implemented"
bintreeTests: stack.o bintree.o bintreeTests.c $(unityfolder)/unity.c
$(CC) $(CFLAGS) -I$(unityfolder) -o bintreeTests bintreeTests.c bintree.o stack.o $(unityfolder)/unity.c
stackTests: stack.o stackTests.c $(unityfolder)/unity.c
$(CC) $(CFLAGS) -I$(unityfolder) -o stackTests stackTests.c stack.o $(unityfolder)/unity.c
numbersTests: numbers.o numbersTests.c bintree.o stack.o $(unityfolder)/unity.c
$(CC) $(CFLAGS) -I$(unityfolder) -o numbersTests numbersTests.c numbers.o bintree.o stack.o $(unityfolder)/unity.c
# --------------------------
# Clean
# --------------------------
clean:
ifeq ($(OS),Windows_NT)
del /f *.o doble
del /f *.o $(NAMES)
else
rm -f *.o doble
rm -f *.o $(NAMES)
endif