mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3-build: share smbtorture4 build rules with s3-waf build.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Mar 15 16:10:17 CET 2011 on sn-devel-104
This commit is contained in:
parent
a6a722b5ba
commit
c91b897caa
23
source3/Makefile-smbtorture4
Normal file
23
source3/Makefile-smbtorture4
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
WAF_BINARY=buildtools/bin/waf
|
||||||
|
WAF=$(WAF_BINARY)
|
||||||
|
WAF_BUILD=WAF_MAKE=1 $(WAF_BINARY)
|
||||||
|
SAMBA4_BINARIES="smbtorture,ndrdump"
|
||||||
|
|
||||||
|
samba4-configure:
|
||||||
|
@(cd .. && \
|
||||||
|
CFLAGS='' $(WAF) reconfigure || \
|
||||||
|
CFLAGS='' $(WAF) configure --enable-developer --nonshared-binary=$(SAMBA4_BINARIES) --enable-auto-reconfigure )
|
||||||
|
|
||||||
|
.PHONY: samba4-configure
|
||||||
|
|
||||||
|
bin/smbtorture4: $(BINARY_PREREQS) samba4-configure
|
||||||
|
cd .. && $(WAF_BUILD) --targets=smbtorture
|
||||||
|
cp ../bin/smbtorture bin/smbtorture4
|
||||||
|
|
||||||
|
.PHONY: bin/smbtorture4
|
||||||
|
|
||||||
|
bin/ndrdump4: $(BINARY_PREREQS) samba4-configure
|
||||||
|
cd .. && $(WAF_BUILD) --targets=ndrdump
|
||||||
|
cp ../bin/ndrdump bin/ndrdump4
|
||||||
|
|
||||||
|
.PHONY: bin/ndrdump4
|
@ -3481,24 +3481,8 @@ libnetapi_examples: libnetapi
|
|||||||
clean_libnetapi_examples:
|
clean_libnetapi_examples:
|
||||||
$(MAKE) -C lib/netapi/examples clean
|
$(MAKE) -C lib/netapi/examples clean
|
||||||
|
|
||||||
WAF_BINARY=buildtools/bin/waf
|
bin/smbtorture4: $(BINARY_PREREQS)
|
||||||
WAF=$(WAF_BINARY)
|
$(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
|
||||||
WAF_BUILD=WAF_MAKE=1 $(WAF_BINARY)
|
|
||||||
SAMBA4_BINARIES="smbtorture,ndrdump"
|
|
||||||
|
|
||||||
samba4-configure:
|
bin/ndrdump4: $(BINARY_PREREQS)
|
||||||
@(cd .. && \
|
$(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
|
||||||
CFLAGS='' $(WAF) reconfigure || \
|
|
||||||
CFLAGS='' $(WAF) configure --enable-developer --nonshared-binary=$(SAMBA4_BINARIES) --enable-auto-reconfigure )
|
|
||||||
|
|
||||||
.PHONY: samba4-configure
|
|
||||||
|
|
||||||
bin/smbtorture4: $(BINARY_PREREQS) samba4-configure
|
|
||||||
cd .. && $(WAF_BUILD) --targets=smbtorture
|
|
||||||
cp ../bin/smbtorture bin/smbtorture4
|
|
||||||
|
|
||||||
bin/ndrdump4: $(BINARY_PREREQS) samba4-configure
|
|
||||||
cd .. && $(WAF_BUILD) --targets=ndrdump
|
|
||||||
cp ../bin/ndrdump bin/ndrdump4
|
|
||||||
|
|
||||||
.PHONY: bin/smbtorture4
|
|
||||||
|
@ -634,6 +634,12 @@ t = bld.SAMBA_GENERATOR('build_env.h',
|
|||||||
t.env.SRCDIR = bld.path.abspath()
|
t.env.SRCDIR = bld.path.abspath()
|
||||||
t.env.BUILDDIR = bld.path.abspath()
|
t.env.BUILDDIR = bld.path.abspath()
|
||||||
|
|
||||||
|
if not bld.env.toplevel_build:
|
||||||
|
bld.SAMBA_GENERATOR('smbtorture4',
|
||||||
|
source='',
|
||||||
|
target='',
|
||||||
|
rule='cd ../; make -f Makefile-smbtorture4 bin/smbtorture4',
|
||||||
|
always=True)
|
||||||
|
|
||||||
bld.SETUP_BUILD_GROUPS()
|
bld.SETUP_BUILD_GROUPS()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user