summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-10-21 11:31:57 +0200
committerGünther Deschner <gd@samba.org>2011-10-21 11:31:57 +0200
commitbba114af6e180fb23cba541bd90c0b139cb1f592 (patch)
tree02f7b472df00dfcc564baf889275a02a4eca9d04
parent81435bf26bf1081eeff0f1a06f40478c87e6dcb4 (diff)
downloadsamba-bba114af6e180fb23cba541bd90c0b139cb1f592.tar.gz
samba-bba114af6e180fb23cba541bd90c0b139cb1f592.tar.bz2
samba-bba114af6e180fb23cba541bd90c0b139cb1f592.zip
s3-waf: only compile common.c in netapi examples code once.
Guenther
-rw-r--r--source3/lib/netapi/examples/wscript_build10
1 files changed, 8 insertions, 2 deletions
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)