Space Walk board game
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.
 
 

55 lines
930 B

  1. #------------------------------------------------------------------------------#
  2. PROGRAM := "space-walk"
  3. HEADERS := \
  4. board.h \
  5. boardwindow.h \
  6. gamestate.h \
  7. infowindow.h \
  8. inputoutput.h \
  9. maingame.h \
  10. mainmenu.h \
  11. messagebox.h \
  12. player.h \
  13. selectionbox.h \
  14. spaceship.h \
  15. test.h \
  16. window.h
  17. SOURCES := \
  18. board.cpp \
  19. boardwindow.cpp \
  20. infowindow.cpp \
  21. inputoutput.cpp \
  22. main.cpp \
  23. maingame.cpp \
  24. mainmenu.cpp \
  25. messagebox.cpp \
  26. player.cpp \
  27. selectionbox.cpp \
  28. spaceship.cpp \
  29. test.cpp \
  30. window.cpp
  31. #------------------------------------------------------------------------------#
  32. CXX := g++
  33. CXXFLAGS := -lncurses -std=c++11 -Wall -Wextra
  34. .PHONY: all debug run clean
  35. all: run
  36. debug: CXXFLAGS += -g -DDEBUG
  37. debug: run
  38. run: compile
  39. @./$(PROGRAM) ; \
  40. stty sane
  41. compile: ${HEADERS} ${SOURCES}
  42. $(CXX) $(CXXFLAGS) $? -o $(PROGRAM)
  43. clean:
  44. @-echo "Cleaning project.." ; \
  45. rm -f $(PROGRAM)