AHHAHAHA
This commit is contained in:
parent
f18a070a7a
commit
aa11e75748
1 changed files with 9 additions and 9 deletions
18
TP2/Makefile
18
TP2/Makefile
|
@ -12,13 +12,13 @@ RAPPORT = $(RAPPORT_DIR)/rapport.pdf
|
||||||
CP = rsync -r $(TAR_EXCLUDE)
|
CP = rsync -r $(TAR_EXCLUDE)
|
||||||
MV = mv
|
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)))
|
OBJETS_RAND = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES_RAND)))
|
||||||
EXE_RAND = rand_player
|
EXE_RAND = rand_player
|
||||||
|
|
||||||
SOURCES_ME = $(filter-out src/rand_player.cpp, $(wildcard src/*.cpp))
|
SOURCES_MCTS = $(filter-out src/mcts_player.cpp, $(wildcard src/*.cpp))
|
||||||
OBJETS_ME = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES_RAND)))
|
OBJETS_MCTS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES_RAND)))
|
||||||
EXE_ME = mcts_player
|
EXE_MCTS = mcts_player
|
||||||
|
|
||||||
STATS_DIR = new_stats
|
STATS_DIR = new_stats
|
||||||
|
|
||||||
|
@ -33,17 +33,17 @@ rand_player: CXXFLAGS += -Wall -O2
|
||||||
rand_player: compilation_rand
|
rand_player: compilation_rand
|
||||||
|
|
||||||
mcts_player: CXXFLAGS += -Wall -O2
|
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 += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -Og -g
|
||||||
dev: CXXFLAGS += -Wold-style-cast -Wsign-conversion
|
dev: CXXFLAGS += -Wold-style-cast -Wsign-conversion
|
||||||
dev: compilation_me
|
dev: compilation_mcts
|
||||||
|
|
||||||
compilation_rand: $(OBJETS_RAND)
|
compilation_rand: $(OBJETS_RAND)
|
||||||
$(CXX) -o $(EXE_RAND) $(OBJETS_RAND)
|
$(CXX) -o $(EXE_RAND) $(OBJETS_RAND)
|
||||||
|
|
||||||
compilation_me: $(OBJETS_ME)
|
compilation_mcts: $(OBJETS_MCTS)
|
||||||
$(CXX) -o $(EXE_ME) $(OBJETS_ME)
|
$(CXX) -o $(EXE_MCTS) $(OBJETS_MCTS)
|
||||||
|
|
||||||
tgz:
|
tgz:
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
|
@ -56,7 +56,7 @@ tgz:
|
||||||
$(RM) -r temp/
|
$(RM) -r temp/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJETS_RAND) $(EXE_RAND) $(OBJETS_ME) $(EXE_ME)
|
$(RM) $(OBJETS_RAND) $(EXE_RAND) $(OBJETS_MCTS) $(EXE_MCTS)
|
||||||
$(RM) *.tar.gz
|
$(RM) *.tar.gz
|
||||||
|
|
||||||
stats:
|
stats:
|
||||||
|
|
Reference in a new issue