alles zusammengefuegt
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user