forked from usgo/AGA-Ratings-Program
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 1.49 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
# Makefile for BayRate
#
# Program requires the following libraries:
# - MySql development libraries
# - MySql++ library
# - GNU Scientific Library
# - Boost Library
LIBS=-lm -lgsl -lgslcblas -lmysqlpp -lboost_date_time
INC=-I/usr/include/mysql
FLAGS=-g -Wall
all: bayrate check basicrate copyMembership syncDBs
bayrate: bayrate.cpp db.o collection.o game.o player.o
g++ $(FLAGS) db.o collection.o game.o bayrate.cpp player.o $(INC) $(LIBS) -o bayrate
check: check.cpp db.o collection.o game.o player.o
g++ $(FLAGS) db.o collection.o game.o check.cpp player.o $(INC) $(LIBS) -o check
basicrate: GSLSimplex.cpp db.o collection.o test-game.o player.o
g++ $(FLAGS) db.o collection.o game.o GSLSimplex.cpp player.o $(INC) $(LIBS) -o basicrate
copyMembership: memUpdate.cpp db.o
g++ ${FLAGS} -o copyMembership memUpdate.cpp $(INC) $(LIBS)
syncDBs: syncDBs.cpp db.o
g++ ${FLAGS} db.o collection.o game.o player.o -o syncDBs syncDBs.cpp $(INC) $(LIBS)
db.o: db.cpp tdListEntry.h
g++ $(FLAGS) -c db.cpp -o db.o $(INC) $(LIBS)
game.o: game.cpp
g++ $(FLAGS) -c game.cpp -o game.o $(INC) $(LIBS)
test-game.o: test-game.cpp
g++ $(FLAGS) -c test-game.cpp -o test-game.o $(INC) $(LIBS)
player.o: player.cpp
g++ $(FLAGS) -c player.cpp -o player.o $(INC) $(LIBS)
collection.o: collection.cpp tdListEntry.h
g++ $(FLAGS) -c collection.cpp -o collection.o $(INC) $(LIBS)
clean:
rm *.o
rm bayrate
rm check
rm basicrate
rm copyMembership
archive:
tar zcvf BayRate.tgz *.cpp *.h makefile COPYING RankChanges.pl