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.

41 lines
1.4 KiB

  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=-s -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. version001 : main001.o character.o player.o creation.o info.o betatest.o
  12. $(COMPILER) $(FLAGS) -o $@ \
  13. main001.o \
  14. character.o player.o \
  15. info.o creation.o \
  16. betatest.o
  17. main001.o : main001.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. creation.o : $(INTER_DIR)/creation.cpp $(INTER_DIR)/creation.hpp $(CLASS_DIR)/player.hpp $(INTER_DIR)/info.hpp
  24. $(OBJ_CMD)
  25. info.o : $(INTER_DIR)/info.cpp $(INTER_DIR)/info.hpp $(CLASS_DIR)/player.hpp $(CLASS_DIR)/character.hpp
  26. $(OBJ_CMD)
  27. betatest.o : $(SYS_DIR)/betatest.cpp $(SYS_DIR)/betatest.hpp
  28. $(OBJ_CMD)
  29. clean :
  30. rm -f *.o