idmap: Move idmap_init() under the static vars
[Samba.git] / source3 / wscript_build
blobf6351bf56fd24af3a08e5e72cd101975a440ee87
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 PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local.h param_global.h cups''')
176 # this includes only the low level parse code, not stuff
177 # that requires knowledge of security contexts
178 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS',
179 source='registry/reg_parse_prs.c')
181 bld.SAMBA3_SUBSYSTEM('REGFIO',
182 source='registry/regfio.c',
183 deps='samba-util REG_PARSE_PRS')
185 bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
186 source='registry/reg_api_regf.c',
187 deps='samba-util')
189 bld.SAMBA3_LIBRARY('smbregistry',
190 source='''registry/reg_api.c
191 registry/reg_dispatcher.c
192 registry/reg_cachehook.c
193 registry/reg_objects.c
194 registry/reg_util_internal.c
195 lib/util_nttoken.c
196 registry/reg_backend_db.c
197 registry/reg_parse_internal.c
198 lib/cbuf.c
199 lib/srprs.c
200 registry/reg_init_basic.c''',
201 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
202 replace util_reg samba-util samba-security
203 errors3 dbwrap samba3-util''',
204 allow_undefined_symbols=True,
205 private_library=True)
207 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
208 source='''registry/reg_backend_smbconf.c
209 registry/reg_init_smbconf.c
210 registry/reg_util_token.c
211 registry/reg_api_util.c''',
212 deps='smbregistry')
214 bld.SAMBA3_SUBSYSTEM('REG_FULL',
215 source='''registry/reg_backend_printing.c
216 registry/reg_backend_shares.c
217 registry/reg_backend_netlogon_params.c
218 registry/reg_backend_prod_options.c
219 registry/reg_backend_tcpip_params.c
220 registry/reg_backend_hkpt_params.c
221 registry/reg_backend_current_version.c
222 registry/reg_backend_perflib.c
223 registry/reg_init_full.c
224 registry/reg_perfcount.c''',
225 deps='REG_SMBCONF tdb-wrap3')
227 bld.SAMBA3_LIBRARY('popt_samba3',
228 source='lib/popt_common.c',
229 deps='popt samba-util util_cmdline',
230 private_library=True)
232 bld.SAMBA3_LIBRARY('util_cmdline',
233 source='lib/util_cmdline.c',
234 deps='secrets3',
235 private_library=True)
237 bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
238 source='libads/kerberos.c libads/ads_status.c',
239 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
241 bld.SAMBA3_LIBRARY('sys_rw',
242 source='lib/sys_rw.c lib/sys_rw_data.c',
243 deps='replace iov_buf',
244 private_library=True)
246 bld.SAMBA3_SUBSYSTEM('samba3util',
247 source='''lib/system.c
248 lib/sendfile.c
249 lib/recvfile.c
250 lib/time.c
251 lib/util_sid.c
252 lib/util_file.c
253 lib/util.c
254 lib/util_sock.c
255 lib/util_tsock.c
256 lib/util_transfer_file.c
257 lib/sock_exec.c''',
258 deps='ndr LIBTSOCKET samba-security NDR_SECURITY samba-util util_tdb sys_rw iov_buf')
260 if bld.CONFIG_GET("CTDB_CFLAGS") and bld.CONFIG_GET("CTDB_INCLUDE"):
261 SAMBA_CLUSTER_SUPPORT_SOURCES='''
262 lib/cluster_support.c
263 lib/dbwrap/dbwrap_ctdb.c
264 lib/messages_ctdbd.c
265 lib/ctdbd_conn.c
267 SAMBA_CLUSTER_SUPPORT_DEPS='''
268 talloc
269 tevent
272 else:
273 SAMBA_CLUSTER_SUPPORT_SOURCES='''
274 lib/cluster_support.c
275 lib/ctdb_dummy.c
277 SAMBA_CLUSTER_SUPPORT_DEPS='''
278 talloc
279 tevent
282 bld.SAMBA3_LIBRARY('samba-cluster-support',
283 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
284 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
285 cflags=bld.CONFIG_GET("CTDB_CFLAGS"),
286 includes=bld.CONFIG_GET("CTDB_INCLUDE"),
287 allow_undefined_symbols=True,
288 private_library=True)
290 bld.SAMBA3_SUBSYSTEM('TDB_LIB',
291 source='''lib/dbwrap/dbwrap_open.c
292 lib/dbwrap/dbwrap_watch.c
293 lib/g_lock.c''',
294 deps='dbwrap samba-cluster-support')
296 bld.SAMBA3_LIBRARY('messages_dgm',
297 source='''lib/messages_dgm.c lib/messages_dgm_ref.c''',
298 deps='talloc UNIX_MSG POLL_FUNCS_TEVENT samba-debug',
299 private_library=True)
301 bld.SAMBA3_LIBRARY('messages_util',
302 source='''lib/messages_util.c''',
303 deps='samba-util',
304 private_library=True)
306 bld.SAMBA3_SUBSYSTEM('samba3core',
307 source='''lib/messages.c
308 lib/util_cluster.c
309 lib/id_cache.c
310 lib/talloc_dict.c
311 lib/serverid.c
312 lib/server_id_db_util.c
313 lib/addrchange.c
314 ../lib/util/debug_s3.c
315 lib/dumpcore.c
316 lib/interface.c
317 lib/username.c
318 lib/access.c lib/smbrun.c
319 lib/wins_srv.c
320 lib/substitute.c
321 lib/substitute_generic.c
322 lib/ms_fnmatch.c
323 lib/tallocmsg.c
324 lib/dmallocmsg.c
325 intl/lang_tdb.c
326 lib/gencache.c
327 lib/events.c
328 lib/server_contexts.c
329 lib/server_prefork.c
330 lib/server_prefork_util.c
331 lib/ldap_escape.c
332 lib/fncall.c
333 libads/krb5_errs.c
334 lib/system_smbd.c
335 lib/audit.c
336 lib/tevent_wait.c
337 lib/idmap_cache.c
338 lib/util_ea.c
339 lib/background.c''',
340 deps='''
341 samba3util
342 LIBTSOCKET
343 NDR_MESSAGING
344 LIBASYNC_REQ
345 UTIL_PW
346 SAMBA_VERSION
347 PTHREADPOOL
348 UNIX_MSG
349 POLL_FUNCS_TEVENT
350 interfaces
351 param
352 dbwrap
353 samba3-util
354 errors3
355 server_id_db
356 messages_util
357 messages_dgm
358 talloc_report
359 TDB_LIB''')
361 bld.SAMBA3_LIBRARY('smbd_shim',
362 source='''lib/smbd_shim.c''',
363 deps='talloc',
364 private_library=True)
366 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
367 source='''libsmb/ntlmssp.c
368 libsmb/ntlmssp_wrap.c''',
369 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient')
371 bld.SAMBA3_SUBSYSTEM('auth_generic',
372 source='libsmb/auth_generic.c',
373 deps='LIBNTLMSSP gse gensec')
375 bld.SAMBA3_LIBRARY('libsmb',
376 source='''libsmb/clientgen.c
377 libsmb/cliconnect.c
378 libsmb/clifile.c
379 libsmb/clispnego.c
380 libsmb/clirap.c
381 libsmb/clierror.c
382 libsmb/climessage.c
383 libsmb/clireadwrite.c
384 libsmb/clilist.c
385 libsmb/cliprint.c
386 libsmb/clitrans.c
387 libsmb/clisecdesc.c
388 libsmb/clidgram.c
389 libsmb/clistr.c
390 libsmb/cliquota.c
391 libsmb/clifsinfo.c
392 libsmb/clidfs.c
393 libsmb/clioplock.c
394 libsmb/clirap2.c
395 libsmb/async_smb.c
396 libsmb/reparse_symlink.c
397 libsmb/clisymlink.c
398 libsmb/smbsock_connect.c
399 libsmb/cli_smb2_fnum.c''',
400 deps='''
401 LIBNTLMSSP
402 auth_generic
403 CLDAP
404 LIBNMB
405 SPNEGO_PARSE
406 LIBTSOCKET
407 KRBCLIENT
408 NDR_IOCTL
409 cli_smb_common
410 util_cmdline
411 tevent''',
412 private_library=True)
414 bld.SAMBA3_SUBSYSTEM('CLDAP',
415 source='libads/cldap.c',
416 deps='cli-ldap-common cli_cldap LIBTSOCKET')
418 # NOTE: The secrets3 library is a low level library used by several subsystems.
419 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
420 # doing that your design is wrong and needs changing. -SSS
421 bld.SAMBA3_LIBRARY('secrets3',
422 source='''passdb/secrets.c
423 passdb/machine_account_secrets.c
424 passdb/machine_sid.c
425 passdb/secrets_lsa.c''',
426 deps='NDR_SECRETS param samba3util dbwrap',
427 private_library=True)
429 bld.SAMBA3_LIBRARY('smbldap',
430 source='lib/smbldap.c',
431 deps='ldap lber samba-util param',
432 enabled=bld.CONFIG_SET("HAVE_LDAP"),
433 private_library=False,
434 abi_directory='lib/ABI',
435 abi_match='smbldap_*',
436 pc_files=[],
437 vnum='0',
438 public_headers='include/smbldap.h include/smb_ldap.h')
440 bld.SAMBA3_LIBRARY('ads',
441 source='''libads/ldap.c
442 libads/sasl.c
443 libads/sasl_wrapping.c
444 libads/krb5_setpw.c
445 libads/kerberos_util.c
446 libads/ldap_user.c
447 libads/ads_struct.c
448 libads/kerberos_keytab.c
449 libads/disp_sec.c
450 libads/ldap_utils.c
451 libads/ldap_schema.c
452 libads/util.c
453 libads/ndr.c''',
454 deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
455 private_library=True)
457 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
458 source='libads/authdata.c',
459 deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
461 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
462 source='libads/ldap_printer.c',
463 deps='samba-util krb5samba')
465 bld.SAMBA3_LIBRARY('smbconf',
466 source='''lib/smbconf/smbconf_init.c
467 lib/smbconf/smbconf_reg.c''',
468 deps='''
469 CHARSET3
470 LIBSMBCONF
471 REG_SMBCONF
472 SAMBA_VERSION
474 charset
475 cli_smb_common
476 errors3
477 param
478 samba-util
479 smbregistry
480 talloc
481 util_reg''',
482 public_headers='../lib/smbconf/smbconf.h',
483 pc_files=[],
484 vnum='0')
486 bld.SAMBA3_LIBRARY('smbd_conn',
487 source='smbd/conn.c',
488 deps='samba3-util samba-util',
489 private_library=True)
491 bld.SAMBA3_SUBSYSTEM('sysquotas',
492 source='''
493 lib/sysquotas.c
494 lib/sysquotas_linux.c
495 lib/sysquotas_xfs.c
496 lib/sysquotas_4A.c
497 lib/sysquotas_4B.c
498 lib/sysquotas_nfs.c
499 ''',
500 allow_warnings=True,
501 deps='samba3-util samba-util')
503 NOTIFY_SOURCES=''
504 NOTIFY_DEPS=''
506 if bld.CONFIG_SET("HAVE_INOTIFY"):
507 NOTIFY_SOURCES += ' smbd/notify_inotify.c'
509 if bld.CONFIG_SET('SAMBA_FAM_LIBS'):
510 NOTIFY_SOURCES += ' smbd/notify_fam.c'
511 NOTIFY_DEPS += ' ' + bld.CONFIG_GET('SAMBA_FAM_LIBS')
513 bld.SAMBA3_LIBRARY('smbd_base',
514 source='''
515 smbd/server_reload.c
516 smbd/files.c
517 smbd/connection.c
518 smbd/utmp.c
519 smbd/session.c
520 smbd/dfree.c
521 smbd/dir.c
522 smbd/password.c
523 smbd/conn_msg.c
524 smbd/conn_idle.c
525 smbd/share_access.c
526 smbd/fileio.c
527 smbd/ipc.c
528 smbd/lanman.c
529 smbd/negprot.c
530 smbd/message.c
531 smbd/nttrans.c
532 smbd/pipes.c
533 smbd/reply.c
534 smbd/sesssetup.c
535 smbd/trans2.c
536 smbd/uid.c
537 smbd/dosmode.c
538 smbd/filename.c
539 smbd/open.c
540 smbd/close.c
541 smbd/blocking.c
542 smbd/sec_ctx.c
543 smbd/srvstr.c
544 smbd/vfs.c
545 smbd/perfcount.c
546 smbd/statcache.c
547 smbd/seal.c
548 smbd/posix_acls.c
549 lib/sysacls.c
550 smbd/process.c
551 smbd/service.c
552 smbd/error.c
553 printing/printspoolss.c
554 printing/spoolssd.c
555 lib/sessionid_tdb.c
556 lib/conn_tdb.c
557 smbd/fake_file.c
558 smbd/quotas.c
559 smbd/ntquotas.c
560 smbd/msdfs.c
561 smbd/aio.c smbd/statvfs.c
562 smbd/dmapi.c
563 smbd/signing.c
564 smbd/file_access.c
565 smbd/dnsregister.c smbd/globals.c
566 smbd/smb2_server.c
567 smbd/smb2_glue.c
568 smbd/smb2_negprot.c
569 smbd/smb2_sesssetup.c
570 smbd/smb2_tcon.c
571 smbd/smb2_create.c
572 smbd/smb2_close.c
573 smbd/smb2_flush.c
574 smbd/smb2_read.c
575 smbd/smb2_write.c
576 smbd/smb2_lock.c
577 smbd/smb2_ioctl.c
578 smbd/smb2_ioctl_dfs.c
579 smbd/smb2_ioctl_filesys.c
580 smbd/smb2_ioctl_named_pipe.c
581 smbd/smb2_ioctl_network_fs.c
582 smbd/smb2_keepalive.c
583 smbd/smb2_query_directory.c
584 smbd/smb2_notify.c
585 smbd/smb2_getinfo.c
586 smbd/smb2_setinfo.c
587 smbd/smb2_break.c
588 smbd/smbXsrv_version.c
589 smbd/smbXsrv_session.c
590 smbd/smbXsrv_tcon.c
591 smbd/smbXsrv_open.c
592 smbd/server_exit.c
593 smbd/durable.c
594 smbd/scavenger.c
595 smbd/mangle.c
596 smbd/mangle_hash.c
597 smbd/mangle_hash2.c
598 smbd/oplock.c
599 smbd/oplock_irix.c
600 smbd/oplock_linux.c
601 smbd/notify.c
602 smbd/notify_msg.c
603 smbd/build_options.c''' + NOTIFY_SOURCES,
604 deps='''
605 talloc
606 tevent
608 libsmb
609 msrpc3
611 vfs_default
612 vfs_posixacl
613 inotify
614 popt_samba3
615 samba3core
616 smbd_conn
617 param_service
618 AVAHI
619 PRINTBASE
620 PROFILE
621 LOCKING
622 LIBADS_SERVER
623 LIBAFS
624 RPC_SERVICE
625 NDR_SMBXSRV
626 LEASES_DB
627 LIBASYS
628 sysquotas
629 NDR_SMB_ACL
630 netapi
631 NDR_IOCTL
632 notifyd
633 ''' +
634 bld.env['dmapi_lib'] +
635 NOTIFY_DEPS,
636 private_library=True)
638 bld.SAMBA3_SUBSYSTEM('LOCKING',
639 source='''locking/locking.c
640 locking/brlock.c
641 locking/posix.c
642 locking/share_mode_lock.c''',
643 deps='''
645 talloc
646 LEASES_DB
647 NDR_OPEN_FILES
648 FNAME_UTIL''')
650 bld.SAMBA3_SUBSYSTEM('LEASES_DB',
651 source='locking/leases_db.c',
652 deps='NDR_LEASES_DB')
654 if bld.CONFIG_GET("WITH_PROFILE"):
655 bld.SAMBA3_SUBSYSTEM('PROFILE',
656 source='profile/profile.c',
657 deps='samba-util')
658 else:
659 bld.SAMBA3_SUBSYSTEM('PROFILE',
660 source='profile/profile_dummy.c',
661 deps='')
663 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
664 source='''printing/notify.c printing/printing_db.c''',
665 deps='samba-util tdb')
667 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
668 source='''printing/printing.c
669 printing/nt_printing.c
670 printing/nt_printing_tdb.c
671 printing/nt_printing_migrate_internal.c
672 printing/nt_printing_ads.c
673 printing/queue_process.c''',
674 deps='PRINTBASE LIBADS_PRINTER tdb printing_migrate')
676 bld.SAMBA3_LIBRARY('printing_migrate',
677 source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
678 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
679 private_library=True)
681 bld.SAMBA3_SUBSYSTEM('PRINTING',
682 source='''printing/pcap.c
683 printing/print_svid.c
684 printing/print_aix.c
685 printing/print_cups.c
686 printing/print_generic.c
687 printing/lpq_parse.c
688 printing/load.c
689 printing/print_standard.c
690 printing/print_iprint.c
691 printing/printer_list.c''',
692 deps='NDR_PRINTCAP tdb cups')
694 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
695 source='utils/passwd_util.c',
696 deps='samba-util')
698 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
699 source='lib/filename_util.c',
700 deps='samba-util')
702 bld.SAMBA3_SUBSYSTEM('LIBNET',
703 source='libnet/libnet_join.c',
704 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
706 bld.SAMBA3_LIBRARY('net_keytab',
707 source='libnet/libnet_keytab.c',
708 deps='krb5samba ads',
709 private_library=True)
712 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
713 source='''libnet/libnet_dssync.c
714 libnet/libnet_dssync_passdb.c
715 libnet/libnet_dssync_keytab.c''',
716 deps='LIBNET RPC_NDR_DRSUAPI')
718 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
719 source='''libnet/libnet_samsync.c
720 libnet/libnet_samsync_ldif.c
721 libnet/libnet_samsync_passdb.c
722 libnet/libnet_samsync_display.c
723 libnet/libnet_samsync_keytab.c''',
724 deps='LIBNET LIBCLI_SAMSYNC')
726 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
727 source='lib/eventlog/eventlog.c',
728 deps='NDR_EVENTLOG tdb')
730 bld.SAMBA3_SUBSYSTEM('LIBNMB',
731 source='''libsmb/unexpected.c
732 libsmb/namecache.c
733 libsmb/nmblib.c
734 libsmb/namequery.c
735 libsmb/conncache.c
736 libads/sitename_cache.c''',
737 deps='LIBTSOCKET samba3util addns lmhosts resolv')
739 bld.SAMBA3_SUBSYSTEM('SERVICES',
740 source='''services/svc_spoolss.c
741 services/svc_rcinit.c
742 services/svc_winreg_glue.c
743 services/svc_netlogon.c
744 services/svc_winreg.c
745 services/svc_wins.c''',
746 deps='samba-util')
748 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
749 source='''auth/pampass.c auth/pass_check.c''',
750 deps='pam PAM_ERRORS')
752 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
753 source='libsmb/passchange.c',
754 deps='''LIBCLI_SAMR
755 INIT_LSA
756 msrpc3
757 krb5samba''')
759 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
760 source='lib/version.c',
761 deps='samba-util')
763 bld.SAMBA3_SUBSYSTEM('SLCACHE',
764 source='libsmb/samlogon_cache.c',
765 deps='samba-util tdb')
767 bld.SAMBA3_SUBSYSTEM('DCUTIL',
768 source='''libsmb/namequery_dc.c
769 libsmb/trustdom_cache.c
770 libsmb/dsgetdcname.c''',
771 deps='ads msrpc3 libcli_lsa3')
773 bld.SAMBA3_LIBRARY('trusts_util',
774 source='libsmb/trusts_util.c',
775 deps='libcli_netlogon3 msrpc3 samba-passdb',
776 private_library=True)
778 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
779 source='lib/util_tdb.c',
780 deps='talloc samba3-util')
782 bld.SAMBA3_LIBRARY('msghdr',
783 source='lib/msghdr.c',
784 deps='replace iov_buf',
785 private_library=True)
787 bld.SAMBA3_LIBRARY('samba3-util',
788 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
789 deps='samba-util charset',
790 private_library=True)
792 bld.SAMBA_LIBRARY('xattr_tdb',
793 source='lib/xattr_tdb.c',
794 deps='NDR_XATTR dbwrap samba3-util',
795 private_library=True)
797 bld.SAMBA3_LIBRARY('CHARSET3',
798 source='''lib/charcnv.c lib/fstring.c''',
799 public_deps='ICONV_WRAPPER charset',
800 deps='samba-util samba3-util',
801 private_library=True)
803 bld.SAMBA3_SUBSYSTEM('errors3',
804 source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
805 deps='errors')
807 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
808 source='rpc_client/cli_samr.c',
809 deps='RPC_NDR_SAMR')
811 bld.SAMBA3_LIBRARY('libcli_lsa3',
812 source='rpc_client/cli_lsarpc.c',
813 deps='RPC_NDR_LSA INIT_LSA',
814 private_library=True)
816 bld.SAMBA3_LIBRARY('libcli_netlogon3',
817 source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
818 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI',
819 private_library=True)
821 bld.SAMBA3_LIBRARY('cli_spoolss',
822 source='''rpc_client/cli_spoolss.c
823 rpc_client/init_spoolss.c''',
824 deps='RPC_NDR_SPOOLSS param secrets3',
825 private_library=True)
827 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
828 source='rpc_client/cli_winreg.c',
829 deps='RPC_NDR_WINREG')
831 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
832 source='rpc_client/cli_winreg_int.c',
833 deps='LIBCLI_WINREG RPC_SERVER')
835 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
836 source='rpc_client/cli_pipe_schannel.c',
837 deps='samba-util krb5samba')
839 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
840 source='rpc_client/init_lsa.c',
841 deps='samba-util')
843 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
844 source='rpc_client/init_netlogon.c',
845 deps='samba-util')
847 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
848 source='rpc_client/init_samr.c',
849 deps='samba-util')
851 bld.SAMBA3_SUBSYSTEM('LIBLSA',
852 source='lib/lsa.c')
854 ########################## BINARIES #################################
856 bld.SAMBA3_BINARY('smbd/smbd',
857 source='smbd/server.c',
858 deps='smbd_base EPMD LSASD FSSD MDSSD',
859 install_path='${SBINDIR}')
861 bld.SAMBA3_BINARY('nmbd/nmbd',
862 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
863 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
864 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
865 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
866 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
867 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
868 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
869 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
870 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
871 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
872 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
873 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
874 deps='''
875 talloc
876 tevent
877 param
878 libsmb
879 popt_samba3
880 ''',
881 install_path='${SBINDIR}')
884 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
885 source='lib/tdb_validate.c',
886 deps='samba-util')
889 bld.SAMBA3_BINARY('winbindd/winbindd',
890 source='''winbindd/winbindd.c
891 winbindd/winbindd_group.c
892 winbindd/winbindd_util.c
893 winbindd/winbindd_cache.c
894 winbindd/winbindd_pam.c
895 winbindd/winbindd_misc.c
896 winbindd/winbindd_cm.c
897 winbindd/winbindd_wins_byip.c
898 winbindd/winbindd_wins_byname.c
899 winbindd/winbindd_msrpc.c
900 winbindd/winbindd_rpc.c
901 winbindd/winbindd_reconnect.c
902 winbindd/winbindd_ads.c
903 winbindd/winbindd_samr.c
904 winbindd/winbindd_dual.c
905 winbindd/winbindd_dual_ndr.c
906 winbindd/winbindd_dual_srv.c
907 winbindd/winbindd_async.c
908 winbindd/winbindd_creds.c
909 winbindd/winbindd_cred_cache.c
910 winbindd/winbindd_ccache_access.c
911 winbindd/winbindd_domain.c
912 winbindd/winbindd_idmap.c
913 winbindd/winbindd_locator.c
914 winbindd/winbindd_ndr.c
915 winbindd/wb_ping.c
916 winbindd/wb_lookupsid.c
917 winbindd/wb_lookupsids.c
918 winbindd/wb_lookupname.c
919 winbindd/wb_uid2sid.c
920 winbindd/wb_gid2sid.c
921 winbindd/wb_sids2xids.c
922 winbindd/wb_queryuser.c
923 winbindd/wb_lookupuseraliases.c
924 winbindd/wb_lookupusergroups.c
925 winbindd/wb_getpwsid.c
926 winbindd/wb_gettoken.c
927 winbindd/wb_seqnum.c
928 winbindd/wb_seqnums.c
929 winbindd/wb_group_members.c
930 winbindd/wb_getgrsid.c
931 winbindd/wb_query_user_list.c
932 winbindd/wb_query_group_list.c
933 winbindd/wb_fill_pwent.c
934 winbindd/wb_next_pwent.c
935 winbindd/wb_next_grent.c
936 winbindd/wb_dsgetdcname.c
937 winbindd/winbindd_lookupsid.c
938 winbindd/winbindd_lookupsids.c
939 winbindd/winbindd_lookupname.c
940 winbindd/winbindd_sid_to_uid.c
941 winbindd/winbindd_sid_to_gid.c
942 winbindd/winbindd_uid_to_sid.c
943 winbindd/winbindd_gid_to_sid.c
944 winbindd/winbindd_sids_to_xids.c
945 winbindd/winbindd_allocate_uid.c
946 winbindd/winbindd_allocate_gid.c
947 winbindd/winbindd_getpwsid.c
948 winbindd/winbindd_getpwnam.c
949 winbindd/winbindd_getpwuid.c
950 winbindd/winbindd_getsidaliases.c
951 winbindd/winbindd_getuserdomgroups.c
952 winbindd/winbindd_getgroups.c
953 winbindd/winbindd_show_sequence.c
954 winbindd/winbindd_getgrgid.c
955 winbindd/winbindd_getgrnam.c
956 winbindd/winbindd_getusersids.c
957 winbindd/winbindd_lookuprids.c
958 winbindd/winbindd_setpwent.c
959 winbindd/winbindd_getpwent.c
960 winbindd/winbindd_endpwent.c
961 winbindd/winbindd_setgrent.c
962 winbindd/winbindd_getgrent.c
963 winbindd/winbindd_endgrent.c
964 winbindd/winbindd_dsgetdcname.c
965 winbindd/winbindd_getdcname.c
966 winbindd/winbindd_list_users.c
967 winbindd/winbindd_list_groups.c
968 winbindd/winbindd_check_machine_acct.c
969 winbindd/winbindd_change_machine_acct.c
970 winbindd/winbindd_irpc.c
971 winbindd/winbindd_ping_dc.c
972 winbindd/winbindd_pam_auth.c
973 winbindd/winbindd_pam_logoff.c
974 winbindd/winbindd_pam_chauthtok.c
975 winbindd/winbindd_pam_auth_crap.c
976 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
977 deps='''
978 talloc
979 tevent
981 popt_samba3
982 idmap
984 msrpc3
985 nss_info
986 LIBAFS
987 LIBADS_SERVER
988 LIBCLI_SAMR
989 SLCACHE
990 RPC_NDR_DSSETUP
991 RPC_NDR_WINBIND
992 SRV_NDR_WINBIND
993 RPC_SAMR
994 RPC_LSARPC
995 RPC_SERVER
996 WB_REQTRANS
997 TDB_VALIDATE
998 MESSAGING
999 LIBLSA
1000 ''',
1001 enabled=bld.env.build_winbind,
1002 install_path='${SBINDIR}')
1004 bld.SAMBA3_BINARY('rpcclient/rpcclient',
1005 source='''rpcclient/rpcclient.c
1006 rpcclient/cmd_lsarpc.c
1007 rpcclient/cmd_samr.c
1008 rpcclient/cmd_spoolss.c
1009 rpcclient/cmd_netlogon.c
1010 rpcclient/cmd_srvsvc.c
1011 rpcclient/cmd_dfs.c
1012 rpcclient/cmd_epmapper.c
1013 rpcclient/cmd_dssetup.c
1014 rpcclient/cmd_echo.c
1015 rpcclient/cmd_shutdown.c
1016 rpcclient/cmd_test.c
1017 rpcclient/cmd_wkssvc.c
1018 rpcclient/cmd_ntsvcs.c
1019 rpcclient/cmd_drsuapi.c
1020 rpcclient/cmd_eventlog.c
1021 rpcclient/cmd_winreg.c
1022 rpcclient/cmd_fss.c
1023 rpcclient/cmd_witness.c
1024 rpcclient/cmd_clusapi.c''',
1025 deps='''
1026 talloc
1027 popt_samba3
1029 libsmb
1030 param
1031 ndr-standard
1032 msrpc3
1033 SMBREADLINE
1034 trusts_util
1035 RPC_NDR_WINREG
1036 RPC_NDR_ECHO
1037 RPC_CLIENT_SCHANNEL
1038 DCUTIL
1039 LIBCLI_SAMR
1040 libcli_lsa3
1041 libcli_netlogon3
1042 cli_spoolss
1043 RPC_NDR_SRVSVC
1044 RPC_NDR_WKSSVC
1045 RPC_NDR_DSSETUP
1046 RPC_NDR_DFS
1047 RPC_NDR_DRSUAPI
1048 RPC_NDR_NTSVCS
1049 RPC_NDR_EVENTLOG
1050 INIT_SAMR
1051 RPC_NDR_FSRVP
1052 RPC_NDR_WITNESS
1053 RPC_NDR_CLUSAPI
1054 ''')
1056 bld.SAMBA3_BINARY('client/smbclient',
1057 source='''client/client.c
1058 client/clitar.c
1059 client/dnsbrowse.c''',
1060 deps='''
1061 talloc
1062 popt_samba3
1063 param
1064 ndr-standard
1065 SMBREADLINE
1066 libsmb
1067 msrpc3
1068 RPC_NDR_SRVSVC
1069 cli_smb_common
1070 ''' + bld.env['archive_lib'])
1072 bld.SAMBA3_BINARY('net',
1073 source='''utils/net.c
1074 utils/net_ads.c
1075 utils/net_help.c
1076 utils/net_rap.c
1077 utils/net_rpc.c
1078 utils/net_rpc_samsync.c
1079 utils/net_time.c
1080 utils/net_lookup.c
1081 utils/net_cache.c
1082 utils/net_groupmap.c
1083 utils/net_idmap.c
1084 utils/net_idmap_check.c
1085 utils/interact.c
1086 utils/net_status.c
1087 utils/net_rpc_printer.c
1088 utils/net_rpc_rights.c
1089 utils/net_rpc_service.c
1090 utils/net_rpc_registry.c
1091 utils/net_usershare.c
1092 utils/netlookup.c
1093 utils/net_sam.c
1094 utils/net_rpc_shell.c
1095 utils/net_util.c
1096 utils/net_rpc_sh_acct.c
1097 utils/net_rpc_audit.c
1098 utils/net_dns.c
1099 utils/net_ads_gpo.c
1100 utils/net_conf.c
1101 utils/net_conf_util.c
1102 utils/net_join.c
1103 utils/net_user.c
1104 utils/net_group.c
1105 utils/net_file.c
1106 utils/net_registry.c
1107 utils/net_registry_check.c
1108 utils/net_dom.c
1109 utils/net_share.c
1110 utils/net_g_lock.c
1111 utils/net_serverid.c
1112 utils/net_eventlog.c
1113 utils/net_printing.c
1114 utils/net_rpc_trust.c
1115 utils/net_rpc_conf.c
1116 utils/net_afs.c
1117 utils/net_notify.c
1118 registry/reg_parse.c
1119 registry/reg_format.c
1120 registry/reg_import.c
1121 utils/net_registry_util.c
1122 utils/net_help_common.c''',
1123 deps='''
1124 talloc
1125 netapi
1126 addns
1127 samba_intl
1128 popt_samba3
1130 libsmb
1131 param
1132 KRBCLIENT
1133 ndr-standard
1134 msrpc3
1137 smbd_base
1138 LIBADS_SERVER
1139 LIBADS_PRINTER
1140 SMBREADLINE
1141 PASSWD_UTIL
1142 LIBNET
1143 LIBNET_DSSYNC
1144 LIBNET_SAMSYNC
1145 LIBEVENTLOG
1146 REGFIO
1147 NDR_NTPRINTING
1148 RPC_NDR_WINREG
1149 RPC_CLIENT_SCHANNEL
1150 LIBCLI_SAMR
1151 libcli_lsa3
1152 libcli_netlogon3
1153 cli_spoolss
1154 RPC_NDR_SRVSVC
1155 RPC_NDR_SVCCTL
1156 RPC_NDR_DSSETUP
1157 RPC_NDR_INITSHUTDOWN
1158 printing_migrate
1159 trusts_util
1160 IDMAP_AUTORID_TDB''')
1162 bld.SAMBA3_BINARY('profiles',
1163 source='utils/profiles.c',
1164 deps='''
1165 talloc
1166 popt_samba3
1167 param
1168 REGFIO''')
1170 bld.SAMBA3_BINARY('smbspool',
1171 source='client/smbspool.c',
1172 deps='''
1173 talloc
1174 popt_samba3
1175 param
1176 libsmb
1177 samba3core''')
1179 bld.SAMBA3_BINARY('testparm',
1180 source='utils/testparm.c',
1181 deps='''
1182 talloc
1183 param
1184 popt_samba3''')
1186 bld.SAMBA3_BINARY('smbta-util',
1187 source='utils/smbta-util.c',
1188 deps='''
1189 talloc
1190 secrets3
1191 param''')
1193 smbstatus_source = 'utils/status.c smbd/notify_msg.c'
1195 if bld.CONFIG_GET("WITH_PROFILE"):
1196 smbstatus_source += ' utils/status_profile.c'
1197 else:
1198 smbstatus_source += ' utils/status_profile_dummy.c'
1200 bld.SAMBA3_BINARY('smbstatus',
1201 source=smbstatus_source,
1202 deps='''
1203 talloc
1204 param
1205 popt_samba3
1206 smbd_base
1207 LOCKING
1208 PROFILE''')
1210 bld.SAMBA3_BINARY('smbcontrol',
1211 source='utils/smbcontrol.c',
1212 deps='''
1213 talloc
1214 param
1215 popt_samba3
1216 PRINTBASE''')
1218 bld.SAMBA3_BINARY('smbtree',
1219 source='utils/smbtree.c',
1220 deps='''
1221 talloc
1222 param
1223 libsmb
1224 msrpc3
1225 popt_samba3
1226 RPC_NDR_SRVSVC''')
1228 bld.SAMBA3_BINARY('smbpasswd',
1229 source='utils/smbpasswd.c',
1230 deps='''
1231 talloc
1232 param
1234 PASSWD_UTIL
1235 PASSCHANGE''')
1237 bld.SAMBA3_BINARY('pdbedit',
1238 source='utils/pdbedit.c',
1239 deps='''
1240 talloc
1241 param
1242 popt_samba3
1244 PASSWD_UTIL''')
1246 bld.SAMBA3_BINARY('smbget',
1247 source='utils/smbget.c',
1248 deps='''
1249 talloc
1250 popt_samba3
1251 smbclient''')
1253 bld.SAMBA3_BINARY('nmblookup',
1254 source='utils/nmblookup.c',
1255 deps='''
1256 talloc
1257 param
1258 popt_samba3
1259 LIBNMB''')
1261 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1262 source='''torture/torture.c
1263 torture/nbio.c
1264 torture/scanner.c
1265 torture/utable.c
1266 torture/denytest.c
1267 torture/mangle_test.c
1268 torture/nbench.c
1269 torture/test_async_echo.c
1270 torture/test_addrchange.c
1271 torture/test_posix_append.c
1272 torture/test_nttrans_create.c
1273 torture/test_nttrans_fsctl.c
1274 torture/test_case_insensitive.c
1275 torture/test_notify_online.c
1276 torture/test_chain3.c
1277 torture/test_smb2.c
1278 torture/test_authinfo_structs.c
1279 torture/test_smbsock_any_connect.c
1280 torture/test_cleanup.c
1281 torture/test_notify.c
1282 lib/tevent_barrier.c
1283 torture/test_dbwrap_watch.c
1284 torture/test_idmap_tdb_common.c
1285 torture/test_dbwrap_ctdb.c
1286 torture/test_buffersize.c
1287 torture/test_messaging_read.c
1288 torture/test_messaging_fd_passing.c
1289 torture/test_oplock_cancel.c
1290 torture/t_strappend.c
1291 torture/bench_pthreadpool.c
1292 torture/wbc_async.c''',
1293 deps='''
1294 talloc
1295 param
1296 libsmb
1297 msrpc3
1298 TLDAP
1299 RPC_NDR_ECHO
1300 WB_REQTRANS
1301 LOCKING
1302 NDR_OPEN_FILES
1303 idmap
1304 IDMAP_TDB_COMMON
1305 samba-cluster-support
1306 ''',
1307 cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1308 install=False)
1310 bld.SAMBA3_BINARY('smbconftort',
1311 source='lib/smbconf/testsuite.c',
1312 deps='''
1313 talloc
1314 param
1315 popt_samba3''',
1316 install=False)
1318 bld.SAMBA3_BINARY('replacetort',
1319 source='../lib/replace/test/main.c',
1320 deps='replace replace-test',
1321 install=False)
1323 bld.SAMBA3_BINARY('msgtest',
1324 source='torture/msgtest.c',
1325 deps='''
1326 talloc
1327 param''',
1328 install=False)
1330 bld.SAMBA3_BINARY('msg_sink',
1331 source='torture/msg_sink.c',
1332 deps='''
1333 talloc
1334 param''',
1335 install=False)
1337 bld.SAMBA3_BINARY('msg_source',
1338 source='torture/msg_source.c',
1339 deps='''
1340 talloc
1341 param''',
1342 install=False)
1344 bld.SAMBA3_BINARY('smbcacls',
1345 source='utils/smbcacls.c lib/util_sd.c',
1346 deps='''
1347 talloc
1348 popt_samba3
1349 msrpc3
1350 libcli_lsa3
1351 krb5samba''')
1353 bld.SAMBA3_BINARY('smbcquotas',
1354 source='utils/smbcquotas.c',
1355 deps='''
1356 talloc
1357 popt_samba3
1358 libsmb
1359 msrpc3
1360 libcli_lsa3''')
1362 bld.SAMBA3_BINARY('eventlogadm',
1363 source='utils/eventlogadm.c',
1364 deps='''
1365 talloc
1366 param
1367 LIBEVENTLOG''')
1369 bld.SAMBA3_BINARY('sharesec',
1370 source='utils/sharesec.c lib/util_sd.c',
1371 deps='''
1372 talloc
1373 msrpc3
1374 libcli_lsa3
1375 popt_samba3''')
1377 bld.SAMBA3_BINARY('pdbtest',
1378 source='torture/pdbtest.c',
1379 deps='''
1380 talloc
1382 popt_samba3
1383 AUTH_COMMON
1384 auth''',
1385 install=False)
1387 bld.SAMBA3_BINARY('vfstest',
1388 source='''torture/cmd_vfs.c
1389 torture/vfstest.c
1390 torture/vfstest_chain.c''',
1391 deps='''
1393 popt_samba3
1394 SMBREADLINE''',
1395 install=False)
1397 bld.SAMBA3_BINARY('log2pcap',
1398 source='utils/log2pcaphex.c',
1399 deps='''talloc popt''',
1400 install=False)
1402 bld.SAMBA3_BINARY('locktest2',
1403 source='torture/locktest2.c',
1404 deps='''
1405 talloc
1406 param
1407 libsmb
1408 LOCKING''',
1409 install=False)
1411 bld.SAMBA3_BINARY('debug2html',
1412 source='''utils/debug2html.c utils/debugparse.c''',
1413 deps='''talloc popt''',
1414 install=False)
1416 bld.SAMBA3_BINARY('smbfilter',
1417 source='utils/smbfilter.c',
1418 deps='''
1419 talloc
1420 param
1421 LIBNMB''',
1422 install=False)
1424 bld.SAMBA3_BINARY('versiontest',
1425 source='lib/version_test.c',
1426 deps='''
1427 SAMBA_VERSION
1428 param''',
1429 install=False)
1431 bld.SAMBA3_BINARY('ntlm_auth',
1432 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1433 deps='''
1434 talloc
1435 krb5samba
1436 tiniparser
1437 libsmb
1438 popt_samba3
1439 LIBNTLMSSP gse gensec''')
1441 bld.SAMBA3_BINARY('timelimit',
1442 source='script/tests/timelimit.c',
1443 install=False)
1445 bld.SAMBA3_BINARY('rpc_open_tcp',
1446 source='torture/rpc_open_tcp.c',
1447 deps='''
1448 talloc
1449 msrpc3''',
1450 install=False)
1452 bld.SAMBA3_BINARY('dbwrap_tool',
1453 source='utils/dbwrap_tool.c',
1454 deps='''
1455 talloc
1456 popt_samba3''')
1458 bld.SAMBA3_BINARY('dbwrap_torture',
1459 source='utils/dbwrap_torture.c',
1460 deps='''
1461 talloc
1462 popt_samba3''',
1463 install=False)
1465 bld.SAMBA3_BINARY('split_tokens',
1466 source='utils/split_tokens.c',
1467 deps='''
1468 talloc
1469 popt_samba3''',
1470 install=False)
1472 bld.SAMBA3_BINARY('vlp',
1473 source='printing/tests/vlp.c',
1474 deps='''
1475 talloc
1476 param''',
1477 install=False)
1479 bld.SAMBA3_PYTHON('pysmbd',
1480 source='smbd/pysmbd.c',
1481 deps='smbd_base pyrpc_util',
1482 realname='samba/samba3/smbd.so'
1485 bld.SAMBA3_PYTHON('pylibsmb',
1486 source='libsmb/pylibsmb.c',
1487 deps='smbclient samba-credentials',
1488 realname='samba/samba3/libsmb_samba_internal.so'
1491 bld.SAMBA3_BINARY('samba-regedit',
1492 source="""utils/regedit.c utils/regedit_samba3.c
1493 utils/regedit_wrap.c utils/regedit_treeview.c
1494 utils/regedit_valuelist.c utils/regedit_dialog.c
1495 utils/regedit_hexedit.c utils/regedit_list.c""",
1496 deps='ncurses menu panel form registry param popt_samba3 smbregistry',
1497 enabled=bld.env.build_regedit)
1499 bld.SAMBA3_BINARY('spotlight2sparql',
1500 source='''
1501 rpc_server/mdssvc/sparql_parser_test.c
1502 rpc_server/mdssvc/sparql_parser.c
1503 rpc_server/mdssvc/sparql_lexer.c
1504 rpc_server/mdssvc/sparql_mapping.c''',
1505 deps='samba3-util talloc ' + bld.env['libtracker'],
1506 enabled=bld.env.with_spotlight,
1507 install=False)
1509 ########################## INCLUDES #################################
1511 bld.RECURSE('auth')
1512 bld.RECURSE('libgpo/gpext')
1513 bld.RECURSE('lib/pthreadpool')
1514 bld.RECURSE('lib/asys')
1515 bld.RECURSE('lib/poll_funcs')
1516 bld.RECURSE('lib/unix_msg')
1517 bld.RECURSE('librpc')
1518 bld.RECURSE('librpc/idl')
1519 bld.RECURSE('libsmb')
1520 bld.RECURSE('modules')
1521 bld.RECURSE('pam_smbpass')
1522 bld.RECURSE('param')
1523 bld.RECURSE('passdb')
1524 bld.RECURSE('rpc_server')
1525 bld.RECURSE('script')
1526 bld.RECURSE('winbindd')
1527 bld.RECURSE('../examples/auth')
1528 bld.RECURSE('../examples/libsmbclient')
1529 bld.RECURSE('../examples/pdb')
1530 bld.RECURSE('../examples/VFS')
1531 bld.RECURSE('lib/netapi/tests')
1532 bld.RECURSE('lib/netapi/examples')
1533 bld.RECURSE('smbd/notifyd')
1535 bld.ENFORCE_GROUP_ORDERING()
1536 bld.CHECK_PROJECT_RULES()