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.
54 lines
930 B
54 lines
930 B
#------------------------------------------------------------------------------# |
|
|
|
PROGRAM := "space-walk" |
|
HEADERS := \ |
|
board.h \ |
|
boardwindow.h \ |
|
gamestate.h \ |
|
infowindow.h \ |
|
inputoutput.h \ |
|
maingame.h \ |
|
mainmenu.h \ |
|
messagebox.h \ |
|
player.h \ |
|
selectionbox.h \ |
|
spaceship.h \ |
|
test.h \ |
|
window.h |
|
SOURCES := \ |
|
board.cpp \ |
|
boardwindow.cpp \ |
|
infowindow.cpp \ |
|
inputoutput.cpp \ |
|
main.cpp \ |
|
maingame.cpp \ |
|
mainmenu.cpp \ |
|
messagebox.cpp \ |
|
player.cpp \ |
|
selectionbox.cpp \ |
|
spaceship.cpp \ |
|
test.cpp \ |
|
window.cpp |
|
|
|
#------------------------------------------------------------------------------# |
|
|
|
CXX := g++ |
|
CXXFLAGS := -lncurses -std=c++11 -Wall -Wextra |
|
|
|
.PHONY: all debug run clean |
|
|
|
all: run |
|
|
|
debug: CXXFLAGS += -g -DDEBUG |
|
debug: run |
|
|
|
run: compile |
|
@./$(PROGRAM) ; \ |
|
stty sane |
|
|
|
compile: ${HEADERS} ${SOURCES} |
|
$(CXX) $(CXXFLAGS) $? -o $(PROGRAM) |
|
|
|
clean: |
|
@-echo "Cleaning project.." ; \ |
|
rm -f $(PROGRAM)
|
|
|