From d1ab8dd5fa576822056cc31c1674b71ba1b7bf41 Mon Sep 17 00:00:00 2001 From: Alexander Huddleston Date: Tue, 27 Oct 2015 22:56:10 -0500 Subject: [PATCH] Edited makefile. --- Engine.cpp | 2 +- Engine.h | 2 +- makefile | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Engine.cpp b/Engine.cpp index aa8c498..391f0ab 100755 --- a/Engine.cpp +++ b/Engine.cpp @@ -104,7 +104,7 @@ void Engine::AI(){ cout << "----------------------END AI FUNCTION----------------------\n"; } -moves Engine::minMax(Board temp, moves m, int c, int r){ +moves Engine::minMax(Board* temp, moves m, int c, int r){ //testing purposes only, c = finite depth cout << "c: " << c << "\n\n"; diff --git a/Engine.h b/Engine.h index 3ecf824..5e41cf4 100755 --- a/Engine.h +++ b/Engine.h @@ -13,5 +13,5 @@ public: void easyAI(); void AI(); Board* getBoard() { return b; } - moves minMax(Board temp, moves m, int c); + moves minMax(Board* temp, moves m, int c, int r); }; diff --git a/makefile b/makefile index fc3a027..e779fde 100755 --- a/makefile +++ b/makefile @@ -1,7 +1,13 @@ # makefile -all: test +all: test server +server: Server.o + g++ -std=c++11 -o server Server.o Engine.o Piece.o Board.o + +Server.o: Server.cpp Engine.cpp Board.cpp Piece.cpp + g++ -std=c++11 -c -g Server.cpp Engine.cpp Board.cpp Piece.cpp + test: test.o g++ -std=c++11 -o test test.o Engine.o Piece.o Board.o