|
COMPILER=g++
|
|
#FLAGS=-g -I. -pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Werror -Wno-unused
|
|
#FLAGS=-g -I.
|
|
FLAGS=-I.
|
|
O_DIR=obj
|
|
|
|
CLASS_DIR=src/class
|
|
INTER_DIR=src/interface
|
|
SYS_DIR=src/system
|
|
|
|
OBJ_CMD=$(COMPILER) $(FLAGS) -c $< -o $@
|
|
|
|
.PHONY : clean
|
|
|
|
version001 : main001.o character.o player.o creation.o info.o betatest.o
|
|
$(COMPILER) $(FLAGS) -o $@ \
|
|
main001.o \
|
|
character.o player.o \
|
|
info.o creation.o \
|
|
betatest.o
|
|
|
|
main001.o : main001.cpp $(CLASS_DIR)/player.hpp $(INTER_DIR)/creation.hpp $(INTER_DIR)/info.hpp $(SYS_DIR)/betatest.hpp
|
|
$(OBJ_CMD)
|
|
|
|
character.o : $(CLASS_DIR)/character.cpp $(CLASS_DIR)/character.hpp
|
|
$(OBJ_CMD)
|
|
|
|
player.o : $(CLASS_DIR)/player.cpp $(CLASS_DIR)/player.hpp $(CLASS_DIR)/character.hpp
|
|
$(OBJ_CMD)
|
|
|
|
creation.o : $(INTER_DIR)/creation.cpp $(INTER_DIR)/creation.hpp $(CLASS_DIR)/player.hpp $(INTER_DIR)/info.hpp
|
|
$(OBJ_CMD)
|
|
|
|
info.o : $(INTER_DIR)/info.cpp $(INTER_DIR)/info.hpp $(CLASS_DIR)/player.hpp $(CLASS_DIR)/character.hpp $(CLASS_DIR)/monster.hpp
|
|
$(OBJ_CMD)
|
|
|
|
betatest.o : $(SYS_DIR)/betatest.cpp $(SYS_DIR)/betatest.hpp
|
|
$(OBJ_CMD)
|
|
|
|
clean :
|
|
rm -f *.o
|