Add makefile

This commit is contained in:
unlockable
2023-04-01 14:14:49 +08:00
parent 9af002e9de
commit 4581b32521

19
OOP/FiveInARow/Makefile Normal file
View File

@@ -0,0 +1,19 @@
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}