From 4581b325214daca6f18260fce267373c2da55efd Mon Sep 17 00:00:00 2001 From: unlockable Date: Sat, 1 Apr 2023 14:14:49 +0800 Subject: [PATCH] Add makefile --- OOP/FiveInARow/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 OOP/FiveInARow/Makefile diff --git a/OOP/FiveInARow/Makefile b/OOP/FiveInARow/Makefile new file mode 100644 index 0000000..314a763 --- /dev/null +++ b/OOP/FiveInARow/Makefile @@ -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} \ No newline at end of file