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