aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/makefile b/makefile
index 14a7752..68f35be 100644
--- a/makefile
+++ b/makefile
@@ -10,15 +10,15 @@ SRC_PATH = ./src
10# Space-separated pkg-config libraries used by this project 10# Space-separated pkg-config libraries used by this project
11LIBS = 11LIBS =
12# General compiler flags 12# General compiler flags
13COMPILE_FLAGS = -std=c++17 -Wall -Wextra -g 13COMPILE_FLAGS = -std=c++17 -Wall -Wextra -g -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1
14# Additional release-specific flags 14# Additional release-specific flags
15RCOMPILE_FLAGS = -D NDEBUG -O3 15RCOMPILE_FLAGS = -D NDEBUG -O3
16# Additional debug-specific flags 16# Additional debug-specific flags
17DCOMPILE_FLAGS = -D DEBUG 17DCOMPILE_FLAGS = -D DEBUG
18# Add additional include paths 18# Add additional include paths
19INCLUDES = -I $(SRC_PATH) 19INCLUDES = -I $(SRC_PATH) -I ./src/lua-5.3
20# General linker settings 20# General linker settings
21LINK_FLAGS = -lpthread 21LINK_FLAGS = -L ./src/lua-5.3 -lpthread -llua
22# Additional release-specific linker settings 22# Additional release-specific linker settings
23RLINK_FLAGS = 23RLINK_FLAGS =
24# Additional debug-specific linker settings 24# Additional debug-specific linker settings
@@ -153,6 +153,7 @@ ifeq ($(USE_VERSION), true)
153else 153else
154 @echo "Beginning release build" 154 @echo "Beginning release build"
155endif 155endif
156 @$(MAKE) -C ./src/lua-5.3
156 @$(START_TIME) 157 @$(START_TIME)
157 @$(MAKE) all --no-print-directory 158 @$(MAKE) all --no-print-directory
158 @echo -n "Total build time: " 159 @echo -n "Total build time: "
@@ -166,6 +167,7 @@ ifeq ($(USE_VERSION), true)
166else 167else
167 @echo "Beginning debug build" 168 @echo "Beginning debug build"
168endif 169endif
170 @$(MAKE) -C ./src/lua-5.3
169 @$(START_TIME) 171 @$(START_TIME)
170 @$(MAKE) all --no-print-directory 172 @$(MAKE) all --no-print-directory
171 @echo -n "Total build time: " 173 @echo -n "Total build time: "
@@ -194,6 +196,7 @@ uninstall:
194# Removes all build files 196# Removes all build files
195.PHONY: clean 197.PHONY: clean
196clean: 198clean:
199 @$(MAKE) clean -C ./src/lua-5.3
197 @echo "Deleting $(BIN_NAME) symlink" 200 @echo "Deleting $(BIN_NAME) symlink"
198 @$(RM) $(BIN_NAME) 201 @$(RM) $(BIN_NAME)
199 @echo "Deleting directories" 202 @echo "Deleting directories"