X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=judge%2Fmanager%2FMakefile;h=e06e1810c2667599266dea70288d75c2ad8643b6;hp=fe319dfb8b1e30362f9dfc3ddd2c5caa0a139fee;hb=df9b2d14b2e4e5ea2e99614e44151295bcf4956c;hpb=1a03b2543b67f0551e62babec4cd119f1e0e4640;ds=sidebyside diff --git a/judge/manager/Makefile b/judge/manager/Makefile index fe319df..e06e181 100644 --- a/judge/manager/Makefile +++ b/judge/manager/Makefile @@ -1,14 +1,20 @@ #Makefile for Stratego -CPP = g++ -Wall -pedantic -lSDL -lGL -g -OBJ = main.o controller.o ai_controller.o human_controller.o program.o thread_util.o stratego.o graphics.o game.o +#Use this to build with graphics +LIBRARIES = -lSDL -lGL -lpthread +#Use this to build without graphics +#LIBRARIES = -lpthread +#Use this on Mac OSX (Thanks spartan) +#LIBRARIES = -I/opt/local/include/ -L/opt/local/lib/ -lSDL -framework OpenGL -lpthread +CPP = g++ -Wall -pedantic -g +OBJ = main.o controller.o network_controller.o ai_controller.o human_controller.o program.o network.o thread_util.o stratego.o graphics.o game.o BIN = stratego $(BIN) : $(OBJ) - $(CPP) -o $(BIN) $(OBJ) + $(CPP) -o $(BIN) $(OBJ) $(LIBRARIES)