diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2015-07-24 21:10:02 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2015-07-24 21:10:02 -0400 |
commit | b3f01c9dfa4b27d74183769f3d257f9e506cdf83 (patch) | |
tree | 0b0b17c5e9989747d6b851213a48e476dc6dad84 /bayrate/makefile |
AGA rating program.
Source:
http://www.usgo.org/files/pdf/bayrate.zip
Diffstat (limited to 'bayrate/makefile')
-rw-r--r-- | bayrate/makefile | 40 |
1 files changed, 40 insertions, 0 deletions
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 |