diff options
| author | ruki <[email protected]> | 2021-10-09 12:32:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-09 12:32:18 +0800 |
| commit | 2aa89e62fcd1c90846baaebb973ac002e65d17d0 (patch) | |
| tree | 1ca94b564049b6dc5832d9f9cfc5c0dd3e70ccf0 /core/src | |
| parent | 094b8d16d88787219cf8840b867846a4159de055 (diff) | |
Update makefile
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/lua/makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/core/src/lua/makefile b/core/src/lua/makefile index 4137fd22c..84a95abcf 100644 --- a/core/src/lua/makefile +++ b/core/src/lua/makefile @@ -64,16 +64,19 @@ endif lua_CFLAGS := -std=c99 -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 ifdef iswin -lua_CFLAGS += -DLUA_USE_WINDOWS +lua_CFLAGS_PLAT := -DLUA_USE_WINDOWS endif ifeq ($(PLAT),macosx) -lua_CFLAGS += -DLUA_USE_MACOSX \ - -Wno-error=string-plus-int -else -lua_CFLAGS += -DLUA_USE_LINUX +lua_CFLAGS += -Wno-error=string-plus-int +lua_CFLAGS_PLAT := -DLUA_USE_WINDOWS endif +ifeq($(lua_CFLAGS_PLAT),) +lua_CFLAGS_PLAT := -DLUA_USE_LINUX +endif +lua_CFLAGS += $(lua_CFLAGS_PLAT) + # use given system library? lua_C_FILES := $(if $(findstring lua,$(base_LIBNAMES)),,$(lua_C_FILES)) lua_ASM_FILES := $(if $(findstring lua,$(base_LIBNAMES)),,$(lua_ASM_FILES)) |
