stack.c eingebunden

This commit is contained in:
Kristin
2025-12-07 19:05:11 +01:00
parent 68563ec297
commit a3d0585ac1
4 changed files with 42 additions and 30 deletions
+6 -8
View File
@@ -24,11 +24,12 @@ doble_initial:
# --------------------------
# Selbst implementiertes Programm bauen
# --------------------------
# alle Objektdateien
program_obj_files = stack.o bintree.o numbers.o timer.o highscore.o
# alle ausführbaren Dateien zu ausführbarem Programm linken
doble : main.o $(program_obj_files)
$(CC) $(FLAGS) $^ -o doble
# Regel Kompilieren allgemein
$(program_obj_files): %.o: %.c
$(CC) -c $(FLAGS) $^ -o $@
@@ -42,8 +43,7 @@ BINARY_TEST_BIN = runBinaryTests
# --- Stack Tests ---
stackTests: stack.o test_stack.o
$(CC) $(FLAGS) -I$(unityfolder) -o $(STACK_TEST_BIN) \
stack.o test_stack.o $(unityfolder)/unity.c
$(CC) $(FLAGS) -I$(unityfolder) -o $(STACK_TEST_BIN) stack.o test_stack.o $(unityfolder)/unity.c
test_stack.o: test_stack.c
$(CC) $(FLAGS) -I$(unityfolder) -c test_stack.c -o test_stack.o
@@ -51,8 +51,7 @@ test_stack.o: test_stack.c
# --- Numbers Tests ---
numbersTests: numbers.o bintree.o stack.o test_numbers.o
$(CC) $(FLAGS) -I$(unityfolder) -o $(NUMBERS_TEST_BIN) \
numbers.o bintree.o stack.o test_numbers.o $(unityfolder)/unity.c
$(CC) $(FLAGS) -I$(unityfolder) -o $(NUMBERS_TEST_BIN) numbers.o bintree.o stack.o test_numbers.o $(unityfolder)/unity.c
test_numbers.o: test_numbers.c
$(CC) $(FLAGS) -I$(unityfolder) -c test_numbers.c -o test_numbers.o
@@ -60,8 +59,7 @@ test_numbers.o: test_numbers.c
# --- Binary Tree Tests ---
binaryTests: bintree.o stack.o test_binary.o
$(CC) $(FLAGS) -I$(unityfolder) -o $(BINARY_TEST_BIN) \
bintree.o stack.o test_binary.o $(unityfolder)/unity.c
$(CC) $(FLAGS) -I$(unityfolder) -o $(BINARY_TEST_BIN) bintree.o stack.o test_binary.o $(unityfolder)/unity.c
test_binary.o: test_binary.c
$(CC) $(FLAGS) -I$(unityfolder) -c test_binary.c -o test_binary.o