generated from freudenreichan/info2Praktikum-DobleSpiel
fertig
This commit is contained in:
@@ -16,34 +16,68 @@ raylibfolder = ./raylib
|
||||
unityfolder = ./unity
|
||||
|
||||
# --------------------------
|
||||
# Initiales Programm bauen (zum ausprobieren)
|
||||
# Hauptprogramm bauen
|
||||
# --------------------------
|
||||
doble_initial:
|
||||
$(CC) -o doble_initial $(BINARIES)/libdoble_complete.a
|
||||
|
||||
# --------------------------
|
||||
# Selbst implementiertes Programm bauen
|
||||
# --------------------------
|
||||
program_obj_files = stack.o bintree.o numbers.o timer.o highscore.o
|
||||
|
||||
doble : main.o $(program_obj_files)
|
||||
doble: main.o $(program_obj_files)
|
||||
$(CC) $(FLAGS) $^ -o doble
|
||||
|
||||
main.o: main.c
|
||||
$(CC) -c $(FLAGS) main.c -o main.o
|
||||
|
||||
$(program_obj_filesobj_files): %.o: %.c
|
||||
$(CC) -c $(FLAGS) $^ -o $@
|
||||
|
||||
# --------------------------
|
||||
# Unit Tests
|
||||
# --------------------------
|
||||
unitTests:
|
||||
echo "needs to be implemented"
|
||||
|
||||
unitTests: test_stack test_numbers
|
||||
./test_stack
|
||||
./test_numbers
|
||||
|
||||
# --- Test Stack ---
|
||||
test_stack: test_stack.o stack.o
|
||||
$(CC) $(FLAGS) $^ -o test_stack
|
||||
|
||||
test_stack.o: test_stack.c stack.h
|
||||
$(CC) -c $(FLAGS) test_stack.c -o test_stack.o
|
||||
|
||||
# --- Test Numbers ---
|
||||
test_numbers: test_numbers.o numbers.o bintree.o stack.o
|
||||
$(CC) $(FLAGS) $^ -o test_numbers
|
||||
|
||||
test_numbers.o: test_numbers.c numbers.h
|
||||
$(CC) -c $(FLAGS) test_numbers.c -o test_numbers.o
|
||||
|
||||
# --------------------------
|
||||
# Objektdateien
|
||||
# --------------------------
|
||||
|
||||
stack.o: stack.c stack.h
|
||||
$(CC) -c $(FLAGS) stack.c -o stack.o
|
||||
|
||||
bintree.o: bintree.c bintree.h stack.h
|
||||
$(CC) -c $(FLAGS) bintree.c -o bintree.o
|
||||
|
||||
numbers.o: numbers.c numbers.h bintree.h
|
||||
$(CC) -c $(FLAGS) numbers.c -o numbers.o
|
||||
|
||||
timer.o: timer.c timer.h
|
||||
$(CC) -c $(FLAGS) timer.c -o timer.o
|
||||
|
||||
highscore.o: highscore.c highscore.h
|
||||
$(CC) -c $(FLAGS) highscore.c -o highscore.o
|
||||
|
||||
# --------------------------
|
||||
# Clean
|
||||
# --------------------------
|
||||
|
||||
clean:
|
||||
ifeq ($(OS),Windows_NT)
|
||||
del /f *.o doble
|
||||
del /f *.o doble test_stack test_numbers
|
||||
else
|
||||
rm -f *.o doble
|
||||
rm -f *.o doble test_stack test_numbers
|
||||
endif
|
||||
Reference in New Issue
Block a user