ctdb-daemon: Remove unused ctdb_logging.[ch]
[Samba.git] / source3 / wscript_build
blob4c6390e7d531fc8297d3c74a80e4957f663b793e
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')
96 bld.SAMBA3_SUBSYSTEM('TLDAP',
97 source='''lib/tldap.c
98 lib/tldap_util.c
99 ''',
100 deps='asn1util LIBTSOCKET samba3util')
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 private_pdb_match = []
109 private_pdb_match.append('!idmap_init')
110 private_pdb_match.append('!idmap_sids_to_xids')
111 private_pdb_match.append('!idmap_xids_to_sids')
113 ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_domain_info',
114 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
115 '!dominfo_attr_list', '!get_attr_key2string',
116 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
117 '!get_attr_list']
118 private_pdb_match.append('!pdb_nds_*')
119 private_pdb_match.append('!pdb_ldapsam_init*')
120 private_pdb_match.append('!pdb_*_init')
121 private_pdb_match = private_pdb_match + ldapsam_pdb_match
123 bld.SAMBA3_LIBRARY('samba-passdb',
124 source='',
125 deps='pdb',
126 private_library=False,
127 grouping_library=True,
128 pc_files=[],
129 public_headers_install=True,
130 public_headers='''
131 include/passdb.h
132 passdb/machine_sid.h
133 passdb/lookup_sid.h''',
134 abi_match=private_pdb_match,
135 abi_directory='passdb/ABI',
136 vnum='0.24.1')
138 bld.SAMBA3_SUBSYSTEM('pdb',
139 source='''passdb/pdb_get_set.c
140 passdb/passdb.c
141 lib/util_wellknown.c
142 lib/util_builtin.c
143 passdb/pdb_compat.c
144 lib/util_sid_passdb.c
145 lib/util_unixsids.c
146 passdb/lookup_sid.c
147 passdb/login_cache.c
148 passdb/account_pol.c
149 lib/privileges.c
150 lib/util_nscd.c
151 lib/winbind_util.c
152 passdb/pdb_util.c
153 passdb/pdb_interface.c
154 passdb/pdb_secrets.c
155 passdb/pdb_unixid.c''',
156 deps='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping samba-credentials')
158 bld.SAMBA3_LIBRARY('smbldaphelper',
159 source='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
160 deps='smbldap secrets3',
161 allow_undefined_symbols=True,
162 enabled=bld.CONFIG_SET('HAVE_LDAP'),
163 private_library=True)
165 bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
166 source='lib/server_mutex.c',
167 deps='talloc')
169 bld.SAMBA3_SUBSYSTEM('param',
170 source='''param/loadparm.c
171 lib/sharesec.c
172 lib/ldap_debug_handler.c
173 lib/util_names.c''',
174 deps='''samba-util
175 PARAM_UTIL
176 ldap
177 lber
178 LOADPARM_CTX
179 samba3core
180 smbconf
181 param_local.h
182 param_global.h
183 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_SUBSYSTEM('samba3util',
251 source='''lib/system.c
252 lib/sendfile.c
253 lib/recvfile.c
254 lib/time.c
255 lib/util_sid.c
256 lib/util_file.c
257 lib/util.c
258 lib/util_procid.c
259 lib/util_sock.c
260 lib/util_tsock.c
261 lib/util_transfer_file.c
262 lib/sock_exec.c''',
263 deps='ndr LIBTSOCKET samba-security NDR_SECURITY samba-util util_tdb sys_rw iov_buf')
265 if bld.env.with_ctdb:
266 SAMBA_CLUSTER_SUPPORT_SOURCES='''
267 lib/cluster_support.c
268 lib/dbwrap/dbwrap_ctdb.c
269 lib/messages_ctdbd.c
270 lib/ctdbd_conn.c
272 SAMBA_CLUSTER_SUPPORT_DEPS='''
273 talloc
274 tevent
277 else:
278 SAMBA_CLUSTER_SUPPORT_SOURCES='''
279 lib/cluster_support.c
280 lib/ctdb_dummy.c
282 SAMBA_CLUSTER_SUPPORT_DEPS='''
283 talloc
284 tevent
287 bld.SAMBA3_LIBRARY('samba-cluster-support',
288 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
289 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
290 allow_undefined_symbols=True,
291 private_library=True)
293 bld.SAMBA3_SUBSYSTEM('TDB_LIB',
294 source='''lib/dbwrap/dbwrap_open.c
295 lib/dbwrap/dbwrap_watch.c
296 lib/g_lock.c''',
297 deps='dbwrap samba-cluster-support')
299 bld.SAMBA3_LIBRARY('messages_dgm',
300 source='''lib/messages_dgm.c lib/messages_dgm_ref.c''',
301 deps='''talloc UNIX_MSG POLL_FUNCS_TEVENT samba-debug
302 genrand''',
303 private_library=True)
305 bld.SAMBA3_LIBRARY('messages_util',
306 source='''lib/messages_util.c''',
307 deps='samba-util',
308 private_library=True)
310 bld.SAMBA3_SUBSYSTEM('samba3core',
311 source='''lib/messages.c
312 lib/util_cluster.c
313 lib/id_cache.c
314 lib/talloc_dict.c
315 lib/serverid.c
316 lib/server_id_db_util.c
317 lib/addrchange.c
318 ../lib/util/debug_s3.c
319 lib/dumpcore.c
320 lib/interface.c
321 lib/username.c
322 lib/access.c lib/smbrun.c
323 lib/wins_srv.c
324 lib/substitute.c
325 lib/substitute_generic.c
326 lib/ms_fnmatch.c
327 lib/tallocmsg.c
328 lib/dmallocmsg.c
329 intl/lang_tdb.c
330 lib/gencache.c
331 lib/events.c
332 lib/server_contexts.c
333 lib/server_prefork.c
334 lib/server_prefork_util.c
335 lib/ldap_escape.c
336 lib/fncall.c
337 libads/krb5_errs.c
338 lib/system_smbd.c
339 lib/audit.c
340 lib/tevent_wait.c
341 lib/idmap_cache.c
342 lib/util_ea.c
343 lib/background.c''',
344 deps='''
345 samba3util
346 LIBTSOCKET
347 NDR_MESSAGING
348 LIBASYNC_REQ
349 UTIL_PW
350 SAMBA_VERSION
351 PTHREADPOOL
352 UNIX_MSG
353 POLL_FUNCS_TEVENT
354 interfaces
355 param
356 dbwrap
357 samba3-util
358 errors3
359 server_id_db
360 messages_util
361 messages_dgm
362 talloc_report
363 TDB_LIB''')
365 bld.SAMBA3_LIBRARY('smbd_shim',
366 source='''lib/smbd_shim.c''',
367 deps='talloc',
368 private_library=True)
370 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
371 source='''libsmb/ntlmssp.c
372 libsmb/ntlmssp_wrap.c''',
373 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient')
375 bld.SAMBA3_SUBSYSTEM('auth_generic',
376 source='libsmb/auth_generic.c',
377 deps='LIBNTLMSSP gse gensec')
379 bld.SAMBA3_LIBRARY('libsmb',
380 source='''libsmb/clientgen.c
381 libsmb/cliconnect.c
382 libsmb/clifile.c
383 libsmb/clispnego.c
384 libsmb/clirap.c
385 libsmb/clierror.c
386 libsmb/climessage.c
387 libsmb/clireadwrite.c
388 libsmb/clilist.c
389 libsmb/cliprint.c
390 libsmb/clitrans.c
391 libsmb/clisecdesc.c
392 libsmb/clidgram.c
393 libsmb/clistr.c
394 libsmb/cliquota.c
395 libsmb/clifsinfo.c
396 libsmb/clidfs.c
397 libsmb/clioplock.c
398 libsmb/clirap2.c
399 libsmb/async_smb.c
400 libsmb/reparse_symlink.c
401 libsmb/clisymlink.c
402 libsmb/smbsock_connect.c
403 libsmb/cli_smb2_fnum.c''',
404 deps='''
405 LIBNTLMSSP
406 auth_generic
407 CLDAP
408 LIBNMB
409 SPNEGO_PARSE
410 LIBTSOCKET
411 KRBCLIENT
412 NDR_IOCTL
413 cli_smb_common
414 util_cmdline
415 tevent''',
416 private_library=True)
418 bld.SAMBA3_SUBSYSTEM('CLDAP',
419 source='libads/cldap.c',
420 deps='cli-ldap-common cli_cldap LIBTSOCKET')
422 # NOTE: The secrets3 library is a low level library used by several subsystems.
423 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
424 # doing that your design is wrong and needs changing. -SSS
425 bld.SAMBA3_LIBRARY('secrets3',
426 source='''passdb/secrets.c
427 passdb/machine_account_secrets.c
428 passdb/machine_sid.c
429 passdb/secrets_lsa.c''',
430 deps='NDR_SECRETS param samba3util dbwrap',
431 private_library=True)
433 bld.SAMBA3_LIBRARY('smbldap',
434 source='lib/smbldap.c',
435 deps='ldap lber samba-util param',
436 enabled=bld.CONFIG_SET("HAVE_LDAP"),
437 private_library=False,
438 abi_directory='lib/ABI',
439 abi_match='smbldap_*',
440 pc_files=[],
441 vnum='0',
442 public_headers='include/smbldap.h include/smb_ldap.h')
444 bld.SAMBA3_LIBRARY('ads',
445 source='''libads/ldap.c
446 libads/sasl.c
447 libads/sasl_wrapping.c
448 libads/krb5_setpw.c
449 libads/kerberos_util.c
450 libads/ldap_user.c
451 libads/ads_struct.c
452 libads/kerberos_keytab.c
453 libads/disp_sec.c
454 libads/ldap_utils.c
455 libads/ldap_schema.c
456 libads/util.c
457 libads/ndr.c''',
458 deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
459 private_library=True)
461 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
462 source='libads/authdata.c',
463 deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
465 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
466 source='libads/ldap_printer.c',
467 deps='samba-util krb5samba')
469 bld.SAMBA3_LIBRARY('smbconf',
470 source='''lib/smbconf/smbconf_init.c
471 lib/smbconf/smbconf_reg.c''',
472 deps='''
473 CHARSET3
474 LIBSMBCONF
475 REG_SMBCONF
476 SAMBA_VERSION
478 charset
479 cli_smb_common
480 errors3
481 param
482 samba-util
483 smbregistry
484 talloc
485 util_reg''',
486 public_headers='../lib/smbconf/smbconf.h',
487 pc_files=[],
488 vnum='0')
490 bld.SAMBA3_LIBRARY('smbd_conn',
491 source='smbd/conn.c',
492 deps='samba3-util samba-util',
493 private_library=True)
495 bld.SAMBA3_SUBSYSTEM('sysquotas',
496 source='''
497 lib/sysquotas.c
498 lib/sysquotas_linux.c
499 lib/sysquotas_xfs.c
500 lib/sysquotas_4A.c
501 lib/sysquotas_4B.c
502 lib/sysquotas_nfs.c
503 ''',
504 allow_warnings=True,
505 deps='samba3-util samba-util')
507 NOTIFY_SOURCES=''
508 NOTIFY_DEPS=''
510 if bld.CONFIG_SET("HAVE_INOTIFY"):
511 NOTIFY_SOURCES += ' smbd/notify_inotify.c'
513 if bld.CONFIG_SET('SAMBA_FAM_LIBS'):
514 NOTIFY_SOURCES += ' smbd/notify_fam.c'
515 NOTIFY_DEPS += ' ' + bld.CONFIG_GET('SAMBA_FAM_LIBS')
517 bld.SAMBA3_LIBRARY('smbd_base',
518 source='''
519 smbd/server_reload.c
520 smbd/files.c
521 smbd/connection.c
522 smbd/utmp.c
523 smbd/session.c
524 smbd/dfree.c
525 smbd/dir.c
526 smbd/password.c
527 smbd/conn_msg.c
528 smbd/conn_idle.c
529 smbd/share_access.c
530 smbd/fileio.c
531 smbd/ipc.c
532 smbd/lanman.c
533 smbd/negprot.c
534 smbd/message.c
535 smbd/nttrans.c
536 smbd/pipes.c
537 smbd/reply.c
538 smbd/sesssetup.c
539 smbd/trans2.c
540 smbd/uid.c
541 smbd/dosmode.c
542 smbd/filename.c
543 smbd/open.c
544 smbd/close.c
545 smbd/blocking.c
546 smbd/sec_ctx.c
547 smbd/srvstr.c
548 smbd/vfs.c
549 smbd/perfcount.c
550 smbd/statcache.c
551 smbd/seal.c
552 smbd/posix_acls.c
553 lib/sysacls.c
554 smbd/process.c
555 smbd/service.c
556 smbd/error.c
557 printing/printspoolss.c
558 printing/spoolssd.c
559 lib/sessionid_tdb.c
560 lib/conn_tdb.c
561 smbd/fake_file.c
562 smbd/quotas.c
563 smbd/ntquotas.c
564 smbd/msdfs.c
565 smbd/aio.c smbd/statvfs.c
566 smbd/dmapi.c
567 smbd/signing.c
568 smbd/file_access.c
569 smbd/dnsregister.c smbd/globals.c
570 smbd/smb2_server.c
571 smbd/smb2_glue.c
572 smbd/smb2_negprot.c
573 smbd/smb2_sesssetup.c
574 smbd/smb2_tcon.c
575 smbd/smb2_create.c
576 smbd/smb2_close.c
577 smbd/smb2_flush.c
578 smbd/smb2_read.c
579 smbd/smb2_write.c
580 smbd/smb2_lock.c
581 smbd/smb2_ioctl.c
582 smbd/smb2_ioctl_dfs.c
583 smbd/smb2_ioctl_filesys.c
584 smbd/smb2_ioctl_named_pipe.c
585 smbd/smb2_ioctl_network_fs.c
586 smbd/smb2_keepalive.c
587 smbd/smb2_query_directory.c
588 smbd/smb2_notify.c
589 smbd/smb2_getinfo.c
590 smbd/smb2_setinfo.c
591 smbd/smb2_break.c
592 smbd/smbXsrv_version.c
593 smbd/smbXsrv_session.c
594 smbd/smbXsrv_tcon.c
595 smbd/smbXsrv_open.c
596 smbd/server_exit.c
597 smbd/durable.c
598 smbd/scavenger.c
599 smbd/mangle.c
600 smbd/mangle_hash.c
601 smbd/mangle_hash2.c
602 smbd/oplock.c
603 smbd/oplock_irix.c
604 smbd/oplock_linux.c
605 smbd/notify.c
606 smbd/notify_msg.c
607 smbd/build_options.c''' + NOTIFY_SOURCES,
608 deps='''
609 talloc
610 tevent
612 libsmb
613 msrpc3
615 vfs_default
616 vfs_posixacl
617 inotify
618 popt_samba3
619 samba3core
620 smbd_conn
621 param_service
622 AVAHI
623 PRINTBASE
624 PROFILE
625 LOCKING
626 LIBADS_SERVER
627 LIBAFS
628 RPC_SERVICE
629 NDR_SMBXSRV
630 LEASES_DB
631 LIBASYS
632 sysquotas
633 NDR_SMB_ACL
634 netapi
635 NDR_IOCTL
636 notifyd
637 ''' +
638 bld.env['dmapi_lib'] +
639 NOTIFY_DEPS,
640 private_library=True)
642 bld.SAMBA3_SUBSYSTEM('LOCKING',
643 source='''locking/locking.c
644 locking/brlock.c
645 locking/posix.c
646 locking/share_mode_lock.c''',
647 deps='''
649 talloc
650 LEASES_DB
651 NDR_OPEN_FILES
652 FNAME_UTIL''')
654 bld.SAMBA3_SUBSYSTEM('LEASES_DB',
655 source='locking/leases_db.c',
656 deps='NDR_LEASES_DB')
658 if bld.CONFIG_GET("WITH_PROFILE"):
659 bld.SAMBA3_SUBSYSTEM('PROFILE',
660 source='profile/profile.c',
661 deps='samba-util')
662 else:
663 bld.SAMBA3_SUBSYSTEM('PROFILE',
664 source='profile/profile_dummy.c',
665 deps='')
667 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
668 source='''printing/notify.c printing/printing_db.c''',
669 deps='samba-util tdb')
671 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
672 source='''printing/printing.c
673 printing/nt_printing.c
674 printing/nt_printing_tdb.c
675 printing/nt_printing_migrate_internal.c
676 printing/nt_printing_ads.c
677 printing/queue_process.c''',
678 deps='PRINTBASE LIBADS_PRINTER tdb printing_migrate')
680 bld.SAMBA3_LIBRARY('printing_migrate',
681 source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
682 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
683 private_library=True)
685 bld.SAMBA3_SUBSYSTEM('PRINTING',
686 source='''printing/pcap.c
687 printing/print_svid.c
688 printing/print_aix.c
689 printing/print_cups.c
690 printing/print_generic.c
691 printing/lpq_parse.c
692 printing/load.c
693 printing/print_standard.c
694 printing/print_iprint.c
695 printing/printer_list.c''',
696 deps='NDR_PRINTCAP tdb cups')
698 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
699 source='utils/passwd_util.c',
700 deps='samba-util')
702 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
703 source='lib/filename_util.c',
704 deps='samba-util')
706 bld.SAMBA3_SUBSYSTEM('LIBNET',
707 source='libnet/libnet_join.c',
708 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
710 bld.SAMBA3_LIBRARY('net_keytab',
711 source='libnet/libnet_keytab.c',
712 deps='krb5samba ads',
713 private_library=True)
716 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
717 source='''libnet/libnet_dssync.c
718 libnet/libnet_dssync_passdb.c
719 libnet/libnet_dssync_keytab.c''',
720 deps='LIBNET RPC_NDR_DRSUAPI')
722 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
723 source='''libnet/libnet_samsync.c
724 libnet/libnet_samsync_ldif.c
725 libnet/libnet_samsync_passdb.c
726 libnet/libnet_samsync_display.c
727 libnet/libnet_samsync_keytab.c''',
728 deps='LIBNET LIBCLI_SAMSYNC')
730 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
731 source='lib/eventlog/eventlog.c',
732 deps='NDR_EVENTLOG tdb')
734 bld.SAMBA3_SUBSYSTEM('LIBNMB',
735 source='''libsmb/unexpected.c
736 libsmb/namecache.c
737 libsmb/nmblib.c
738 libsmb/namequery.c
739 libsmb/conncache.c
740 libads/sitename_cache.c''',
741 deps='LIBTSOCKET samba3util addns lmhosts resolv')
743 bld.SAMBA3_SUBSYSTEM('SERVICES',
744 source='''services/svc_spoolss.c
745 services/svc_rcinit.c
746 services/svc_winreg_glue.c
747 services/svc_netlogon.c
748 services/svc_winreg.c
749 services/svc_wins.c''',
750 deps='samba-util')
752 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
753 source='''auth/pampass.c auth/pass_check.c''',
754 deps='pam PAM_ERRORS')
756 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
757 source='libsmb/passchange.c',
758 deps='''LIBCLI_SAMR
759 INIT_LSA
760 msrpc3
761 krb5samba''')
763 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
764 source='lib/version.c',
765 deps='samba-util')
767 bld.SAMBA3_SUBSYSTEM('SLCACHE',
768 source='libsmb/samlogon_cache.c',
769 deps='samba-util tdb')
771 bld.SAMBA3_SUBSYSTEM('DCUTIL',
772 source='''libsmb/namequery_dc.c
773 libsmb/trustdom_cache.c
774 libsmb/dsgetdcname.c''',
775 deps='ads msrpc3 libcli_lsa3')
777 bld.SAMBA3_LIBRARY('trusts_util',
778 source='libsmb/trusts_util.c',
779 deps='libcli_netlogon3 msrpc3 samba-passdb',
780 private_library=True)
782 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
783 source='lib/util_tdb.c',
784 deps='talloc samba3-util')
786 bld.SAMBA3_LIBRARY('msghdr',
787 source='lib/msghdr.c',
788 deps='replace iov_buf',
789 private_library=True)
791 bld.SAMBA3_LIBRARY('samba3-util',
792 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
793 deps='samba-util charset',
794 private_library=True)
796 bld.SAMBA_LIBRARY('xattr_tdb',
797 source='lib/xattr_tdb.c',
798 deps='NDR_XATTR dbwrap samba3-util',
799 private_library=True)
801 bld.SAMBA3_LIBRARY('CHARSET3',
802 source='''lib/charcnv.c lib/fstring.c''',
803 public_deps='ICONV_WRAPPER charset',
804 deps='samba-util samba3-util',
805 private_library=True)
807 bld.SAMBA3_SUBSYSTEM('errors3',
808 source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
809 deps='errors')
811 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
812 source='rpc_client/cli_samr.c',
813 deps='RPC_NDR_SAMR')
815 bld.SAMBA3_LIBRARY('libcli_lsa3',
816 source='rpc_client/cli_lsarpc.c',
817 deps='RPC_NDR_LSA INIT_LSA',
818 private_library=True)
820 bld.SAMBA3_LIBRARY('libcli_netlogon3',
821 source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
822 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI',
823 private_library=True)
825 bld.SAMBA3_LIBRARY('cli_spoolss',
826 source='''rpc_client/cli_spoolss.c
827 rpc_client/init_spoolss.c''',
828 deps='RPC_NDR_SPOOLSS param secrets3',
829 private_library=True)
831 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
832 source='rpc_client/cli_winreg.c',
833 deps='RPC_NDR_WINREG')
835 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
836 source='rpc_client/cli_winreg_int.c',
837 deps='LIBCLI_WINREG RPC_SERVER')
839 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
840 source='rpc_client/cli_pipe_schannel.c',
841 deps='samba-util krb5samba')
843 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
844 source='rpc_client/init_lsa.c',
845 deps='samba-util')
847 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
848 source='rpc_client/init_netlogon.c',
849 deps='samba-util')
851 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
852 source='rpc_client/init_samr.c',
853 deps='samba-util')
855 bld.SAMBA3_SUBSYSTEM('LIBLSA',
856 source='lib/lsa.c')
858 ########################## BINARIES #################################
860 bld.SAMBA3_BINARY('smbd/smbd',
861 source='smbd/server.c',
862 deps='smbd_base EPMD LSASD FSSD MDSSD',
863 install_path='${SBINDIR}')
865 bld.SAMBA3_BINARY('nmbd/nmbd',
866 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
867 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
868 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
869 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
870 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
871 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
872 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
873 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
874 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
875 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
876 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
877 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
878 deps='''
879 talloc
880 tevent
881 param
882 libsmb
883 popt_samba3
884 ''',
885 install_path='${SBINDIR}')
888 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
889 source='lib/tdb_validate.c',
890 deps='samba-util')
893 bld.SAMBA3_BINARY('winbindd/winbindd',
894 source='''winbindd/winbindd.c
895 winbindd/winbindd_group.c
896 winbindd/winbindd_util.c
897 winbindd/winbindd_cache.c
898 winbindd/winbindd_pam.c
899 winbindd/winbindd_misc.c
900 winbindd/winbindd_cm.c
901 winbindd/winbindd_wins_byip.c
902 winbindd/winbindd_wins_byname.c
903 winbindd/winbindd_msrpc.c
904 winbindd/winbindd_rpc.c
905 winbindd/winbindd_reconnect.c
906 winbindd/winbindd_ads.c
907 winbindd/winbindd_samr.c
908 winbindd/winbindd_dual.c
909 winbindd/winbindd_dual_ndr.c
910 winbindd/winbindd_dual_srv.c
911 winbindd/winbindd_async.c
912 winbindd/winbindd_creds.c
913 winbindd/winbindd_cred_cache.c
914 winbindd/winbindd_ccache_access.c
915 winbindd/winbindd_domain.c
916 winbindd/winbindd_idmap.c
917 winbindd/winbindd_locator.c
918 winbindd/winbindd_ndr.c
919 winbindd/wb_ping.c
920 winbindd/wb_lookupsid.c
921 winbindd/wb_lookupsids.c
922 winbindd/wb_lookupname.c
923 winbindd/wb_uid2sid.c
924 winbindd/wb_gid2sid.c
925 winbindd/wb_sids2xids.c
926 winbindd/wb_queryuser.c
927 winbindd/wb_lookupuseraliases.c
928 winbindd/wb_lookupusergroups.c
929 winbindd/wb_getpwsid.c
930 winbindd/wb_gettoken.c
931 winbindd/wb_seqnum.c
932 winbindd/wb_seqnums.c
933 winbindd/wb_group_members.c
934 winbindd/wb_getgrsid.c
935 winbindd/wb_query_user_list.c
936 winbindd/wb_query_group_list.c
937 winbindd/wb_fill_pwent.c
938 winbindd/wb_next_pwent.c
939 winbindd/wb_next_grent.c
940 winbindd/wb_dsgetdcname.c
941 winbindd/winbindd_lookupsid.c
942 winbindd/winbindd_lookupsids.c
943 winbindd/winbindd_lookupname.c
944 winbindd/winbindd_sid_to_uid.c
945 winbindd/winbindd_sid_to_gid.c
946 winbindd/winbindd_uid_to_sid.c
947 winbindd/winbindd_gid_to_sid.c
948 winbindd/winbindd_sids_to_xids.c
949 winbindd/winbindd_allocate_uid.c
950 winbindd/winbindd_allocate_gid.c
951 winbindd/winbindd_getpwsid.c
952 winbindd/winbindd_getpwnam.c
953 winbindd/winbindd_getpwuid.c
954 winbindd/winbindd_getsidaliases.c
955 winbindd/winbindd_getuserdomgroups.c
956 winbindd/winbindd_getgroups.c
957 winbindd/winbindd_show_sequence.c
958 winbindd/winbindd_getgrgid.c
959 winbindd/winbindd_getgrnam.c
960 winbindd/winbindd_getusersids.c
961 winbindd/winbindd_lookuprids.c
962 winbindd/winbindd_setpwent.c
963 winbindd/winbindd_getpwent.c
964 winbindd/winbindd_endpwent.c
965 winbindd/winbindd_setgrent.c
966 winbindd/winbindd_getgrent.c
967 winbindd/winbindd_endgrent.c
968 winbindd/winbindd_dsgetdcname.c
969 winbindd/winbindd_getdcname.c
970 winbindd/winbindd_list_users.c
971 winbindd/winbindd_list_groups.c
972 winbindd/winbindd_check_machine_acct.c
973 winbindd/winbindd_change_machine_acct.c
974 winbindd/winbindd_irpc.c
975 winbindd/winbindd_ping_dc.c
976 winbindd/winbindd_pam_auth.c
977 winbindd/winbindd_pam_logoff.c
978 winbindd/winbindd_pam_chauthtok.c
979 winbindd/winbindd_pam_auth_crap.c
980 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
981 deps='''
982 talloc
983 tevent
985 popt_samba3
986 idmap
988 msrpc3
989 nss_info
990 LIBAFS
991 LIBADS_SERVER
992 LIBCLI_SAMR
993 SLCACHE
994 RPC_NDR_DSSETUP
995 RPC_NDR_WINBIND
996 SRV_NDR_WINBIND
997 RPC_SAMR
998 RPC_LSARPC
999 RPC_SERVER
1000 WB_REQTRANS
1001 TDB_VALIDATE
1002 MESSAGING
1003 LIBLSA
1004 ''',
1005 enabled=bld.env.build_winbind,
1006 install_path='${SBINDIR}')
1008 bld.SAMBA3_BINARY('rpcclient/rpcclient',
1009 source='''rpcclient/rpcclient.c
1010 rpcclient/cmd_lsarpc.c
1011 rpcclient/cmd_samr.c
1012 rpcclient/cmd_spoolss.c
1013 rpcclient/cmd_netlogon.c
1014 rpcclient/cmd_srvsvc.c
1015 rpcclient/cmd_dfs.c
1016 rpcclient/cmd_epmapper.c
1017 rpcclient/cmd_dssetup.c
1018 rpcclient/cmd_echo.c
1019 rpcclient/cmd_shutdown.c
1020 rpcclient/cmd_test.c
1021 rpcclient/cmd_wkssvc.c
1022 rpcclient/cmd_ntsvcs.c
1023 rpcclient/cmd_drsuapi.c
1024 rpcclient/cmd_eventlog.c
1025 rpcclient/cmd_winreg.c
1026 rpcclient/cmd_fss.c
1027 rpcclient/cmd_witness.c
1028 rpcclient/cmd_clusapi.c''',
1029 deps='''
1030 talloc
1031 popt_samba3
1033 libsmb
1034 param
1035 ndr-standard
1036 msrpc3
1037 SMBREADLINE
1038 trusts_util
1039 RPC_NDR_WINREG
1040 RPC_NDR_ECHO
1041 RPC_CLIENT_SCHANNEL
1042 DCUTIL
1043 LIBCLI_SAMR
1044 libcli_lsa3
1045 libcli_netlogon3
1046 cli_spoolss
1047 RPC_NDR_SRVSVC
1048 RPC_NDR_WKSSVC
1049 RPC_NDR_DSSETUP
1050 RPC_NDR_DFS
1051 RPC_NDR_DRSUAPI
1052 RPC_NDR_NTSVCS
1053 RPC_NDR_EVENTLOG
1054 INIT_SAMR
1055 RPC_NDR_FSRVP
1056 RPC_NDR_WITNESS
1057 RPC_NDR_CLUSAPI
1058 ''')
1060 bld.SAMBA3_BINARY('client/smbclient',
1061 source='''client/client.c
1062 client/clitar.c
1063 client/dnsbrowse.c''',
1064 deps='''
1065 talloc
1066 popt_samba3
1067 param
1068 ndr-standard
1069 SMBREADLINE
1070 libsmb
1071 msrpc3
1072 RPC_NDR_SRVSVC
1073 cli_smb_common
1074 ''' + bld.env['archive_lib'])
1076 bld.SAMBA3_BINARY('net',
1077 source='''utils/net.c
1078 utils/net_ads.c
1079 utils/net_help.c
1080 utils/net_rap.c
1081 utils/net_rpc.c
1082 utils/net_rpc_samsync.c
1083 utils/net_time.c
1084 utils/net_lookup.c
1085 utils/net_cache.c
1086 utils/net_groupmap.c
1087 utils/net_idmap.c
1088 utils/net_idmap_check.c
1089 utils/interact.c
1090 utils/net_status.c
1091 utils/net_rpc_printer.c
1092 utils/net_rpc_rights.c
1093 utils/net_rpc_service.c
1094 utils/net_rpc_registry.c
1095 utils/net_usershare.c
1096 utils/netlookup.c
1097 utils/net_sam.c
1098 utils/net_rpc_shell.c
1099 utils/net_util.c
1100 utils/net_rpc_sh_acct.c
1101 utils/net_rpc_audit.c
1102 utils/net_dns.c
1103 utils/net_ads_gpo.c
1104 utils/net_conf.c
1105 utils/net_conf_util.c
1106 utils/net_join.c
1107 utils/net_user.c
1108 utils/net_group.c
1109 utils/net_file.c
1110 utils/net_registry.c
1111 utils/net_registry_check.c
1112 utils/net_dom.c
1113 utils/net_share.c
1114 utils/net_g_lock.c
1115 utils/net_serverid.c
1116 utils/net_eventlog.c
1117 utils/net_printing.c
1118 utils/net_rpc_trust.c
1119 utils/net_rpc_conf.c
1120 utils/net_afs.c
1121 utils/net_notify.c
1122 registry/reg_parse.c
1123 registry/reg_format.c
1124 registry/reg_import.c
1125 utils/net_registry_util.c
1126 utils/net_help_common.c''',
1127 deps='''
1128 talloc
1129 netapi
1130 addns
1131 samba_intl
1132 popt_samba3
1134 libsmb
1135 param
1136 KRBCLIENT
1137 ndr-standard
1138 msrpc3
1141 smbd_base
1142 LIBADS_SERVER
1143 LIBADS_PRINTER
1144 SMBREADLINE
1145 PASSWD_UTIL
1146 LIBNET
1147 LIBNET_DSSYNC
1148 LIBNET_SAMSYNC
1149 LIBEVENTLOG
1150 REGFIO
1151 NDR_NTPRINTING
1152 RPC_NDR_WINREG
1153 RPC_CLIENT_SCHANNEL
1154 LIBCLI_SAMR
1155 libcli_lsa3
1156 libcli_netlogon3
1157 cli_spoolss
1158 RPC_NDR_SRVSVC
1159 RPC_NDR_SVCCTL
1160 RPC_NDR_DSSETUP
1161 RPC_NDR_INITSHUTDOWN
1162 printing_migrate
1163 trusts_util
1164 IDMAP_AUTORID_TDB''')
1166 bld.SAMBA3_BINARY('profiles',
1167 source='utils/profiles.c',
1168 deps='''
1169 talloc
1170 popt_samba3
1171 param
1172 REGFIO''')
1174 bld.SAMBA3_BINARY('smbspool',
1175 source='client/smbspool.c',
1176 deps='''
1177 talloc
1178 popt_samba3
1179 param
1180 libsmb
1181 samba3core''')
1183 bld.SAMBA3_BINARY('testparm',
1184 source='utils/testparm.c',
1185 deps='''
1186 talloc
1187 param
1188 popt_samba3''')
1190 smbstatus_source = 'utils/status.c smbd/notify_msg.c'
1192 if bld.CONFIG_GET("WITH_PROFILE"):
1193 smbstatus_source += ' utils/status_profile.c'
1194 else:
1195 smbstatus_source += ' utils/status_profile_dummy.c'
1197 bld.SAMBA3_BINARY('smbstatus',
1198 source=smbstatus_source,
1199 deps='''
1200 talloc
1201 param
1202 popt_samba3
1203 smbd_base
1204 LOCKING
1205 PROFILE''')
1207 bld.SAMBA3_BINARY('smbcontrol',
1208 source='utils/smbcontrol.c',
1209 deps='''
1210 talloc
1211 param
1212 popt_samba3
1213 PRINTBASE''')
1215 bld.SAMBA3_BINARY('smbtree',
1216 source='utils/smbtree.c',
1217 deps='''
1218 talloc
1219 param
1220 libsmb
1221 msrpc3
1222 popt_samba3
1223 RPC_NDR_SRVSVC''')
1225 bld.SAMBA3_BINARY('smbpasswd',
1226 source='utils/smbpasswd.c',
1227 deps='''
1228 talloc
1229 param
1231 PASSWD_UTIL
1232 PASSCHANGE''')
1234 bld.SAMBA3_BINARY('pdbedit',
1235 source='utils/pdbedit.c',
1236 deps='''
1237 talloc
1238 param
1239 popt_samba3
1241 PASSWD_UTIL''')
1243 bld.SAMBA3_BINARY('smbget',
1244 source='utils/smbget.c',
1245 deps='''
1246 talloc
1247 popt_samba3
1248 smbclient''')
1250 bld.SAMBA3_BINARY('nmblookup',
1251 source='utils/nmblookup.c',
1252 deps='''
1253 talloc
1254 param
1255 popt_samba3
1256 LIBNMB''')
1258 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1259 source='''torture/torture.c
1260 torture/nbio.c
1261 torture/scanner.c
1262 torture/utable.c
1263 torture/denytest.c
1264 torture/mangle_test.c
1265 torture/nbench.c
1266 torture/test_async_echo.c
1267 torture/test_addrchange.c
1268 torture/test_posix_append.c
1269 torture/test_nttrans_create.c
1270 torture/test_nttrans_fsctl.c
1271 torture/test_case_insensitive.c
1272 torture/test_notify_online.c
1273 torture/test_chain3.c
1274 torture/test_smb2.c
1275 torture/test_authinfo_structs.c
1276 torture/test_smbsock_any_connect.c
1277 torture/test_cleanup.c
1278 torture/test_notify.c
1279 lib/tevent_barrier.c
1280 torture/test_dbwrap_watch.c
1281 torture/test_idmap_tdb_common.c
1282 torture/test_dbwrap_ctdb.c
1283 torture/test_buffersize.c
1284 torture/test_messaging_read.c
1285 torture/test_messaging_fd_passing.c
1286 torture/test_oplock_cancel.c
1287 torture/t_strappend.c
1288 torture/bench_pthreadpool.c
1289 torture/wbc_async.c''',
1290 deps='''
1291 talloc
1292 param
1293 libsmb
1294 msrpc3
1295 TLDAP
1296 RPC_NDR_ECHO
1297 WB_REQTRANS
1298 LOCKING
1299 NDR_OPEN_FILES
1300 idmap
1301 IDMAP_TDB_COMMON
1302 samba-cluster-support
1303 ''',
1304 cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1305 install=False)
1307 bld.SAMBA3_BINARY('smbconftort',
1308 source='lib/smbconf/testsuite.c',
1309 deps='''
1310 talloc
1311 param
1312 popt_samba3''',
1313 install=False)
1315 bld.SAMBA3_BINARY('replacetort',
1316 source='../lib/replace/test/main.c',
1317 deps='replace replace-test',
1318 install=False)
1320 bld.SAMBA3_BINARY('msgtest',
1321 source='torture/msgtest.c',
1322 deps='''
1323 talloc
1324 param''',
1325 install=False)
1327 bld.SAMBA3_BINARY('msg_sink',
1328 source='torture/msg_sink.c',
1329 deps='''
1330 talloc
1331 param''',
1332 install=False)
1334 bld.SAMBA3_BINARY('msg_source',
1335 source='torture/msg_source.c',
1336 deps='''
1337 talloc
1338 param''',
1339 install=False)
1341 bld.SAMBA3_BINARY('smbcacls',
1342 source='utils/smbcacls.c lib/util_sd.c',
1343 deps='''
1344 talloc
1345 popt_samba3
1346 msrpc3
1347 libcli_lsa3
1348 krb5samba''')
1350 bld.SAMBA3_BINARY('smbcquotas',
1351 source='utils/smbcquotas.c',
1352 deps='''
1353 talloc
1354 popt_samba3
1355 libsmb
1356 msrpc3
1357 libcli_lsa3''')
1359 bld.SAMBA3_BINARY('eventlogadm',
1360 source='utils/eventlogadm.c',
1361 deps='''
1362 talloc
1363 param
1364 LIBEVENTLOG''')
1366 bld.SAMBA3_BINARY('sharesec',
1367 source='utils/sharesec.c lib/util_sd.c',
1368 deps='''
1369 talloc
1370 msrpc3
1371 libcli_lsa3
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 bld.SAMBA3_BINARY('spotlight2sparql',
1497 source='''
1498 rpc_server/mdssvc/sparql_parser_test.c
1499 rpc_server/mdssvc/sparql_parser.c
1500 rpc_server/mdssvc/sparql_lexer.c
1501 rpc_server/mdssvc/sparql_mapping.c''',
1502 deps='samba3-util talloc ' + bld.env['libtracker'],
1503 enabled=bld.env.with_spotlight,
1504 install=False)
1506 ########################## INCLUDES #################################
1508 bld.RECURSE('auth')
1509 bld.RECURSE('libgpo/gpext')
1510 bld.RECURSE('lib/pthreadpool')
1511 bld.RECURSE('lib/asys')
1512 bld.RECURSE('lib/poll_funcs')
1513 bld.RECURSE('lib/unix_msg')
1514 bld.RECURSE('librpc')
1515 bld.RECURSE('librpc/idl')
1516 bld.RECURSE('libsmb')
1517 bld.RECURSE('modules')
1518 bld.RECURSE('param')
1519 bld.RECURSE('passdb')
1520 bld.RECURSE('rpc_server')
1521 bld.RECURSE('script')
1522 bld.RECURSE('winbindd')
1523 bld.RECURSE('../examples/auth')
1524 bld.RECURSE('../examples/libsmbclient')
1525 bld.RECURSE('../examples/pdb')
1526 bld.RECURSE('../examples/VFS')
1527 bld.RECURSE('lib/netapi/tests')
1528 bld.RECURSE('lib/netapi/examples')
1529 bld.RECURSE('smbd/notifyd')
1531 bld.ENFORCE_GROUP_ORDERING()
1532 bld.CHECK_PROJECT_RULES()