19 lines
464 B
Makefile
19 lines
464 B
Makefile
main: main.cpp buildChessBoard buildChessPiece buildPlayer
|
|
g++ -std=c++11 main.cpp chessBoard.o chessPiece.o player.o -o main.out
|
|
|
|
buildChessBoard: chessBoard.cpp
|
|
g++ -std=c++11 -c chessBoard.cpp
|
|
|
|
buildChessPiece: chessPiece.cpp
|
|
g++ -std=c++11 -c chessPiece.cpp
|
|
|
|
buildPlayer: player.cpp
|
|
g++ -std=c++11 -c player.cpp
|
|
|
|
clean:
|
|
find . -name \"*.out\" | xargs rm -f
|
|
find . -name \"*.dSYM\" | xargs rm -rf
|
|
find . -name \"*.o\" | xargs rm -rf
|
|
|
|
test:
|
|
@echo ${HOME}
|