summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-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)