forked from JonathanBresler/AGA-Ratings-Program
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
42 lines (31 loc) · 1.07 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
# 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
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
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
archive:
tar zcvf BayRate.tgz *.cpp *.h makefile COPYING RankChanges.pl