generated from freudenreichan/info2Praktikum-DobleSpiel
makfile tests hinzugefügt bintreeTests erstellt
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user