3 from samba_utils
import *
5 TDB_LIB_SRC
= '''../lib/util/util_tdb.c
6 lib/dbwrap.c lib/dbwrap_tdb.c
11 TDB_VALIDATE_SRC
= '''lib/tdb_validate.c'''
13 SMBLDAP
= bld
.env
.SMBLDAP
or ""
14 SMBLDAPUTIL
= bld
.env
.SMBLDAPUTIL
or ""
16 SMBLDAP_SRC
= '''${SMBLDAP} ${SMBLDAPUTIL}'''
18 VERSION_SRC
= '''lib/version.c'''
20 WBCOMMON_SRC
= '../nsswitch/wb_common.c'
24 AFS_SETTOKEN_SRC
= 'lib/afs_settoken.c'
26 AVAHI_SRC
= 'lib/avahi.c smbd/avahi_register.c'
28 SERVER_MUTEX_SRC
= 'lib/server_mutex.c'
30 PASSCHANGE_SRC
= '''libsmb/passchange.c'''
32 COMPRESSION_SRC
= '../lib/compression/mszip.c'
34 DRSUAPI_SRC
= '''${COMPRESSION_SRC}'''
36 LIBNDR_SRC
= '''../librpc/ndr/ndr_basic.c
38 ../librpc/ndr/ndr_misc.c
39 ../librpc/gen_ndr/ndr_misc.c
40 ../librpc/ndr/ndr_string.c
44 LIBCLI_SPOOLSS_SRC
= '''rpc_client/cli_spoolss.c
45 rpc_client/init_spoolss.c'''
47 LIBCLI_LSA_SRC
= '''rpc_client/cli_lsarpc.c'''
49 LIBCLI_SAMR_SRC
= 'rpc_client/cli_samr.c'
51 LIBCLI_NETLOGON_SRC
= 'rpc_client/cli_netlogon.c'
53 # this includes only the low level parse code, not stuff
54 # that requires knowledge of security contexts
55 REG_PARSE_PRS_SRC
= '''registry/reg_parse_prs.c'''
57 LIBREPLACE_SRC
= '''${LIBREPLACE_SRCS}'''
59 LIBSAMBAUTIL_SRC
= '''${LIBREPLACE_SRC}'''
61 UTIL_SRC
= '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
62 ../lib/util/xfile.c ../lib/util/util_strlist.c
63 ../lib/util/util_file.c ../lib/util/data_blob.c
64 ../lib/util/util.c ../lib/util/fsusage.c
65 ../lib/util/params.c ../lib/util/talloc_stack.c
66 ../lib/util/genrand.c ../lib/util/util_net.c
67 ../lib/util/become_daemon.c ../lib/util/system.c
68 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
69 ../lib/util/tevent_werror.c
70 ../lib/util/smb_threads.c ../lib/util/util_id.c
71 ../lib/util/blocking.c ../lib/util/rfc1738.c
72 ../lib/util/select.c'''
80 LIB_SRC
= '''${LIBSAMBAUTIL_SRC}
81 lib/messages.c lib/messages_local.c
82 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
83 lib/interfaces.c lib/memcache.c
87 lib/util_transfer_file.c
89 ${VERSION_SRC} lib/debug.c lib/fault.c
90 lib/interface.c lib/pidfile.c
91 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
93 ../libds/common/flag_mapping.c
94 lib/access.c lib/smbrun.c
95 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
97 lib/clobber.c lib/util_sid.c
99 lib/util.c lib/util_names.c
100 lib/util_sock.c lib/sock_exec.c lib/util_sec.c
101 lib/substitute.c lib/dbwrap_util.c
102 lib/ms_fnmatch.c lib/errmap_unix.c
103 lib/tallocmsg.c lib/dmallocmsg.c
104 libsmb/clisigning.c libsmb/smb_signing.c
105 lib/pam_errors.c intl/lang_tdb.c
106 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
108 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
109 lib/server_contexts.c
111 lib/secdesc.c ${PTHREADPOOL_SRC}
113 libads/krb5_errs.c lib/system_smbd.c lib/audit.c
114 lib/file_id.c lib/idmap_cache.c'''
116 LIB_DUMMY_SRC
= '''lib/dummysmbd.c lib/dummyroot.c'''
117 LIB_NONSMBD_SRC
= '''${LIB_DUMMY_SRC}'''
119 POPT_LIB_SRC
= '''lib/popt_common.c'''
121 PARAM_UTIL_SRC
= '''param/util.c'''
123 PARAM_WITHOUT_REG_SRC
= '''param/loadparm.c param/loadparm_server_role.c
124 lib/sharesec.c lib/ldap_debug_handler.c'''
126 KRBCLIENT_SRC
= '''libads/kerberos.c libads/ads_status.c'''
128 LIBGPO_SRC0
= '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
129 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
131 LIBGPO_SRC
= '''${LIBGPO_SRC0}'''
133 LIBADS_SRC
= '''libads/ldap.c
134 libads/sasl.c libads/sasl_wrapping.c
136 libads/kerberos_util.c
138 libads/ads_struct.c libads/kerberos_keytab.c
139 libads/disp_sec.c libads/ldap_utils.c
140 libads/ldap_schema.c libads/util.c libads/ndr.c'''
142 LIBADS_SERVER_SRC
= '''libads/kerberos_verify.c libads/authdata.c'''
144 LIBADS_PRINTER_SRC
= '''libads/ldap_printer.c'''
146 SECRETS_SRC
= '''passdb/secrets.c passdb/machine_account_secrets.c
147 passdb/machine_sid.c'''
149 LIBNBT_SRC
= '''../libcli/netlogon.c'''
151 LIBNMB_SRC
= '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
152 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
153 libads/dns.c libads/sitename_cache.c'''
155 NTERR_SRC
= '''libsmb/smberr.c'''
156 ERRORMAP_SRC
= 'libsmb/errormap.c'
157 DCE_RPC_ERR_SRC
= '../librpc/rpc/dcerpc_error.c'
159 LIBSMB_ERR_SRC
= '''${NTERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
163 libsmb/ntlmssp_wrap.c
164 ../libcli/auth/ntlmssp.c
165 ../libcli/auth/ntlmssp_sign.c
166 ../libcli/auth/ntlmssp_ndr.c
167 ../libcli/auth/ntlmssp_server.c'''
169 LIBSAMBA_SRC
= '${LIBSMB_SRC0}'
171 CLDAP_SRC
= '''libads/cldap.c
172 ../libcli/cldap/cldap.c
173 ../lib/util/idtree.c'''
175 TLDAP_SRC
= '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
177 SCHANNEL_SRC
= '''../libcli/auth/schannel_sign.c'''
179 LIBSMB_SRC
= '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
180 libsmb/clikrb5.c libsmb/clispnego.c
181 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
182 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
183 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
184 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
185 libsmb/clioplock.c libsmb/clirap2.c
186 libsmb/smb_seal.c libsmb/async_smb.c'''
190 rpc_client/cli_pipe.c
191 librpc/crypto/gse_krb5.c
193 librpc/crypto/cli_spnego.c
194 librpc/rpc/rpc_common.c
195 rpc_client/rpc_transport_np.c
196 rpc_client/rpc_transport_sock.c
197 rpc_client/rpc_transport_tstream.c
198 ../librpc/rpc/binding.c
199 ../librpc/rpc/dcerpc_util.c
200 librpc/rpc/dcerpc_helpers.c
201 ../librpc/rpc/binding_handle.c'''
204 # registry-related objects
206 UTIL_REG_SRC
= '''../libcli/registry/util_reg.c'''
208 REG_INIT_BASIC_SRC
= '''registry/reg_init_basic.c'''
209 REG_INIT_SMBCONF_SRC
= '''registry/reg_init_smbconf.c'''
210 REG_INIT_FULL_SRC
= '''registry/reg_init_full.c'''
212 REGFIO_SRC
= '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
214 REG_API_REGF_SRC
= '''registry/reg_api_regf.c'''
216 REGSRCS_SRC
= '''registry/reg_objects.c'''
218 REG_BACKENDS_BASE_SRC
= '''registry/reg_backend_db.c'''
220 REG_BACKENDS_SMBCONF_SRC
= '''registry/reg_backend_smbconf.c'''
222 REG_BACKENDS_EXTRA_SRC
= '''registry/reg_backend_printing.c
223 registry/reg_backend_shares.c
224 registry/reg_backend_netlogon_params.c
225 registry/reg_backend_prod_options.c
226 registry/reg_backend_tcpip_params.c
227 registry/reg_backend_hkpt_params.c
228 registry/reg_backend_current_version.c
229 registry/reg_backend_perflib.c'''
231 REG_BASE_SRC
= '''registry/reg_api.c
232 registry/reg_dispatcher.c
233 registry/reg_cachehook.c
235 registry/reg_util_internal.c
237 ${REG_BACKENDS_BASE_SRC}
238 ${REG_INIT_BASIC_SRC}'''
240 REG_SMBCONF_SRC
= '''
241 ${REG_BACKENDS_SMBCONF_SRC}
242 ${REG_INIT_SMBCONF_SRC}
243 registry/reg_util_token.c
244 registry/reg_api_util.c'''
246 REG_EVENTLOG_SRC
= '''registry/reg_eventlog.c'''
249 ${REG_BACKENDS_EXTRA_SRC}
251 registry/reg_perfcount.c'''
253 SERVICES_SRC
= '''services/svc_spoolss.c
254 services/svc_rcinit.c
255 services/services_db.c
256 services/svc_netlogon.c
257 services/svc_winreg.c
258 services/svc_wins.c'''
260 LIB_EVENTLOG_SRC
= '''lib/eventlog/eventlog.c'''
262 RPC_CLIENT_SCHANNEL_SRC
= '''rpc_client/cli_pipe_schannel.c'''
264 LOCKING_SRC
= '''locking/locking.c locking/brlock.c locking/posix.c'''
266 PRIVILEGES_SRC
= '''lib/privileges.c'''
268 PASSDB_GET_SET_SRC
= '''passdb/pdb_get_set.c'''
270 PASSDB_SRC
= '''${PASSDB_GET_SET_SRC} passdb/passdb.c
271 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
272 passdb/util_unixsids.c passdb/lookup_sid.c
274 passdb/account_pol.c ${PRIVILEGES_SRC}
275 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
276 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
278 GROUPDB_SRC
= '''groupdb/mapping.c groupdb/mapping_tdb.c'''
280 PROFILE_SRC
= '''profile/profile.c'''
281 PROFILES_SRC
= '''utils/profiles.c'''
283 OPLOCK_SRC
= '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
284 smbd/oplock_onefs.c'''
286 NOTIFY_SRC
= '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
288 FNAME_UTIL_SRC
= '''smbd/filename_util.c'''
291 PLAINTEXT_AUTH_SRC
= '''auth/pampass.c auth/pass_check.c'''
293 SLCACHE_SRC
= '''libsmb/samlogon_cache.c'''
295 DCUTIL_SRC
= '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
297 WINBINDD_SRC1
= '''winbindd/winbindd.c
298 winbindd/winbindd_group.c
299 winbindd/winbindd_util.c
300 winbindd/winbindd_cache.c
301 winbindd/winbindd_pam.c
302 winbindd/winbindd_misc.c
303 winbindd/winbindd_cm.c
304 winbindd/winbindd_wins.c
305 winbindd/winbindd_msrpc.c
306 winbindd/winbindd_rpc.c
307 winbindd/winbindd_reconnect.c
308 winbindd/winbindd_ads.c
309 winbindd/winbindd_samr.c
310 winbindd/winbindd_dual.c
311 winbindd/winbindd_dual_ndr.c
312 winbindd/winbindd_dual_srv.c
313 winbindd/winbindd_async.c
314 winbindd/winbindd_creds.c
315 winbindd/winbindd_cred_cache.c
316 winbindd/winbindd_ccache_access.c
317 winbindd/winbindd_domain.c
318 winbindd/winbindd_idmap.c
319 winbindd/winbindd_locator.c
320 winbindd/winbindd_ndr.c
322 winbindd/wb_lookupsid.c
323 winbindd/wb_lookupname.c
324 winbindd/wb_sid2uid.c
325 winbindd/wb_sid2gid.c
326 winbindd/wb_uid2sid.c
327 winbindd/wb_gid2sid.c
328 winbindd/wb_queryuser.c
329 winbindd/wb_lookupuseraliases.c
330 winbindd/wb_lookupusergroups.c
331 winbindd/wb_getpwsid.c
332 winbindd/wb_gettoken.c
334 winbindd/wb_seqnums.c
335 winbindd/wb_group_members.c
336 winbindd/wb_getgrsid.c
337 winbindd/wb_query_user_list.c
338 winbindd/wb_fill_pwent.c
339 winbindd/wb_next_pwent.c
340 winbindd/wb_next_grent.c
341 winbindd/wb_dsgetdcname.c
342 winbindd/winbindd_lookupsid.c
343 winbindd/winbindd_lookupname.c
344 winbindd/winbindd_sid_to_uid.c
345 winbindd/winbindd_sid_to_gid.c
346 winbindd/winbindd_uid_to_sid.c
347 winbindd/winbindd_gid_to_sid.c
348 winbindd/winbindd_allocate_uid.c
349 winbindd/winbindd_allocate_gid.c
350 winbindd/winbindd_getpwsid.c
351 winbindd/winbindd_getpwnam.c
352 winbindd/winbindd_getpwuid.c
353 winbindd/winbindd_getsidaliases.c
354 winbindd/winbindd_getuserdomgroups.c
355 winbindd/winbindd_getgroups.c
356 winbindd/winbindd_show_sequence.c
357 winbindd/winbindd_getgrgid.c
358 winbindd/winbindd_getgrnam.c
359 winbindd/winbindd_getusersids.c
360 winbindd/winbindd_lookuprids.c
361 winbindd/winbindd_setpwent.c
362 winbindd/winbindd_getpwent.c
363 winbindd/winbindd_endpwent.c
364 winbindd/winbindd_setgrent.c
365 winbindd/winbindd_getgrent.c
366 winbindd/winbindd_endgrent.c
367 winbindd/winbindd_dsgetdcname.c
368 winbindd/winbindd_getdcname.c
369 winbindd/winbindd_list_users.c
370 winbindd/winbindd_list_groups.c
371 winbindd/winbindd_check_machine_acct.c
372 winbindd/winbindd_change_machine_acct.c
373 winbindd/winbindd_ping_dc.c
374 winbindd/winbindd_pam_auth.c
375 winbindd/winbindd_pam_logoff.c
376 winbindd/winbindd_pam_chauthtok.c
377 winbindd/winbindd_pam_auth_crap.c
378 winbindd/winbindd_pam_chng_pswd_auth_crap.c
383 auth/server_info_sam.c
386 ../nsswitch/libwbclient/wb_reqtrans.c'''
388 WINBINDD_SRC
= '''${WINBINDD_SRC1}
390 ../librpc/gen_ndr/srv_lsa.c
391 ../librpc/gen_ndr/srv_samr.c'''
393 MANGLE_SRC
= '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
395 SMBD_SRC_MAIN
= '''smbd/server.c smbd/server_exit.c'''
397 BUILDOPT_SRC
= '''smbd/build_options.c'''
399 SMBD_SRC_SRV
= '''smbd/server_reload.c smbd/files.c smbd/connection.c
400 smbd/utmp.c smbd/session.c
401 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
402 smbd/share_access.c smbd/fileio.c
403 smbd/ipc.c smbd/lanman.c smbd/negprot.c
404 smbd/message.c smbd/nttrans.c smbd/pipes.c
405 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
406 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
407 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
408 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
409 smbd/posix_acls.c lib/sysacls.c
410 smbd/process.c smbd/service.c smbd/error.c
411 printing/printspoolss.c
412 lib/sysquotas.c lib/sysquotas_linux.c
413 lib/sysquotas_xfs.c lib/sysquotas_4A.c
416 smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
417 smbd/aio.c smbd/statvfs.c
418 smbd/dmapi.c smbd/signing.c
420 smbd/dnsregister.c smbd/globals.c
425 smbd/smb2_sesssetup.c
434 smbd/smb2_keepalive.c
442 SMBD_SRC_BASE
= '''${SMBD_SRC_SRV}
443 ${OPLOCK_SRC} ${NOTIFY_SRC}
446 PRINTING_SRC
= '''printing/pcap.c printing/print_svid.c printing/print_aix.c
447 printing/print_cups.c printing/print_generic.c
448 printing/lpq_parse.c printing/load.c printing/print_standard.c
449 printing/print_iprint.c printing/printer_list.c'''
451 PRINTBASE_SRC
= '''printing/notify.c printing/printing_db.c'''
452 PRINTBACKEND_SRC
= '''printing/printing.c
453 printing/nt_printing.c
454 printing/nt_printing_tdb.c
455 printing/nt_printing_migrate.c
456 printing/nt_printing_ads.c'''
458 SMBD_SRC
= '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
460 NMBD_SRC1
= '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
461 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
462 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
463 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
464 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
465 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
466 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
467 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
468 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
469 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
470 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
471 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
473 NMBD_SRC
= '${NMBD_SRC1}'
475 SWAT_SRC1
= '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
476 web/swat.c web/neg_lang.c'''
478 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 ${PASSCHANGE_SRC}'''
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'''
619 SMBTORTURE_SRC
= '''${SMBTORTURE_SRC1}
620 ../nsswitch/libwbclient/wbc_async.c
621 ../nsswitch/libwbclient/wb_reqtrans.c'''
623 MASKTEST_SRC
= '''torture/masktest.c'''
625 MSGTEST_SRC
= '''torture/msgtest.c'''
627 LOCKTEST_SRC
= '''torture/locktest.c'''
629 NSSTEST_SRC
= '''../nsswitch/nsstest.c ${LIBSAMBAUTIL_SRC}'''
631 PDBTEST_SRC
= '''torture/pdbtest.c'''
633 VFSTEST_SRC
= '''torture/cmd_vfs.c torture/vfstest.c'''
635 SMBICONV_SRC
= '''torture/smbiconv.c'''
637 LOG2PCAP_SRC
= '''utils/log2pcaphex.c'''
639 LOCKTEST2_SRC
= '''torture/locktest2.c'''
641 SMBCACLS_SRC
= '''utils/smbcacls.c'''
643 SMBCQUOTAS_SRC
= '''utils/smbcquotas.c'''
645 EVTLOGADM_SRC0
= 'utils/eventlogadm.c'
647 EVTLOGADM_SRC
= '''${EVTLOGADM_SRC0}'''
649 SHARESEC_SRC0
= 'utils/sharesec.c'
650 SHARESEC_SRC
= '''${SHARESEC_SRC0}'''
652 DEBUG2HTML_SRC
= '''utils/debug2html.c utils/debugparse.c'''
654 SMBFILTER_SRC
= '''utils/smbfilter.c'''
656 WINBIND_WINS_NSS_SRC
= '''../nsswitch/wins.c'''
658 WBINFO_SRC
= '''../nsswitch/wbinfo.c'''
660 WINBIND_NSS_SRC
= '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
662 WINBIND_KRB5_LOCATOR_SRC1
= '../nsswitch/winbind_krb5_locator.c'
663 WINBIND_KRB5_LOCATOR_SRC
= '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
665 POPT_SRC
= '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
666 ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
668 NTLM_AUTH_SRC1
= '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
670 NTLM_AUTH_SRC
= '''${NTLM_AUTH_SRC1}
671 libsmb/clikrb5.c libads/kerberos.c'''
674 VLP_SRC
= '''printing/tests/vlp.c
675 ../lib/util/util_tdb.c
676 ${LIBSAMBAUTIL_SRC}'''
678 RPC_OPEN_TCP_SRC
= 'torture/rpc_open_tcp.c'
680 DBWRAP_TOOL_SRC
= 'utils/dbwrap_tool.c'
682 DBWRAP_TORTURE_SRC
= 'utils/dbwrap_torture.c'
684 SPLIT_TOKENS_SRC
= 'utils/split_tokens.c'
688 bld
.SAMBA_GENERATOR('build_options',
689 source
='include/config.h script/mkbuildoptions-waf.awk',
690 target
='smbd/build_options.c',
691 rule
='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
693 t
= bld
.SAMBA_GENERATOR('build_env.h',
694 source
='script/build_env.sh',
695 target
='include/build_env.h',
696 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
697 # todo: work out what is really wanted here
698 t
.env
.SRCDIR
= bld
.path
.abspath()
699 t
.env
.BUILDDIR
= bld
.path
.abspath()
702 bld
.SETUP_BUILD_GROUPS()
704 bld
.SAMBA_MKVERSION('include/version.h')
706 bld
.RECURSE('../lib/replace')
707 bld
.RECURSE('../libcli/smbreadline')
708 print "SBINDIR=%s" % bld
.env
.SBINDIR
711 bld
.RECURSE('../librpc')
712 bld
.RECURSE('librpc/idl')
713 bld
.RECURSE('librpc')
714 bld
.RECURSE('../libcli/security')
716 ######################## SUBSYSTEMS #################################
718 bld
.SAMBA_SUBSYSTEM('winbind-client',
721 cflags
='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld
.env
.WINBINDD_SOCKET_DIR
)
723 bld
.SAMBA_LIBRARY('netapi',
724 source
=LIBNETAPI_SRC
,
725 public_deps
='''talloc tdb cap wbclient LIB_NONSMBD LIBSMB KRBCLIENT
726 PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
727 LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL NDR_LIBNETAPI
728 RPC_CLIENT_SCHANNEL LIBSMBCONF REG_SMBCONF TOKEN_UTIL
729 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON
730 RPCCLI_SRVSVC RPCCLI_WKSSVC RPCCLI_INITSHUTDOWN
731 INIT_NETLOGON INIT_SAMR''',
732 public_headers
='lib/netapi/netapi.h',
733 private_library
=True,
736 bld
.SAMBA_LIBRARY('smbclient',
737 source
=LIBSMBCLIENT_SRC
,
738 public_deps
='''talloc tdb wbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
739 LIBMSRPC_GEN LIBMSRPC LIBCLI_LSA RPCCLI_SRVSVC''',
740 public_headers
='include/libsmbclient.h',
741 private_library
=True,
744 bld
.SAMBA_LIBRARY('smbsharemodes',
745 source
=LIBSMBSHAREMODES_SRC
,
746 public_deps
='''talloc tdb''',
747 public_headers
='include/smb_share_modes.h',
748 private_library
=True,
751 bld
.SAMBA_LIBRARY('nss_winbind',
752 source
='../nsswitch/winbind_nss_linux.c',
753 deps
='winbind-client',
754 realname
='libnss_winbind.so.2',
757 bld
.SAMBA_LIBRARY('nss_wins',
758 source
=WINBIND_WINS_NSS_SRC
,
759 deps
='''winbind-client PARAM LIBSMB LIB_NONSMBD LIBTSOCKET KRBCLIENT
761 realname
='libnss_wins.so.2',
764 if bld
.CONFIG_SET('WITH_PAM_MODULES'):
765 bld
.SAMBA_LIBRARY('pamwinbind',
766 source
=PAM_WINBIND_SRC
,
767 deps
='intl talloc wbclient winbind-client LIBINIPARSER pam',
768 cflags
='-DLOCALEDIR=\"%s/locale\"' % bld
.env
.DATADIR
,
769 realname
='pam_winbind.so')
771 if bld
.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
772 bld
.SAMBA_LIBRARY('winbind_krb5_locator',
773 source
='../nsswitch/winbind_krb5_locator.c',
774 deps
='wbclient krb5',
777 bld
.SAMBA_SUBSYSTEM('LIBMSRPC',
778 source
='${LIBMSRPC_SRC}',
779 deps
='''ndr NDR_SECURITY NDR_DCERPC NDR_SCHANNEL
780 RPCCLI_EPMAPPER COMMON_SCHANNELDB LIBCLI_AUTH''',
783 bld
.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
785 deps
='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
788 bld
.SAMBA_SUBSYSTEM('LIBGPO',
789 source
='${LIBGPO_SRC}',
793 bld
.SAMBA_SUBSYSTEM('ASN1_UTIL',
794 source
='../lib/util/asn1.c',
798 bld
.SAMBA_SUBSYSTEM('AVAHI',
800 deps
='avahi-common avahi-client',
801 enabled
=bld
.env
.with_avahi
)
803 bld
.SAMBA_SUBSYSTEM('GROUPDB',
806 bld
.SAMBA_SUBSYSTEM('TLDAP',
808 deps
='ASN1_UTIL LIBTSOCKET')
810 bld
.SAMBA_SUBSYSTEM('PASSDB',
812 deps
='''GROUPDB TLDAP SECRETS SMBLDAP pdb''',
815 bld
.SAMBA_SUBSYSTEM('PARAM_UTIL',
816 source
=PARAM_UTIL_SRC
)
818 bld
.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
819 source
=PARAM_WITHOUT_REG_SRC
,
820 deps
='''PARAM_UTIL''',
823 bld
.SAMBA_SUBSYSTEM('PARAM',
825 deps
='PARAM_WITHOUT_REG DYNCONFIG LIBSMBCONF',
828 bld
.SAMBA_SUBSYSTEM('REGFIO',
832 bld
.SAMBA_SUBSYSTEM('REG_API_REGF',
833 source
=REG_API_REGF_SRC
,
836 bld
.SAMBA_SUBSYSTEM('REG_BASE',
840 bld
.SAMBA_SUBSYSTEM('REG_SMBCONF',
841 source
=REG_SMBCONF_SRC
,
845 bld
.SAMBA_SUBSYSTEM('REG_FULL',
847 deps
='REG_SMBCONF REG_EVENTLOG',
850 bld
.SAMBA_SUBSYSTEM('REG_EVENTLOG',
851 source
=REG_EVENTLOG_SRC
,
854 bld
.SAMBA_SUBSYSTEM('POPT_SAMBA',
858 bld
.SAMBA_SUBSYSTEM('KRBCLIENT',
859 source
=KRBCLIENT_SRC
,
860 deps
='krb5 k5crypto com_err gssapi gssapi_krb5',
863 bld
.SAMBA_SUBSYSTEM('LIBS',
865 deps
='LIBCRYPTO ndr security NDR_SECURITY charset NDR_MESSAGING LIBASYNC_REQ tdb-wrap samba-util CHARSET',
868 bld
.SAMBA_SUBSYSTEM('LIB_NONSMBD',
869 source
=LIB_NONSMBD_SRC
,
873 bld
.SAMBA_SUBSYSTEM('LIBSMB_ERR',
874 source
=LIBSMB_ERR_SRC
,
875 deps
='errors SECRETS ldap lber MSRPC_PARSE LIBCLI_AUTH',
878 bld
.SAMBA_SUBSYSTEM('LIBSAMBA',
880 deps
='LIBSMB_ERR NDR_NTLMSSP ntlm_check',
883 bld
.SAMBA_SUBSYSTEM('LIBSMB',
885 deps
='LIBSAMBA CLDAP LIBNMB LIBNBT LIBDRSUAPI SPNEGO_PARSE',
888 bld
.SAMBA_SUBSYSTEM('LIBDRSUAPI',
890 deps
='z LZXPRESS NDR_DRSUAPI NDR_DRSBLOBS',
893 bld
.SAMBA_SUBSYSTEM('CLDAP',
895 deps
='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
898 bld
.SAMBA_SUBSYSTEM('SECRETS',
903 bld
.SAMBA_SUBSYSTEM('SMBLDAP',
908 bld
.SAMBA_SUBSYSTEM('LIBADS',
910 deps
='LIBCLI_LDAP_NDR',
913 bld
.SAMBA_SUBSYSTEM('LIBADS_SERVER',
914 source
=LIBADS_SERVER_SRC
,
918 bld
.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
919 source
=LIBADS_PRINTER_SRC
,
922 bld
.SAMBA_SUBSYSTEM('LIBAFS',
926 bld
.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
927 source
=AFS_SETTOKEN_SRC
,
930 bld
.SAMBA_SUBSYSTEM('LIBSMBCONF',
931 source
=LIBSMBCONF_SRC
,
932 deps
='REG_BASE REG_SMBCONF',
935 bld
.SAMBA_SUBSYSTEM('SMBD_BASE',
936 source
=SMBD_SRC_BASE
,
937 deps
='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
938 DYNCONFIG wbclient crypt nsl cups cap resolv z PASSDB
939 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
940 LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
941 vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
942 PRINTING PRINTBACKEND NDR_XATTR NDR_NOTIFY REGFIO
943 LIBSMBCONF REG_FULL FNAME_UTIL
944 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON LIBCLI_SPOOLSS
945 RPCCLI_SRVSVC NAMED_PIPE_AUTH_TSTREAM INIT_NETLOGON INIT_SAMR
946 LIBCLI_SMB_COMMON RPC_SERVER
950 bld
.SAMBA_SUBSYSTEM('LOCKING',
951 source
='${LOCKING_SRC}',
952 deps
='''tdb talloc''',
955 bld
.SAMBA_SUBSYSTEM('PROFILE',
956 source
='${PROFILE_SRC}',
959 bld
.SAMBA_SUBSYSTEM('PRINTBASE',
960 source
=PRINTBASE_SRC
,
963 bld
.SAMBA_SUBSYSTEM('PRINTBACKEND',
964 source
=PRINTBACKEND_SRC
,
965 deps
='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
968 bld
.SAMBA_SUBSYSTEM('PRINTING',
972 bld
.SAMBA_SUBSYSTEM('PASSWD_UTIL',
973 source
=PASSWD_UTIL_SRC
,
976 bld
.SAMBA_SUBSYSTEM('FNAME_UTIL',
977 source
=FNAME_UTIL_SRC
,
980 bld
.SAMBA_SUBSYSTEM('LIBNET',
982 deps
='NDR_LIBNET_JOIN',
985 bld
.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
986 source
=LIBNET_DSSYNC_SRC
,
987 deps
='LIBNET LIBCLI_DRSUAPI',
990 bld
.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
991 source
=LIBNET_SAMSYNC_SRC
,
992 deps
='LIBNET LIBCLI_SAMSYNC',
995 bld
.SAMBA_SUBSYSTEM('LIBEVENTLOG',
996 source
=LIB_EVENTLOG_SRC
,
1000 bld
.SAMBA_SUBSYSTEM('LIBNMB',
1004 bld
.SAMBA_SUBSYSTEM('LIBNBT',
1006 deps
='NDR_SVCCTL NDR_NBT NDR_NBT_BUF LIBCLI_NDR_NETLOGON',
1009 bld
.SAMBA_SUBSYSTEM('SERVICES',
1010 source
=SERVICES_SRC
,
1013 bld
.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1014 source
=PLAINTEXT_AUTH_SRC
,
1018 bld
.SAMBA_SUBSYSTEM('SLCACHE',
1022 bld
.SAMBA_SUBSYSTEM('SPNEGO_PARSE',
1023 source
='../libcli/auth/spnego_parse.c',
1026 bld
.SAMBA_SUBSYSTEM('DCUTIL',
1030 bld
.SAMBA_SUBSYSTEM('ndr',
1034 bld
.SAMBA_SUBSYSTEM('tdb-wrap',
1035 source
='lib/util_tdb.c',
1038 bld
.SAMBA_SUBSYSTEM('CHARSET',
1039 source
='''lib/util_str.c lib/util_unistr.c lib/charcnv.c lib/iconv.c''',
1040 public_deps
='iconv',
1043 bld
.SAMBA_SUBSYSTEM('samba-util',
1045 deps
='talloc CHARSET LIBCRYPTO',
1048 bld
.SAMBA_SUBSYSTEM('ndr-standard',
1051 NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
1052 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
1053 NDR_ECHO security NDR_DNS
1058 bld
.SAMBA_SUBSYSTEM('dcerpc', '')
1060 bld
.SAMBA_SUBSYSTEM('ldb',
1061 source
='lib/ldb_compat.c')
1063 bld
.SAMBA_SUBSYSTEM('LZXPRESS',
1065 source
='../lib/compression/lzxpress.c')
1067 bld
.SAMBA_SUBSYSTEM('NDR_SECURITY',
1068 source
='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1072 bld
.SAMBA_SUBSYSTEM('NDR_DCERPC',
1073 source
='../librpc/gen_ndr/ndr_dcerpc.c',
1076 bld
.SAMBA_SUBSYSTEM('errors',
1077 source
='../libcli/util/doserr.c libsmb/nterr.c')
1079 bld
.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1080 source
='../libcli/nbt/nbtname.c',
1082 autoproto
='nbtname.h')
1084 bld
.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1085 source
='../libcli/ndr_netlogon.c',
1086 public_deps
='ndr NDR_SECURITY')
1088 bld
.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1089 source
='../librpc/gen_ndr/cli_winreg.c',
1090 public_deps
='RPC_NDR_WINREG')
1092 bld
.SAMBA_SUBSYSTEM('RPCCLI_ECHO',
1093 source
='../librpc/gen_ndr/cli_echo.c',
1094 public_deps
='RPC_NDR_ECHO')
1096 bld
.SAMBA_SUBSYSTEM('RPCCLI_SAMR',
1097 source
='../librpc/gen_ndr/cli_samr.c',
1098 public_deps
='RPC_NDR_SAMR')
1100 bld
.SAMBA_SUBSYSTEM('RPCCLI_LSA',
1101 source
='../librpc/gen_ndr/cli_lsa.c',
1102 public_deps
='RPC_NDR_LSA')
1104 bld
.SAMBA_SUBSYSTEM('RPCCLI_NETLOGON',
1105 source
='../librpc/gen_ndr/cli_netlogon.c',
1106 public_deps
='RPC_NDR_NETLOGON')
1108 bld
.SAMBA_SUBSYSTEM('RPCCLI_SRVSVC',
1109 source
='../librpc/gen_ndr/cli_srvsvc.c',
1110 public_deps
='RPC_NDR_SRVSVC')
1112 bld
.SAMBA_SUBSYSTEM('RPCCLI_INITSHUTDOWN',
1113 source
='../librpc/gen_ndr/cli_initshutdown.c',
1114 public_deps
='RPC_NDR_INITSHUTDOWN')
1116 bld
.SAMBA_SUBSYSTEM('RPCCLI_WKSSVC',
1117 source
='../librpc/gen_ndr/cli_wkssvc.c',
1118 public_deps
='RPC_NDR_WKSSVC')
1120 bld
.SAMBA_SUBSYSTEM('RPCCLI_SVCCTL',
1121 source
='../librpc/gen_ndr/cli_svcctl.c',
1122 public_deps
='RPC_NDR_SVCCTL')
1124 bld
.SAMBA_SUBSYSTEM('RPCCLI_DSSETUP',
1125 source
='../librpc/gen_ndr/cli_dssetup.c',
1126 public_deps
='RPC_NDR_DSSETUP')
1128 bld
.SAMBA_SUBSYSTEM('RPCCLI_DFS',
1129 source
='../librpc/gen_ndr/cli_dfs.c',
1130 public_deps
='RPC_NDR_DFS')
1132 bld
.SAMBA_SUBSYSTEM('RPCCLI_DRSUAPI',
1133 source
='../librpc/gen_ndr/cli_drsuapi.c',
1134 public_deps
='RPC_NDR_DRSUAPI')
1136 bld
.SAMBA_SUBSYSTEM('RPCCLI_NTSVCS',
1137 source
='../librpc/gen_ndr/cli_ntsvcs.c',
1138 public_deps
='RPC_NDR_NTSVCS')
1140 bld
.SAMBA_SUBSYSTEM('RPCCLI_EVENTLOG',
1141 source
='../librpc/gen_ndr/cli_eventlog.c',
1142 public_deps
='RPC_NDR_EVENTLOG')
1144 bld
.SAMBA_SUBSYSTEM('RPCCLI_EPMAPPER',
1145 source
='../librpc/gen_ndr/cli_epmapper.c',
1146 public_deps
='RPC_NDR_EPMAPPER')
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 RPCCLI_NDR_WBINT LIBAFS
1203 LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1205 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON
1206 RPCCLI_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''',
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 RPCCLI_DSSETUP RPCCLI_DFS
1231 RPCCLI_DRSUAPI RPCCLI_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 RPCCLI_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''',
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 ${VERSION_SRC}',
1423 bld
.SAMBA_BINARY('wbinfo',
1425 deps
='''talloc wbclient tevent cap
1426 ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1427 LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1430 bld
.SAMBA_BINARY('ntlm_auth',
1431 source
=NTLM_AUTH_SRC
,
1432 deps
='''tdb talloc cap resolv krb5 k5crypto com_err wbclient PARAM LIB_NONSMBD
1433 LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1434 PASSDB GROUPDB SMBLDAP winbind-client LIBINIPARSER LIBADS_SERVER
1435 NDR_SAMR NDR_LSA NDR_NETLOGON LIBCLI_LDAP_NDR LIBNMB SLCACHE SPNEGO_PARSE''',
1438 bld
.SAMBA_BINARY('timelimit',
1439 source
='script/tests/timelimit.c',
1442 bld
.SAMBA_BINARY('rpc_open_tcp',
1443 source
=RPC_OPEN_TCP_SRC
,
1444 deps
='''talloc tdb tevent resolv cap wbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1445 LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1448 bld
.SAMBA_BINARY('test_lp_load',
1449 source
=TEST_LP_LOAD_SRC
,
1450 deps
='''talloc tdb tevent cap wbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1453 bld
.SAMBA_BINARY('dbwrap_tool',
1454 source
=DBWRAP_TOOL_SRC
,
1455 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1458 bld
.SAMBA_BINARY('dbwrap_torture',
1459 source
=DBWRAP_TORTURE_SRC
,
1460 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1464 bld
.SAMBA_BINARY('split_tokens',
1465 source
=SPLIT_TOKENS_SRC
,
1466 deps
='''talloc tdb tevent cap wbclient PARAM LIB_NONSMBD POPT_SAMBA
1470 bld
.SAMBA_BINARY('vlp',
1472 deps
='''talloc tdb PARAM_UTIL''',
1475 swat_files
=recursive_dirlist('../swat', '../swat', '*')
1476 bld
.INSTALL_FILES('${SWATDIR}', swat_files
, base_name
='../swat')
1478 ########################## INCLUDES #################################
1480 bld
.RECURSE('../lib/socket_wrapper')
1481 bld
.RECURSE('../lib/talloc')
1482 bld
.RECURSE('../lib/tdb')
1483 bld
.RECURSE('../lib/nss_wrapper')
1484 bld
.RECURSE('../lib/tevent')
1485 bld
.RECURSE('../lib/popt')
1486 bld
.RECURSE('../lib/zlib')
1487 bld
.RECURSE('../lib/tsocket')
1488 bld
.RECURSE('../lib/iniparser/src')
1489 bld
.RECURSE('../lib/crypto')
1490 bld
.RECURSE('../lib/async_req')
1491 bld
.RECURSE('../libcli/auth')
1492 bld
.RECURSE('../libcli/drsuapi')
1493 bld
.RECURSE('../libcli/samsync')
1494 bld
.RECURSE('../libcli/named_pipe_auth')
1495 bld
.RECURSE('../libcli/smb')
1496 bld
.RECURSE('../libcli/ldap')
1497 bld
.RECURSE('../nsswitch/libwbclient')
1498 bld
.RECURSE('modules')
1500 bld
.RECURSE('passdb')
1501 bld
.RECURSE('winbindd')
1502 bld
.RECURSE('libgpo/gpext')
1503 bld
.RECURSE('pam_smbpass')
1504 bld
.RECURSE('rpc_server')
1505 bld
.RECURSE('libaddns')
1507 bld
.ENFORCE_GROUP_ORDERING()
1508 bld
.CHECK_PROJECT_RULES()