build: more binaries for waf tdb build
[ira/wip.git] / lib / tdb / wscript
1 srcdir = '.'
2 blddir = 'build'
3
4 def set_options(opt):
5     opt.recurse('../talloc')
6
7 def configure(conf):
8     conf.recurse('../talloc')
9
10 def build(bld):
11     bld.recurse('../talloc')
12
13     COMMON_SOURCE = '''common/check.c common/error.c common/tdb.c common/traverse.c
14                        common/freelistcheck.c common/lock.c common/dump.c common/freelist.c
15                        common/io.c common/open.c  common/transaction.c'''
16
17     bld.SAMBA_LIBRARY('tdb',
18                       COMMON_SOURCE,
19                       'replace talloc',
20                       'include')
21
22     bld.SAMBA_BINARY('tdbtorture',
23                      'tools/tdbtorture.c',
24                      'tdb')
25
26     bld.SAMBA_BINARY('tdbdump',
27                      'tools/tdbdump.c',
28                      'tdb')
29
30     bld.SAMBA_BINARY('tdbbackup',
31                      'tools/tdbbackup.c',
32                      'tdb')
33
34     bld.SAMBA_BINARY('tdbtool',
35                      'tools/tdbtool.c',
36                      'tdb')