summaryrefslogtreecommitdiff
path: root/core/src/demo/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-03 21:21:09 +0800
committerruki <[email protected]>2017-05-03 21:21:09 +0800
commit021a778bc410cbe330ade85142bf29aed2485c39 (patch)
treef41b7eebe3a65c6a98d4a78b3a4ba19c74be71ee /core/src/demo/makefile
parentd05c6f778f125e94488fb785a2176e2854d98442 (diff)
add readline for linux and macosx
Diffstat (limited to 'core/src/demo/makefile')
-rw-r--r--core/src/demo/makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/demo/makefile b/core/src/demo/makefile
index 7a9b7754c..b24bf4a95 100644
--- a/core/src/demo/makefile
+++ b/core/src/demo/makefile
@@ -15,10 +15,15 @@ demo_PKGS-$(TBOX) += tbox
demo_PKGS-$(BASE) += base
# others
-demo_LIBS += xmake$(DTYPE) luajit$(DTYPE)
+demo_LIBS += xmake$(DTYPE) luajit$(DTYPE)
demo_INC_DIRS += ../ ../luajit/src
demo_LIB_DIRS += ../xmake ../luajit
demo_CXFLAGS += -D__tb_prefix__=\"xmake\"
+
+# add readline
+ifneq ($(PLAT),windows)
+demo_LIBS += readline
+endif
# suffix
include $(PRO_DIR)/suffix.mak