-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·74 lines (51 loc) · 2.78 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
CFLAGS = -Wall -fpic -coverage -lm -fprofile-arcs -ftest-coverage
rngs.o: rngs.h rngs.c
gcc -c rngs.c -g $(CFLAGS)
dominion.o: dominion.h dominion.c rngs.o
gcc -c dominion.c -g $(CFLAGS)
unittest1: unittest1.c dominion.o
gcc -o unittest1 -g unittest1.c dominion.o rngs.o $(CFLAGS)
unittest2: unittest2.c dominion.o
gcc -o unittest2 -g unittest2.c dominion.o rngs.o $(CFLAGS)
unittest3: unittest3.c dominion.o
gcc -o unittest3 -g unittest3.c dominion.o rngs.o $(CFLAGS)
unittest4: unittest4.c dominion.o
gcc -o unittest4 -g unittest4.c dominion.o rngs.o $(CFLAGS)
cardtest1: cardtest1.c dominion.o
gcc -o cardtest1 -g cardtest1.c dominion.o rngs.o $(CFLAGS)
cardtest2: cardtest2.c dominion.o
gcc -o cardtest2 -g cardtest2.c dominion.o rngs.o $(CFLAGS)
cardtest3: cardtest3.c dominion.o
gcc -o cardtest3 -g cardtest3.c dominion.o rngs.o $(CFLAGS)
cardtest4: cardtest4.c dominion.o
gcc -o cardtest4 -g cardtest4.c dominion.o rngs.o $(CFLAGS)
randomtestcard: randomtestcard.c dominion.o
gcc -o randomtestcard -g randomtestcard.c dominion.o rngs.o $(CFLAGS)
./randomtestcard
gcov randomtestcard.c
randomtestadventure: randomtestadventure.c dominion.o
gcc -o randomtestadventure -g randomtestadventure.c dominion.o rngs.o $(CFLAGS)
./randomtestadventure
gcov randomtestadventure.c
testdominion: testdominion.c dominion.o
gcc -o testdominion -g testdominion.c dominion.o rngs.o $(CFLAGS)
./testdominion >> testdominion.out
gcov testdominion.c >> testdominion.out
playdom: dominion.o playdom.c
gcc -o playdom playdom.c -g dominion.o rngs.o $(CFLAGS)
testDrawCard: testDrawCard.c dominion.o rngs.o
gcc -o testDrawCard -g testDrawCard.c dominion.o rngs.o $(CFLAGS)
badTestDrawCard: badTestDrawCard.c dominion.o rngs.o
gcc -o badTestDrawCard -g badTestDrawCard.c dominion.o rngs.o $(CFLAGS)
testBuyCard: testBuyCard.c dominion.o rngs.o
gcc -o testBuyCard -g testBuyCard.c dominion.o rngs.o $(CFLAGS)
testAll: dominion.o testSuite.c
gcc -o testSuite testSuite.c -g dominion.o rngs.o $(CFLAGS)
interface.o: interface.h interface.c
gcc -c interface.c -g $(CFLAGS)
player: player.c interface.o
gcc -o player player.c -g dominion.o rngs.o interface.o $(CFLAGS)
all: playdom player testDrawCard testBuyCard badTestDrawCard unittest1 unittest2 unittest3 unittest4 cardtest1 cardtest2 cardtest3 cardtest4 randomtestcard randomtestadventure testdominion
test: playdom player unittest1 unittest2 unittest3 unittest4 cardtest1 randomtestcard randomtestadventure testDrawCard testBuyCard badTestDrawCard testdominion
clean:
rm -f *.o playdom.exe unittest1.exe unittest2.exe unittest3.exe unittest4.exe cardtest1.exe cardtest2.exe cardtest3.exe cardtest4.exe randomtestcard.exe randomtestadventure.exe playdom test.exe test player player.exe testInit testInit.exe *.gcov *.gcda *.gcno *.so *.exe.stackdump