+VERSION = '2.0.1'
+
srcdir = '.'
blddir = 'build'
+LIBREPLACE_DIR='../replace'
+
def set_options(opt):
- opt.recurse('../replace')
+ opt.recurse(LIBREPLACE_DIR)
def configure(conf):
- conf.recurse('../replace')
+ conf.sub_config(LIBREPLACE_DIR)
+ conf.SAMBA_CONFIG_H()
def build(bld):
- bld.recurse('../replace')
+ bld.add_subdirs(LIBREPLACE_DIR)
- bld(
- features = 'cc cshlib',
- source = 'talloc.c',
- target='talloc',
- includes = '. ../replace')
+ bld.SAMBA_LIBRARY('talloc',
+ 'talloc.c',
+ libdeps='replace',
+ vnum=VERSION)
- # test program
- bld(
- features = 'cc cprogram',
- source = 'testsuite.c testsuite_main.c',
- target = 'talloc_testsuite',
- uselib_local = 'replace talloc',
- includes = '. ../replace default /usr/include')
+ bld.SAMBA_BINARY('talloc_testsuite',
+ 'testsuite.c testsuite_main.c',
+ 'talloc')