generated from freudenreichan/info2Praktikum-DobleSpiel
Implement stack + unit tests
This commit is contained in:
1 parent
ce66b2546e
commit
e1ef9ac76b
4 files changed
+27
-7
No files matched your search
@@ -29,14 +29,19 @@ program_obj_files = stack.o bintree.o numbers.o timer.o highscore.o
|
||||
doble : main.o $(program_obj_files)
|
||||
$(CC) $(FLAGS) $^ -o doble
|
||||
|
||||
$(program_obj_filesobj_files): %.o: %.c
|
||||
$(CC) -c $(FLAGS) $^ -o $@
|
||||
%.o: %.c
|
||||
$(CC) -c $(FLAGS) $< -o $@
|
||||
|
||||
|
||||
# --------------------------
|
||||
# Unit Tests
|
||||
# --------------------------
|
||||
unitTests:
|
||||
echo "needs to be implemented"
|
||||
test_stack: test_stack.c stack.o
|
||||
$(CC) $(FLAGS) test_stack.c stack.o -o test_stack.exe
|
||||
|
||||
unitTests: test_stack
|
||||
./test_stack.exe
|
||||
|
||||
|
||||
# --------------------------
|
||||
# Clean
|
||||
|
||||
Reference in new issue
Block a user