3 from samba_utils
import *
7 lib/dbwrap.c lib/dbwrap_tdb.c
12 TDB_VALIDATE_SRC
= '''lib/tdb_validate.c'''
14 SMBLDAP
= bld
.env
.SMBLDAP
or ""
15 SMBLDAPUTIL
= bld
.env
.SMBLDAPUTIL
or ""
17 SMBLDAP_SRC
= '''${SMBLDAP} ${SMBLDAPUTIL}'''
19 VERSION_SRC
= '''lib/version.c'''
21 WBCOMMON_SRC
= '../nsswitch/wb_common.c'
25 AFS_SETTOKEN_SRC
= 'lib/afs_settoken.c'
27 AVAHI_SRC
= 'lib/avahi.c smbd/avahi_register.c'
29 SERVER_MUTEX_SRC
= 'lib/server_mutex.c'
31 PASSCHANGE_SRC
= '''libsmb/passchange.c'''
33 COMPRESSION_SRC
= '../lib/compression/mszip.c'
35 DRSUAPI_SRC
= '''${COMPRESSION_SRC}'''
37 LIBNDR_SRC
= '''../librpc/ndr/ndr_basic.c
39 ../librpc/ndr/ndr_misc.c
40 ../librpc/gen_ndr/ndr_misc.c
41 ../librpc/ndr/ndr_string.c
45 LIBCLI_SPOOLSS_SRC
= '''rpc_client/cli_spoolss.c
46 rpc_client/init_spoolss.c'''
48 LIBCLI_LSA_SRC
= '''rpc_client/cli_lsarpc.c'''
50 LIBCLI_SAMR_SRC
= 'rpc_client/cli_samr.c'
52 LIBCLI_NETLOGON_SRC
= 'rpc_client/cli_netlogon.c'
54 # this includes only the low level parse code, not stuff
55 # that requires knowledge of security contexts
56 REG_PARSE_PRS_SRC
= '''registry/reg_parse_prs.c'''
58 LIBREPLACE_SRC
= '''${LIBREPLACE_SRCS}'''
60 LIBSAMBAUTIL_SRC
= '''${LIBREPLACE_SRC}'''
62 UTIL_SRC
= '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
63 ../lib/util/xfile.c ../lib/util/util_strlist.c
64 ../lib/util/util_file.c ../lib/util/data_blob.c
65 ../lib/util/util.c ../lib/util/fsusage.c
66 ../lib/util/params.c ../lib/util/talloc_stack.c
67 ../lib/util/genrand.c ../lib/util/util_net.c
68 ../lib/util/become_daemon.c ../lib/util/system.c
69 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
70 ../lib/util/tevent_werror.c
71 ../lib/util/smb_threads.c ../lib/util/util_id.c
72 ../lib/util/blocking.c ../lib/util/rfc1738.c
73 ../lib/util/select.c'''
81 LIB_SRC
= '''${LIBSAMBAUTIL_SRC}
82 lib/messages.c lib/messages_local.c
83 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
84 lib/interfaces.c lib/memcache.c
88 lib/util_transfer_file.c
90 lib/debug.c lib/fault.c
91 lib/interface.c lib/pidfile.c
92 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
94 ../libds/common/flag_mapping.c
95 lib/access.c lib/smbrun.c
96 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
98 lib/clobber.c lib/util_sid.c
100 lib/util.c lib/util_names.c
101 lib/util_sock.c lib/sock_exec.c lib/util_sec.c
102 lib/substitute.c lib/dbwrap_util.c
103 lib/ms_fnmatch.c lib/errmap_unix.c
104 lib/tallocmsg.c lib/dmallocmsg.c
105 libsmb/clisigning.c libsmb/smb_signing.c
106 lib/pam_errors.c intl/lang_tdb.c
107 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
109 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
110 lib/server_contexts.c
112 lib/secdesc.c ${PTHREADPOOL_SRC}
114 libads/krb5_errs.c lib/system_smbd.c lib/audit.c
115 lib/file_id.c lib/idmap_cache.c'''
117 LIB_DUMMY_SRC
= '''lib/dummysmbd.c lib/dummyroot.c'''
118 LIB_NONSMBD_SRC
= '''${LIB_DUMMY_SRC}'''
120 POPT_LIB_SRC
= '''lib/popt_common.c'''
122 PARAM_UTIL_SRC
= '''param/util.c'''
124 PARAM_WITHOUT_REG_SRC
= '''param/loadparm.c param/loadparm_server_role.c
125 lib/sharesec.c lib/ldap_debug_handler.c'''
127 KRBCLIENT_SRC
= '''libads/kerberos.c libads/ads_status.c'''
129 LIBGPO_SRC0
= '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
130 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
132 LIBGPO_SRC
= '''${LIBGPO_SRC0}'''
134 LIBADS_SRC
= '''libads/ldap.c
135 libads/sasl.c libads/sasl_wrapping.c
137 libads/kerberos_util.c
139 libads/ads_struct.c libads/kerberos_keytab.c
140 libads/disp_sec.c libads/ldap_utils.c
141 libads/ldap_schema.c libads/util.c libads/ndr.c'''
143 LIBADS_SERVER_SRC
= '''libads/kerberos_verify.c libads/authdata.c'''
145 LIBADS_PRINTER_SRC
= '''libads/ldap_printer.c'''
147 SECRETS_SRC
= '''passdb/secrets.c passdb/machine_account_secrets.c
148 passdb/machine_sid.c'''
150 LIBNBT_SRC
= '''../libcli/netlogon.c'''
152 LIBNMB_SRC
= '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
153 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
154 libads/dns.c libads/sitename_cache.c'''
156 NTERR_SRC
= '''libsmb/smberr.c'''
157 ERRORMAP_SRC
= 'libsmb/errormap.c'
158 DCE_RPC_ERR_SRC
= '../librpc/rpc/dcerpc_error.c'
160 LIBSMB_ERR_SRC
= '''${NTERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
164 libsmb/ntlmssp_wrap.c
165 ../libcli/auth/ntlmssp.c
166 ../libcli/auth/ntlmssp_sign.c
167 ../libcli/auth/ntlmssp_ndr.c
168 ../libcli/auth/ntlmssp_server.c'''
170 LIBSAMBA_SRC
= '${LIBSMB_SRC0}'
172 CLDAP_SRC
= '''libads/cldap.c
173 ../libcli/cldap/cldap.c
174 ../lib/util/idtree.c'''
176 TLDAP_SRC
= '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
178 SCHANNEL_SRC
= '''../libcli/auth/schannel_sign.c'''
180 LIBSMB_SRC
= '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
181 libsmb/clikrb5.c libsmb/clispnego.c
182 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
183 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
184 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
185 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
186 libsmb/clioplock.c libsmb/clirap2.c
187 libsmb/smb_seal.c libsmb/async_smb.c
188 libsmb/cli_np_tstream.c
189 libsmb/smbsock_connect.c'''
193 rpc_client/cli_pipe.c
194 librpc/crypto/gse_krb5.c
196 librpc/crypto/cli_spnego.c
197 librpc/rpc/rpc_common.c
198 rpc_client/rpc_transport_np.c
199 rpc_client/rpc_transport_sock.c
200 rpc_client/rpc_transport_tstream.c
201 ../librpc/rpc/binding.c
202 ../librpc/rpc/dcerpc_util.c
203 librpc/rpc/dcerpc_helpers.c
204 ../librpc/rpc/binding_handle.c'''
207 # registry-related objects
209 UTIL_REG_SRC
= '''../libcli/registry/util_reg.c'''
211 REG_INIT_BASIC_SRC
= '''registry/reg_init_basic.c'''
212 REG_INIT_SMBCONF_SRC
= '''registry/reg_init_smbconf.c'''
213 REG_INIT_FULL_SRC
= '''registry/reg_init_full.c'''
215 REGFIO_SRC
= '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
217 REG_API_REGF_SRC
= '''registry/reg_api_regf.c'''
219 REGSRCS_SRC
= '''registry/reg_objects.c'''
221 REG_BACKENDS_BASE_SRC
= '''registry/reg_backend_db.c'''
223 REG_BACKENDS_SMBCONF_SRC
= '''registry/reg_backend_smbconf.c'''
225 REG_BACKENDS_EXTRA_SRC
= '''registry/reg_backend_printing.c
226 registry/reg_backend_shares.c
227 registry/reg_backend_netlogon_params.c
228 registry/reg_backend_prod_options.c
229 registry/reg_backend_tcpip_params.c
230 registry/reg_backend_hkpt_params.c
231 registry/reg_backend_current_version.c
232 registry/reg_backend_perflib.c'''
234 REG_BASE_SRC
= '''registry/reg_api.c
235 registry/reg_dispatcher.c
236 registry/reg_cachehook.c
238 registry/reg_util_internal.c
240 ${REG_BACKENDS_BASE_SRC}
241 ${REG_INIT_BASIC_SRC}'''
243 REG_SMBCONF_SRC
= '''
244 ${REG_BACKENDS_SMBCONF_SRC}
245 ${REG_INIT_SMBCONF_SRC}
246 registry/reg_util_token.c
247 registry/reg_api_util.c'''
249 REG_EVENTLOG_SRC
= '''registry/reg_eventlog.c'''
252 ${REG_BACKENDS_EXTRA_SRC}
254 registry/reg_perfcount.c'''
256 SERVICES_SRC
= '''services/svc_spoolss.c
257 services/svc_rcinit.c
258 services/services_db.c
259 services/svc_netlogon.c
260 services/svc_winreg.c
261 services/svc_wins.c'''
263 LIB_EVENTLOG_SRC
= '''lib/eventlog/eventlog.c'''
265 RPC_CLIENT_SCHANNEL_SRC
= '''rpc_client/cli_pipe_schannel.c'''
267 LOCKING_SRC
= '''locking/locking.c locking/brlock.c locking/posix.c'''
269 PRIVILEGES_SRC
= '''lib/privileges.c'''
271 PASSDB_GET_SET_SRC
= '''passdb/pdb_get_set.c'''
273 PASSDB_SRC
= '''${PASSDB_GET_SET_SRC} passdb/passdb.c
274 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
275 passdb/util_unixsids.c passdb/lookup_sid.c
277 passdb/account_pol.c ${PRIVILEGES_SRC}
278 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
279 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
281 GROUPDB_SRC
= '''groupdb/mapping.c groupdb/mapping_tdb.c'''
283 PROFILE_SRC
= '''profile/profile.c'''
284 PROFILES_SRC
= '''utils/profiles.c'''
286 OPLOCK_SRC
= '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
287 smbd/oplock_onefs.c'''
289 NOTIFY_SRC
= '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
291 FNAME_UTIL_SRC
= '''smbd/filename_util.c'''
294 PLAINTEXT_AUTH_SRC
= '''auth/pampass.c auth/pass_check.c'''
296 SLCACHE_SRC
= '''libsmb/samlogon_cache.c'''
298 DCUTIL_SRC
= '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
300 WINBINDD_SRC1
= '''winbindd/winbindd.c
301 winbindd/winbindd_group.c
302 winbindd/winbindd_util.c
303 winbindd/winbindd_cache.c
304 winbindd/winbindd_pam.c
305 winbindd/winbindd_misc.c
306 winbindd/winbindd_cm.c
307 winbindd/winbindd_wins.c
308 winbindd/winbindd_msrpc.c
309 winbindd/winbindd_rpc.c
310 winbindd/winbindd_reconnect.c
311 winbindd/winbindd_ads.c
312 winbindd/winbindd_samr.c
313 winbindd/winbindd_dual.c
314 winbindd/winbindd_dual_ndr.c
315 winbindd/winbindd_dual_srv.c
316 winbindd/winbindd_async.c
317 winbindd/winbindd_creds.c
318 winbindd/winbindd_cred_cache.c
319 winbindd/winbindd_ccache_access.c
320 winbindd/winbindd_domain.c
321 winbindd/winbindd_idmap.c
322 winbindd/winbindd_locator.c
323 winbindd/winbindd_ndr.c
325 winbindd/wb_lookupsid.c
326 winbindd/wb_lookupname.c
327 winbindd/wb_sid2uid.c
328 winbindd/wb_sid2gid.c
329 winbindd/wb_uid2sid.c
330 winbindd/wb_gid2sid.c
331 winbindd/wb_queryuser.c
332 winbindd/wb_lookupuseraliases.c
333 winbindd/wb_lookupusergroups.c
334 winbindd/wb_getpwsid.c
335 winbindd/wb_gettoken.c
337 winbindd/wb_seqnums.c
338 winbindd/wb_group_members.c
339 winbindd/wb_getgrsid.c
340 winbindd/wb_query_user_list.c
341 winbindd/wb_fill_pwent.c
342 winbindd/wb_next_pwent.c
343 winbindd/wb_next_grent.c
344 winbindd/wb_dsgetdcname.c
345 winbindd/winbindd_lookupsid.c
346 winbindd/winbindd_lookupname.c
347 winbindd/winbindd_sid_to_uid.c
348 winbindd/winbindd_sid_to_gid.c
349 winbindd/winbindd_uid_to_sid.c
350 winbindd/winbindd_gid_to_sid.c
351 winbindd/winbindd_allocate_uid.c
352 winbindd/winbindd_allocate_gid.c
353 winbindd/winbindd_getpwsid.c
354 winbindd/winbindd_getpwnam.c
355 winbindd/winbindd_getpwuid.c
356 winbindd/winbindd_getsidaliases.c
357 winbindd/winbindd_getuserdomgroups.c
358 winbindd/winbindd_getgroups.c
359 winbindd/winbindd_show_sequence.c
360 winbindd/winbindd_getgrgid.c
361 winbindd/winbindd_getgrnam.c
362 winbindd/winbindd_getusersids.c
363 winbindd/winbindd_lookuprids.c
364 winbindd/winbindd_setpwent.c
365 winbindd/winbindd_getpwent.c
366 winbindd/winbindd_endpwent.c
367 winbindd/winbindd_setgrent.c
368 winbindd/winbindd_getgrent.c
369 winbindd/winbindd_endgrent.c
370 winbindd/winbindd_dsgetdcname.c
371 winbindd/winbindd_getdcname.c
372 winbindd/winbindd_list_users.c
373 winbindd/winbindd_list_groups.c
374 winbindd/winbindd_check_machine_acct.c
375 winbindd/winbindd_change_machine_acct.c
376 winbindd/winbindd_ping_dc.c
377 winbindd/winbindd_pam_auth.c
378 winbindd/winbindd_pam_logoff.c
379 winbindd/winbindd_pam_chauthtok.c
380 winbindd/winbindd_pam_auth_crap.c
381 winbindd/winbindd_pam_chng_pswd_auth_crap.c
386 auth/server_info_sam.c
391 WINBINDD_SRC
= '''${WINBINDD_SRC1}
392 ${TDB_VALIDATE_SRC}'''
394 MANGLE_SRC
= '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
396 SMBD_SRC_MAIN
= '''smbd/server.c smbd/server_exit.c'''
398 BUILDOPT_SRC
= '''smbd/build_options.c'''
400 SMBD_SRC_SRV
= '''smbd/server_reload.c smbd/files.c smbd/connection.c
401 smbd/utmp.c smbd/session.c
402 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
403 smbd/share_access.c smbd/fileio.c
404 smbd/ipc.c smbd/lanman.c smbd/negprot.c
405 smbd/message.c smbd/nttrans.c smbd/pipes.c
406 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
407 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
408 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
409 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
410 smbd/posix_acls.c lib/sysacls.c
411 smbd/process.c smbd/service.c smbd/error.c
412 printing/printspoolss.c
413 lib/sysquotas.c lib/sysquotas_linux.c
414 lib/sysquotas_xfs.c lib/sysquotas_4A.c
417 smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
418 smbd/aio.c smbd/statvfs.c
419 smbd/dmapi.c smbd/signing.c
421 smbd/dnsregister.c smbd/globals.c
426 smbd/smb2_sesssetup.c
435 smbd/smb2_keepalive.c
443 SMBD_SRC_BASE
= '''${SMBD_SRC_SRV}
444 ${OPLOCK_SRC} ${NOTIFY_SRC}
447 PRINTING_SRC
= '''printing/pcap.c printing/print_svid.c printing/print_aix.c
448 printing/print_cups.c printing/print_generic.c
449 printing/lpq_parse.c printing/load.c printing/print_standard.c
450 printing/print_iprint.c printing/printer_list.c'''
452 PRINTBASE_SRC
= '''printing/notify.c printing/printing_db.c'''
453 PRINTBACKEND_SRC
= '''printing/printing.c
454 printing/nt_printing.c
455 printing/nt_printing_tdb.c
456 printing/nt_printing_migrate.c
457 printing/nt_printing_ads.c'''
459 SMBD_SRC
= '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
461 NMBD_SRC1
= '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
462 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
463 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
464 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
465 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
466 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
467 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
468 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
469 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
470 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
471 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
472 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
474 NMBD_SRC
= '${NMBD_SRC1}'
476 SWAT_SRC1
= '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
477 web/swat.c web/neg_lang.c'''
479 SWAT_SRC
= '''${SWAT_SRC1}'''
481 STATUS_SRC
= '''utils/status.c utils/status_profile.c'''
483 SMBCONTROL_SRC
= '''utils/smbcontrol.c'''
485 SMBTREE_SRC
= '''utils/smbtree.c'''
487 TESTPARM_SRC
= 'utils/testparm.c'
489 SMBTA_UTIL_SRC
= '''utils/smbta-util.c'''
491 TEST_LP_LOAD_SRC
= '''param/test_lp_load.c'''
493 PASSWD_UTIL_SRC
= 'utils/passwd_util.c'
495 SMBPASSWD_SRC
= '''utils/smbpasswd.c'''
497 PDBEDIT_SRC
= '''utils/pdbedit.c'''
499 SMBGET_SRC
= '''utils/smbget.c'''
501 RPCCLIENT_SRC1
= '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
502 rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
503 rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
504 rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
505 rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
506 rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
507 rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
508 rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
509 rpcclient/cmd_winreg.c'''
511 RPCCLIENT_SRC
= '''${RPCCLIENT_SRC1}'''
513 PAM_WINBIND_SRC
= '../nsswitch/pam_winbind.c'
515 LIBSMBCLIENT_THREAD_SRC
= '''libsmb/libsmb_thread_impl.c
516 libsmb/libsmb_thread_posix.c'''
518 LIBSMBCLIENT_SRC0
= '''libsmb/libsmb_cache.c
519 libsmb/libsmb_compat.c
520 libsmb/libsmb_context.c
525 libsmb/libsmb_printjob.c
526 libsmb/libsmb_server.c
528 libsmb/libsmb_xattr.c
529 libsmb/libsmb_setget.c'''
531 LIBSMBCLIENT_SRC1
= '''${LIBSMBCLIENT_SRC0}'''
533 LIBSMBCLIENT_SRC
= '${LIBSMBCLIENT_SRC1}'
535 LIBSMBSHAREMODES_SRC0
= 'libsmb/smb_share_modes.c'
537 LIBSMBSHAREMODES_SRC
= '${LIBSMBSHAREMODES_SRC0}'
539 LIBNETAPI_SRC0
= '''lib/netapi/netapi.c
541 lib/netapi/libnetapi.c
542 lib/netapi/joindomain.c
543 lib/netapi/serverinfo.c
547 lib/netapi/localgroup.c
552 lib/netapi/shutdown.c
553 lib/netapi/netlogon.c'''
555 LIBNETAPI_SRC
= '''${LIBNETAPI_SRC0}'''
557 # FIXME: bigballofmud
559 CLIENT_SRC1
= '''client/client.c client/clitar.c
560 client/dnsbrowse.c'''
562 CLIENT_SRC
= '''${CLIENT_SRC1}'''
564 LIBSMBCONF_SRC
= '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
565 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
566 lib/smbconf/smbconf_init.c'''
568 SMBCONFTORT_SRC0
= 'lib/smbconf/testsuite.c'
570 SMBCONFTORT_SRC
= '''${SMBCONFTORT_SRC0}'''
572 LIBNET_SRC
= 'libnet/libnet_join.c libnet/libnet_keytab.c'
575 LIBNET_DSSYNC_SRC
= '''libnet/libnet_dssync.c
576 libnet/libnet_dssync_keytab.c'''
578 LIBNET_SAMSYNC_SRC
= '''libnet/libnet_samsync.c
579 libnet/libnet_samsync_ldif.c
580 libnet/libnet_samsync_passdb.c
581 libnet/libnet_samsync_display.c
582 libnet/libnet_samsync_keytab.c'''
584 NET_SRC1
= '''utils/net.c utils/net_ads.c utils/net_help.c
585 utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
586 utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
587 utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
588 utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
589 utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
590 utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
591 utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
592 utils/net_dns.c utils/net_ads_gpo.c
593 utils/net_conf.c utils/net_join.c utils/net_user.c
594 utils/net_group.c utils/net_file.c utils/net_registry.c
595 utils/net_dom.c utils/net_share.c
600 registry/reg_parse.c registry/reg_format.c
601 registry/reg_parse_internal.c registry/reg_import.c
602 lib/cbuf.c lib/srprs.c'''
604 NET_SRC2
= 'utils/net_registry_util.c utils/net_help_common.c'
606 NET_SRC
= '''${NET_SRC1}
609 CUPS_SRC
= '''client/smbspool.c'''
611 NMBLOOKUP_SRC
= '''utils/nmblookup.c'''
613 SMBTORTURE_SRC1
= '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
614 torture/denytest.c torture/mangle_test.c
616 torture/test_async_echo.c
617 torture/test_posix_append.c
618 torture/test_smbsock_any_connect.c'''
620 SMBTORTURE_SRC
= '''${SMBTORTURE_SRC1}
624 MASKTEST_SRC
= '''torture/masktest.c'''
626 MSGTEST_SRC
= '''torture/msgtest.c'''
628 LOCKTEST_SRC
= '''torture/locktest.c'''
630 NSSTEST_SRC
= '''../nsswitch/nsstest.c ${LIBSAMBAUTIL_SRC}'''
632 PDBTEST_SRC
= '''torture/pdbtest.c'''
634 VFSTEST_SRC
= '''torture/cmd_vfs.c torture/vfstest.c'''
636 SMBICONV_SRC
= '''torture/smbiconv.c'''
638 LOG2PCAP_SRC
= '''utils/log2pcaphex.c'''
640 LOCKTEST2_SRC
= '''torture/locktest2.c'''
642 SMBCACLS_SRC
= '''utils/smbcacls.c'''
644 SMBCQUOTAS_SRC
= '''utils/smbcquotas.c'''
646 EVTLOGADM_SRC0
= 'utils/eventlogadm.c'
648 EVTLOGADM_SRC
= '''${EVTLOGADM_SRC0}'''
650 SHARESEC_SRC0
= 'utils/sharesec.c'
651 SHARESEC_SRC
= '''${SHARESEC_SRC0}'''
653 DEBUG2HTML_SRC
= '''utils/debug2html.c utils/debugparse.c'''
655 SMBFILTER_SRC
= '''utils/smbfilter.c'''
657 WINBIND_WINS_NSS_SRC
= '''../nsswitch/wins.c'''
659 WBINFO_SRC
= '''../nsswitch/wbinfo.c'''
661 WINBIND_NSS_SRC
= '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
663 WINBIND_KRB5_LOCATOR_SRC1
= '../nsswitch/winbind_krb5_locator.c'
664 WINBIND_KRB5_LOCATOR_SRC
= '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
666 POPT_SRC
= '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
667 ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
669 NTLM_AUTH_SRC1
= '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
671 NTLM_AUTH_SRC
= '''${NTLM_AUTH_SRC1}
672 libsmb/clikrb5.c libads/kerberos.c'''
675 VLP_SRC
= '''printing/tests/vlp.c'''
677 RPC_OPEN_TCP_SRC
= 'torture/rpc_open_tcp.c'
679 DBWRAP_TOOL_SRC
= 'utils/dbwrap_tool.c'
681 DBWRAP_TORTURE_SRC
= 'utils/dbwrap_torture.c'
683 SPLIT_TOKENS_SRC
= 'utils/split_tokens.c'
687 bld
.SAMBA_GENERATOR('build_options',
688 source
='include/config.h script/mkbuildoptions-waf.awk',
689 target
='smbd/build_options.c',
690 rule
='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
692 t
= bld
.SAMBA_GENERATOR('build_env.h',
693 source
='script/build_env.sh',
694 target
='include/build_env.h',
695 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
696 # todo: work out what is really wanted here
697 t
.env
.SRCDIR
= bld
.path
.abspath()
698 t
.env
.BUILDDIR
= bld
.path
.abspath()
701 bld
.SETUP_BUILD_GROUPS()
703 samba_version
.load_version(bld
.env
)
705 bld
.SAMBA_MKVERSION('include/version.h')
707 bld
.RECURSE('../lib/replace')
708 bld
.RECURSE('../libcli/smbreadline')
709 print "SBINDIR=%s" % bld
.env
.SBINDIR
712 bld
.RECURSE('../librpc')
713 bld
.RECURSE('librpc/idl')
714 bld
.RECURSE('librpc')
715 bld
.RECURSE('../libcli/security')
717 ######################## SUBSYSTEMS #################################
719 bld
.SAMBA_SUBSYSTEM('winbind-client',
722 cflags
='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld
.env
.WINBINDD_SOCKET_DIR
)
724 bld
.SAMBA_LIBRARY('netapi',
725 source
=LIBNETAPI_SRC
,
726 public_deps
='''talloc tdb cap wbclient LIB_NONSMBD LIBSMB KRBCLIENT
727 PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
728 LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL NDR_LIBNETAPI
729 RPC_CLIENT_SCHANNEL LIBSMBCONF REG_SMBCONF TOKEN_UTIL
730 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON
731 RPCCLI_SRVSVC RPCCLI_WKSSVC RPCCLI_INITSHUTDOWN
732 INIT_NETLOGON INIT_SAMR''',
733 public_headers
='lib/netapi/netapi.h',
734 private_library
=True,
737 bld
.SAMBA_LIBRARY('smbclient',
738 source
=LIBSMBCLIENT_SRC
,
739 public_deps
='''talloc tdb wbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
740 LIBMSRPC_GEN LIBMSRPC LIBCLI_LSA RPCCLI_SRVSVC''',
741 public_headers
='include/libsmbclient.h',
742 private_library
=True,
745 bld
.SAMBA_LIBRARY('smbsharemodes',
746 source
=LIBSMBSHAREMODES_SRC
,
747 public_deps
='''talloc tdb''',
748 public_headers
='include/smb_share_modes.h',
749 private_library
=True,
752 bld
.SAMBA_LIBRARY('nss_winbind',
753 source
='../nsswitch/winbind_nss_linux.c',
754 deps
='winbind-client',
755 realname
='libnss_winbind.so.2',
758 bld
.SAMBA_LIBRARY('nss_wins',
759 source
=WINBIND_WINS_NSS_SRC
,
760 deps
='''winbind-client PARAM LIBSMB LIB_NONSMBD LIBTSOCKET KRBCLIENT
762 realname
='libnss_wins.so.2',
765 if bld
.CONFIG_SET('WITH_PAM_MODULES'):
766 bld
.SAMBA_LIBRARY('pamwinbind',
767 source
=PAM_WINBIND_SRC
,
768 deps
='intl talloc wbclient winbind-client LIBINIPARSER pam',
769 cflags
='-DLOCALEDIR=\"%s/locale\"' % bld
.env
.DATADIR
,
770 realname
='pam_winbind.so')
772 if bld
.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
773 bld
.SAMBA_LIBRARY('winbind_krb5_locator',
774 source
='../nsswitch/winbind_krb5_locator.c',
775 deps
='wbclient krb5',
776 realname
='winbind_krb5_locator.so')
778 bld
.SAMBA_SUBSYSTEM('LIBMSRPC',
779 source
='${LIBMSRPC_SRC}',
780 deps
='''ndr NDR_SECURITY NDR_DCERPC NDR_SCHANNEL
781 RPC_NDR_EPMAPPER COMMON_SCHANNELDB LIBCLI_AUTH''',
784 bld
.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
786 deps
='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
789 bld
.SAMBA_SUBSYSTEM('LIBGPO',
790 source
='${LIBGPO_SRC}',
794 bld
.SAMBA_SUBSYSTEM('ASN1_UTIL',
795 source
='../lib/util/asn1.c',
799 bld
.SAMBA_SUBSYSTEM('AVAHI',
801 deps
='avahi-common avahi-client',
802 enabled
=bld
.env
.with_avahi
)
804 bld
.SAMBA_SUBSYSTEM('GROUPDB',
807 bld
.SAMBA_SUBSYSTEM('TLDAP',
809 deps
='ASN1_UTIL LIBTSOCKET')
811 bld
.SAMBA_SUBSYSTEM('PASSDB',
813 deps
='''GROUPDB TLDAP SECRETS SMBLDAP pdb''',
816 bld
.SAMBA_SUBSYSTEM('PARAM_UTIL',
817 source
=PARAM_UTIL_SRC
)
819 bld
.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
820 source
=PARAM_WITHOUT_REG_SRC
,
821 deps
='''PARAM_UTIL''',
824 bld
.SAMBA_SUBSYSTEM('PARAM',
826 deps
='PARAM_WITHOUT_REG DYNCONFIG LIBSMBCONF',
829 bld
.SAMBA_SUBSYSTEM('REGFIO',
833 bld
.SAMBA_SUBSYSTEM('REG_API_REGF',
834 source
=REG_API_REGF_SRC
,
837 bld
.SAMBA_SUBSYSTEM('REG_BASE',
841 bld
.SAMBA_SUBSYSTEM('REG_SMBCONF',
842 source
=REG_SMBCONF_SRC
,
846 bld
.SAMBA_SUBSYSTEM('REG_FULL',
848 deps
='REG_SMBCONF REG_EVENTLOG',
851 bld
.SAMBA_SUBSYSTEM('REG_EVENTLOG',
852 source
=REG_EVENTLOG_SRC
,
855 bld
.SAMBA_SUBSYSTEM('POPT_SAMBA',
859 bld
.SAMBA_SUBSYSTEM('KRBCLIENT',
860 source
=KRBCLIENT_SRC
,
861 deps
='krb5 k5crypto com_err gssapi gssapi_krb5',
864 bld
.SAMBA_SUBSYSTEM('LIBS',
866 deps
='LIBCRYPTO ndr security NDR_SECURITY charset NDR_MESSAGING LIBASYNC_REQ tdb-wrap samba-util CHARSET UTIL_TDB SAMBA_VERSION',
869 bld
.SAMBA_SUBSYSTEM('LIB_NONSMBD',
870 source
=LIB_NONSMBD_SRC
,
874 bld
.SAMBA_SUBSYSTEM('LIBSMB_ERR',
875 source
=LIBSMB_ERR_SRC
,
876 deps
='errors SECRETS ldap lber MSRPC_PARSE LIBCLI_AUTH',
879 bld
.SAMBA_SUBSYSTEM('LIBSAMBA',
881 deps
='LIBSMB_ERR NDR_NTLMSSP ntlm_check',
884 bld
.SAMBA_SUBSYSTEM('LIBSMB',
886 deps
='LIBSAMBA CLDAP LIBNMB LIBNBT LIBDRSUAPI SPNEGO_PARSE',
889 bld
.SAMBA_SUBSYSTEM('LIBDRSUAPI',
891 deps
='z LZXPRESS NDR_DRSUAPI NDR_DRSBLOBS',
894 bld
.SAMBA_SUBSYSTEM('CLDAP',
896 deps
='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
899 bld
.SAMBA_SUBSYSTEM('SECRETS',
904 bld
.SAMBA_SUBSYSTEM('SMBLDAP',
909 bld
.SAMBA_SUBSYSTEM('LIBADS',
911 deps
='LIBCLI_LDAP_NDR',
914 bld
.SAMBA_SUBSYSTEM('LIBADS_SERVER',
915 source
=LIBADS_SERVER_SRC
,
919 bld
.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
920 source
=LIBADS_PRINTER_SRC
,
923 bld
.SAMBA_SUBSYSTEM('LIBAFS',
927 bld
.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
928 source
=AFS_SETTOKEN_SRC
,
931 bld
.SAMBA_SUBSYSTEM('LIBSMBCONF',
932 source
=LIBSMBCONF_SRC
,
933 deps
='REG_BASE REG_SMBCONF',
936 bld
.SAMBA_SUBSYSTEM('SMBD_BASE',
937 source
=SMBD_SRC_BASE
,
938 deps
='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
939 DYNCONFIG wbclient crypt nsl cups cap resolv z PASSDB
940 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
941 LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
942 vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
943 PRINTING PRINTBACKEND NDR_XATTR NDR_NOTIFY REGFIO
944 LIBSMBCONF REG_FULL FNAME_UTIL
945 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON LIBCLI_SPOOLSS
946 RPCCLI_SRVSVC NAMED_PIPE_AUTH_TSTREAM INIT_NETLOGON INIT_SAMR
947 LIBCLI_SMB_COMMON RPC_SERVER
951 bld
.SAMBA_SUBSYSTEM('LOCKING',
952 source
='${LOCKING_SRC}',
953 deps
='''tdb talloc''',
956 bld
.SAMBA_SUBSYSTEM('PROFILE',
957 source
='${PROFILE_SRC}',
960 bld
.SAMBA_SUBSYSTEM('PRINTBASE',
961 source
=PRINTBASE_SRC
,
964 bld
.SAMBA_SUBSYSTEM('PRINTBACKEND',
965 source
=PRINTBACKEND_SRC
,
966 deps
='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
969 bld
.SAMBA_SUBSYSTEM('PRINTING',
973 bld
.SAMBA_SUBSYSTEM('PASSWD_UTIL',
974 source
=PASSWD_UTIL_SRC
,
977 bld
.SAMBA_SUBSYSTEM('FNAME_UTIL',
978 source
=FNAME_UTIL_SRC
,
981 bld
.SAMBA_SUBSYSTEM('UTIL_TDB',
982 source
='../lib/util/util_tdb.c',
984 public_deps
='tdb talloc'
987 bld
.SAMBA_SUBSYSTEM('LIBNET',
989 deps
='NDR_LIBNET_JOIN',
992 bld
.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
993 source
=LIBNET_DSSYNC_SRC
,
994 deps
='LIBNET LIBCLI_DRSUAPI',
997 bld
.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
998 source
=LIBNET_SAMSYNC_SRC
,
999 deps
='LIBNET LIBCLI_SAMSYNC',
1002 bld
.SAMBA_SUBSYSTEM('LIBEVENTLOG',
1003 source
=LIB_EVENTLOG_SRC
,
1004 deps
='NDR_EVENTLOG',
1007 bld
.SAMBA_SUBSYSTEM('LIBNMB',
1011 bld
.SAMBA_SUBSYSTEM('LIBNBT',
1013 deps
='NDR_SVCCTL NDR_NBT NDR_NBT_BUF LIBCLI_NDR_NETLOGON',
1016 bld
.SAMBA_SUBSYSTEM('SERVICES',
1017 source
=SERVICES_SRC
,
1020 bld
.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1021 source
=PLAINTEXT_AUTH_SRC
,
1025 bld
.SAMBA_SUBSYSTEM('PASSCHANGE',
1026 source
=PASSCHANGE_SRC
,
1030 bld
.SAMBA_SUBSYSTEM('SAMBA_VERSION',
1034 bld
.SAMBA_SUBSYSTEM('SLCACHE',
1038 bld
.SAMBA_SUBSYSTEM('SPNEGO_PARSE',
1039 source
='../libcli/auth/spnego_parse.c',
1042 bld
.SAMBA_SUBSYSTEM('DCUTIL',
1046 bld
.SAMBA_SUBSYSTEM('ndr',
1050 bld
.SAMBA_SUBSYSTEM('tdb-wrap',
1051 source
='lib/util_tdb.c',
1054 bld
.SAMBA_SUBSYSTEM('CHARSET',
1055 source
='''lib/util_str.c lib/util_unistr.c lib/charcnv.c lib/iconv.c''',
1056 public_deps
='iconv',
1059 bld
.SAMBA_SUBSYSTEM('samba-util',
1061 deps
='talloc CHARSET LIBCRYPTO',
1064 bld
.SAMBA_SUBSYSTEM('ndr-standard',
1067 NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
1068 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
1069 NDR_ECHO security NDR_DNS
1074 bld
.SAMBA_SUBSYSTEM('dcerpc', '')
1076 bld
.SAMBA_SUBSYSTEM('ldb',
1077 source
='lib/ldb_compat.c')
1079 bld
.SAMBA_SUBSYSTEM('LZXPRESS',
1081 source
='../lib/compression/lzxpress.c')
1083 bld
.SAMBA_SUBSYSTEM('NDR_SECURITY',
1084 source
='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1088 bld
.SAMBA_SUBSYSTEM('NDR_DCERPC',
1089 source
='../librpc/gen_ndr/ndr_dcerpc.c',
1092 bld
.SAMBA_SUBSYSTEM('errors',
1093 source
='../libcli/util/doserr.c libsmb/nterr.c')
1095 bld
.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1096 source
='../libcli/nbt/nbtname.c',
1098 autoproto
='nbtname.h')
1100 bld
.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1101 source
='../libcli/ndr_netlogon.c',
1102 public_deps
='ndr NDR_SECURITY')
1104 bld
.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1105 source
='../librpc/gen_ndr/cli_winreg.c',
1106 public_deps
='RPC_NDR_WINREG')
1108 bld
.SAMBA_SUBSYSTEM('RPCCLI_ECHO',
1109 source
='../librpc/gen_ndr/cli_echo.c',
1110 public_deps
='RPC_NDR_ECHO')
1112 bld
.SAMBA_SUBSYSTEM('RPCCLI_SAMR',
1113 source
='../librpc/gen_ndr/cli_samr.c',
1114 public_deps
='RPC_NDR_SAMR')
1116 bld
.SAMBA_SUBSYSTEM('RPCCLI_LSA',
1117 source
='../librpc/gen_ndr/cli_lsa.c',
1118 public_deps
='RPC_NDR_LSA')
1120 bld
.SAMBA_SUBSYSTEM('RPCCLI_NETLOGON',
1121 source
='../librpc/gen_ndr/cli_netlogon.c',
1122 public_deps
='RPC_NDR_NETLOGON')
1124 bld
.SAMBA_SUBSYSTEM('RPCCLI_SRVSVC',
1125 source
='../librpc/gen_ndr/cli_srvsvc.c',
1126 public_deps
='RPC_NDR_SRVSVC')
1128 bld
.SAMBA_SUBSYSTEM('RPCCLI_INITSHUTDOWN',
1129 source
='../librpc/gen_ndr/cli_initshutdown.c',
1130 public_deps
='RPC_NDR_INITSHUTDOWN')
1132 bld
.SAMBA_SUBSYSTEM('RPCCLI_WKSSVC',
1133 source
='../librpc/gen_ndr/cli_wkssvc.c',
1134 public_deps
='RPC_NDR_WKSSVC')
1136 bld
.SAMBA_SUBSYSTEM('RPCCLI_SVCCTL',
1137 source
='../librpc/gen_ndr/cli_svcctl.c',
1138 public_deps
='RPC_NDR_SVCCTL')
1140 bld
.SAMBA_SUBSYSTEM('RPCCLI_DRSUAPI',
1141 source
='../librpc/gen_ndr/cli_drsuapi.c',
1142 public_deps
='RPC_NDR_DRSUAPI')
1144 bld
.SAMBA_SUBSYSTEM('RPCCLI_EVENTLOG',
1145 source
='../librpc/gen_ndr/cli_eventlog.c',
1146 public_deps
='RPC_NDR_EVENTLOG')
1148 bld
.SAMBA_SUBSYSTEM('RPCCLI_SPOOLSS',
1149 source
='../librpc/gen_ndr/cli_spoolss.c',
1150 public_deps
='RPC_NDR_SPOOLSS')
1152 bld
.SAMBA_SUBSYSTEM('LIBCLI_SAMR',
1153 source
=LIBCLI_SAMR_SRC
,
1156 bld
.SAMBA_SUBSYSTEM('LIBCLI_LSA',
1157 source
=LIBCLI_LSA_SRC
,
1158 deps
='RPCCLI_LSA INIT_LSA')
1160 bld
.SAMBA_SUBSYSTEM('LIBCLI_NETLOGON',
1161 source
=LIBCLI_NETLOGON_SRC
,
1162 deps
='RPCCLI_NETLOGON')
1164 bld
.SAMBA_SUBSYSTEM('LIBCLI_SPOOLSS',
1165 source
=LIBCLI_SPOOLSS_SRC
,
1166 deps
='RPCCLI_SPOOLSS')
1168 bld
.SAMBA_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
1169 source
=RPC_CLIENT_SCHANNEL_SRC
,
1172 bld
.SAMBA_SUBSYSTEM('INIT_LSA',
1173 source
='rpc_client/init_lsa.c')
1175 bld
.SAMBA_SUBSYSTEM('INIT_NETLOGON',
1176 source
='rpc_client/init_netlogon.c')
1178 bld
.SAMBA_SUBSYSTEM('INIT_SAMR',
1179 source
='rpc_client/init_samr.c')
1181 ########################## BINARIES #################################
1183 bld
.SAMBA_BINARY('smbd/smbd',
1184 source
='${SMBD_SRC_MAIN}',
1185 deps
='''SMBD_BASE''',
1186 install_path
='${SBINDIR}',
1189 bld
.SAMBA_BINARY('nmbd/nmbd',
1191 deps
='''talloc tdb tevent z cap resolv wbclient dl
1192 PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1193 POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1194 install_path
='${SBINDIR}',
1197 bld
.SAMBA_BINARY('winbindd/winbindd',
1198 source
=WINBINDD_SRC
,
1199 deps
='''talloc tdb tevent cap dl z
1200 wbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1201 POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1202 SRV_NDR_WBINT RPC_NDR_WBINT LIBAFS
1203 LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1205 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON
1206 RPC_NDR_DSSETUP NAMED_PIPE_AUTH_TSTREAM INIT_NETLOGON
1207 RPC_NCACN_NP RPC_PIPE_REGISTER RPC_SAMR RPC_LSARPC
1209 enabled
=bld
.env
.build_winbind
,
1210 install_path
='${SBINDIR}',
1213 bld
.SAMBA_BINARY('web/swat',
1215 deps
='''talloc tevent cap LIBS LIBSMB wbclient PARAM
1216 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1217 LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING FNAME_UTIL
1218 LIBCLI_SAMR INIT_LSA PASSCHANGE''',
1219 enabled
=bld
.env
.build_swat
,
1220 install_path
='${SBINDIR}',
1223 bld
.SAMBA_BINARY('rpcclient/rpcclient',
1224 source
=RPCCLIENT_SRC
,
1225 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1226 PARAM_WITHOUT_REG wbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1227 LIBADS SMBREADLINE DCUTIL RPCCLI_WINREG RPCCLI_ECHO
1229 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON LIBCLI_SPOOLSS
1230 RPCCLI_SRVSVC RPCCLI_WKSSVC RPC_NDR_DSSETUP RPC_NDR_DFS
1231 RPCCLI_DRSUAPI RPC_NDR_NTSVCS RPCCLI_EVENTLOG INIT_NETLOGON
1236 bld
.SAMBA_BINARY('client/smbclient',
1238 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1239 PARAM_WITHOUT_REG wbclient PARAM KRBCLIENT LIBMSRPC_GEN
1240 LIBMSRPC SMBREADLINE smbclient RPCCLI_SRVSVC INIT_LSA''',
1243 bld
.SAMBA_BINARY('net',
1245 deps
='''talloc tdb netapi addns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1246 PARAM_WITHOUT_REG wbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1247 LOCALE_DIR LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
1248 LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
1249 REGFIO NDR_NTPRINTING RPCCLI_WINREG
1250 RPC_CLIENT_SCHANNEL TOKEN_UTIL
1251 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON LIBCLI_SPOOLSS
1252 RPCCLI_SRVSVC RPCCLI_WKSSVC RPCCLI_SVCCTL RPC_NDR_DSSETUP
1253 RPCCLI_INITSHUTDOWN RPCCLI_DRSUAPI INIT_NETLOGON INIT_SAMR
1257 bld
.SAMBA_BINARY('profiles',
1258 source
=PROFILES_SRC
,
1259 deps
='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD REGFIO''',
1262 bld
.SAMBA_BINARY('smbspool',
1264 deps
='''talloc tdb tevent resolv cap wbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1265 KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1268 bld
.SAMBA_BINARY('testparm',
1269 source
=TESTPARM_SRC
,
1270 deps
='''talloc tevent ldap cap
1271 wbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1272 LIBSMB_ERR POPT_SAMBA''',
1275 bld
.SAMBA_BINARY('smbta-util',
1276 source
=SMBTA_UTIL_SRC
,
1277 deps
='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1281 bld
.SAMBA_BINARY('smbstatus',
1283 deps
='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1284 LIBSMB_ERR LOCKING PROFILE FNAME_UTIL''',
1287 bld
.SAMBA_BINARY('smbcontrol',
1288 source
=SMBCONTROL_SRC
,
1289 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA PRINTBASE''',
1292 bld
.SAMBA_BINARY('smbtree',
1294 deps
='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD
1295 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE
1299 bld
.SAMBA_BINARY('smbpasswd',
1300 source
=SMBPASSWD_SRC
,
1301 deps
='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD
1302 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL
1303 LIBCLI_SAMR INIT_LSA PASSCHANGE''',
1306 bld
.SAMBA_BINARY('pdbedit',
1308 deps
='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD
1309 LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1310 PASSWD_UTIL LIBCLI_LDAP_NDR''',
1313 bld
.SAMBA_BINARY('smbget',
1315 deps
='''talloc tdb smbclient POPT_SAMBA''',
1318 bld
.SAMBA_BINARY('nmblookup',
1319 source
=NMBLOOKUP_SRC
,
1320 deps
='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR LIBNMB''',
1323 bld
.SAMBA_BINARY('smbtorture',
1324 source
=SMBTORTURE_SRC
,
1325 deps
='''talloc tdb tevent cap resolv wbclient PARAM LIBSMB KRBCLIENT TLDAP
1326 LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_LSA LIBMSRPC LIBMSRPC_GEN RPCCLI_ECHO''',
1329 bld
.SAMBA_BINARY('smbconftort',
1330 source
=SMBCONFTORT_SRC
,
1331 deps
='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1334 bld
.SAMBA_BINARY('masktest',
1335 source
=MASKTEST_SRC
,
1336 deps
='''talloc tdb cap resolv wbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1337 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1340 bld
.SAMBA_BINARY('msgtest',
1342 deps
='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1345 bld
.SAMBA_BINARY('smbcacls',
1346 source
=SMBCACLS_SRC
,
1347 deps
='''talloc tdb cap resolv wbclient PARAM LIBSMB KRBCLIENT
1348 LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1349 LIBMSRPC LIBCLI_LSA''',
1352 bld
.SAMBA_BINARY('smbcquotas',
1353 source
=SMBCQUOTAS_SRC
,
1354 deps
='''talloc tdb cap resolv wbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1355 POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC
1359 bld
.SAMBA_BINARY('eventlogadm',
1360 source
=EVTLOGADM_SRC
,
1361 deps
='''talloc tevent cap POPT_SAMBA LIBS PARAM
1362 LIB_NONSMBD LIBSMB_ERR PASSDB wbclient LIBEVENTLOG REG_EVENTLOG''',
1365 bld
.SAMBA_BINARY('sharesec',
1366 source
=SHARESEC_SRC
,
1367 deps
='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1370 bld
.SAMBA_BINARY('locktest',
1371 source
=LOCKTEST_SRC
,
1372 deps
='''talloc tdb tevent cap resolv wbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1373 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING FNAME_UTIL''',
1376 bld
.SAMBA_BINARY('nsstest',
1381 bld
.SAMBA_BINARY('pdbtest',
1383 deps
='''talloc tdb cap resolv wbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1384 SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1387 bld
.SAMBA_BINARY('vfstest',
1389 deps
='''SMBD_BASE SMBREADLINE''',
1392 bld
.SAMBA_BINARY('smbiconv',
1393 source
=SMBICONV_SRC
,
1394 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1397 bld
.SAMBA_BINARY('log2pcap',
1398 source
=LOG2PCAP_SRC
,
1399 deps
='''talloc popt''',
1402 bld
.SAMBA_BINARY('locktest2',
1403 source
=LOCKTEST2_SRC
,
1404 deps
='''talloc tdb tevent cap resolv wbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1405 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING FNAME_UTIL''',
1408 bld
.SAMBA_BINARY('debug2html',
1409 source
=DEBUG2HTML_SRC
,
1410 deps
='''talloc popt''',
1413 bld
.SAMBA_BINARY('smbfilter',
1414 source
=SMBFILTER_SRC
,
1415 deps
='''talloc tevent cap resolv wbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1416 NDR_SAMR NDR_LSA''',
1419 bld
.SAMBA_BINARY('versiontest',
1420 source
='lib/version_test.c',
1421 deps
='SAMBA_VERSION',
1424 bld
.SAMBA_BINARY('wbinfo',
1426 deps
='''talloc wbclient tevent cap
1427 ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1428 LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1431 bld
.SAMBA_BINARY('ntlm_auth',
1432 source
=NTLM_AUTH_SRC
,
1433 deps
='''tdb talloc cap resolv krb5 k5crypto com_err wbclient PARAM LIB_NONSMBD
1434 LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1435 PASSDB GROUPDB SMBLDAP winbind-client LIBINIPARSER LIBADS_SERVER
1436 NDR_SAMR NDR_LSA NDR_NETLOGON LIBCLI_LDAP_NDR LIBNMB SLCACHE SPNEGO_PARSE''',
1439 bld
.SAMBA_BINARY('timelimit',
1440 source
='script/tests/timelimit.c',
1443 bld
.SAMBA_BINARY('rpc_open_tcp',
1444 source
=RPC_OPEN_TCP_SRC
,
1445 deps
='''talloc tdb tevent resolv cap wbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1446 LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1449 bld
.SAMBA_BINARY('test_lp_load',
1450 source
=TEST_LP_LOAD_SRC
,
1451 deps
='''talloc tdb tevent cap wbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1454 bld
.SAMBA_BINARY('dbwrap_tool',
1455 source
=DBWRAP_TOOL_SRC
,
1456 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1459 bld
.SAMBA_BINARY('dbwrap_torture',
1460 source
=DBWRAP_TORTURE_SRC
,
1461 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1465 bld
.SAMBA_BINARY('split_tokens',
1466 source
=SPLIT_TOKENS_SRC
,
1467 deps
='''talloc tdb tevent cap wbclient PARAM LIB_NONSMBD POPT_SAMBA
1471 bld
.SAMBA_BINARY('vlp',
1473 deps
='''talloc tdb PARAM_UTIL UTIL_TDB''',
1476 swat_files
=recursive_dirlist('../swat', '../swat', '*')
1477 bld
.INSTALL_FILES('${SWATDIR}', swat_files
, base_name
='../swat')
1479 ########################## INCLUDES #################################
1481 bld
.RECURSE('../lib/socket_wrapper')
1482 bld
.RECURSE('../lib/talloc')
1483 bld
.RECURSE('../lib/tdb')
1484 bld
.RECURSE('../lib/nss_wrapper')
1485 bld
.RECURSE('../lib/tevent')
1486 bld
.RECURSE('../lib/popt')
1487 bld
.RECURSE('../lib/zlib')
1488 bld
.RECURSE('../lib/tsocket')
1489 bld
.RECURSE('../lib/iniparser/src')
1490 bld
.RECURSE('../lib/crypto')
1491 bld
.RECURSE('../lib/async_req')
1492 bld
.RECURSE('../lib/addns')
1493 bld
.RECURSE('../libcli/auth')
1494 bld
.RECURSE('../libcli/drsuapi')
1495 bld
.RECURSE('../libcli/samsync')
1496 bld
.RECURSE('../libcli/named_pipe_auth')
1497 bld
.RECURSE('../libcli/smb')
1498 bld
.RECURSE('../libcli/ldap')
1499 bld
.RECURSE('../nsswitch/libwbclient')
1500 bld
.RECURSE('modules')
1502 bld
.RECURSE('passdb')
1503 bld
.RECURSE('winbindd')
1504 bld
.RECURSE('libgpo/gpext')
1505 bld
.RECURSE('pam_smbpass')
1506 bld
.RECURSE('rpc_server')
1508 bld
.ENFORCE_GROUP_ORDERING()
1509 bld
.CHECK_PROJECT_RULES()