40 lines
751 B
Makefile
40 lines
751 B
Makefile
|
|
CXX=g++ -std=c++17 -Wall -g -Iinc -Icpp
|
|
|
|
CPP_FILES=\
|
|
cpp/invocation.cpp\
|
|
cpp/spookyv2.cpp\
|
|
cpp/util.cpp\
|
|
cpp/luastack.cpp\
|
|
cpp/traceback.cpp\
|
|
cpp/planemap.cpp\
|
|
cpp/print.cpp\
|
|
cpp/luaconsole.cpp\
|
|
cpp/idalloc.cpp\
|
|
cpp/globaldb.cpp\
|
|
cpp/sched.cpp\
|
|
cpp/table.cpp\
|
|
cpp/gui.cpp\
|
|
cpp/luasnap.cpp\
|
|
cpp/animqueue.cpp\
|
|
cpp/streambuffer.cpp\
|
|
cpp/source.cpp\
|
|
cpp/world-core.cpp\
|
|
cpp/world-accessor.cpp\
|
|
cpp/world-difftab.cpp\
|
|
cpp/world-diffxmit.cpp\
|
|
cpp/world-pairtab.cpp\
|
|
cpp/world-testing.cpp\
|
|
cpp/textgame.cpp\
|
|
cpp/main.cpp
|
|
|
|
OBJ_FILES=$(patsubst cpp/%.cpp,obj/%.o,$(CPP_FILES))
|
|
|
|
obj/%.o: cpp/%.cpp
|
|
$(CXX) -c -MMD $< -o $@
|
|
|
|
main.exe: $(OBJ_FILES)
|
|
$(CXX) -o main.exe $(OBJ_FILES) -Llib lib/liblua-dbg.a
|
|
|
|
-include $(OBJ_FILES:%.o=%.d)
|