X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=agents%2Fc%2B%2B%2FMakefile;fp=agents%2Fc%2B%2B%2FMakefile;h=760d975e204a5c3fdc2bddcac7ef13a1dfdd48eb;hb=7518ec8d771e731d6ffbbe00b275b7e3c4b23301;hp=0000000000000000000000000000000000000000;hpb=8571bc0c18f4a42bd1c8f34a5a36bcd9678b3f14;p=progcomp2013.git diff --git a/agents/c++/Makefile b/agents/c++/Makefile new file mode 100644 index 0000000..760d975 --- /dev/null +++ b/agents/c++/Makefile @@ -0,0 +1,33 @@ +#Makefile for C++ agent +CXX = g++ -std=gnu++0x -Wall -Werror -pedantic -g +OBJ = qchess.o agent.o main.o +LIB = + +LINKOBJ = $(OBJ) + +RM = rm -f +BIN = agent++ + + + +$(BIN) : $(LINKOBJ) + $(CXX) -o $(BIN) $(LINKOBJ) + +%.o : %.cpp + $(CXX) -c $< + +no_main : $(OBJ) + +main.o : main.cpp + $(CXX) -c main.cpp + +clean : + $(RM) $(BIN) $(OBJ) $(LINKOBJ) + +clean_full: #cleans up all backup files + $(RM) $(BIN) $(OBJ) $(LINKOBJ) + $(RM) *.*~ + $(RM) *~ + + + \ No newline at end of file