1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

58 lines
1.9 KiB
Plaintext
Raw Normal View History

2010-03-17 20:32:15 +11:00
VERSION = '0.9.10'
2010-02-21 13:55:58 +11:00
2010-03-17 20:32:15 +11:00
srcdir = '../../..'
blddir = 'bin'
LIBTDB_DIR= srcdir + '/lib/tdb'
LIBTEVENT_DIR= srcdir + '/lib/tevent'
2010-02-21 13:55:58 +11:00
def set_options(opt):
opt.recurse(LIBTDB_DIR)
2010-03-17 20:32:15 +11:00
opt.recurse(LIBTEVENT_DIR)
2010-02-21 13:55:58 +11:00
def configure(conf):
conf.sub_config(LIBTDB_DIR)
2010-03-17 20:32:15 +11:00
conf.sub_config(LIBTEVENT_DIR)
conf.CONFIG_PATH('LDB_MODULESDIR', conf.env['LIBDIR'] + '/ldb')
2010-02-21 13:55:58 +11:00
conf.SAMBA_CONFIG_H()
def build(bld):
bld.add_subdirs(LIBTDB_DIR)
2010-03-17 20:32:15 +11:00
bld.add_subdirs(LIBTEVENT_DIR)
2010-02-21 13:55:58 +11:00
LDB_TDB_SRC = bld.SUBDIR('ldb_tdb',
'''ldb_tdb.c ldb_pack.c ldb_search.c ldb_index.c
ldb_cache.c ldb_tdb_wrap.c''')
LDB_MAP_SRC = bld.SUBDIR('ldb_map',
'ldb_map.c ldb_map_inbound.c ldb_map_outbound.c')
COMMON_SRC = bld.SUBDIR('common',
'''ldb.c ldb_ldif.c ldb_parse.c ldb_msg.c ldb_utf8.c
ldb_debug.c ldb_modules.c ldb_dn.c ldb_match.c
ldb_attributes.c attrib_handlers.c ldb_controls.c qsort.c''')
MODULES_SRC = bld.SUBDIR('modules',
'rdn_name.c asq.c paged_results.c sort.c')
bld.SAMBA_LIBRARY('ldb',
LDB_TDB_SRC + ' ' + COMMON_SRC + ' ' + MODULES_SRC,
deps='tdb tevent',
2010-03-17 20:32:15 +11:00
include_list='include',
vnum=VERSION)
LDB_TOOLS='ldbadd ldbsearch ldbdel ldbmodify ldbedit ldbrename ldbtest'
for t in LDB_TOOLS.split():
bld.SAMBA_BINARY(t,
'tools/%s.c tools/ldbutil.c tools/cmdline.c' % t,
deps='ldb',
2010-03-17 20:32:15 +11:00
syslibs='dl popt')
2010-02-23 08:38:18 +11:00
# this is a temporary fix for the fact that some
# of the scripts call it 'ldb' and some 'LIBLDB'
bld.SAMBA_LIBRARY('LIBLDB',
LDB_TDB_SRC + ' ' + COMMON_SRC + ' ' + MODULES_SRC,
deps='tdb tevent',
include_list='include',
vnum=VERSION)