From e15a9ab0823340e303a10b1e70996b478692839b Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Wed, 8 Dec 2021 13:48:05 -0500 Subject: [PATCH] Fix new makefile for mingw --- luprex/core/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/*