Added a makefile
This commit is contained in:
27
luprex/Makefile
Normal file
27
luprex/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
CXX=g++ -std=c++17 -Wall -g -Iinc -Isyscpp
|
||||
|
||||
CPP_FILES=\
|
||||
syscpp/util.cpp\
|
||||
syscpp/luastack.cpp\
|
||||
syscpp/traceback.cpp\
|
||||
syscpp/planemap.cpp\
|
||||
syscpp/idalloc.cpp\
|
||||
syscpp/globaldb.cpp\
|
||||
syscpp/table.cpp\
|
||||
syscpp/animqueue.cpp\
|
||||
syscpp/source.cpp\
|
||||
syscpp/world.cpp\
|
||||
syscpp/viewer.cpp\
|
||||
syscpp/textgame.cpp\
|
||||
syscpp/main.cpp
|
||||
|
||||
OBJ_FILES=$(patsubst syscpp/%.cpp,obj/%.o,$(CPP_FILES))
|
||||
|
||||
obj/%.o: syscpp/%.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