Released version 3-2014010502
[notion.git] / build / libs.mk
blob72a1f89fff963af88c13241a5eb9b8c3f1a37e29
1 LIBS_SUBDIRS = libmainloop
3 LIBMAINLOOP_DIR = $(TOPDIR)/libmainloop
4 LIBMAINLOOP_INCLUDES = -I$(TOPDIR)
5 LIBMAINLOOP_LIBS = -L$(LIBMAINLOOP_DIR) -lmainloop
7 ifeq ($(wildcard $(TOPDIR)/libtu/obj.h),)
9 #External libtu, feel free to edit
10 LIBTU_DIR = $(TOPDIR)/../libtu
11 LIBTU_INCLUDES =
12 LIBTU_LIBS = -ltu
14 else
16 #In-tree libtu
17 LIBS_SUBDIRS += libtu
19 LIBTU_DIR = $(TOPDIR)/libtu
20 LIBTU_INCLUDES = -I$(TOPDIR)
21 LIBTU_LIBS = -L$(LIBTU_DIR) -ltu
23 endif
25 ifeq ($(wildcard $(TOPDIR)/libextl/luaextl.h),)
27 #External libextl, feel free to edit
28 LIBEXTL_DIR = $(TOPDIR)/../libextl
29 LIBEXTL_INCLUDES =
30 LIBEXTL_LIBS = -lextl
32 MKEXPORTS = libextl-mkexports
34 else
36 #In-tree libextl
37 LIBS_SUBDIRS += libextl
39 LIBEXTL_DIR = $(TOPDIR)/libextl
40 LIBEXTL_INCLUDES = -I$(TOPDIR)
41 LIBEXTL_LIBS = -L$(LIBEXTL_DIR) -lextl
43 MKEXPORTS = $(LUA) $(LIBEXTL_DIR)/libextl-mkexports
45 endif