Combining two repos
This commit is contained in:
30
luprex/core/Makefile
Normal file
30
luprex/core/Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
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/luasnap.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)
|
||||
Reference in New Issue
Block a user