generated from freudenreichan/info2Praktikum-DobleSpiel
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
CC = gcc
|
|
FLAGS = -g -Wall -lm
|
|
BINARIES = ./windows
|
|
|
|
unityfolder = ./unity
|
|
program_obj_files = stack.o bintree.o numbers.o timer.o highscore.o
|
|
|
|
# --------------------------
|
|
# Initiales Programm bauen (zum ausprobieren)
|
|
# --------------------------
|
|
doble_initial:
|
|
$(CC) -o doble_initial $(BINARIES)/libdoble_complete.a
|
|
|
|
# --------------------------
|
|
# Selbst implementiertes Programm bauen
|
|
# --------------------------
|
|
doble : main.o $(program_obj_files)
|
|
$(CC) $(FLAGS) $^ -o doble
|
|
|
|
$(program_obj_filesobj_files): %.o: %.c
|
|
$(CC) -c $(FLAGS) $^ -o $@
|
|
|
|
# --------------------------
|
|
# Unit Tests
|
|
# --------------------------
|
|
unitTests:
|
|
echo "needs to be implemented"
|
|
|
|
stackTests: stack.o stackTests.c $(unityfolder)/unity.c
|
|
$(CC) $(CFLAGS) -I$(unityfolder) -o runStackTests stackTests.c stack.o $(unityfolder)/unity.c
|
|
|
|
bintreeTests: stack.o bintree.o bintreeTests.c $(unityfolder)/unity.c
|
|
$(CC) $(CFLAGS) -I$(unityfolder) -o runBintreeTests bintreeTests.c stack.o bintree.o $(unityfolder)/unity.c
|
|
|
|
|
|
# --------------------------
|
|
# Clean
|
|
# --------------------------
|
|
clean:
|
|
rm -f *.o doble
|