30 lines
531 B
Makefile
30 lines
531 B
Makefile
|
|
CXX=g++ -std=c++17 -Wall -g -Iinc -Icpp
|
|
|
|
CPP_FILES=\
|
|
cpp/util.cpp\
|
|
cpp/luastack.cpp\
|
|
cpp/traceback.cpp\
|
|
cpp/planemap.cpp\
|
|
cpp/luaconsole.cpp\
|
|
cpp/idalloc.cpp\
|
|
cpp/globaldb.cpp\
|
|
cpp/table.cpp\
|
|
cpp/gui.cpp\
|
|
cpp/animqueue.cpp\
|
|
cpp/source.cpp\
|
|
cpp/world.cpp\
|
|
cpp/viewer.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/libluajit-dbg.a
|
|
|
|
-include $(OBJ_FILES:%.o=%.d)
|