You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.8 KiB

пре 6 година
пре 6 година
пре 6 година
пре 6 година
пре 6 година
  1. COMPILER=g++
  2. #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
  3. #FLAGS=-g -I.
  4. FLAGS=-I.
  5. O_DIR=obj
  6. CLASS_DIR=src/class
  7. INTER_DIR=src/interface
  8. SYS_DIR=src/system
  9. OBJ_CMD=$(COMPILER) $(FLAGS) -c $< -o $@
  10. .PHONY : clean
  11. version002 : main002.o character.o player.o monster.o battle.o creation.o info.o betatest.o memory.o flag.o
  12. $(COMPILER) $(FLAGS) -o $@ \
  13. main002.o \
  14. character.o player.o monster.o \
  15. info.o creation.o battle.o \
  16. betatest.o flag.o memory.o
  17. main002.o : main002.cpp $(CLASS_DIR)/player.hpp $(INTER_DIR)/creation.hpp $(INTER_DIR)/info.hpp $(SYS_DIR)/betatest.hpp
  18. $(OBJ_CMD)
  19. character.o : $(CLASS_DIR)/character.cpp $(CLASS_DIR)/character.hpp
  20. $(OBJ_CMD)
  21. player.o : $(CLASS_DIR)/player.cpp $(CLASS_DIR)/player.hpp $(CLASS_DIR)/character.hpp
  22. $(OBJ_CMD)
  23. monster.o : $(CLASS_DIR)/monster.cpp $(CLASS_DIR)/monster.hpp $(CLASS_DIR)/character.hpp
  24. $(OBJ_CMD)
  25. battle.o : $(INTER_DIR)/battle.cpp $(INTER_DIR)/battle.hpp $(CLASS_DIR)/monster.hpp $(CLASS_DIR)/character.hpp
  26. $(OBJ_CMD)
  27. creation.o : $(INTER_DIR)/creation.cpp $(INTER_DIR)/creation.hpp $(CLASS_DIR)/player.hpp $(INTER_DIR)/info.hpp
  28. $(OBJ_CMD)
  29. info.o : $(INTER_DIR)/info.cpp $(INTER_DIR)/info.hpp $(CLASS_DIR)/player.hpp $(CLASS_DIR)/character.hpp $(CLASS_DIR)/monster.hpp
  30. $(OBJ_CMD)
  31. betatest.o : $(SYS_DIR)/betatest.cpp $(SYS_DIR)/betatest.hpp
  32. $(OBJ_CMD)
  33. flag.o : $(SYS_DIR)/flag.cpp $(SYS_DIR)/flag.hpp
  34. $(OBJ_CMD)
  35. memory.o : $(SYS_DIR)/memory.cpp $(SYS_DIR)/memory.hpp $(CLASS_DIR)/player.hpp
  36. $(OBJ_CMD)
  37. clean :
  38. rm -f *.o