ctdb-tests: Add stub for ctdb_client_async_control()
[Samba.git] / source3 / wscript_build
blobdfcdc4a276e8f3f026c91196a82b9bda2c6ec3f8
1 #!/usr/bin/env python
3 from samba_utils import *
4 import samba_version, samba3
6 LIBS='ICONV'
8 config_h = "../include/config.h"
10 bld.SAMBA_BLDOPTIONS('smbd/build_options.c')
12 t = bld.SAMBA_GENERATOR('build_env.h',
13 source='script/build_env.sh',
14 target='include/build_env.h',
15 rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
16 # todo: work out what is really wanted here
17 t.env.SRCDIR = bld.path.abspath()
18 t.env.BUILDDIR = bld.path.abspath()
20 bld.SETUP_BUILD_GROUPS()
22 ######################## SUBSYSTEMS #################################
24 bld.SAMBA3_LIBRARY('netapi',
25 source='''lib/netapi/netapi.c
26 lib/netapi/cm.c
27 lib/netapi/libnetapi.c
28 lib/netapi/joindomain.c
29 lib/netapi/serverinfo.c
30 lib/netapi/wkstainfo.c
31 lib/netapi/getdc.c
32 lib/netapi/user.c
33 lib/netapi/group.c
34 lib/netapi/localgroup.c
35 lib/netapi/samr.c
36 lib/netapi/sid.c
37 lib/netapi/share.c
38 lib/netapi/file.c
39 lib/netapi/shutdown.c
40 lib/netapi/netlogon.c''',
41 public_deps='''
42 talloc
43 util_cmdline
44 msrpc3
45 ads
46 NDR_LIBNETAPI
47 LIBNET
48 RPC_CLIENT_SCHANNEL
49 libcli_netlogon3
50 LIBCLI_SAMR
51 INIT_SAMR
52 auth
53 ''',
54 public_headers='../source3/lib/netapi/netapi.h',
55 pc_files='libnet/netapi.pc',
56 vnum='0')
58 bld.SAMBA3_LIBRARY('gse',
59 source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
60 deps='krb5samba gensec param KRBCLIENT secrets3',
61 private_library=True)
63 bld.SAMBA3_LIBRARY('msrpc3',
64 source='''rpc_client/cli_pipe.c
65 rpc_client/rpc_transport_np.c
66 rpc_client/rpc_transport_sock.c
67 rpc_client/rpc_transport_tstream.c
68 librpc/rpc/dcerpc_helpers.c''',
69 deps='''ndr ndr-standard
70 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
71 LIBTSOCKET gse dcerpc-binding
72 libsmb ndr-table NETLOGON_CREDS_CLI
73 ''',
74 private_library=True)
76 bld.SAMBA3_LIBRARY('gpo',
77 source='''../libgpo/gpo_ldap.c
78 ../libgpo/gpo_ini.c
79 ../libgpo/gpo_util.c
80 ../libgpo/gpo_fetch.c
81 libgpo/gpo_filesync.c
82 ../libgpo/gpo_sec.c
83 libgpo/gpo_reg.c''',
84 deps='talloc ads TOKEN_UTIL gpext auth',
85 private_library=True)
87 bld.SAMBA3_SUBSYSTEM('AVAHI',
88 source='lib/avahi.c smbd/avahi_register.c',
89 deps='avahi-common avahi-client',
90 enabled=bld.env.with_avahi)
92 bld.SAMBA3_SUBSYSTEM('GROUPDB',
93 source='groupdb/mapping.c groupdb/mapping_tdb.c',
94 deps='tdb_compat')
96 bld.SAMBA3_SUBSYSTEM('TLDAP',
97 source='''lib/tldap.c
98 lib/tldap_util.c
99 lib/util_tsock.c''',
100 deps='asn1util LIBTSOCKET')
102 # libpdb.so should not expose internal symbols that are only usable
103 # to the statically linked modules that are merged into libpdb.
104 # Note that we always filter these symbols out in libpdb, even
105 # when modules are not linked statically. In the latter case
106 # symbols will not be present in the libpdb anyway so no hurt is
107 # done to the version script.
108 static_pdb_match = ['tdbsam', 'smbpasswd', 'wbc_sam']
109 private_pdb_match = []
111 # AD DC module when linked statically will pull in few source4/winbind
112 # dependencies which are not used outside AD DC module
113 static_pdb_match.append('samba_dsdb')
114 private_pdb_match.append('!idmap_init')
115 private_pdb_match.append('!idmap_sids_to_xids')
116 private_pdb_match.append('!idmap_xids_to_sids')
118 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
119 static_pdb_match = static_pdb_match + ['ldap', 'ipa', 'nds']
120 ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_domain_info',
121 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
122 '!dominfo_attr_list', '!get_attr_key2string',
123 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
124 '!get_attr_list']
125 private_pdb_match.append('!pdb_nds_*')
126 private_pdb_match.append('!pdb_init_ldapsam')
127 private_pdb_match.append('!pdb_ldapsam_init*')
128 private_pdb_match = private_pdb_match + ldapsam_pdb_match
130 private_pdb_match = private_pdb_match + map(lambda x: '!pdb_%s_init' % x, static_pdb_match)
132 bld.SAMBA3_LIBRARY('samba-passdb',
133 source='',
134 deps='pdb',
135 private_library=False,
136 grouping_library=True,
137 pc_files=[],
138 public_headers_install=True,
139 public_headers='''
140 include/passdb.h
141 passdb/machine_sid.h
142 passdb/lookup_sid.h''',
143 abi_match=private_pdb_match,
144 abi_directory='passdb/ABI',
145 vnum='0.24.1')
147 bld.SAMBA3_SUBSYSTEM('pdb',
148 source='''passdb/pdb_get_set.c
149 passdb/passdb.c
150 lib/util_wellknown.c
151 lib/util_builtin.c
152 passdb/pdb_compat.c
153 lib/util_sid_passdb.c
154 lib/util_unixsids.c
155 passdb/lookup_sid.c
156 passdb/login_cache.c
157 passdb/account_pol.c
158 lib/privileges.c
159 lib/util_nscd.c
160 lib/winbind_util.c
161 passdb/pdb_util.c
162 passdb/pdb_interface.c
163 passdb/pdb_secrets.c
164 passdb/pdb_unixid.c''',
165 deps='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping samba-credentials')
167 bld.SAMBA3_LIBRARY('smbldaphelper',
168 source='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
169 deps='smbldap secrets3',
170 allow_undefined_symbols=True,
171 enabled=bld.CONFIG_SET('HAVE_LDAP'),
172 private_library=True)
174 bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
175 source='lib/server_mutex.c',
176 deps='talloc')
178 bld.SAMBA3_SUBSYSTEM('param',
179 source='''param/loadparm.c
180 lib/sharesec.c
181 lib/ldap_debug_handler.c
182 lib/util_names.c''',
183 deps='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local.h param_global.h cups''')
185 # this includes only the low level parse code, not stuff
186 # that requires knowledge of security contexts
187 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS',
188 source='registry/reg_parse_prs.c')
190 bld.SAMBA3_SUBSYSTEM('REGFIO',
191 source='registry/regfio.c',
192 deps='samba-util REG_PARSE_PRS')
194 bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
195 source='registry/reg_api_regf.c',
196 deps='samba-util')
198 bld.SAMBA3_LIBRARY('smbregistry',
199 source='''registry/reg_api.c
200 registry/reg_dispatcher.c
201 registry/reg_cachehook.c
202 registry/reg_objects.c
203 registry/reg_util_internal.c
204 lib/util_nttoken.c
205 registry/reg_backend_db.c
206 registry/reg_parse_internal.c
207 lib/cbuf.c
208 lib/srprs.c
209 registry/reg_init_basic.c''',
210 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
211 replace util_reg samba-util samba-security
212 errors3 dbwrap samba3-util''',
213 allow_undefined_symbols=True,
214 private_library=True)
216 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
217 source='''registry/reg_backend_smbconf.c
218 registry/reg_init_smbconf.c
219 registry/reg_util_token.c
220 registry/reg_api_util.c''',
221 deps='smbregistry')
223 bld.SAMBA3_SUBSYSTEM('REG_FULL',
224 source='''registry/reg_backend_printing.c
225 registry/reg_backend_shares.c
226 registry/reg_backend_netlogon_params.c
227 registry/reg_backend_prod_options.c
228 registry/reg_backend_tcpip_params.c
229 registry/reg_backend_hkpt_params.c
230 registry/reg_backend_current_version.c
231 registry/reg_backend_perflib.c
232 registry/reg_init_full.c
233 registry/reg_perfcount.c''',
234 deps='REG_SMBCONF tdb-wrap3')
236 bld.SAMBA3_LIBRARY('popt_samba3',
237 source='lib/popt_common.c',
238 deps='popt samba-util util_cmdline',
239 private_library=True)
241 bld.SAMBA3_LIBRARY('util_cmdline',
242 source='lib/util_cmdline.c',
243 deps='secrets3',
244 private_library=True)
246 bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
247 source='libads/kerberos.c libads/ads_status.c',
248 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
250 bld.SAMBA3_LIBRARY('sys_rw',
251 source='lib/sys_rw.c lib/sys_rw_data.c',
252 deps='replace iov_buf',
253 private_library=True)
255 bld.SAMBA3_SUBSYSTEM('samba3util',
256 source='''lib/system.c
257 lib/sendfile.c
258 lib/recvfile.c
259 lib/time.c
260 lib/util_sid.c
261 lib/util_file.c
262 lib/util.c
263 lib/util_sock.c
264 lib/util_transfer_file.c
265 lib/sock_exec.c''',
266 deps='ndr samba-security NDR_SECURITY samba-util util_tdb ccan-hash sys_rw iov_buf')
268 if bld.CONFIG_GET("CTDB_CFLAGS") and bld.CONFIG_GET("CTDB_INCLUDE"):
269 SAMBA_CLUSTER_SUPPORT_SOURCES='''
270 lib/cluster_support.c
271 lib/dbwrap/dbwrap_ctdb.c
272 lib/messages_ctdbd.c
273 lib/ctdbd_conn.c
274 lib/ctdb_conn.c
275 torture/test_ctdbconn.c
277 SAMBA_CLUSTER_SUPPORT_DEPS='''
278 talloc
279 tevent
282 else:
283 SAMBA_CLUSTER_SUPPORT_SOURCES='''
284 lib/cluster_support.c
285 lib/ctdb_dummy.c
287 SAMBA_CLUSTER_SUPPORT_DEPS='''
288 talloc
289 tevent
292 bld.SAMBA3_LIBRARY('samba-cluster-support',
293 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
294 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
295 cflags=bld.CONFIG_GET("CTDB_CFLAGS"),
296 includes=bld.CONFIG_GET("CTDB_INCLUDE"),
297 allow_undefined_symbols=True,
298 private_library=True)
300 bld.SAMBA3_SUBSYSTEM('TDB_LIB',
301 source='''lib/dbwrap/dbwrap_open.c
302 lib/dbwrap/dbwrap_watch.c
303 lib/g_lock.c''',
304 deps='dbwrap samba-cluster-support')
306 bld.SAMBA3_LIBRARY('messages_dgm',
307 source='''lib/messages_dgm.c lib/messages_dgm_ref.c''',
308 deps='talloc UNIX_MSG POLL_FUNCS_TEVENT samba-debug',
309 private_library=True)
311 bld.SAMBA3_LIBRARY('messages_util',
312 source='''lib/messages_util.c''',
313 deps='samba-util',
314 private_library=True)
316 bld.SAMBA3_SUBSYSTEM('samba3core',
317 source='''lib/messages.c
318 lib/util_cluster.c
319 lib/id_cache.c
320 lib/talloc_dict.c
321 lib/serverid.c
322 lib/addrchange.c
323 ../lib/util/debug_s3.c
324 lib/dumpcore.c
325 lib/interface.c
326 lib/username.c
327 lib/access.c lib/smbrun.c
328 lib/wins_srv.c
329 lib/substitute.c
330 lib/substitute_generic.c
331 lib/ms_fnmatch.c
332 lib/tallocmsg.c
333 lib/dmallocmsg.c
334 intl/lang_tdb.c
335 lib/gencache.c
336 lib/events.c
337 lib/server_contexts.c
338 lib/server_prefork.c
339 lib/server_prefork_util.c
340 lib/ldap_escape.c
341 lib/fncall.c
342 libads/krb5_errs.c
343 lib/system_smbd.c
344 lib/audit.c
345 lib/tevent_wait.c
346 lib/idmap_cache.c
347 lib/util_ea.c
348 lib/background.c''',
349 deps='''
350 samba3util
351 LIBTSOCKET
352 NDR_MESSAGING
353 LIBASYNC_REQ
354 UTIL_PW
355 SAMBA_VERSION
356 PTHREADPOOL
357 UNIX_MSG
358 POLL_FUNCS_TEVENT
359 interfaces
360 param
361 dbwrap
362 samba3-util
363 errors3
364 server_id_db
365 messages_util
366 messages_dgm
367 talloc_report
368 TDB_LIB''')
370 bld.SAMBA3_LIBRARY('smbd_shim',
371 source='''lib/smbd_shim.c''',
372 deps='talloc',
373 private_library=True)
375 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
376 source='''libsmb/ntlmssp.c
377 libsmb/ntlmssp_wrap.c''',
378 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient')
380 bld.SAMBA3_SUBSYSTEM('auth_generic',
381 source='libsmb/auth_generic.c',
382 deps='LIBNTLMSSP gse gensec')
384 bld.SAMBA3_LIBRARY('libsmb',
385 source='''libsmb/clientgen.c
386 libsmb/cliconnect.c
387 libsmb/clifile.c
388 libsmb/clispnego.c
389 libsmb/clirap.c
390 libsmb/clierror.c
391 libsmb/climessage.c
392 libsmb/clireadwrite.c
393 libsmb/clilist.c
394 libsmb/cliprint.c
395 libsmb/clitrans.c
396 libsmb/clisecdesc.c
397 libsmb/clidgram.c
398 libsmb/clistr.c
399 libsmb/cliquota.c
400 libsmb/clifsinfo.c
401 libsmb/clidfs.c
402 libsmb/clioplock.c
403 libsmb/clirap2.c
404 libsmb/async_smb.c
405 libsmb/reparse_symlink.c
406 libsmb/clisymlink.c
407 libsmb/smbsock_connect.c
408 libsmb/cli_smb2_fnum.c''',
409 deps='''
410 LIBNTLMSSP
411 auth_generic
412 CLDAP
413 LIBNMB
414 SPNEGO_PARSE
415 LIBTSOCKET
416 KRBCLIENT
417 cli_smb_common
418 util_cmdline
419 tevent''',
420 private_library=True)
422 bld.SAMBA3_SUBSYSTEM('CLDAP',
423 source='libads/cldap.c',
424 deps='cli-ldap-common cli_cldap LIBTSOCKET')
426 # NOTE: The secrets3 library is a low level library used by several subsystems.
427 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
428 # doing that your design is wrong and needs changing. -SSS
429 bld.SAMBA3_LIBRARY('secrets3',
430 source='''passdb/secrets.c
431 passdb/machine_account_secrets.c
432 passdb/machine_sid.c
433 passdb/secrets_lsa.c''',
434 deps='NDR_SECRETS param samba3util dbwrap',
435 private_library=True)
437 bld.SAMBA3_LIBRARY('smbldap',
438 source='lib/smbldap.c',
439 deps='ldap lber samba-util param',
440 enabled=bld.CONFIG_SET("HAVE_LDAP"),
441 private_library=False,
442 abi_directory='lib/ABI',
443 abi_match='smbldap_*',
444 pc_files=[],
445 vnum='0',
446 public_headers='include/smbldap.h include/smb_ldap.h')
448 bld.SAMBA3_LIBRARY('ads',
449 source='''libads/ldap.c
450 libads/sasl.c
451 libads/sasl_wrapping.c
452 libads/krb5_setpw.c
453 libads/kerberos_util.c
454 libads/ldap_user.c
455 libads/ads_struct.c
456 libads/kerberos_keytab.c
457 libads/disp_sec.c
458 libads/ldap_utils.c
459 libads/ldap_schema.c
460 libads/util.c
461 libads/ndr.c''',
462 deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
463 private_library=True)
465 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
466 source='libads/authdata.c',
467 deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
469 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
470 source='libads/ldap_printer.c',
471 deps='samba-util krb5samba')
473 bld.SAMBA3_LIBRARY('smbconf',
474 source='''lib/smbconf/smbconf_init.c
475 lib/smbconf/smbconf_reg.c''',
476 deps='''
477 CHARSET3
478 LIBSMBCONF
479 REG_SMBCONF
480 SAMBA_VERSION
482 charset
483 cli_smb_common
484 errors3
485 param
486 samba-util
487 smbregistry
488 talloc
489 util_reg''',
490 public_headers='../lib/smbconf/smbconf.h',
491 pc_files=[],
492 vnum='0')
494 bld.SAMBA3_LIBRARY('smbd_conn',
495 source='smbd/conn.c',
496 deps='samba3-util samba-util',
497 private_library=True)
499 bld.SAMBA3_SUBSYSTEM('sysquotas',
500 source='''
501 lib/sysquotas.c
502 lib/sysquotas_linux.c
503 lib/sysquotas_xfs.c
504 lib/sysquotas_4A.c
505 lib/sysquotas_4B.c
506 lib/sysquotas_nfs.c
507 ''',
508 allow_warnings=True,
509 deps='samba3-util samba-util')
511 NOTIFY_SOURCES=''
513 if bld.CONFIG_SET("HAVE_INOTIFY"):
514 NOTIFY_SOURCES += ' smbd/notify_inotify.c'
516 bld.SAMBA3_LIBRARY('smbd_base',
517 source='''
518 smbd/server_reload.c
519 smbd/files.c
520 smbd/connection.c
521 smbd/utmp.c
522 smbd/session.c
523 smbd/dfree.c
524 smbd/dir.c
525 smbd/password.c
526 smbd/conn_msg.c
527 smbd/conn_idle.c
528 smbd/share_access.c
529 smbd/fileio.c
530 smbd/ipc.c
531 smbd/lanman.c
532 smbd/negprot.c
533 smbd/message.c
534 smbd/nttrans.c
535 smbd/pipes.c
536 smbd/reply.c
537 smbd/sesssetup.c
538 smbd/trans2.c
539 smbd/uid.c
540 smbd/dosmode.c
541 smbd/filename.c
542 smbd/open.c
543 smbd/close.c
544 smbd/blocking.c
545 smbd/sec_ctx.c
546 smbd/srvstr.c
547 smbd/vfs.c
548 smbd/perfcount.c
549 smbd/statcache.c
550 smbd/seal.c
551 smbd/posix_acls.c
552 lib/sysacls.c
553 smbd/process.c
554 smbd/service.c
555 smbd/error.c
556 printing/printspoolss.c
557 printing/spoolssd.c
558 lib/sessionid_tdb.c
559 lib/conn_tdb.c
560 smbd/fake_file.c
561 smbd/quotas.c
562 smbd/ntquotas.c
563 smbd/msdfs.c
564 smbd/aio.c smbd/statvfs.c
565 smbd/dmapi.c
566 smbd/signing.c
567 smbd/file_access.c
568 smbd/dnsregister.c smbd/globals.c
569 smbd/smb2_server.c
570 smbd/smb2_glue.c
571 smbd/smb2_negprot.c
572 smbd/smb2_sesssetup.c
573 smbd/smb2_tcon.c
574 smbd/smb2_create.c
575 smbd/smb2_close.c
576 smbd/smb2_flush.c
577 smbd/smb2_read.c
578 smbd/smb2_write.c
579 smbd/smb2_lock.c
580 smbd/smb2_ioctl.c
581 smbd/smb2_ioctl_dfs.c
582 smbd/smb2_ioctl_filesys.c
583 smbd/smb2_ioctl_named_pipe.c
584 smbd/smb2_ioctl_network_fs.c
585 smbd/smb2_keepalive.c
586 smbd/smb2_find.c
587 smbd/smb2_notify.c
588 smbd/smb2_getinfo.c
589 smbd/smb2_setinfo.c
590 smbd/smb2_break.c
591 smbd/smbXsrv_version.c
592 smbd/smbXsrv_session.c
593 smbd/smbXsrv_tcon.c
594 smbd/smbXsrv_open.c
595 smbd/server_exit.c
596 smbd/durable.c
597 smbd/scavenger.c
598 smbd/mangle.c
599 smbd/mangle_hash.c
600 smbd/mangle_hash2.c
601 smbd/oplock.c
602 smbd/oplock_irix.c
603 smbd/oplock_linux.c
604 smbd/notify.c
605 smbd/notify_internal.c
606 smbd/build_options.c''' + NOTIFY_SOURCES,
607 deps='''
608 talloc
609 tevent
611 libsmb
612 msrpc3
614 vfs_default
615 vfs_posixacl
616 inotify
617 popt_samba3
618 samba3core
619 smbd_conn
620 param_service
621 AVAHI
622 PRINTBASE
623 PROFILE
624 LOCKING
625 LIBADS_SERVER
626 LIBAFS
627 RPC_SERVICE
628 NDR_SMBXSRV
629 LEASES_DB
630 LIBASYS
631 sysquotas
632 ccan-hash
633 NDR_SMB_ACL
634 netapi
635 NDR_IOCTL
636 ''' + bld.env['dmapi_lib'],
637 private_library=True)
639 bld.SAMBA3_SUBSYSTEM('LOCKING',
640 source='''locking/locking.c
641 locking/brlock.c
642 locking/posix.c
643 locking/share_mode_lock.c''',
644 deps='''
645 tdb_compat
646 talloc
647 LEASES_DB
648 NDR_OPEN_FILES
649 FNAME_UTIL''')
651 bld.SAMBA3_SUBSYSTEM('LEASES_DB',
652 source='locking/leases_db.c',
653 deps='NDR_LEASES_DB')
655 if bld.CONFIG_GET("WITH_PROFILE"):
656 bld.SAMBA3_SUBSYSTEM('PROFILE',
657 source='profile/profile.c',
658 deps='samba-util')
659 else:
660 bld.SAMBA3_SUBSYSTEM('PROFILE',
661 source='profile/profile_dummy.c',
662 deps='')
664 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
665 source='''printing/notify.c printing/printing_db.c''',
666 deps='samba-util tdb_compat')
668 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
669 source='''printing/printing.c
670 printing/nt_printing.c
671 printing/nt_printing_tdb.c
672 printing/nt_printing_migrate_internal.c
673 printing/nt_printing_ads.c
674 printing/queue_process.c''',
675 deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate')
677 bld.SAMBA3_LIBRARY('printing_migrate',
678 source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
679 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
680 private_library=True)
682 bld.SAMBA3_SUBSYSTEM('PRINTING',
683 source='''printing/pcap.c
684 printing/print_svid.c
685 printing/print_aix.c
686 printing/print_cups.c
687 printing/print_generic.c
688 printing/lpq_parse.c
689 printing/load.c
690 printing/print_standard.c
691 printing/print_iprint.c
692 printing/printer_list.c''',
693 deps='NDR_PRINTCAP tdb_compat cups')
695 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
696 source='utils/passwd_util.c',
697 deps='samba-util')
699 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
700 source='lib/filename_util.c',
701 deps='samba-util')
703 bld.SAMBA3_SUBSYSTEM('LIBNET',
704 source='libnet/libnet_join.c',
705 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
707 bld.SAMBA3_LIBRARY('net_keytab',
708 source='libnet/libnet_keytab.c',
709 deps='krb5samba ads',
710 private_library=True)
713 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
714 source='''libnet/libnet_dssync.c
715 libnet/libnet_dssync_passdb.c
716 libnet/libnet_dssync_keytab.c''',
717 allow_warnings=True,
718 deps='LIBNET RPC_NDR_DRSUAPI')
720 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
721 source='''libnet/libnet_samsync.c
722 libnet/libnet_samsync_ldif.c
723 libnet/libnet_samsync_passdb.c
724 libnet/libnet_samsync_display.c
725 libnet/libnet_samsync_keytab.c''',
726 deps='LIBNET LIBCLI_SAMSYNC')
728 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
729 source='lib/eventlog/eventlog.c',
730 deps='NDR_EVENTLOG tdb_compat')
732 bld.SAMBA3_SUBSYSTEM('LIBNMB',
733 source='''libsmb/unexpected.c
734 libsmb/namecache.c
735 libsmb/nmblib.c
736 libsmb/namequery.c
737 libsmb/conncache.c
738 libads/sitename_cache.c''',
739 deps='addns lmhosts resolv')
741 bld.SAMBA3_SUBSYSTEM('SERVICES',
742 source='''services/svc_spoolss.c
743 services/svc_rcinit.c
744 services/svc_winreg_glue.c
745 services/svc_netlogon.c
746 services/svc_winreg.c
747 services/svc_wins.c''',
748 deps='samba-util')
750 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
751 source='''auth/pampass.c auth/pass_check.c''',
752 deps='pam PAM_ERRORS')
754 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
755 source='libsmb/passchange.c',
756 deps='''LIBCLI_SAMR
757 INIT_LSA
758 msrpc3
759 krb5samba''')
761 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
762 source='lib/version.c',
763 deps='samba-util')
765 bld.SAMBA3_SUBSYSTEM('SLCACHE',
766 source='libsmb/samlogon_cache.c',
767 deps='samba-util tdb_compat')
769 bld.SAMBA3_SUBSYSTEM('DCUTIL',
770 source='''libsmb/namequery_dc.c
771 libsmb/trustdom_cache.c
772 libsmb/dsgetdcname.c''',
773 deps='ads msrpc3 libcli_lsa3')
775 bld.SAMBA3_LIBRARY('trusts_util',
776 source='libsmb/trusts_util.c',
777 deps='libcli_netlogon3 msrpc3 samba-passdb',
778 private_library=True)
780 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
781 source='lib/util_tdb.c',
782 deps='talloc samba3-util')
784 bld.SAMBA3_LIBRARY('msghdr',
785 source='lib/msghdr.c',
786 deps='replace iov_buf',
787 private_library=True)
789 bld.SAMBA3_LIBRARY('samba3-util',
790 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
791 deps='samba-util charset',
792 private_library=True)
794 bld.SAMBA_LIBRARY('xattr_tdb',
795 source='lib/xattr_tdb.c',
796 deps='NDR_XATTR dbwrap samba3-util',
797 private_library=True)
799 bld.SAMBA3_LIBRARY('CHARSET3',
800 source='''lib/charcnv.c lib/fstring.c''',
801 public_deps='ICONV_WRAPPER charset',
802 deps='samba-util samba3-util',
803 private_library=True)
805 bld.SAMBA3_SUBSYSTEM('errors3',
806 source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
807 deps='errors')
809 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
810 source='rpc_client/cli_samr.c',
811 deps='RPC_NDR_SAMR')
813 bld.SAMBA3_LIBRARY('libcli_lsa3',
814 source='rpc_client/cli_lsarpc.c',
815 deps='RPC_NDR_LSA INIT_LSA',
816 private_library=True)
818 bld.SAMBA3_LIBRARY('libcli_netlogon3',
819 source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
820 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI',
821 private_library=True)
823 bld.SAMBA3_LIBRARY('cli_spoolss',
824 source='''rpc_client/cli_spoolss.c
825 rpc_client/init_spoolss.c''',
826 deps='RPC_NDR_SPOOLSS param secrets3',
827 private_library=True)
829 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
830 source='rpc_client/cli_winreg.c',
831 deps='RPC_NDR_WINREG')
833 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
834 source='rpc_client/cli_winreg_int.c',
835 deps='LIBCLI_WINREG RPC_SERVER')
837 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
838 source='rpc_client/cli_pipe_schannel.c',
839 deps='samba-util krb5samba')
841 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
842 source='rpc_client/init_lsa.c',
843 deps='samba-util')
845 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
846 source='rpc_client/init_netlogon.c',
847 deps='samba-util')
849 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
850 source='rpc_client/init_samr.c',
851 deps='samba-util')
853 bld.SAMBA3_SUBSYSTEM('LIBLSA',
854 source='lib/lsa.c')
856 ########################## BINARIES #################################
858 bld.SAMBA3_BINARY('smbd/smbd',
859 source='smbd/server.c',
860 deps='smbd_base EPMD LSASD',
861 install_path='${SBINDIR}')
863 bld.SAMBA3_BINARY('nmbd/nmbd',
864 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
865 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
866 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
867 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
868 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
869 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
870 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
871 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
872 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
873 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
874 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
875 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
876 deps='''
877 talloc
878 tevent
879 param
880 libsmb
881 popt_samba3
882 ''',
883 install_path='${SBINDIR}')
886 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
887 source='lib/tdb_validate.c',
888 deps='samba-util')
891 bld.SAMBA3_BINARY('winbindd/winbindd',
892 source='''winbindd/winbindd.c
893 winbindd/winbindd_group.c
894 winbindd/winbindd_util.c
895 winbindd/winbindd_cache.c
896 winbindd/winbindd_pam.c
897 winbindd/winbindd_misc.c
898 winbindd/winbindd_cm.c
899 winbindd/winbindd_wins_byip.c
900 winbindd/winbindd_wins_byname.c
901 winbindd/winbindd_msrpc.c
902 winbindd/winbindd_rpc.c
903 winbindd/winbindd_reconnect.c
904 winbindd/winbindd_ads.c
905 winbindd/winbindd_samr.c
906 winbindd/winbindd_dual.c
907 winbindd/winbindd_dual_ndr.c
908 winbindd/winbindd_dual_srv.c
909 winbindd/winbindd_async.c
910 winbindd/winbindd_creds.c
911 winbindd/winbindd_cred_cache.c
912 winbindd/winbindd_ccache_access.c
913 winbindd/winbindd_domain.c
914 winbindd/winbindd_idmap.c
915 winbindd/winbindd_locator.c
916 winbindd/winbindd_ndr.c
917 winbindd/wb_ping.c
918 winbindd/wb_lookupsid.c
919 winbindd/wb_lookupsids.c
920 winbindd/wb_lookupname.c
921 winbindd/wb_uid2sid.c
922 winbindd/wb_gid2sid.c
923 winbindd/wb_sids2xids.c
924 winbindd/wb_queryuser.c
925 winbindd/wb_lookupuseraliases.c
926 winbindd/wb_lookupusergroups.c
927 winbindd/wb_getpwsid.c
928 winbindd/wb_gettoken.c
929 winbindd/wb_seqnum.c
930 winbindd/wb_seqnums.c
931 winbindd/wb_group_members.c
932 winbindd/wb_getgrsid.c
933 winbindd/wb_query_user_list.c
934 winbindd/wb_fill_pwent.c
935 winbindd/wb_next_pwent.c
936 winbindd/wb_next_grent.c
937 winbindd/wb_dsgetdcname.c
938 winbindd/winbindd_lookupsid.c
939 winbindd/winbindd_lookupsids.c
940 winbindd/winbindd_lookupname.c
941 winbindd/winbindd_sid_to_uid.c
942 winbindd/winbindd_sid_to_gid.c
943 winbindd/winbindd_uid_to_sid.c
944 winbindd/winbindd_gid_to_sid.c
945 winbindd/winbindd_sids_to_xids.c
946 winbindd/winbindd_allocate_uid.c
947 winbindd/winbindd_allocate_gid.c
948 winbindd/winbindd_getpwsid.c
949 winbindd/winbindd_getpwnam.c
950 winbindd/winbindd_getpwuid.c
951 winbindd/winbindd_getsidaliases.c
952 winbindd/winbindd_getuserdomgroups.c
953 winbindd/winbindd_getgroups.c
954 winbindd/winbindd_show_sequence.c
955 winbindd/winbindd_getgrgid.c
956 winbindd/winbindd_getgrnam.c
957 winbindd/winbindd_getusersids.c
958 winbindd/winbindd_lookuprids.c
959 winbindd/winbindd_setpwent.c
960 winbindd/winbindd_getpwent.c
961 winbindd/winbindd_endpwent.c
962 winbindd/winbindd_setgrent.c
963 winbindd/winbindd_getgrent.c
964 winbindd/winbindd_endgrent.c
965 winbindd/winbindd_dsgetdcname.c
966 winbindd/winbindd_getdcname.c
967 winbindd/winbindd_list_users.c
968 winbindd/winbindd_list_groups.c
969 winbindd/winbindd_check_machine_acct.c
970 winbindd/winbindd_change_machine_acct.c
971 winbindd/winbindd_irpc.c
972 winbindd/winbindd_ping_dc.c
973 winbindd/winbindd_pam_auth.c
974 winbindd/winbindd_pam_logoff.c
975 winbindd/winbindd_pam_chauthtok.c
976 winbindd/winbindd_pam_auth_crap.c
977 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
978 deps='''
979 talloc
980 tevent
982 popt_samba3
983 idmap
985 msrpc3
986 nss_info
987 LIBAFS
988 LIBADS_SERVER
989 LIBCLI_SAMR
990 SLCACHE
991 RPC_NDR_DSSETUP
992 RPC_NDR_WINBIND
993 SRV_NDR_WINBIND
994 RPC_SAMR
995 RPC_LSARPC
996 RPC_SERVER
997 WB_REQTRANS
998 TDB_VALIDATE
999 MESSAGING
1000 LIBLSA
1001 ''',
1002 enabled=bld.env.build_winbind,
1003 install_path='${SBINDIR}')
1005 bld.SAMBA3_BINARY('rpcclient/rpcclient',
1006 source='''rpcclient/rpcclient.c
1007 rpcclient/cmd_lsarpc.c
1008 rpcclient/cmd_samr.c
1009 rpcclient/cmd_spoolss.c
1010 rpcclient/cmd_netlogon.c
1011 rpcclient/cmd_srvsvc.c
1012 rpcclient/cmd_dfs.c
1013 rpcclient/cmd_epmapper.c
1014 rpcclient/cmd_dssetup.c
1015 rpcclient/cmd_echo.c
1016 rpcclient/cmd_shutdown.c
1017 rpcclient/cmd_test.c
1018 rpcclient/cmd_wkssvc.c
1019 rpcclient/cmd_ntsvcs.c
1020 rpcclient/cmd_drsuapi.c
1021 rpcclient/cmd_eventlog.c
1022 rpcclient/cmd_winreg.c
1023 rpcclient/cmd_fss.c
1024 rpcclient/cmd_witness.c
1025 rpcclient/cmd_clusapi.c''',
1026 deps='''
1027 talloc
1028 popt_samba3
1030 libsmb
1031 param
1032 ndr-standard
1033 msrpc3
1034 SMBREADLINE
1035 trusts_util
1036 RPC_NDR_WINREG
1037 RPC_NDR_ECHO
1038 RPC_CLIENT_SCHANNEL
1039 DCUTIL
1040 LIBCLI_SAMR
1041 libcli_lsa3
1042 libcli_netlogon3
1043 cli_spoolss
1044 RPC_NDR_SRVSVC
1045 RPC_NDR_WKSSVC
1046 RPC_NDR_DSSETUP
1047 RPC_NDR_DFS
1048 RPC_NDR_DRSUAPI
1049 RPC_NDR_NTSVCS
1050 RPC_NDR_EVENTLOG
1051 INIT_SAMR
1052 RPC_NDR_FSRVP
1053 RPC_NDR_WITNESS
1054 RPC_NDR_CLUSAPI
1055 ''')
1057 bld.SAMBA3_BINARY('client/smbclient',
1058 source='''client/client.c
1059 client/clitar.c
1060 client/dnsbrowse.c''',
1061 deps='''
1062 talloc
1063 popt_samba3
1064 param
1065 ndr-standard
1066 SMBREADLINE
1067 libsmb
1068 msrpc3
1069 RPC_NDR_SRVSVC
1070 cli_smb_common
1071 ''' + bld.env['archive_lib'])
1073 bld.SAMBA3_BINARY('net',
1074 source='''utils/net.c
1075 utils/net_ads.c
1076 utils/net_help.c
1077 utils/net_rap.c
1078 utils/net_rpc.c
1079 utils/net_rpc_samsync.c
1080 utils/net_time.c
1081 utils/net_lookup.c
1082 utils/net_cache.c
1083 utils/net_groupmap.c
1084 utils/net_idmap.c
1085 utils/net_idmap_check.c
1086 utils/interact.c
1087 utils/net_status.c
1088 utils/net_rpc_printer.c
1089 utils/net_rpc_rights.c
1090 utils/net_rpc_service.c
1091 utils/net_rpc_registry.c
1092 utils/net_usershare.c
1093 utils/netlookup.c
1094 utils/net_sam.c
1095 utils/net_rpc_shell.c
1096 utils/net_util.c
1097 utils/net_rpc_sh_acct.c
1098 utils/net_rpc_audit.c
1099 utils/net_dns.c
1100 utils/net_ads_gpo.c
1101 utils/net_conf.c
1102 utils/net_conf_util.c
1103 utils/net_join.c
1104 utils/net_user.c
1105 utils/net_group.c
1106 utils/net_file.c
1107 utils/net_registry.c
1108 utils/net_registry_check.c
1109 utils/net_dom.c
1110 utils/net_share.c
1111 utils/net_g_lock.c
1112 utils/net_serverid.c
1113 utils/net_eventlog.c
1114 utils/net_printing.c
1115 utils/net_rpc_trust.c
1116 utils/net_rpc_conf.c
1117 utils/net_afs.c
1118 registry/reg_parse.c
1119 registry/reg_format.c
1120 registry/reg_import.c
1121 utils/net_registry_util.c
1122 utils/net_help_common.c''',
1123 deps='''
1124 talloc
1125 netapi
1126 addns
1127 samba_intl
1128 popt_samba3
1130 libsmb
1131 param
1132 KRBCLIENT
1133 ndr-standard
1134 msrpc3
1137 smbd_base
1138 LIBADS_SERVER
1139 LIBADS_PRINTER
1140 SMBREADLINE
1141 PASSWD_UTIL
1142 LIBNET
1143 LIBNET_DSSYNC
1144 LIBNET_SAMSYNC
1145 LIBEVENTLOG
1146 REGFIO
1147 NDR_NTPRINTING
1148 RPC_NDR_WINREG
1149 RPC_CLIENT_SCHANNEL
1150 LIBCLI_SAMR
1151 libcli_lsa3
1152 libcli_netlogon3
1153 cli_spoolss
1154 RPC_NDR_SRVSVC
1155 RPC_NDR_SVCCTL
1156 RPC_NDR_DSSETUP
1157 RPC_NDR_INITSHUTDOWN
1158 printing_migrate
1159 trusts_util
1160 IDMAP_AUTORID_TDB''')
1162 bld.SAMBA3_BINARY('profiles',
1163 source='utils/profiles.c',
1164 deps='''
1165 talloc
1166 popt_samba3
1167 param
1168 REGFIO''')
1170 bld.SAMBA3_BINARY('smbspool',
1171 source='client/smbspool.c',
1172 deps='''
1173 talloc
1174 popt_samba3
1175 param
1176 libsmb
1177 samba3core''')
1179 bld.SAMBA3_BINARY('testparm',
1180 source='utils/testparm.c',
1181 deps='''
1182 talloc
1183 param
1184 popt_samba3''')
1186 bld.SAMBA3_BINARY('smbta-util',
1187 source='utils/smbta-util.c',
1188 deps='''
1189 talloc
1190 secrets3
1191 param''')
1193 smbstatus_source = 'utils/status.c smbd/notify_internal.c'
1195 if bld.CONFIG_GET("WITH_PROFILE"):
1196 smbstatus_source += ' utils/status_profile.c'
1197 else:
1198 smbstatus_source += ' utils/status_profile_dummy.c'
1200 bld.SAMBA3_BINARY('smbstatus',
1201 source=smbstatus_source,
1202 deps='''
1203 talloc
1204 param
1205 popt_samba3
1206 smbd_base
1207 LOCKING
1208 PROFILE''')
1210 bld.SAMBA3_BINARY('smbcontrol',
1211 source='utils/smbcontrol.c',
1212 deps='''
1213 talloc
1214 param
1215 popt_samba3
1216 PRINTBASE''')
1218 bld.SAMBA3_BINARY('smbtree',
1219 source='utils/smbtree.c',
1220 deps='''
1221 talloc
1222 param
1223 libsmb
1224 msrpc3
1225 popt_samba3
1226 RPC_NDR_SRVSVC''')
1228 bld.SAMBA3_BINARY('smbpasswd',
1229 source='utils/smbpasswd.c',
1230 deps='''
1231 talloc
1232 param
1234 PASSWD_UTIL
1235 PASSCHANGE''')
1237 bld.SAMBA3_BINARY('pdbedit',
1238 source='utils/pdbedit.c',
1239 deps='''
1240 talloc
1241 param
1242 popt_samba3
1244 PASSWD_UTIL''')
1246 bld.SAMBA3_BINARY('smbget',
1247 source='utils/smbget.c',
1248 deps='''
1249 talloc
1250 popt_samba3
1251 smbclient''')
1253 bld.SAMBA3_BINARY('nmblookup',
1254 source='utils/nmblookup.c',
1255 deps='''
1256 talloc
1257 param
1258 popt_samba3
1259 LIBNMB''')
1261 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1262 source='''torture/torture.c
1263 torture/nbio.c
1264 torture/scanner.c
1265 torture/utable.c
1266 torture/denytest.c
1267 torture/mangle_test.c
1268 torture/nbench.c
1269 torture/test_async_echo.c
1270 torture/test_addrchange.c
1271 torture/test_posix_append.c
1272 torture/test_nttrans_create.c
1273 torture/test_nttrans_fsctl.c
1274 torture/test_case_insensitive.c
1275 torture/test_notify_online.c
1276 torture/test_chain3.c
1277 torture/test_smb2.c
1278 torture/test_authinfo_structs.c
1279 torture/test_smbsock_any_connect.c
1280 torture/test_cleanup.c
1281 torture/test_notify.c
1282 lib/tevent_barrier.c
1283 torture/test_dbwrap_watch.c
1284 torture/test_idmap_tdb_common.c
1285 torture/test_dbwrap_ctdb.c
1286 torture/test_buffersize.c
1287 torture/test_messaging_read.c
1288 torture/test_messaging_fd_passing.c
1289 torture/test_oplock_cancel.c
1290 torture/t_strappend.c
1291 torture/bench_pthreadpool.c
1292 torture/wbc_async.c''',
1293 deps='''
1294 talloc
1295 param
1296 libsmb
1297 msrpc3
1298 TLDAP
1299 RPC_NDR_ECHO
1300 WB_REQTRANS
1301 LOCKING
1302 NDR_OPEN_FILES
1303 idmap
1304 samba-cluster-support
1305 ''',
1306 cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1307 install=False)
1309 bld.SAMBA3_BINARY('smbconftort',
1310 source='lib/smbconf/testsuite.c',
1311 deps='''
1312 talloc
1313 param
1314 popt_samba3''',
1315 install=False)
1317 bld.SAMBA3_BINARY('replacetort',
1318 source='../lib/replace/test/main.c',
1319 deps='replace replace-test',
1320 install=False)
1322 bld.SAMBA3_BINARY('msgtest',
1323 source='torture/msgtest.c',
1324 deps='''
1325 talloc
1326 param''',
1327 install=False)
1329 bld.SAMBA3_BINARY('msg_sink',
1330 source='torture/msg_sink.c',
1331 deps='''
1332 talloc
1333 param''',
1334 install=False)
1336 bld.SAMBA3_BINARY('msg_source',
1337 source='torture/msg_source.c',
1338 deps='''
1339 talloc
1340 param''',
1341 install=False)
1343 bld.SAMBA3_BINARY('smbcacls',
1344 source='utils/smbcacls.c',
1345 deps='''
1346 talloc
1347 popt_samba3
1348 msrpc3
1349 libcli_lsa3
1350 krb5samba''')
1352 bld.SAMBA3_BINARY('smbcquotas',
1353 source='utils/smbcquotas.c',
1354 deps='''
1355 talloc
1356 popt_samba3
1357 libsmb
1358 msrpc3
1359 libcli_lsa3''')
1361 bld.SAMBA3_BINARY('eventlogadm',
1362 source='utils/eventlogadm.c',
1363 deps='''
1364 talloc
1365 param
1366 LIBEVENTLOG''')
1368 bld.SAMBA3_BINARY('sharesec',
1369 source='utils/sharesec.c',
1370 deps='''
1371 talloc
1372 popt_samba3''')
1374 bld.SAMBA3_BINARY('pdbtest',
1375 source='torture/pdbtest.c',
1376 deps='''
1377 talloc
1379 popt_samba3
1380 AUTH_COMMON
1381 auth''',
1382 install=False)
1384 bld.SAMBA3_BINARY('vfstest',
1385 source='''torture/cmd_vfs.c
1386 torture/vfstest.c
1387 torture/vfstest_chain.c''',
1388 deps='''
1390 popt_samba3
1391 SMBREADLINE''',
1392 install=False)
1394 bld.SAMBA3_BINARY('log2pcap',
1395 source='utils/log2pcaphex.c',
1396 deps='''talloc popt''',
1397 install=False)
1399 bld.SAMBA3_BINARY('locktest2',
1400 source='torture/locktest2.c',
1401 deps='''
1402 talloc
1403 param
1404 libsmb
1405 LOCKING''',
1406 install=False)
1408 bld.SAMBA3_BINARY('debug2html',
1409 source='''utils/debug2html.c utils/debugparse.c''',
1410 deps='''talloc popt''',
1411 install=False)
1413 bld.SAMBA3_BINARY('smbfilter',
1414 source='utils/smbfilter.c',
1415 deps='''
1416 talloc
1417 param
1418 LIBNMB''',
1419 install=False)
1421 bld.SAMBA3_BINARY('versiontest',
1422 source='lib/version_test.c',
1423 deps='''
1424 SAMBA_VERSION
1425 param''',
1426 install=False)
1428 bld.SAMBA3_BINARY('ntlm_auth',
1429 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1430 deps='''
1431 talloc
1432 krb5samba
1433 tiniparser
1434 libsmb
1435 popt_samba3
1436 LIBNTLMSSP gse gensec''')
1438 bld.SAMBA3_BINARY('timelimit',
1439 source='script/tests/timelimit.c',
1440 install=False)
1442 bld.SAMBA3_BINARY('rpc_open_tcp',
1443 source='torture/rpc_open_tcp.c',
1444 deps='''
1445 talloc
1446 msrpc3''',
1447 install=False)
1449 bld.SAMBA3_BINARY('dbwrap_tool',
1450 source='utils/dbwrap_tool.c',
1451 deps='''
1452 talloc
1453 popt_samba3''')
1455 bld.SAMBA3_BINARY('dbwrap_torture',
1456 source='utils/dbwrap_torture.c',
1457 deps='''
1458 talloc
1459 popt_samba3''',
1460 install=False)
1462 bld.SAMBA3_BINARY('split_tokens',
1463 source='utils/split_tokens.c',
1464 deps='''
1465 talloc
1466 popt_samba3''',
1467 install=False)
1469 bld.SAMBA3_BINARY('vlp',
1470 source='printing/tests/vlp.c',
1471 deps='''
1472 talloc
1473 param''',
1474 install=False)
1476 bld.SAMBA3_PYTHON('pysmbd',
1477 source='smbd/pysmbd.c',
1478 deps='smbd_base pyrpc_util',
1479 realname='samba/samba3/smbd.so'
1482 bld.SAMBA3_PYTHON('pylibsmb',
1483 source='libsmb/pylibsmb.c',
1484 deps='smbclient samba-credentials',
1485 realname='samba/samba3/libsmb_samba_internal.so'
1488 bld.SAMBA3_BINARY('samba-regedit',
1489 source="""utils/regedit.c utils/regedit_samba3.c
1490 utils/regedit_wrap.c utils/regedit_treeview.c
1491 utils/regedit_valuelist.c utils/regedit_dialog.c
1492 utils/regedit_hexedit.c utils/regedit_list.c""",
1493 deps='ncurses menu panel form registry param popt_samba3 smbregistry',
1494 enabled=bld.env.build_regedit)
1496 ########################## INCLUDES #################################
1498 bld.RECURSE('auth')
1499 bld.RECURSE('libgpo/gpext')
1500 bld.RECURSE('lib/pthreadpool')
1501 bld.RECURSE('lib/asys')
1502 bld.RECURSE('lib/poll_funcs')
1503 bld.RECURSE('lib/unix_msg')
1504 bld.RECURSE('librpc')
1505 bld.RECURSE('librpc/idl')
1506 bld.RECURSE('libsmb')
1507 bld.RECURSE('modules')
1508 bld.RECURSE('pam_smbpass')
1509 bld.RECURSE('param')
1510 bld.RECURSE('passdb')
1511 bld.RECURSE('rpc_server')
1512 bld.RECURSE('script')
1513 bld.RECURSE('winbindd')
1514 bld.RECURSE('../examples/auth')
1515 bld.RECURSE('../examples/libsmbclient')
1516 bld.RECURSE('../examples/pdb')
1517 bld.RECURSE('../examples/VFS')
1518 bld.RECURSE('lib/netapi/tests')
1519 bld.RECURSE('lib/netapi/examples')
1521 bld.ENFORCE_GROUP_ORDERING()
1522 bld.CHECK_PROJECT_RULES()