From b3f01c9dfa4b27d74183769f3d257f9e506cdf83 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 24 Jul 2015 21:10:02 -0400 Subject: AGA rating program. Source: http://www.usgo.org/files/pdf/bayrate.zip --- bayrate/makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 bayrate/makefile (limited to 'bayrate/makefile') diff --git a/bayrate/makefile b/bayrate/makefile new file mode 100644 index 0000000..fdc27b0 --- /dev/null +++ b/bayrate/makefile @@ -0,0 +1,40 @@ +# 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 singlerate 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 + +singlerate: singlerate.cpp db.o collection.o game.o player.o + g++ $(FLAGS) db.o collection.o game.o singlerate.cpp player.o $(INC) $(LIBS) -o singlerate + +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 + g++ $(FLAGS) -c db.cpp -o db.o $(INC) $(LIBS) + +game.o: game.cpp + g++ $(FLAGS) -c game.cpp -o game.o $(INC) $(LIBS) + +player.o: player.cpp + g++ $(FLAGS) -c player.cpp -o player.o $(INC) $(LIBS) + +collection.o: collection.cpp + g++ $(FLAGS) -c collection.cpp -o collection.o $(INC) $(LIBS) + +clean: + rm *.o + rm bayrate + rm singlerate + rm check -- cgit v1.2.3