diff --git a/luprex/core/Makefile b/luprex/core/Makefile index fc183e2e..c728e939 100644 --- a/luprex/core/Makefile +++ b/luprex/core/Makefile @@ -3,7 +3,7 @@ OS=unspecified ifeq ($(OS),mingw) EXE=main.exe LIBS=-lws2_32 - LUAFLAGS=-DLUA_USE_POSIX + LUAFLAGS=-DLUA_COMPAT_ALL else ifeq ($(OS),linux) EXE=main LIBS= @@ -91,7 +91,7 @@ obj/%.o: cpp/%.cpp $(EXE): $(CORE_OBJ_FILES) $(LUA_OBJ_FILES) - g++ -std=c++17 -Wall -g -o $@ $(CORE_OBJ_FILES) $(LUA_OBJ_FILES) + g++ -std=c++17 -Wall -g -o $@ $(CORE_OBJ_FILES) $(LUA_OBJ_FILES) $(LIBS) clean: rm -f main.exe main obj/* lobj/*