From cd2b60b101a398cb9356d746364e70eaed1860f1 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 22 Jun 2020 16:50:40 +0800 Subject: add support for local variable declared with attribute 'close' and 'const' for Lua 5.4. --- makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 5207a11..4c3c67f 100644 --- a/makefile +++ b/makefile @@ -10,15 +10,15 @@ SRC_PATH = ./src # Space-separated pkg-config libraries used by this project LIBS = # General compiler flags -COMPILE_FLAGS = -std=c++17 -Wall -Wextra -g -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 +COMPILE_FLAGS = -std=c++17 -Wall -Wextra -g # Additional release-specific flags RCOMPILE_FLAGS = -D NDEBUG -O3 # Additional debug-specific flags DCOMPILE_FLAGS = -D DEBUG # Add additional include paths -INCLUDES = -I $(SRC_PATH) -I ./src/lua-5.3 +INCLUDES = -I $(SRC_PATH) -I ./src/lua # General linker settings -LINK_FLAGS = -L ./src/lua-5.3 -lpthread -llua +LINK_FLAGS = -L ./src/lua -lpthread -llua # Additional release-specific linker settings RLINK_FLAGS = # Additional debug-specific linker settings @@ -158,7 +158,7 @@ ifeq ($(USE_VERSION), true) else @echo "Beginning release build" endif - @$(MAKE) -C ./src/lua-5.3 + @$(MAKE) -C ./src/lua @$(START_TIME) @$(MAKE) all --no-print-directory @echo -n "Total build time: " @@ -172,7 +172,7 @@ ifeq ($(USE_VERSION), true) else @echo "Beginning debug build" endif - @$(MAKE) -C ./src/lua-5.3 + @$(MAKE) -C ./src/lua @$(START_TIME) @$(MAKE) all --no-print-directory @echo -n "Total build time: " @@ -201,7 +201,7 @@ uninstall: # Removes all build files .PHONY: clean clean: - @$(MAKE) clean -C ./src/lua-5.3 + @$(MAKE) clean -C ./src/lua @echo "Deleting $(BIN_NAME) symlink" @$(RM) $(BIN_NAME) @echo "Deleting directories" -- cgit v1.2.3-55-g6feb