diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-03-11 00:21:33 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-03-11 00:21:33 +0800 |
| commit | 1ee056eedf773ac6166247755439092e0e0a9bca (patch) | |
| tree | 1b8863338d37fe6ded7fbaecd92d76cdb3801ab3 /makefile | |
| parent | 015af4b70cd751e1c1580fd542997a796e1ca225 (diff) | |
| download | yuescript-1ee056eedf773ac6166247755439092e0e0a9bca.tar.gz yuescript-1ee056eedf773ac6166247755439092e0e0a9bca.tar.bz2 yuescript-1ee056eedf773ac6166247755439092e0e0a9bca.zip | |
add macro functions.
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -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 |
| 11 | LIBS = | 11 | LIBS = |
| 12 | # General compiler flags | 12 | # General compiler flags |
| 13 | COMPILE_FLAGS = -std=c++17 -Wall -Wextra -g | 13 | COMPILE_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 |
| 15 | RCOMPILE_FLAGS = -D NDEBUG -O3 | 15 | RCOMPILE_FLAGS = -D NDEBUG -O3 |
| 16 | # Additional debug-specific flags | 16 | # Additional debug-specific flags |
| 17 | DCOMPILE_FLAGS = -D DEBUG | 17 | DCOMPILE_FLAGS = -D DEBUG |
| 18 | # Add additional include paths | 18 | # Add additional include paths |
| 19 | INCLUDES = -I $(SRC_PATH) | 19 | INCLUDES = -I $(SRC_PATH) -I ./src/lua-5.3 |
| 20 | # General linker settings | 20 | # General linker settings |
| 21 | LINK_FLAGS = -lpthread | 21 | LINK_FLAGS = -L ./src/lua-5.3 -lpthread -llua |
| 22 | # Additional release-specific linker settings | 22 | # Additional release-specific linker settings |
| 23 | RLINK_FLAGS = | 23 | RLINK_FLAGS = |
| 24 | # Additional debug-specific linker settings | 24 | # Additional debug-specific linker settings |
| @@ -153,6 +153,7 @@ ifeq ($(USE_VERSION), true) | |||
| 153 | else | 153 | else |
| 154 | @echo "Beginning release build" | 154 | @echo "Beginning release build" |
| 155 | endif | 155 | endif |
| 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) | |||
| 166 | else | 167 | else |
| 167 | @echo "Beginning debug build" | 168 | @echo "Beginning debug build" |
| 168 | endif | 169 | endif |
| 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 |
| 196 | clean: | 198 | clean: |
| 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" |
