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