From bba114af6e180fb23cba541bd90c0b139cb1f592 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 21 Oct 2011 11:31:57 +0200 Subject: s3-waf: only compile common.c in netapi examples code once. Guenther --- source3/lib/netapi/examples/wscript_build | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source3/lib/netapi/examples/wscript_build') diff --git a/source3/lib/netapi/examples/wscript_build b/source3/lib/netapi/examples/wscript_build index 26f4e769eb..a445467352 100644 --- a/source3/lib/netapi/examples/wscript_build +++ b/source3/lib/netapi/examples/wscript_build @@ -56,9 +56,15 @@ names = [ ("netlogon", "netlogon_control2"), ("netlogon", "nltest")] + +bld.SAMBA_SUBSYSTEM('LIBNETAPI_EXAMPLES_COMMON', + source='common.c', + deps='netapi popt', + vars=locals()) + for pattern in names: (subdir, name) = pattern bld.SAMBA_BINARY('%s/%s' % (subdir, name), - source='%s/%s.c common.c' % (subdir, name), - deps='netapi popt', + source='%s/%s.c' % (subdir, name), + deps='netapi popt LIBNETAPI_EXAMPLES_COMMON', install=False) -- cgit