diff options
author | Günther Deschner <gd@samba.org> | 2011-10-21 11:31:57 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-10-21 11:31:57 +0200 |
commit | bba114af6e180fb23cba541bd90c0b139cb1f592 (patch) | |
tree | 02f7b472df00dfcc564baf889275a02a4eca9d04 /source3/lib/netapi/examples/wscript_build | |
parent | 81435bf26bf1081eeff0f1a06f40478c87e6dcb4 (diff) | |
download | samba-bba114af6e180fb23cba541bd90c0b139cb1f592.tar.gz samba-bba114af6e180fb23cba541bd90c0b139cb1f592.tar.bz2 samba-bba114af6e180fb23cba541bd90c0b139cb1f592.zip |
s3-waf: only compile common.c in netapi examples code once.
Guenther
Diffstat (limited to 'source3/lib/netapi/examples/wscript_build')
-rw-r--r-- | source3/lib/netapi/examples/wscript_build | 10 |
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) |