mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 13:41:13 +00:00
14 lines
427 B
Makefile
14 lines
427 B
Makefile
CXX = g++
|
|
CXXFLAGS = -std=c++0x
|
|
SRCS = Board.cpp OthelloBoard.cpp Player.cpp HumanPlayer.cpp GameDriver.cpp MinimaxPlayer.cpp
|
|
HEADERS = Board.h OthelloBoard.h Player.h HumanPlayer.h GameDriver.h MinimaxPlayer.h
|
|
OBJS = Board.o OthelloBoard.o Player.o HumanPlayer.o GameDriver.o MinimaxPlayer.o
|
|
|
|
all: ${SRCS} ${HEADERS}
|
|
${CXX} ${CXXFLAGS} ${SRCS} -o othello
|
|
|
|
${OBJS}: ${SRCS}
|
|
${CXX} -c $(@:.o=.cpp)
|
|
|
|
clean:
|
|
rm -f *.o othello
|