unix_msg: Use empty arrays in structs
[Samba.git] / source3 / wscript_build
blob38f0d12ef62d4a7a5bf520328da5e4bc86075d26
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('smbsharemodes',
59 source='libsmb/smb_share_modes.c',
60 public_deps='''talloc tdb_compat''',
61 deps='''ccan-hash''',
62 public_headers='include/smb_share_modes.h',
63 pc_files='libsmb/smbsharemodes.pc',
64 vnum='0')
66 bld.SAMBA3_LIBRARY('nss_wins',
67 source='../nsswitch/wins.c',
68 deps='''param libsmb LIBTSOCKET''',
69 realname='libnss_wins.so.2',
70 soname='libnss_wins.so',
71 vnum='2')
73 bld.SAMBA3_LIBRARY('gse',
74 source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
75 deps='krb5samba gensec param KRBCLIENT secrets3',
76 private_library=True)
78 bld.SAMBA3_LIBRARY('msrpc3',
79 source='''rpc_client/cli_pipe.c
80 rpc_client/rpc_transport_np.c
81 rpc_client/rpc_transport_sock.c
82 rpc_client/rpc_transport_tstream.c
83 librpc/rpc/dcerpc_helpers.c''',
84 deps='''ndr ndr-standard
85 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
86 LIBTSOCKET gse dcerpc-binding
87 libsmb ndr-table NETLOGON_CREDS_CLI
88 ''',
89 private_library=True)
91 bld.SAMBA3_LIBRARY('gpo',
92 source='''../libgpo/gpo_ldap.c
93 ../libgpo/gpo_ini.c
94 ../libgpo/gpo_util.c
95 ../libgpo/gpo_fetch.c
96 libgpo/gpo_filesync.c
97 ../libgpo/gpo_sec.c
98 libgpo/gpo_reg.c''',
99 deps='talloc ads TOKEN_UTIL gpext auth',
100 private_library=True)
102 bld.SAMBA3_SUBSYSTEM('AVAHI',
103 source='lib/avahi.c smbd/avahi_register.c',
104 deps='avahi-common avahi-client',
105 enabled=bld.env.with_avahi)
107 bld.SAMBA3_SUBSYSTEM('GROUPDB',
108 source='groupdb/mapping.c groupdb/mapping_tdb.c',
109 deps='tdb_compat')
111 bld.SAMBA3_SUBSYSTEM('TLDAP',
112 source='''lib/tldap.c
113 lib/tldap_util.c
114 lib/util_tsock.c''',
115 deps='asn1util LIBTSOCKET')
117 # libpdb.so should not expose internal symbols that are only usable
118 # to the statically linked modules that are merged into libpdb.
119 # Note that we always filter these symbols out in libpdb, even
120 # when modules are not linked statically. In the latter case
121 # symbols will not be present in the libpdb anyway so no hurt is
122 # done to the version script.
123 static_pdb_match = ['tdbsam', 'smbpasswd', 'wbc_sam']
124 private_pdb_match = []
126 # AD DC module when linked statically will pull in few source4/winbind
127 # dependencies which are not used outside AD DC module
128 static_pdb_match.append('samba_dsdb')
129 private_pdb_match.append('!idmap_init')
130 private_pdb_match.append('!idmap_sids_to_xids')
131 private_pdb_match.append('!idmap_xids_to_sids')
133 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
134 static_pdb_match = static_pdb_match + ['ldap', 'ipa', 'nds']
135 ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_domain_info',
136 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
137 '!dominfo_attr_list', '!get_attr_key2string',
138 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
139 '!get_attr_list']
140 private_pdb_match.append('!pdb_nds_*')
141 private_pdb_match.append('!pdb_init_ldapsam')
142 private_pdb_match.append('!pdb_ldapsam_init*')
143 private_pdb_match = private_pdb_match + ldapsam_pdb_match
145 private_pdb_match = private_pdb_match + map(lambda x: '!pdb_%s_init' % x, static_pdb_match)
147 bld.SAMBA3_LIBRARY('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',
166 private_library=False,
167 pc_files=[],
168 public_headers_install=True,
169 public_headers='''
170 include/passdb.h
171 passdb/machine_sid.h
172 passdb/lookup_sid.h''',
173 abi_match=private_pdb_match,
174 abi_directory='passdb/ABI',
175 vnum='0.1.1')
177 bld.SAMBA3_LIBRARY('smbldaphelper',
178 source='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
179 deps='smbldap secrets3',
180 allow_undefined_symbols=True,
181 enabled=bld.CONFIG_SET('HAVE_LDAP'),
182 private_library=True)
184 bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
185 source='lib/server_mutex.c',
186 deps='talloc')
188 bld.SAMBA3_SUBSYSTEM('param',
189 source='''param/loadparm.c
190 lib/sharesec.c
191 lib/ldap_debug_handler.c
192 lib/util_names.c''',
193 allow_warnings=True,
194 deps='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local.h param_global.h cups''')
196 # this includes only the low level parse code, not stuff
197 # that requires knowledge of security contexts
198 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS',
199 source='registry/reg_parse_prs.c')
201 bld.SAMBA3_SUBSYSTEM('REGFIO',
202 source='registry/regfio.c',
203 deps='samba-util REG_PARSE_PRS')
205 bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
206 source='registry/reg_api_regf.c',
207 deps='samba-util')
209 bld.SAMBA3_LIBRARY('smbregistry',
210 source='''registry/reg_api.c
211 registry/reg_dispatcher.c
212 registry/reg_cachehook.c
213 registry/reg_objects.c
214 registry/reg_util_internal.c
215 lib/util_nttoken.c
216 registry/reg_backend_db.c
217 registry/reg_parse_internal.c
218 lib/cbuf.c
219 lib/srprs.c
220 registry/reg_init_basic.c''',
221 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
222 replace util_reg samba-util samba-security
223 errors3 dbwrap samba3-util''',
224 allow_undefined_symbols=True,
225 allow_warnings=True,
226 private_library=True)
228 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
229 source='''registry/reg_backend_smbconf.c
230 registry/reg_init_smbconf.c
231 registry/reg_util_token.c
232 registry/reg_api_util.c''',
233 deps='smbregistry')
235 bld.SAMBA3_SUBSYSTEM('REG_FULL',
236 source='''registry/reg_backend_printing.c
237 registry/reg_backend_shares.c
238 registry/reg_backend_netlogon_params.c
239 registry/reg_backend_prod_options.c
240 registry/reg_backend_tcpip_params.c
241 registry/reg_backend_hkpt_params.c
242 registry/reg_backend_current_version.c
243 registry/reg_backend_perflib.c
244 registry/reg_init_full.c
245 registry/reg_perfcount.c''',
246 deps='REG_SMBCONF tdb-wrap3')
248 bld.SAMBA3_LIBRARY('popt_samba3',
249 source='lib/popt_common.c',
250 deps='popt samba-util util_cmdline',
251 private_library=True)
253 bld.SAMBA3_LIBRARY('util_cmdline',
254 source='lib/util_cmdline.c',
255 deps='secrets3',
256 private_library=True)
258 bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
259 source='libads/kerberos.c libads/ads_status.c',
260 allow_warnings=True,
261 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
263 bld.SAMBA3_SUBSYSTEM('samba3util',
264 source='''lib/system.c
265 lib/sendfile.c
266 lib/recvfile.c
267 lib/time.c
268 lib/util_sid.c
269 lib/util_file.c
270 lib/util.c
271 lib/util_sock.c
272 lib/util_transfer_file.c
273 lib/sock_exec.c''',
274 deps='ndr samba-security NDR_SECURITY samba-util util_tdb ccan-hash')
276 if bld.CONFIG_GET("CTDB_CFLAGS") and bld.CONFIG_GET("CTDB_INCLUDE"):
277 SAMBA_CLUSTER_SUPPORT_SOURCES='''
278 lib/cluster_support.c
279 lib/dbwrap/dbwrap_ctdb.c
280 lib/messages_ctdbd.c
281 lib/ctdb_packet.c
282 lib/ctdbd_conn.c
283 lib/ctdb_conn.c
284 torture/test_ctdbconn.c
286 SAMBA_CLUSTER_SUPPORT_DEPS='''
287 talloc
288 tevent
291 else:
292 SAMBA_CLUSTER_SUPPORT_SOURCES='''
293 lib/cluster_support.c
294 lib/ctdb_dummy.c
296 SAMBA_CLUSTER_SUPPORT_DEPS='''
297 talloc
298 tevent
301 bld.SAMBA3_LIBRARY('samba-cluster-support',
302 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
303 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
304 cflags=bld.CONFIG_GET("CTDB_CFLAGS"),
305 includes=bld.CONFIG_GET("CTDB_INCLUDE"),
306 allow_undefined_symbols=True,
307 private_library=True)
309 bld.SAMBA3_SUBSYSTEM('TDB_LIB',
310 source='''lib/dbwrap/dbwrap_open.c
311 lib/dbwrap/dbwrap_watch.c
312 lib/g_lock.c''',
313 deps='dbwrap samba-cluster-support')
315 bld.SAMBA3_SUBSYSTEM('samba3core',
316 source='''lib/messages.c
317 lib/messages_dgm.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 TDB_LIB''')
366 bld.SAMBA3_LIBRARY('smbd_shim',
367 source='''lib/smbd_shim.c''',
368 deps='talloc',
369 private_library=True)
371 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
372 source='''libsmb/ntlmssp.c
373 libsmb/ntlmssp_wrap.c''',
374 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient')
376 bld.SAMBA3_SUBSYSTEM('auth_generic',
377 source='libsmb/auth_generic.c',
378 deps='LIBNTLMSSP gse gensec')
380 bld.SAMBA3_LIBRARY('libsmb',
381 source='''libsmb/clientgen.c
382 libsmb/cliconnect.c
383 libsmb/clifile.c
384 libsmb/clispnego.c
385 libsmb/clirap.c
386 libsmb/clierror.c
387 libsmb/climessage.c
388 libsmb/clireadwrite.c
389 libsmb/clilist.c
390 libsmb/cliprint.c
391 libsmb/clitrans.c
392 libsmb/clisecdesc.c
393 libsmb/clidgram.c
394 libsmb/clistr.c
395 libsmb/cliquota.c
396 libsmb/clifsinfo.c
397 libsmb/clidfs.c
398 libsmb/clioplock.c
399 libsmb/clirap2.c
400 libsmb/async_smb.c
401 libsmb/smb2cli_tcon.c
402 libsmb/reparse_symlink.c
403 libsmb/clisymlink.c
404 libsmb/smbsock_connect.c
405 libsmb/cli_smb2_fnum.c''',
406 deps='''
407 LIBNTLMSSP
408 auth_generic
409 CLDAP
410 LIBNMB
411 SPNEGO_PARSE
412 LIBTSOCKET
413 KRBCLIENT
414 cli_smb_common
415 util_cmdline
416 tevent''',
417 private_library=True)
419 bld.SAMBA3_SUBSYSTEM('CLDAP',
420 source='libads/cldap.c',
421 deps='cli-ldap-common cli_cldap LIBTSOCKET')
423 # NOTE: The secrets3 library is a low level library used by several subsystems.
424 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
425 # doing that your design is wrong and needs changing. -SSS
426 bld.SAMBA3_LIBRARY('secrets3',
427 source='''passdb/secrets.c
428 passdb/machine_account_secrets.c
429 passdb/machine_sid.c
430 passdb/secrets_lsa.c''',
431 deps='NDR_SECRETS param samba3util dbwrap',
432 private_library=True)
434 bld.SAMBA3_LIBRARY('smbldap',
435 source='lib/smbldap.c',
436 deps='ldap lber samba-util param',
437 enabled=bld.CONFIG_SET("HAVE_LDAP"),
438 private_library=False,
439 abi_directory='lib/ABI',
440 abi_match='smbldap_*',
441 pc_files=[],
442 vnum='0',
443 public_headers='include/smbldap.h include/smb_ldap.h')
445 bld.SAMBA3_LIBRARY('ads',
446 source='''libads/ldap.c
447 libads/sasl.c
448 libads/sasl_wrapping.c
449 libads/krb5_setpw.c
450 libads/kerberos_util.c
451 libads/ldap_user.c
452 libads/ads_struct.c
453 libads/kerberos_keytab.c
454 libads/disp_sec.c
455 libads/ldap_utils.c
456 libads/ldap_schema.c
457 libads/util.c
458 libads/ndr.c''',
459 allow_warnings=True,
460 deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
461 private_library=True)
463 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
464 source='libads/authdata.c',
465 deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
467 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
468 source='libads/ldap_printer.c',
469 deps='samba-util krb5samba')
471 bld.SAMBA3_LIBRARY('smbconf',
472 source='''lib/smbconf/smbconf_init.c
473 lib/smbconf/smbconf_reg.c''',
474 deps='''
475 CHARSET3
476 LIBSMBCONF
477 REG_SMBCONF
478 SAMBA_VERSION
480 charset
481 cli_smb_common
482 errors3
483 param
484 samba-util
485 smbregistry
486 talloc
487 util_reg''',
488 public_headers='../lib/smbconf/smbconf.h',
489 pc_files=[],
490 vnum='0')
492 bld.SAMBA3_LIBRARY('smbd_conn',
493 source='smbd/conn.c',
494 deps='samba3-util samba-util',
495 private_library=True)
497 bld.SAMBA3_SUBSYSTEM('sysquotas',
498 source='''
499 lib/sysquotas.c
500 lib/sysquotas_linux.c
501 lib/sysquotas_xfs.c
502 lib/sysquotas_4A.c
503 lib/sysquotas_4B.c
504 lib/sysquotas_nfs.c
505 ''',
506 allow_warnings=True,
507 deps='samba3-util samba-util')
509 bld.SAMBA3_LIBRARY('smbd_base',
510 source='''
511 smbd/server_reload.c
512 smbd/files.c
513 smbd/connection.c
514 smbd/utmp.c
515 smbd/session.c
516 smbd/dfree.c
517 smbd/dir.c
518 smbd/password.c
519 smbd/conn_msg.c
520 smbd/conn_idle.c
521 smbd/share_access.c
522 smbd/fileio.c
523 smbd/ipc.c
524 smbd/lanman.c
525 smbd/negprot.c
526 smbd/message.c
527 smbd/nttrans.c
528 smbd/pipes.c
529 smbd/reply.c
530 smbd/sesssetup.c
531 smbd/trans2.c
532 smbd/uid.c
533 smbd/dosmode.c
534 smbd/filename.c
535 smbd/open.c
536 smbd/close.c
537 smbd/blocking.c
538 smbd/sec_ctx.c
539 smbd/srvstr.c
540 smbd/vfs.c
541 smbd/perfcount.c
542 smbd/statcache.c
543 smbd/seal.c
544 smbd/posix_acls.c
545 lib/sysacls.c
546 smbd/process.c
547 smbd/service.c
548 smbd/error.c
549 printing/printspoolss.c
550 printing/spoolssd.c
551 lib/sessionid_tdb.c
552 lib/conn_tdb.c
553 smbd/fake_file.c
554 smbd/quotas.c
555 smbd/ntquotas.c
556 smbd/msdfs.c
557 smbd/aio.c smbd/statvfs.c
558 smbd/dmapi.c
559 smbd/signing.c
560 smbd/file_access.c
561 smbd/dnsregister.c smbd/globals.c
562 smbd/smb2_server.c
563 smbd/smb2_glue.c
564 smbd/smb2_negprot.c
565 smbd/smb2_sesssetup.c
566 smbd/smb2_tcon.c
567 smbd/smb2_create.c
568 smbd/smb2_close.c
569 smbd/smb2_flush.c
570 smbd/smb2_read.c
571 smbd/smb2_write.c
572 smbd/smb2_lock.c
573 smbd/smb2_ioctl.c
574 smbd/smb2_ioctl_dfs.c
575 smbd/smb2_ioctl_filesys.c
576 smbd/smb2_ioctl_named_pipe.c
577 smbd/smb2_ioctl_network_fs.c
578 smbd/smb2_keepalive.c
579 smbd/smb2_find.c
580 smbd/smb2_notify.c
581 smbd/smb2_getinfo.c
582 smbd/smb2_setinfo.c
583 smbd/smb2_break.c
584 smbd/smbXsrv_version.c
585 smbd/smbXsrv_session.c
586 smbd/smbXsrv_tcon.c
587 smbd/smbXsrv_open.c
588 smbd/server_exit.c
589 smbd/durable.c
590 smbd/scavenger.c
591 smbd/mangle.c
592 smbd/mangle_hash.c
593 smbd/mangle_hash2.c
594 smbd/oplock.c
595 smbd/oplock_irix.c
596 smbd/oplock_linux.c
597 smbd/notify.c
598 smbd/notify_inotify.c
599 smbd/notify_internal.c
600 smbd/build_options.c''',
601 deps='''
602 talloc
603 tevent
605 libsmb
606 msrpc3
608 vfs_default
609 vfs_posixacl
610 inotify
611 popt_samba3
612 samba3core
613 smbd_conn
614 param_service
615 AVAHI
616 PRINTBASE
617 PROFILE
618 LOCKING
619 LIBADS_SERVER
620 LIBAFS
621 RPC_SERVICE
622 NDR_SMBXSRV
623 LIBASYS
624 sysquotas
625 ccan-hash
626 NDR_SMB_ACL
627 netapi
628 NDR_IOCTL
629 ''' + bld.env['dmapi_lib'],
630 private_library=True)
632 bld.SAMBA3_SUBSYSTEM('LOCKING',
633 source='''locking/locking.c
634 locking/brlock.c
635 locking/posix.c
636 locking/share_mode_lock.c''',
637 deps='''
638 tdb_compat
639 talloc
640 NDR_OPEN_FILES
641 FNAME_UTIL''')
643 bld.SAMBA3_SUBSYSTEM('PROFILE',
644 source='profile/profile.c',
645 deps='samba-util')
647 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
648 source='''printing/notify.c printing/printing_db.c''',
649 deps='samba-util tdb_compat')
651 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
652 source='''printing/printing.c
653 printing/nt_printing.c
654 printing/nt_printing_tdb.c
655 printing/nt_printing_migrate_internal.c
656 printing/nt_printing_ads.c
657 printing/queue_process.c''',
658 deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate')
660 bld.SAMBA3_LIBRARY('printing_migrate',
661 source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
662 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
663 private_library=True)
665 bld.SAMBA3_SUBSYSTEM('PRINTING',
666 source='''printing/pcap.c
667 printing/print_svid.c
668 printing/print_aix.c
669 printing/print_cups.c
670 printing/print_generic.c
671 printing/lpq_parse.c
672 printing/load.c
673 printing/print_standard.c
674 printing/print_iprint.c
675 printing/printer_list.c''',
676 deps='NDR_PRINTCAP tdb_compat cups')
678 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
679 source='utils/passwd_util.c',
680 deps='samba-util')
682 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
683 source='lib/filename_util.c',
684 deps='samba-util')
686 bld.SAMBA3_SUBSYSTEM('LIBNET',
687 source='libnet/libnet_join.c',
688 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
690 bld.SAMBA3_LIBRARY('net_keytab',
691 source='libnet/libnet_keytab.c',
692 deps='krb5samba ads',
693 private_library=True)
696 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
697 source='''libnet/libnet_dssync.c
698 libnet/libnet_dssync_passdb.c
699 libnet/libnet_dssync_keytab.c''',
700 allow_warnings=True,
701 deps='LIBNET RPC_NDR_DRSUAPI')
703 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
704 source='''libnet/libnet_samsync.c
705 libnet/libnet_samsync_ldif.c
706 libnet/libnet_samsync_passdb.c
707 libnet/libnet_samsync_display.c
708 libnet/libnet_samsync_keytab.c''',
709 deps='LIBNET LIBCLI_SAMSYNC')
711 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
712 source='lib/eventlog/eventlog.c',
713 deps='NDR_EVENTLOG tdb_compat')
715 bld.SAMBA3_SUBSYSTEM('LIBNMB',
716 source='''libsmb/unexpected.c
717 libsmb/namecache.c
718 libsmb/nmblib.c
719 libsmb/namequery.c
720 libsmb/conncache.c
721 libads/sitename_cache.c''',
722 deps='addns lmhosts resolv')
724 bld.SAMBA3_SUBSYSTEM('SERVICES',
725 source='''services/svc_spoolss.c
726 services/svc_rcinit.c
727 services/svc_winreg_glue.c
728 services/svc_netlogon.c
729 services/svc_winreg.c
730 services/svc_wins.c''',
731 deps='samba-util')
733 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
734 source='''auth/pampass.c auth/pass_check.c''',
735 deps='pam PAM_ERRORS')
737 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
738 source='libsmb/passchange.c',
739 deps='''LIBCLI_SAMR
740 INIT_LSA
741 msrpc3
742 krb5samba''')
744 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
745 source='lib/version.c',
746 deps='samba-util')
748 bld.SAMBA3_SUBSYSTEM('SLCACHE',
749 source='libsmb/samlogon_cache.c',
750 deps='samba-util tdb_compat')
752 bld.SAMBA3_SUBSYSTEM('DCUTIL',
753 source='''libsmb/namequery_dc.c
754 libsmb/trustdom_cache.c
755 libsmb/dsgetdcname.c''',
756 deps='ads msrpc3 libcli_lsa3')
758 bld.SAMBA3_LIBRARY('trusts_util',
759 source='libsmb/trusts_util.c',
760 deps='libcli_netlogon3 msrpc3 pdb',
761 private_library=True)
763 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
764 source='lib/util_tdb.c',
765 deps='talloc samba3-util')
767 bld.SAMBA3_LIBRARY('samba3-util',
768 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
769 deps='samba-util charset',
770 private_library=True)
772 bld.SAMBA_LIBRARY('xattr_tdb',
773 source='lib/xattr_tdb.c',
774 deps='NDR_XATTR dbwrap samba3-util',
775 private_library=True)
777 bld.SAMBA3_LIBRARY('CHARSET3',
778 source='''lib/charcnv.c lib/fstring.c''',
779 public_deps='ICONV_WRAPPER charset',
780 deps='samba-util samba3-util',
781 private_library=True)
783 bld.SAMBA3_SUBSYSTEM('errors3',
784 source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
785 deps='errors')
787 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
788 source='rpc_client/cli_samr.c',
789 deps='RPC_NDR_SAMR')
791 bld.SAMBA3_LIBRARY('libcli_lsa3',
792 source='rpc_client/cli_lsarpc.c',
793 deps='RPC_NDR_LSA INIT_LSA',
794 private_library=True)
796 bld.SAMBA3_LIBRARY('libcli_netlogon3',
797 source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
798 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI',
799 private_library=True)
801 bld.SAMBA3_LIBRARY('cli_spoolss',
802 source='''rpc_client/cli_spoolss.c
803 rpc_client/init_spoolss.c''',
804 deps='RPC_NDR_SPOOLSS param secrets3',
805 private_library=True)
807 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
808 source='rpc_client/cli_winreg.c',
809 deps='RPC_NDR_WINREG')
811 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
812 source='rpc_client/cli_winreg_int.c',
813 deps='LIBCLI_WINREG RPC_SERVER')
815 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
816 source='rpc_client/cli_pipe_schannel.c',
817 deps='samba-util krb5samba')
819 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
820 source='rpc_client/init_lsa.c',
821 deps='samba-util')
823 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
824 source='rpc_client/init_netlogon.c',
825 deps='samba-util')
827 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
828 source='rpc_client/init_samr.c',
829 deps='samba-util')
831 ########################## BINARIES #################################
833 bld.SAMBA3_BINARY('smbd/smbd',
834 source='smbd/server.c',
835 deps='smbd_base EPMD LSASD',
836 install_path='${SBINDIR}')
838 bld.SAMBA3_BINARY('nmbd/nmbd',
839 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
840 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
841 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
842 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
843 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
844 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
845 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
846 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
847 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
848 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
849 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
850 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
851 deps='''
852 talloc
853 tevent
854 param
855 libsmb
856 popt_samba3
857 PROFILE''',
858 install_path='${SBINDIR}')
861 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
862 source='lib/tdb_validate.c',
863 deps='samba-util')
866 bld.SAMBA3_BINARY('winbindd/winbindd',
867 source='''winbindd/winbindd.c
868 winbindd/winbindd_group.c
869 winbindd/winbindd_util.c
870 winbindd/winbindd_cache.c
871 winbindd/winbindd_pam.c
872 winbindd/winbindd_misc.c
873 winbindd/winbindd_cm.c
874 winbindd/winbindd_wins_byip.c
875 winbindd/winbindd_wins_byname.c
876 winbindd/winbindd_msrpc.c
877 winbindd/winbindd_rpc.c
878 winbindd/winbindd_reconnect.c
879 winbindd/winbindd_ads.c
880 winbindd/winbindd_samr.c
881 winbindd/winbindd_dual.c
882 winbindd/winbindd_dual_ndr.c
883 winbindd/winbindd_dual_srv.c
884 winbindd/winbindd_async.c
885 winbindd/winbindd_creds.c
886 winbindd/winbindd_cred_cache.c
887 winbindd/winbindd_ccache_access.c
888 winbindd/winbindd_domain.c
889 winbindd/winbindd_idmap.c
890 winbindd/winbindd_locator.c
891 winbindd/winbindd_ndr.c
892 winbindd/wb_ping.c
893 winbindd/wb_lookupsid.c
894 winbindd/wb_lookupsids.c
895 winbindd/wb_lookupname.c
896 winbindd/wb_uid2sid.c
897 winbindd/wb_gid2sid.c
898 winbindd/wb_sids2xids.c
899 winbindd/wb_queryuser.c
900 winbindd/wb_lookupuseraliases.c
901 winbindd/wb_lookupusergroups.c
902 winbindd/wb_getpwsid.c
903 winbindd/wb_gettoken.c
904 winbindd/wb_seqnum.c
905 winbindd/wb_seqnums.c
906 winbindd/wb_group_members.c
907 winbindd/wb_getgrsid.c
908 winbindd/wb_query_user_list.c
909 winbindd/wb_fill_pwent.c
910 winbindd/wb_next_pwent.c
911 winbindd/wb_next_grent.c
912 winbindd/wb_dsgetdcname.c
913 winbindd/winbindd_lookupsid.c
914 winbindd/winbindd_lookupsids.c
915 winbindd/winbindd_lookupname.c
916 winbindd/winbindd_sid_to_uid.c
917 winbindd/winbindd_sid_to_gid.c
918 winbindd/winbindd_uid_to_sid.c
919 winbindd/winbindd_gid_to_sid.c
920 winbindd/winbindd_sids_to_xids.c
921 winbindd/winbindd_allocate_uid.c
922 winbindd/winbindd_allocate_gid.c
923 winbindd/winbindd_getpwsid.c
924 winbindd/winbindd_getpwnam.c
925 winbindd/winbindd_getpwuid.c
926 winbindd/winbindd_getsidaliases.c
927 winbindd/winbindd_getuserdomgroups.c
928 winbindd/winbindd_getgroups.c
929 winbindd/winbindd_show_sequence.c
930 winbindd/winbindd_getgrgid.c
931 winbindd/winbindd_getgrnam.c
932 winbindd/winbindd_getusersids.c
933 winbindd/winbindd_lookuprids.c
934 winbindd/winbindd_setpwent.c
935 winbindd/winbindd_getpwent.c
936 winbindd/winbindd_endpwent.c
937 winbindd/winbindd_setgrent.c
938 winbindd/winbindd_getgrent.c
939 winbindd/winbindd_endgrent.c
940 winbindd/winbindd_dsgetdcname.c
941 winbindd/winbindd_getdcname.c
942 winbindd/winbindd_list_users.c
943 winbindd/winbindd_list_groups.c
944 winbindd/winbindd_check_machine_acct.c
945 winbindd/winbindd_change_machine_acct.c
946 winbindd/winbindd_irpc.c
947 winbindd/winbindd_ping_dc.c
948 winbindd/winbindd_pam_auth.c
949 winbindd/winbindd_pam_logoff.c
950 winbindd/winbindd_pam_chauthtok.c
951 winbindd/winbindd_pam_auth_crap.c
952 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
953 deps='''
954 talloc
955 tevent
957 popt_samba3
958 idmap
960 msrpc3
961 nss_info
962 LIBAFS
963 LIBADS_SERVER
964 LIBCLI_SAMR
965 SLCACHE
966 RPC_NDR_DSSETUP
967 RPC_NDR_WINBIND
968 SRV_NDR_WINBIND
969 RPC_SAMR
970 RPC_LSARPC
971 RPC_SERVER
972 WB_REQTRANS
973 TDB_VALIDATE
974 MESSAGING
975 ''',
976 enabled=bld.env.build_winbind,
977 install_path='${SBINDIR}')
979 bld.SAMBA3_BINARY('rpcclient/rpcclient',
980 source='''rpcclient/rpcclient.c
981 rpcclient/cmd_lsarpc.c
982 rpcclient/cmd_samr.c
983 rpcclient/cmd_spoolss.c
984 rpcclient/cmd_netlogon.c
985 rpcclient/cmd_srvsvc.c
986 rpcclient/cmd_dfs.c
987 rpcclient/cmd_epmapper.c
988 rpcclient/cmd_dssetup.c
989 rpcclient/cmd_echo.c
990 rpcclient/cmd_shutdown.c
991 rpcclient/cmd_test.c
992 rpcclient/cmd_wkssvc.c
993 rpcclient/cmd_ntsvcs.c
994 rpcclient/cmd_drsuapi.c
995 rpcclient/cmd_eventlog.c
996 rpcclient/cmd_winreg.c
997 rpcclient/cmd_fss.c
998 rpcclient/cmd_witness.c''',
999 deps='''
1000 talloc
1001 popt_samba3
1003 libsmb
1004 param
1005 ndr-standard
1006 msrpc3
1007 SMBREADLINE
1008 trusts_util
1009 RPC_NDR_WINREG
1010 RPC_NDR_ECHO
1011 RPC_CLIENT_SCHANNEL
1012 DCUTIL
1013 LIBCLI_SAMR
1014 libcli_lsa3
1015 libcli_netlogon3
1016 cli_spoolss
1017 RPC_NDR_SRVSVC
1018 RPC_NDR_WKSSVC
1019 RPC_NDR_DSSETUP
1020 RPC_NDR_DFS
1021 RPC_NDR_DRSUAPI
1022 RPC_NDR_NTSVCS
1023 RPC_NDR_EVENTLOG
1024 INIT_SAMR
1025 RPC_NDR_FSRVP
1026 RPC_NDR_WITNESS
1027 ''')
1029 bld.SAMBA3_BINARY('client/smbclient',
1030 source='''client/client.c
1031 client/clitar.c
1032 client/dnsbrowse.c''',
1033 deps='''
1034 talloc
1035 popt_samba3
1036 param
1037 ndr-standard
1038 SMBREADLINE
1039 libsmb
1040 msrpc3
1041 RPC_NDR_SRVSVC
1042 cli_smb_common
1043 ''' + bld.env['archive_lib'])
1045 bld.SAMBA3_BINARY('net',
1046 source='''utils/net.c
1047 utils/net_ads.c
1048 utils/net_help.c
1049 utils/net_rap.c
1050 utils/net_rpc.c
1051 utils/net_rpc_samsync.c
1052 utils/net_time.c
1053 utils/net_lookup.c
1054 utils/net_cache.c
1055 utils/net_groupmap.c
1056 utils/net_idmap.c
1057 utils/net_idmap_check.c
1058 utils/interact.c
1059 utils/net_status.c
1060 utils/net_rpc_printer.c
1061 utils/net_rpc_rights.c
1062 utils/net_rpc_service.c
1063 utils/net_rpc_registry.c
1064 utils/net_usershare.c
1065 utils/netlookup.c
1066 utils/net_sam.c
1067 utils/net_rpc_shell.c
1068 utils/net_util.c
1069 utils/net_rpc_sh_acct.c
1070 utils/net_rpc_audit.c
1071 utils/net_dns.c
1072 utils/net_ads_gpo.c
1073 utils/net_conf.c
1074 utils/net_conf_util.c
1075 utils/net_join.c
1076 utils/net_user.c
1077 utils/net_group.c
1078 utils/net_file.c
1079 utils/net_registry.c
1080 utils/net_registry_check.c
1081 utils/net_dom.c
1082 utils/net_share.c
1083 utils/net_g_lock.c
1084 utils/net_serverid.c
1085 utils/net_eventlog.c
1086 utils/net_printing.c
1087 utils/net_rpc_trust.c
1088 utils/net_rpc_conf.c
1089 utils/net_afs.c
1090 registry/reg_parse.c
1091 registry/reg_format.c
1092 registry/reg_import.c
1093 utils/net_registry_util.c
1094 utils/net_help_common.c''',
1095 deps='''
1096 talloc
1097 netapi
1098 addns
1099 samba_intl
1100 popt_samba3
1102 libsmb
1103 param
1104 KRBCLIENT
1105 ndr-standard
1106 msrpc3
1109 smbd_base
1110 LIBADS_SERVER
1111 LIBADS_PRINTER
1112 SMBREADLINE
1113 PASSWD_UTIL
1114 LIBNET
1115 LIBNET_DSSYNC
1116 LIBNET_SAMSYNC
1117 LIBEVENTLOG
1118 REGFIO
1119 NDR_NTPRINTING
1120 RPC_NDR_WINREG
1121 RPC_CLIENT_SCHANNEL
1122 LIBCLI_SAMR
1123 libcli_lsa3
1124 libcli_netlogon3
1125 cli_spoolss
1126 RPC_NDR_SRVSVC
1127 RPC_NDR_SVCCTL
1128 RPC_NDR_DSSETUP
1129 RPC_NDR_INITSHUTDOWN
1130 printing_migrate
1131 trusts_util
1132 IDMAP_AUTORID_TDB''')
1134 bld.SAMBA3_BINARY('profiles',
1135 source='utils/profiles.c',
1136 deps='''
1137 talloc
1138 popt_samba3
1139 param
1140 REGFIO''')
1142 bld.SAMBA3_BINARY('smbspool',
1143 source='client/smbspool.c',
1144 deps='''
1145 talloc
1146 popt_samba3
1147 param
1148 libsmb
1149 samba3core''')
1151 bld.SAMBA3_BINARY('testparm',
1152 source='utils/testparm.c',
1153 deps='''
1154 talloc
1155 param
1156 popt_samba3''')
1158 bld.SAMBA3_BINARY('smbta-util',
1159 source='utils/smbta-util.c',
1160 deps='''
1161 talloc
1162 secrets3
1163 param''')
1165 bld.SAMBA3_BINARY('smbstatus',
1166 source='''utils/status.c
1167 utils/status_profile.c
1168 smbd/notify_internal.c''',
1169 deps='''
1170 talloc
1171 param
1172 popt_samba3
1173 smbd_base
1174 LOCKING
1175 PROFILE''')
1177 bld.SAMBA3_BINARY('smbcontrol',
1178 source='utils/smbcontrol.c',
1179 deps='''
1180 talloc
1181 param
1182 popt_samba3
1183 PRINTBASE''')
1185 bld.SAMBA3_BINARY('smbtree',
1186 source='utils/smbtree.c',
1187 deps='''
1188 talloc
1189 param
1190 libsmb
1191 msrpc3
1192 popt_samba3
1193 PROFILE
1194 RPC_NDR_SRVSVC''')
1196 bld.SAMBA3_BINARY('smbpasswd',
1197 source='utils/smbpasswd.c',
1198 deps='''
1199 talloc
1200 param
1202 PASSWD_UTIL
1203 PASSCHANGE''')
1205 bld.SAMBA3_BINARY('pdbedit',
1206 source='utils/pdbedit.c',
1207 deps='''
1208 talloc
1209 param
1210 popt_samba3
1212 PASSWD_UTIL''')
1214 bld.SAMBA3_BINARY('smbget',
1215 source='utils/smbget.c',
1216 deps='''
1217 talloc
1218 popt_samba3
1219 smbclient''')
1221 bld.SAMBA3_BINARY('nmblookup',
1222 source='utils/nmblookup.c',
1223 deps='''
1224 talloc
1225 param
1226 popt_samba3
1227 LIBNMB''')
1229 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1230 source='''torture/torture.c
1231 torture/nbio.c
1232 torture/scanner.c
1233 torture/utable.c
1234 torture/denytest.c
1235 torture/mangle_test.c
1236 torture/nbench.c
1237 torture/test_async_echo.c
1238 torture/test_addrchange.c
1239 torture/test_posix_append.c
1240 torture/test_nttrans_create.c
1241 torture/test_nttrans_fsctl.c
1242 torture/test_case_insensitive.c
1243 torture/test_notify_online.c
1244 torture/test_chain3.c
1245 torture/test_smb2.c
1246 torture/test_authinfo_structs.c
1247 torture/test_smbsock_any_connect.c
1248 torture/test_cleanup.c
1249 torture/test_notify.c
1250 lib/tevent_barrier.c
1251 torture/test_dbwrap_watch.c
1252 torture/test_idmap_tdb_common.c
1253 torture/test_dbwrap_ctdb.c
1254 torture/test_buffersize.c
1255 torture/test_messaging_read.c
1256 torture/test_oplock_cancel.c
1257 torture/t_strappend.c
1258 torture/bench_pthreadpool.c
1259 torture/wbc_async.c''',
1260 deps='''
1261 talloc
1262 param
1263 libsmb
1264 msrpc3
1265 TLDAP
1266 RPC_NDR_ECHO
1267 WB_REQTRANS
1268 LOCKING
1269 NDR_OPEN_FILES
1270 idmap
1271 samba-cluster-support
1272 ''',
1273 cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1274 install=False)
1276 bld.SAMBA3_BINARY('smbconftort',
1277 source='lib/smbconf/testsuite.c',
1278 deps='''
1279 talloc
1280 param
1281 popt_samba3''',
1282 install=False)
1284 bld.SAMBA3_BINARY('replacetort',
1285 source='../lib/replace/test/main.c',
1286 deps='replace replace-test',
1287 install=False)
1289 bld.SAMBA3_BINARY('msgtest',
1290 source='torture/msgtest.c',
1291 deps='''
1292 talloc
1293 param''',
1294 install=False)
1296 bld.SAMBA3_BINARY('smbcacls',
1297 source='utils/smbcacls.c',
1298 deps='''
1299 talloc
1300 popt_samba3
1301 msrpc3
1302 libcli_lsa3
1303 krb5samba''')
1305 bld.SAMBA3_BINARY('smbcquotas',
1306 source='utils/smbcquotas.c',
1307 deps='''
1308 talloc
1309 popt_samba3
1310 libsmb
1311 msrpc3
1312 libcli_lsa3''')
1314 bld.SAMBA3_BINARY('eventlogadm',
1315 source='utils/eventlogadm.c',
1316 deps='''
1317 talloc
1318 param
1319 LIBEVENTLOG''')
1321 bld.SAMBA3_BINARY('sharesec',
1322 source='utils/sharesec.c',
1323 deps='''
1324 talloc
1325 popt_samba3''')
1327 bld.SAMBA3_BINARY('pdbtest',
1328 source='torture/pdbtest.c',
1329 deps='''
1330 talloc
1332 popt_samba3
1333 AUTH_COMMON
1334 auth''',
1335 install=False)
1337 bld.SAMBA3_BINARY('vfstest',
1338 source='''torture/cmd_vfs.c
1339 torture/vfstest.c
1340 torture/vfstest_chain.c''',
1341 deps='''
1343 popt_samba3
1344 SMBREADLINE''',
1345 install=False)
1347 bld.SAMBA3_BINARY('log2pcap',
1348 source='utils/log2pcaphex.c',
1349 deps='''talloc popt''',
1350 install=False)
1352 bld.SAMBA3_BINARY('locktest2',
1353 source='torture/locktest2.c',
1354 deps='''
1355 talloc
1356 param
1357 libsmb
1358 LOCKING''',
1359 install=False)
1361 bld.SAMBA3_BINARY('debug2html',
1362 source='''utils/debug2html.c utils/debugparse.c''',
1363 deps='''talloc popt''',
1364 install=False)
1366 bld.SAMBA3_BINARY('smbfilter',
1367 source='utils/smbfilter.c',
1368 deps='''
1369 talloc
1370 param
1371 LIBNMB''',
1372 install=False)
1374 bld.SAMBA3_BINARY('versiontest',
1375 source='lib/version_test.c',
1376 deps='''
1377 SAMBA_VERSION
1378 param''',
1379 install=False)
1381 bld.SAMBA3_BINARY('ntlm_auth',
1382 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1383 deps='''
1384 talloc
1385 krb5samba
1386 iniparser
1387 libsmb
1388 popt_samba3
1389 LIBNTLMSSP gse gensec''')
1391 bld.SAMBA3_BINARY('timelimit',
1392 source='script/tests/timelimit.c',
1393 install=False)
1395 bld.SAMBA3_BINARY('rpc_open_tcp',
1396 source='torture/rpc_open_tcp.c',
1397 deps='''
1398 talloc
1399 msrpc3''',
1400 install=False)
1402 bld.SAMBA3_BINARY('dbwrap_tool',
1403 source='utils/dbwrap_tool.c',
1404 deps='''
1405 talloc
1406 popt_samba3''')
1408 bld.SAMBA3_BINARY('dbwrap_torture',
1409 source='utils/dbwrap_torture.c',
1410 deps='''
1411 talloc
1412 popt_samba3''',
1413 install=False)
1415 bld.SAMBA3_BINARY('split_tokens',
1416 source='utils/split_tokens.c',
1417 deps='''
1418 talloc
1419 popt_samba3''',
1420 install=False)
1422 bld.SAMBA3_BINARY('vlp',
1423 source='printing/tests/vlp.c',
1424 deps='''
1425 talloc
1426 param''',
1427 install=False)
1429 bld.SAMBA3_PYTHON('pysmbd',
1430 source='smbd/pysmbd.c',
1431 deps='smbd_base pyrpc_util',
1432 realname='samba/samba3/smbd.so'
1435 bld.SAMBA3_PYTHON('pylibsmb',
1436 source='libsmb/pylibsmb.c',
1437 deps='smbclient samba-credentials',
1438 realname='samba/samba3/libsmb_samba_internal.so'
1441 bld.SAMBA3_BINARY('samba-regedit',
1442 source="""utils/regedit.c utils/regedit_samba3.c
1443 utils/regedit_wrap.c utils/regedit_treeview.c
1444 utils/regedit_valuelist.c utils/regedit_dialog.c
1445 utils/regedit_hexedit.c""",
1446 deps='ncurses menu panel form registry param popt_samba3 smbregistry',
1447 enabled=bld.env.build_regedit)
1449 ########################## INCLUDES #################################
1451 bld.RECURSE('auth')
1452 bld.RECURSE('libgpo/gpext')
1453 bld.RECURSE('lib/pthreadpool')
1454 bld.RECURSE('lib/asys')
1455 bld.RECURSE('lib/poll_funcs')
1456 bld.RECURSE('lib/unix_msg')
1457 bld.RECURSE('librpc')
1458 bld.RECURSE('librpc/idl')
1459 bld.RECURSE('libsmb')
1460 bld.RECURSE('modules')
1461 bld.RECURSE('pam_smbpass')
1462 bld.RECURSE('param')
1463 bld.RECURSE('passdb')
1464 bld.RECURSE('rpc_server')
1465 bld.RECURSE('script')
1466 bld.RECURSE('winbindd')
1467 bld.RECURSE('../examples/auth')
1468 bld.RECURSE('../examples/libsmbclient')
1469 bld.RECURSE('../examples/pdb')
1470 bld.RECURSE('../examples/VFS')
1471 bld.RECURSE('lib/netapi/tests')
1472 bld.RECURSE('lib/netapi/examples')
1474 bld.ENFORCE_GROUP_ORDERING()
1475 bld.CHECK_PROJECT_RULES()