CVE-2015-5370: s4:librpc/rpc: always use ncacn_pull_request_auth() for DCERPC_PKT_RES...
[Samba.git] / source3 / wscript_build
blobbe0b831e6c5adf745ec721551bd1cc0df6562c07
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 static_pdb_match = ['tdbsam', 'smbpasswd', 'wbc_sam']
109 private_pdb_match = []
111 # AD DC module when linked statically will pull in few source4/winbind
112 # dependencies which are not used outside AD DC module
113 static_pdb_match.append('samba_dsdb')
114 private_pdb_match.append('!idmap_init')
115 private_pdb_match.append('!idmap_sids_to_xids')
116 private_pdb_match.append('!idmap_xids_to_sids')
118 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
119 static_pdb_match = static_pdb_match + ['ldap', 'ipa', 'nds']
120 ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_domain_info',
121 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
122 '!dominfo_attr_list', '!get_attr_key2string',
123 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
124 '!get_attr_list']
125 private_pdb_match.append('!pdb_nds_*')
126 private_pdb_match.append('!pdb_init_ldapsam')
127 private_pdb_match.append('!pdb_ldapsam_init*')
128 private_pdb_match = private_pdb_match + ldapsam_pdb_match
130 private_pdb_match = private_pdb_match + map(lambda x: '!pdb_%s_init' % x, static_pdb_match)
132 bld.SAMBA3_LIBRARY('samba-passdb',
133 source='',
134 deps='pdb',
135 private_library=False,
136 grouping_library=True,
137 pc_files=[],
138 public_headers_install=True,
139 public_headers='''
140 include/passdb.h
141 passdb/machine_sid.h
142 passdb/lookup_sid.h''',
143 abi_match=private_pdb_match,
144 abi_directory='passdb/ABI',
145 vnum='0.24.1')
147 bld.SAMBA3_SUBSYSTEM('pdb',
148 source='''passdb/pdb_get_set.c
149 passdb/passdb.c
150 lib/util_wellknown.c
151 lib/util_builtin.c
152 passdb/pdb_compat.c
153 lib/util_sid_passdb.c
154 lib/util_unixsids.c
155 passdb/lookup_sid.c
156 passdb/login_cache.c
157 passdb/account_pol.c
158 lib/privileges.c
159 lib/util_nscd.c
160 lib/winbind_util.c
161 passdb/pdb_util.c
162 passdb/pdb_interface.c
163 passdb/pdb_secrets.c
164 passdb/pdb_unixid.c''',
165 deps='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping samba-credentials')
167 bld.SAMBA3_LIBRARY('smbldaphelper',
168 source='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
169 deps='smbldap secrets3',
170 allow_undefined_symbols=True,
171 enabled=bld.CONFIG_SET('HAVE_LDAP'),
172 private_library=True)
174 bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
175 source='lib/server_mutex.c',
176 deps='talloc')
178 bld.SAMBA3_SUBSYSTEM('param',
179 source='''param/loadparm.c
180 lib/sharesec.c
181 lib/ldap_debug_handler.c
182 lib/util_names.c''',
183 deps='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local.h param_global.h cups''')
185 # this includes only the low level parse code, not stuff
186 # that requires knowledge of security contexts
187 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS',
188 source='registry/reg_parse_prs.c')
190 bld.SAMBA3_SUBSYSTEM('REGFIO',
191 source='registry/regfio.c',
192 deps='samba-util REG_PARSE_PRS')
194 bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
195 source='registry/reg_api_regf.c',
196 deps='samba-util')
198 bld.SAMBA3_LIBRARY('smbregistry',
199 source='''registry/reg_api.c
200 registry/reg_dispatcher.c
201 registry/reg_cachehook.c
202 registry/reg_objects.c
203 registry/reg_util_internal.c
204 lib/util_nttoken.c
205 registry/reg_backend_db.c
206 registry/reg_parse_internal.c
207 lib/cbuf.c
208 lib/srprs.c
209 registry/reg_init_basic.c''',
210 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
211 replace util_reg samba-util samba-security
212 errors3 dbwrap samba3-util''',
213 allow_undefined_symbols=True,
214 private_library=True)
216 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
217 source='''registry/reg_backend_smbconf.c
218 registry/reg_init_smbconf.c
219 registry/reg_util_token.c
220 registry/reg_api_util.c''',
221 deps='smbregistry')
223 bld.SAMBA3_SUBSYSTEM('REG_FULL',
224 source='''registry/reg_backend_printing.c
225 registry/reg_backend_shares.c
226 registry/reg_backend_netlogon_params.c
227 registry/reg_backend_prod_options.c
228 registry/reg_backend_tcpip_params.c
229 registry/reg_backend_hkpt_params.c
230 registry/reg_backend_current_version.c
231 registry/reg_backend_perflib.c
232 registry/reg_init_full.c
233 registry/reg_perfcount.c''',
234 deps='REG_SMBCONF tdb-wrap3')
236 bld.SAMBA3_LIBRARY('popt_samba3',
237 source='lib/popt_common.c',
238 deps='popt samba-util util_cmdline',
239 private_library=True)
241 bld.SAMBA3_LIBRARY('util_cmdline',
242 source='lib/util_cmdline.c',
243 deps='secrets3',
244 private_library=True)
246 bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
247 source='libads/kerberos.c libads/ads_status.c',
248 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
250 bld.SAMBA3_LIBRARY('sys_rw',
251 source='lib/sys_rw.c lib/sys_rw_data.c',
252 deps='replace iov_buf',
253 private_library=True)
255 bld.SAMBA3_SUBSYSTEM('samba3util',
256 source='''lib/system.c
257 lib/sendfile.c
258 lib/recvfile.c
259 lib/time.c
260 lib/util_sid.c
261 lib/util_file.c
262 lib/util.c
263 lib/util_sock.c
264 lib/util_tsock.c
265 lib/util_transfer_file.c
266 lib/sock_exec.c''',
267 deps='ndr LIBTSOCKET samba-security NDR_SECURITY samba-util util_tdb sys_rw iov_buf')
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
276 SAMBA_CLUSTER_SUPPORT_DEPS='''
277 talloc
278 tevent
281 else:
282 SAMBA_CLUSTER_SUPPORT_SOURCES='''
283 lib/cluster_support.c
284 lib/ctdb_dummy.c
286 SAMBA_CLUSTER_SUPPORT_DEPS='''
287 talloc
288 tevent
291 bld.SAMBA3_LIBRARY('samba-cluster-support',
292 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
293 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
294 cflags=bld.CONFIG_GET("CTDB_CFLAGS"),
295 includes=bld.CONFIG_GET("CTDB_INCLUDE"),
296 allow_undefined_symbols=True,
297 private_library=True)
299 bld.SAMBA3_SUBSYSTEM('TDB_LIB',
300 source='''lib/dbwrap/dbwrap_open.c
301 lib/dbwrap/dbwrap_watch.c
302 lib/g_lock.c''',
303 deps='dbwrap samba-cluster-support')
305 bld.SAMBA3_LIBRARY('messages_dgm',
306 source='''lib/messages_dgm.c lib/messages_dgm_ref.c''',
307 deps='talloc UNIX_MSG POLL_FUNCS_TEVENT samba-debug',
308 private_library=True)
310 bld.SAMBA3_LIBRARY('messages_util',
311 source='''lib/messages_util.c''',
312 deps='samba-util',
313 private_library=True)
315 bld.SAMBA3_SUBSYSTEM('samba3core',
316 source='''lib/messages.c
317 lib/util_cluster.c
318 lib/id_cache.c
319 lib/talloc_dict.c
320 lib/serverid.c
321 lib/server_id_db_util.c
322 lib/addrchange.c
323 ../lib/util/debug_s3.c
324 lib/dumpcore.c
325 lib/interface.c
326 lib/username.c
327 lib/access.c lib/smbrun.c
328 lib/wins_srv.c
329 lib/substitute.c
330 lib/substitute_generic.c
331 lib/ms_fnmatch.c
332 lib/tallocmsg.c
333 lib/dmallocmsg.c
334 intl/lang_tdb.c
335 lib/gencache.c
336 lib/events.c
337 lib/server_contexts.c
338 lib/server_prefork.c
339 lib/server_prefork_util.c
340 lib/ldap_escape.c
341 lib/fncall.c
342 libads/krb5_errs.c
343 lib/system_smbd.c
344 lib/audit.c
345 lib/tevent_wait.c
346 lib/idmap_cache.c
347 lib/util_ea.c
348 lib/background.c''',
349 deps='''
350 samba3util
351 LIBTSOCKET
352 NDR_MESSAGING
353 LIBASYNC_REQ
354 UTIL_PW
355 SAMBA_VERSION
356 PTHREADPOOL
357 UNIX_MSG
358 POLL_FUNCS_TEVENT
359 interfaces
360 param
361 dbwrap
362 samba3-util
363 errors3
364 server_id_db
365 messages_util
366 messages_dgm
367 talloc_report
368 TDB_LIB''')
370 bld.SAMBA3_LIBRARY('smbd_shim',
371 source='''lib/smbd_shim.c''',
372 deps='talloc',
373 private_library=True)
375 bld.SAMBA3_SUBSYSTEM('auth_generic',
376 source='libsmb/auth_generic.c',
377 deps='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 auth_generic
406 CLDAP
407 LIBNMB
408 SPNEGO_PARSE
409 LIBTSOCKET
410 KRBCLIENT
411 NDR_IOCTL
412 cli_smb_common
413 util_cmdline
414 tevent''',
415 private_library=True)
417 bld.SAMBA3_SUBSYSTEM('CLDAP',
418 source='libads/cldap.c',
419 deps='cli-ldap-common cli_cldap LIBTSOCKET')
421 # NOTE: The secrets3 library is a low level library used by several subsystems.
422 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
423 # doing that your design is wrong and needs changing. -SSS
424 bld.SAMBA3_LIBRARY('secrets3',
425 source='''passdb/secrets.c
426 passdb/machine_account_secrets.c
427 passdb/machine_sid.c
428 passdb/secrets_lsa.c''',
429 deps='NDR_SECRETS param samba3util dbwrap',
430 private_library=True)
432 bld.SAMBA3_LIBRARY('smbldap',
433 source='lib/smbldap.c',
434 deps='ldap lber samba-util param',
435 enabled=bld.CONFIG_SET("HAVE_LDAP"),
436 private_library=False,
437 abi_directory='lib/ABI',
438 abi_match='smbldap_*',
439 pc_files=[],
440 vnum='0',
441 public_headers='include/smbldap.h include/smb_ldap.h')
443 bld.SAMBA3_LIBRARY('ads',
444 source='''libads/ldap.c
445 libads/sasl.c
446 libads/sasl_wrapping.c
447 libads/krb5_setpw.c
448 libads/kerberos_util.c
449 libads/ldap_user.c
450 libads/ads_struct.c
451 libads/kerberos_keytab.c
452 libads/disp_sec.c
453 libads/ldap_utils.c
454 libads/ldap_schema.c
455 libads/util.c
456 libads/ndr.c''',
457 deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
458 private_library=True)
460 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
461 source='libads/authdata.c',
462 deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
464 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
465 source='libads/ldap_printer.c',
466 deps='samba-util krb5samba')
468 bld.SAMBA3_LIBRARY('smbconf',
469 source='''lib/smbconf/smbconf_init.c
470 lib/smbconf/smbconf_reg.c''',
471 deps='''
472 CHARSET3
473 LIBSMBCONF
474 REG_SMBCONF
475 SAMBA_VERSION
477 charset
478 cli_smb_common
479 errors3
480 param
481 samba-util
482 smbregistry
483 talloc
484 util_reg''',
485 public_headers='../lib/smbconf/smbconf.h',
486 pc_files=[],
487 vnum='0')
489 bld.SAMBA3_LIBRARY('smbd_conn',
490 source='smbd/conn.c',
491 deps='samba3-util samba-util',
492 private_library=True)
494 bld.SAMBA3_SUBSYSTEM('sysquotas',
495 source='''
496 lib/sysquotas.c
497 lib/sysquotas_linux.c
498 lib/sysquotas_xfs.c
499 lib/sysquotas_4A.c
500 lib/sysquotas_4B.c
501 lib/sysquotas_nfs.c
502 ''',
503 allow_warnings=True,
504 deps='samba3-util samba-util')
506 NOTIFY_SOURCES=''
507 NOTIFY_DEPS=''
509 if bld.CONFIG_SET("HAVE_INOTIFY"):
510 NOTIFY_SOURCES += ' smbd/notify_inotify.c'
512 if bld.CONFIG_SET('SAMBA_FAM_LIBS'):
513 NOTIFY_SOURCES += ' smbd/notify_fam.c'
514 NOTIFY_DEPS += ' ' + bld.CONFIG_GET('SAMBA_FAM_LIBS')
516 bld.SAMBA3_LIBRARY('smbd_base',
517 source='''
518 smbd/server_reload.c
519 smbd/files.c
520 smbd/connection.c
521 smbd/utmp.c
522 smbd/session.c
523 smbd/dfree.c
524 smbd/dir.c
525 smbd/password.c
526 smbd/conn_msg.c
527 smbd/conn_idle.c
528 smbd/share_access.c
529 smbd/fileio.c
530 smbd/ipc.c
531 smbd/lanman.c
532 smbd/negprot.c
533 smbd/message.c
534 smbd/nttrans.c
535 smbd/pipes.c
536 smbd/reply.c
537 smbd/sesssetup.c
538 smbd/trans2.c
539 smbd/uid.c
540 smbd/dosmode.c
541 smbd/filename.c
542 smbd/open.c
543 smbd/close.c
544 smbd/blocking.c
545 smbd/sec_ctx.c
546 smbd/srvstr.c
547 smbd/vfs.c
548 smbd/perfcount.c
549 smbd/statcache.c
550 smbd/seal.c
551 smbd/posix_acls.c
552 lib/sysacls.c
553 smbd/process.c
554 smbd/service.c
555 smbd/error.c
556 printing/printspoolss.c
557 printing/spoolssd.c
558 lib/sessionid_tdb.c
559 lib/conn_tdb.c
560 smbd/fake_file.c
561 smbd/quotas.c
562 smbd/ntquotas.c
563 smbd/msdfs.c
564 smbd/aio.c smbd/statvfs.c
565 smbd/dmapi.c
566 smbd/signing.c
567 smbd/file_access.c
568 smbd/dnsregister.c smbd/globals.c
569 smbd/smb2_server.c
570 smbd/smb2_glue.c
571 smbd/smb2_negprot.c
572 smbd/smb2_sesssetup.c
573 smbd/smb2_tcon.c
574 smbd/smb2_create.c
575 smbd/smb2_close.c
576 smbd/smb2_flush.c
577 smbd/smb2_read.c
578 smbd/smb2_write.c
579 smbd/smb2_lock.c
580 smbd/smb2_ioctl.c
581 smbd/smb2_ioctl_dfs.c
582 smbd/smb2_ioctl_filesys.c
583 smbd/smb2_ioctl_named_pipe.c
584 smbd/smb2_ioctl_network_fs.c
585 smbd/smb2_keepalive.c
586 smbd/smb2_query_directory.c
587 smbd/smb2_notify.c
588 smbd/smb2_getinfo.c
589 smbd/smb2_setinfo.c
590 smbd/smb2_break.c
591 smbd/smbXsrv_version.c
592 smbd/smbXsrv_session.c
593 smbd/smbXsrv_tcon.c
594 smbd/smbXsrv_open.c
595 smbd/server_exit.c
596 smbd/durable.c
597 smbd/scavenger.c
598 smbd/mangle.c
599 smbd/mangle_hash.c
600 smbd/mangle_hash2.c
601 smbd/oplock.c
602 smbd/oplock_irix.c
603 smbd/oplock_linux.c
604 smbd/notify.c
605 smbd/notify_msg.c
606 smbd/build_options.c''' + NOTIFY_SOURCES,
607 deps='''
608 talloc
609 tevent
611 libsmb
612 msrpc3
614 vfs_default
615 vfs_posixacl
616 inotify
617 popt_samba3
618 samba3core
619 smbd_conn
620 param_service
621 AVAHI
622 PRINTBASE
623 PROFILE
624 LOCKING
625 LIBADS_SERVER
626 LIBAFS
627 RPC_SERVICE
628 NDR_SMBXSRV
629 LEASES_DB
630 LIBASYS
631 sysquotas
632 NDR_SMB_ACL
633 netapi
634 NDR_IOCTL
635 notifyd
636 ''' +
637 bld.env['dmapi_lib'] +
638 NOTIFY_DEPS,
639 private_library=True)
641 bld.SAMBA3_SUBSYSTEM('LOCKING',
642 source='''locking/locking.c
643 locking/brlock.c
644 locking/posix.c
645 locking/share_mode_lock.c''',
646 deps='''
648 talloc
649 LEASES_DB
650 NDR_OPEN_FILES
651 FNAME_UTIL''')
653 bld.SAMBA3_SUBSYSTEM('LEASES_DB',
654 source='locking/leases_db.c',
655 deps='NDR_LEASES_DB')
657 if bld.CONFIG_GET("WITH_PROFILE"):
658 bld.SAMBA3_SUBSYSTEM('PROFILE',
659 source='profile/profile.c',
660 deps='samba-util')
661 else:
662 bld.SAMBA3_SUBSYSTEM('PROFILE',
663 source='profile/profile_dummy.c',
664 deps='')
666 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
667 source='''printing/notify.c printing/printing_db.c''',
668 deps='samba-util tdb')
670 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
671 source='''printing/printing.c
672 printing/nt_printing.c
673 printing/nt_printing_tdb.c
674 printing/nt_printing_migrate_internal.c
675 printing/nt_printing_ads.c
676 printing/queue_process.c''',
677 deps='PRINTBASE LIBADS_PRINTER tdb printing_migrate')
679 bld.SAMBA3_LIBRARY('printing_migrate',
680 source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
681 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
682 private_library=True)
684 bld.SAMBA3_SUBSYSTEM('PRINTING',
685 source='''printing/pcap.c
686 printing/print_svid.c
687 printing/print_aix.c
688 printing/print_cups.c
689 printing/print_generic.c
690 printing/lpq_parse.c
691 printing/load.c
692 printing/print_standard.c
693 printing/print_iprint.c
694 printing/printer_list.c''',
695 deps='NDR_PRINTCAP tdb cups')
697 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
698 source='utils/passwd_util.c',
699 deps='samba-util')
701 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
702 source='lib/filename_util.c',
703 deps='samba-util')
705 bld.SAMBA3_SUBSYSTEM('LIBNET',
706 source='libnet/libnet_join.c',
707 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
709 bld.SAMBA3_LIBRARY('net_keytab',
710 source='libnet/libnet_keytab.c',
711 deps='krb5samba ads',
712 private_library=True)
715 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
716 source='''libnet/libnet_dssync.c
717 libnet/libnet_dssync_passdb.c
718 libnet/libnet_dssync_keytab.c''',
719 deps='LIBNET RPC_NDR_DRSUAPI')
721 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
722 source='''libnet/libnet_samsync.c
723 libnet/libnet_samsync_ldif.c
724 libnet/libnet_samsync_passdb.c
725 libnet/libnet_samsync_display.c
726 libnet/libnet_samsync_keytab.c''',
727 deps='LIBNET LIBCLI_SAMSYNC')
729 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
730 source='lib/eventlog/eventlog.c',
731 deps='NDR_EVENTLOG tdb')
733 bld.SAMBA3_SUBSYSTEM('LIBNMB',
734 source='''libsmb/unexpected.c
735 libsmb/namecache.c
736 libsmb/nmblib.c
737 libsmb/namequery.c
738 libsmb/conncache.c
739 libads/sitename_cache.c''',
740 deps='LIBTSOCKET samba3util addns lmhosts resolv')
742 bld.SAMBA3_SUBSYSTEM('SERVICES',
743 source='''services/svc_spoolss.c
744 services/svc_rcinit.c
745 services/svc_winreg_glue.c
746 services/svc_netlogon.c
747 services/svc_winreg.c
748 services/svc_wins.c''',
749 deps='samba-util')
751 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
752 source='''auth/pampass.c auth/pass_check.c''',
753 deps='pam PAM_ERRORS')
755 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
756 source='libsmb/passchange.c',
757 deps='''LIBCLI_SAMR
758 INIT_LSA
759 msrpc3
760 krb5samba''')
762 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
763 source='lib/version.c',
764 deps='samba-util')
766 bld.SAMBA3_SUBSYSTEM('SLCACHE',
767 source='libsmb/samlogon_cache.c',
768 deps='samba-util tdb')
770 bld.SAMBA3_SUBSYSTEM('DCUTIL',
771 source='''libsmb/namequery_dc.c
772 libsmb/trustdom_cache.c
773 libsmb/dsgetdcname.c''',
774 deps='ads msrpc3 libcli_lsa3')
776 bld.SAMBA3_LIBRARY('trusts_util',
777 source='libsmb/trusts_util.c',
778 deps='libcli_netlogon3 msrpc3 samba-passdb',
779 private_library=True)
781 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
782 source='lib/util_tdb.c',
783 deps='talloc samba3-util')
785 bld.SAMBA3_LIBRARY('msghdr',
786 source='lib/msghdr.c',
787 deps='replace iov_buf',
788 private_library=True)
790 bld.SAMBA3_LIBRARY('samba3-util',
791 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
792 deps='samba-util charset',
793 private_library=True)
795 bld.SAMBA_LIBRARY('xattr_tdb',
796 source='lib/xattr_tdb.c',
797 deps='NDR_XATTR dbwrap samba3-util',
798 private_library=True)
800 bld.SAMBA3_LIBRARY('CHARSET3',
801 source='''lib/charcnv.c lib/fstring.c''',
802 public_deps='ICONV_WRAPPER charset',
803 deps='samba-util samba3-util',
804 private_library=True)
806 bld.SAMBA3_SUBSYSTEM('errors3',
807 source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
808 deps='errors')
810 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
811 source='rpc_client/cli_samr.c',
812 deps='RPC_NDR_SAMR')
814 bld.SAMBA3_LIBRARY('libcli_lsa3',
815 source='rpc_client/cli_lsarpc.c',
816 deps='RPC_NDR_LSA INIT_LSA',
817 private_library=True)
819 bld.SAMBA3_LIBRARY('libcli_netlogon3',
820 source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
821 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI',
822 private_library=True)
824 bld.SAMBA3_LIBRARY('cli_spoolss',
825 source='''rpc_client/cli_spoolss.c
826 rpc_client/init_spoolss.c''',
827 deps='RPC_NDR_SPOOLSS param secrets3',
828 private_library=True)
830 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
831 source='rpc_client/cli_winreg.c',
832 deps='RPC_NDR_WINREG')
834 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
835 source='rpc_client/cli_winreg_int.c',
836 deps='LIBCLI_WINREG RPC_SERVER')
838 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
839 source='rpc_client/cli_pipe_schannel.c',
840 deps='samba-util krb5samba')
842 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
843 source='rpc_client/init_lsa.c',
844 deps='samba-util')
846 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
847 source='rpc_client/init_netlogon.c',
848 deps='samba-util')
850 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
851 source='rpc_client/init_samr.c',
852 deps='samba-util')
854 bld.SAMBA3_SUBSYSTEM('LIBLSA',
855 source='lib/lsa.c')
857 ########################## BINARIES #################################
859 bld.SAMBA3_BINARY('smbd/smbd',
860 source='smbd/server.c',
861 deps='smbd_base EPMD LSASD FSSD MDSSD',
862 install_path='${SBINDIR}')
864 bld.SAMBA3_BINARY('nmbd/nmbd',
865 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
866 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
867 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
868 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
869 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
870 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
871 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
872 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
873 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
874 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
875 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
876 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
877 deps='''
878 talloc
879 tevent
880 param
881 libsmb
882 popt_samba3
883 ''',
884 install_path='${SBINDIR}')
887 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
888 source='lib/tdb_validate.c',
889 deps='samba-util')
892 bld.SAMBA3_BINARY('winbindd/winbindd',
893 source='''winbindd/winbindd.c
894 winbindd/winbindd_group.c
895 winbindd/winbindd_util.c
896 winbindd/winbindd_cache.c
897 winbindd/winbindd_pam.c
898 winbindd/winbindd_misc.c
899 winbindd/winbindd_cm.c
900 winbindd/winbindd_wins_byip.c
901 winbindd/winbindd_wins_byname.c
902 winbindd/winbindd_msrpc.c
903 winbindd/winbindd_rpc.c
904 winbindd/winbindd_reconnect.c
905 winbindd/winbindd_reconnect_ads.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('smbspool_krb5_wrapper',
1184 source='client/smbspool_krb5_wrapper.c',
1185 deps='''
1186 DYNCONFIG
1187 cups
1188 ''',
1189 enabled=bld.CONFIG_SET('HAVE_CUPS'))
1191 bld.SAMBA3_BINARY('testparm',
1192 source='utils/testparm.c',
1193 deps='''
1194 talloc
1195 param
1196 popt_samba3''')
1198 bld.SAMBA3_BINARY('smbta-util',
1199 source='utils/smbta-util.c',
1200 deps='''
1201 talloc
1202 secrets3
1203 param''')
1205 smbstatus_source = 'utils/status.c smbd/notify_msg.c'
1207 if bld.CONFIG_GET("WITH_PROFILE"):
1208 smbstatus_source += ' utils/status_profile.c'
1209 else:
1210 smbstatus_source += ' utils/status_profile_dummy.c'
1212 bld.SAMBA3_BINARY('smbstatus',
1213 source=smbstatus_source,
1214 deps='''
1215 talloc
1216 param
1217 popt_samba3
1218 smbd_base
1219 LOCKING
1220 PROFILE''')
1222 bld.SAMBA3_BINARY('smbcontrol',
1223 source='utils/smbcontrol.c',
1224 deps='''
1225 talloc
1226 param
1227 popt_samba3
1228 PRINTBASE''')
1230 bld.SAMBA3_BINARY('smbtree',
1231 source='utils/smbtree.c',
1232 deps='''
1233 talloc
1234 param
1235 libsmb
1236 msrpc3
1237 popt_samba3
1238 RPC_NDR_SRVSVC''')
1240 bld.SAMBA3_BINARY('smbpasswd',
1241 source='utils/smbpasswd.c',
1242 deps='''
1243 talloc
1244 param
1246 PASSWD_UTIL
1247 PASSCHANGE''')
1249 bld.SAMBA3_BINARY('pdbedit',
1250 source='utils/pdbedit.c',
1251 deps='''
1252 talloc
1253 param
1254 popt_samba3
1256 PASSWD_UTIL''')
1258 bld.SAMBA3_BINARY('smbget',
1259 source='utils/smbget.c',
1260 deps='''
1261 talloc
1262 popt_samba3
1263 smbclient''')
1265 bld.SAMBA3_BINARY('nmblookup',
1266 source='utils/nmblookup.c',
1267 deps='''
1268 talloc
1269 param
1270 popt_samba3
1271 LIBNMB''')
1273 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1274 source='''torture/torture.c
1275 torture/nbio.c
1276 torture/scanner.c
1277 torture/utable.c
1278 torture/denytest.c
1279 torture/mangle_test.c
1280 torture/nbench.c
1281 torture/test_async_echo.c
1282 torture/test_addrchange.c
1283 torture/test_posix_append.c
1284 torture/test_nttrans_create.c
1285 torture/test_nttrans_fsctl.c
1286 torture/test_case_insensitive.c
1287 torture/test_notify_online.c
1288 torture/test_chain3.c
1289 torture/test_smb2.c
1290 torture/test_authinfo_structs.c
1291 torture/test_smbsock_any_connect.c
1292 torture/test_cleanup.c
1293 torture/test_notify.c
1294 lib/tevent_barrier.c
1295 torture/test_dbwrap_watch.c
1296 torture/test_idmap_tdb_common.c
1297 torture/test_dbwrap_ctdb.c
1298 torture/test_buffersize.c
1299 torture/test_messaging_read.c
1300 torture/test_messaging_fd_passing.c
1301 torture/test_oplock_cancel.c
1302 torture/t_strappend.c
1303 torture/bench_pthreadpool.c
1304 torture/wbc_async.c''',
1305 deps='''
1306 talloc
1307 param
1308 libsmb
1309 msrpc3
1310 TLDAP
1311 RPC_NDR_ECHO
1312 WB_REQTRANS
1313 LOCKING
1314 NDR_OPEN_FILES
1315 idmap
1316 samba-cluster-support
1317 ''',
1318 cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1319 install=False)
1321 bld.SAMBA3_BINARY('smbconftort',
1322 source='lib/smbconf/testsuite.c',
1323 deps='''
1324 talloc
1325 param
1326 popt_samba3''',
1327 install=False)
1329 bld.SAMBA3_BINARY('replacetort',
1330 source='../lib/replace/test/main.c',
1331 deps='replace replace-test',
1332 install=False)
1334 bld.SAMBA3_BINARY('msgtest',
1335 source='torture/msgtest.c',
1336 deps='''
1337 talloc
1338 param''',
1339 install=False)
1341 bld.SAMBA3_BINARY('msg_sink',
1342 source='torture/msg_sink.c',
1343 deps='''
1344 talloc
1345 param''',
1346 install=False)
1348 bld.SAMBA3_BINARY('msg_source',
1349 source='torture/msg_source.c',
1350 deps='''
1351 talloc
1352 param''',
1353 install=False)
1355 bld.SAMBA3_BINARY('smbcacls',
1356 source='utils/smbcacls.c lib/util_sd.c',
1357 deps='''
1358 talloc
1359 popt_samba3
1360 msrpc3
1361 libcli_lsa3
1362 krb5samba''')
1364 bld.SAMBA3_BINARY('smbcquotas',
1365 source='utils/smbcquotas.c',
1366 deps='''
1367 talloc
1368 popt_samba3
1369 libsmb
1370 msrpc3
1371 libcli_lsa3''')
1373 bld.SAMBA3_BINARY('eventlogadm',
1374 source='utils/eventlogadm.c',
1375 deps='''
1376 talloc
1377 param
1378 LIBEVENTLOG''')
1380 bld.SAMBA3_BINARY('sharesec',
1381 source='utils/sharesec.c lib/util_sd.c',
1382 deps='''
1383 talloc
1384 msrpc3
1385 libcli_lsa3
1386 popt_samba3''')
1388 bld.SAMBA3_BINARY('pdbtest',
1389 source='torture/pdbtest.c',
1390 deps='''
1391 talloc
1393 popt_samba3
1394 AUTH_COMMON
1395 auth''',
1396 install=False)
1398 bld.SAMBA3_BINARY('vfstest',
1399 source='''torture/cmd_vfs.c
1400 torture/vfstest.c
1401 torture/vfstest_chain.c''',
1402 deps='''
1404 popt_samba3
1405 SMBREADLINE''',
1406 install=False)
1408 bld.SAMBA3_BINARY('log2pcap',
1409 source='utils/log2pcaphex.c',
1410 deps='''talloc popt''',
1411 install=False)
1413 bld.SAMBA3_BINARY('locktest2',
1414 source='torture/locktest2.c',
1415 deps='''
1416 talloc
1417 param
1418 libsmb
1419 LOCKING''',
1420 install=False)
1422 bld.SAMBA3_BINARY('debug2html',
1423 source='''utils/debug2html.c utils/debugparse.c''',
1424 deps='''talloc popt''',
1425 install=False)
1427 bld.SAMBA3_BINARY('smbfilter',
1428 source='utils/smbfilter.c',
1429 deps='''
1430 talloc
1431 param
1432 LIBNMB''',
1433 install=False)
1435 bld.SAMBA3_BINARY('versiontest',
1436 source='lib/version_test.c',
1437 deps='''
1438 SAMBA_VERSION
1439 param''',
1440 install=False)
1442 bld.SAMBA3_BINARY('ntlm_auth',
1443 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1444 deps='''
1445 talloc
1446 krb5samba
1447 tiniparser
1448 libsmb
1449 popt_samba3
1450 gse gensec''')
1452 bld.SAMBA3_BINARY('timelimit',
1453 source='script/tests/timelimit.c',
1454 install=False)
1456 bld.SAMBA3_BINARY('rpc_open_tcp',
1457 source='torture/rpc_open_tcp.c',
1458 deps='''
1459 talloc
1460 msrpc3''',
1461 install=False)
1463 bld.SAMBA3_BINARY('dbwrap_tool',
1464 source='utils/dbwrap_tool.c',
1465 deps='''
1466 talloc
1467 popt_samba3''')
1469 bld.SAMBA3_BINARY('dbwrap_torture',
1470 source='utils/dbwrap_torture.c',
1471 deps='''
1472 talloc
1473 popt_samba3''',
1474 install=False)
1476 bld.SAMBA3_BINARY('split_tokens',
1477 source='utils/split_tokens.c',
1478 deps='''
1479 talloc
1480 popt_samba3''',
1481 install=False)
1483 bld.SAMBA3_BINARY('vlp',
1484 source='printing/tests/vlp.c',
1485 deps='''
1486 talloc
1487 param''',
1488 install=False)
1490 bld.SAMBA3_PYTHON('pysmbd',
1491 source='smbd/pysmbd.c',
1492 deps='smbd_base pyrpc_util',
1493 realname='samba/samba3/smbd.so'
1496 bld.SAMBA3_PYTHON('pylibsmb',
1497 source='libsmb/pylibsmb.c',
1498 deps='smbclient samba-credentials',
1499 realname='samba/samba3/libsmb_samba_internal.so'
1502 bld.SAMBA3_BINARY('samba-regedit',
1503 source="""utils/regedit.c utils/regedit_samba3.c
1504 utils/regedit_wrap.c utils/regedit_treeview.c
1505 utils/regedit_valuelist.c utils/regedit_dialog.c
1506 utils/regedit_hexedit.c utils/regedit_list.c""",
1507 deps='ncurses menu panel form registry param popt_samba3 smbregistry',
1508 enabled=bld.env.build_regedit)
1510 bld.SAMBA3_BINARY('spotlight2sparql',
1511 source='''
1512 rpc_server/mdssvc/sparql_parser_test.c
1513 rpc_server/mdssvc/sparql_parser.c
1514 rpc_server/mdssvc/sparql_lexer.c
1515 rpc_server/mdssvc/sparql_mapping.c''',
1516 deps='samba3-util talloc ' + bld.env['libtracker'],
1517 enabled=bld.env.with_spotlight,
1518 install=False)
1520 ########################## INCLUDES #################################
1522 bld.RECURSE('auth')
1523 bld.RECURSE('libgpo/gpext')
1524 bld.RECURSE('lib/pthreadpool')
1525 bld.RECURSE('lib/asys')
1526 bld.RECURSE('lib/poll_funcs')
1527 bld.RECURSE('lib/unix_msg')
1528 bld.RECURSE('librpc')
1529 bld.RECURSE('librpc/idl')
1530 bld.RECURSE('libsmb')
1531 bld.RECURSE('modules')
1532 bld.RECURSE('pam_smbpass')
1533 bld.RECURSE('param')
1534 bld.RECURSE('passdb')
1535 bld.RECURSE('rpc_server')
1536 bld.RECURSE('script')
1537 bld.RECURSE('winbindd')
1538 bld.RECURSE('../examples/auth')
1539 bld.RECURSE('../examples/libsmbclient')
1540 bld.RECURSE('../examples/pdb')
1541 bld.RECURSE('../examples/VFS')
1542 bld.RECURSE('lib/netapi/tests')
1543 bld.RECURSE('lib/netapi/examples')
1544 bld.RECURSE('smbd/notifyd')
1546 bld.ENFORCE_GROUP_ORDERING()
1547 bld.CHECK_PROJECT_RULES()