This commit is contained in:
Mylloon 2023-03-29 16:14:26 +02:00
parent f18a070a7a
commit aa11e75748
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -12,13 +12,13 @@ RAPPORT = $(RAPPORT_DIR)/rapport.pdf
CP = rsync -r $(TAR_EXCLUDE)
MV = mv
SOURCES_RAND = $(filter-out src/mcts_player.cpp, $(wildcard src/*.cpp))
SOURCES_RAND = $(filter-out src/rand_player.cpp, $(wildcard src/*.cpp))
OBJETS_RAND = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES_RAND)))
EXE_RAND = rand_player
SOURCES_ME = $(filter-out src/rand_player.cpp, $(wildcard src/*.cpp))
OBJETS_ME = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES_RAND)))
EXE_ME = mcts_player
SOURCES_MCTS = $(filter-out src/mcts_player.cpp, $(wildcard src/*.cpp))
OBJETS_MCTS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES_RAND)))
EXE_MCTS = mcts_player
STATS_DIR = new_stats
@ -33,17 +33,17 @@ rand_player: CXXFLAGS += -Wall -O2
rand_player: compilation_rand
mcts_player: CXXFLAGS += -Wall -O2
mcts_player: compilation_me
mcts_player: compilation_mcts
dev: CXXFLAGS += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -Og -g
dev: CXXFLAGS += -Wold-style-cast -Wsign-conversion
dev: compilation_me
dev: compilation_mcts
compilation_rand: $(OBJETS_RAND)
$(CXX) -o $(EXE_RAND) $(OBJETS_RAND)
compilation_me: $(OBJETS_ME)
$(CXX) -o $(EXE_ME) $(OBJETS_ME)
compilation_mcts: $(OBJETS_MCTS)
$(CXX) -o $(EXE_MCTS) $(OBJETS_MCTS)
tgz:
$(MAKE) clean
@ -56,7 +56,7 @@ tgz:
$(RM) -r temp/
clean:
$(RM) $(OBJETS_RAND) $(EXE_RAND) $(OBJETS_ME) $(EXE_ME)
$(RM) $(OBJETS_RAND) $(EXE_RAND) $(OBJETS_MCTS) $(EXE_MCTS)
$(RM) *.tar.gz
stats: