diff options
| author | ruki <[email protected]> | 2021-06-30 22:40:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-06-30 22:40:57 +0800 |
| commit | 88ab7bebc40bc91bbfd91b565be2236ebd8c5e72 (patch) | |
| tree | a7fb4c94856f5381a8fb1fb4142e48162879c28d /core/src/demo | |
| parent | 46fd1844fc7a5456c4cd56bc2c251ed635d037ca (diff) | |
use system lua-cjson
Diffstat (limited to 'core/src/demo')
| -rw-r--r-- | core/src/demo/makefile | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/core/src/demo/makefile b/core/src/demo/makefile index 63c6abcef..37b06ad98 100644 --- a/core/src/demo/makefile +++ b/core/src/demo/makefile @@ -40,14 +40,9 @@ demo_INC_DIRS += $(SV_INC_DIRS) demo_LIB_DIRS += $(SV_LIB_DIRS) # lua-cjson -ifndef LUA_CJSON_LIBS -LUA_CJSON_LIBS := lua-cjson$(DTYPE) -endif -ifndef LUA_CJSON_LIB_DIRS -LUA_CJSON_LIB_DIRS := ../lua-cjson -endif -demo_LIBS += $(LUA_CJSON_LIBS) -demo_LIB_DIRS += $(LUA_CJSON_LIB_DIRS) +lua-cjson_LIBS := $(if $(findstring cjson,$(base_LIBNAMES)),,lua-cjson$(DTYPE)) +demo_LIBS += $(lua-cjson_LIBS) +demo_LIB_DIRS += ../lua-cjson demo_LIBS += $(BASE_LIBS) |
