3 from samba_utils
import *
5 TDB_LIB_SRC
= '''lib/util_tdb.c ../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} ${UTIL_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 ../lib/async_req/async_sock.c
89 ${VERSION_SRC} lib/charcnv.c 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/util_str.c lib/clobber.c lib/util_sid.c
98 lib/util_unistr.c lib/util_file.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/iconv.c 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/nterr.c libsmb/smberr.c'''
156 DOSERR_SRC
= '../libcli/util/doserr.c'
157 ERRORMAP_SRC
= 'libsmb/errormap.c'
158 DCE_RPC_ERR_SRC
= '../librpc/rpc/dcerpc_error.c'
160 LIBSMB_ERR_SRC0
= '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
162 LIBSMB_ERR_SRC1
= '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
164 LIBSMB_ERR_SRC
= '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}'
167 ../libcli/auth/ntlm_check.c
169 libsmb/ntlmssp_wrap.c
170 ../libcli/auth/ntlmssp.c
171 ../libcli/auth/ntlmssp_sign.c
172 ../libcli/auth/ntlmssp_ndr.c
173 ../libcli/auth/ntlmssp_server.c'''
175 LIBSAMBA_SRC
= '${LIBSMB_SRC0}'
177 LIBCLI_LDAP_MESSAGE_SRC
= '''../libcli/ldap/ldap_message.c'''
178 LIBCLI_LDAP_NDR_SRC
= '''../libcli/ldap/ldap_ndr.c lib/ldb_compat.c'''
180 CLDAP_SRC
= '''libads/cldap.c
181 ../libcli/cldap/cldap.c
182 ../lib/util/idtree.c'''
184 TLDAP_SRC
= '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
186 SCHANNEL_SRC
= '''../libcli/auth/credentials.c
187 ../libcli/auth/schannel_sign.c
188 ../libcli/auth/schannel_state_tdb.c'''
190 LIBSMB_SRC
= '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
191 libsmb/clikrb5.c libsmb/clispnego.c
192 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
193 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
194 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
195 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
196 libsmb/clioplock.c libsmb/clirap2.c
197 libsmb/smb_seal.c libsmb/async_smb.c'''
201 rpc_client/cli_pipe.c
202 librpc/crypto/gse_krb5.c
204 librpc/crypto/cli_spnego.c
205 librpc/rpc/rpc_common.c
206 rpc_client/rpc_transport_np.c
207 rpc_client/rpc_transport_sock.c
208 rpc_client/rpc_transport_tstream.c
209 ../librpc/rpc/binding.c
210 ../librpc/rpc/dcerpc_util.c
211 librpc/rpc/dcerpc_helpers.c
212 ../librpc/rpc/binding_handle.c'''
215 # registry-related objects
217 UTIL_REG_SRC
= '''../libcli/registry/util_reg.c'''
219 REG_INIT_BASIC_SRC
= '''registry/reg_init_basic.c'''
220 REG_INIT_SMBCONF_SRC
= '''registry/reg_init_smbconf.c'''
221 REG_INIT_FULL_SRC
= '''registry/reg_init_full.c'''
223 REGFIO_SRC
= '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
225 REG_API_REGF_SRC
= '''registry/reg_api_regf.c'''
227 REGSRCS_SRC
= '''registry/reg_objects.c'''
229 REG_BACKENDS_BASE_SRC
= '''registry/reg_backend_db.c'''
231 REG_BACKENDS_SMBCONF_SRC
= '''registry/reg_backend_smbconf.c'''
233 REG_BACKENDS_EXTRA_SRC
= '''registry/reg_backend_printing.c
234 registry/reg_backend_shares.c
235 registry/reg_backend_netlogon_params.c
236 registry/reg_backend_prod_options.c
237 registry/reg_backend_tcpip_params.c
238 registry/reg_backend_hkpt_params.c
239 registry/reg_backend_current_version.c
240 registry/reg_backend_perflib.c'''
242 REG_BASE_SRC
= '''registry/reg_api.c
243 registry/reg_dispatcher.c
244 registry/reg_cachehook.c
246 registry/reg_util_internal.c
248 ${REG_BACKENDS_BASE_SRC}
249 ${REG_INIT_BASIC_SRC}'''
251 REG_SMBCONF_SRC
= '''
252 ${REG_BACKENDS_SMBCONF_SRC}
253 ${REG_INIT_SMBCONF_SRC}
254 registry/reg_util_token.c
255 registry/reg_api_util.c'''
257 REG_EVENTLOG_SRC
= '''registry/reg_eventlog.c'''
260 ${REG_BACKENDS_EXTRA_SRC}
262 registry/reg_perfcount.c'''
264 SERVICES_SRC
= '''services/svc_spoolss.c
265 services/svc_rcinit.c
266 services/services_db.c
267 services/svc_netlogon.c
268 services/svc_winreg.c
269 services/svc_wins.c'''
271 LIB_EVENTLOG_SRC
= '''lib/eventlog/eventlog.c'''
273 NPA_TSTREAM_SRC
= '''../libcli/named_pipe_auth/npa_tstream.c'''
275 RPC_NCACN_NP
= '''rpc_server/rpc_ncacn_np.c
276 rpc_server/rpc_handles.c'''
278 RPC_SERVICE
= '''rpc_server/rpc_server.c'''
280 RPC_CRYPTO
= '''rpc_server/dcesrv_ntlmssp.c
281 rpc_server/dcesrv_gssapi.c
282 rpc_server/dcesrv_spnego.c'''
284 RPC_PIPE_SRC
= '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
285 ${RPC_NCACN_NP} ${RPC_SERVICE} ${RPC_CRYPTO}'''
287 RPC_SERVER_SRC
= '''${RPC_PIPE_SRC}'''
289 RPC_CLIENT_SCHANNEL_SRC
= '''rpc_client/cli_pipe_schannel.c'''
291 LOCKING_SRC
= '''locking/locking.c locking/brlock.c locking/posix.c'''
293 PRIVILEGES_SRC
= '''lib/privileges.c'''
295 PASSDB_GET_SET_SRC
= '''passdb/pdb_get_set.c'''
297 PASSDB_SRC
= '''${PASSDB_GET_SET_SRC} passdb/passdb.c
298 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
299 passdb/util_unixsids.c passdb/lookup_sid.c
301 passdb/account_pol.c ${PRIVILEGES_SRC}
302 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
303 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
305 GROUPDB_SRC
= '''groupdb/mapping.c groupdb/mapping_tdb.c'''
307 PROFILE_SRC
= '''profile/profile.c'''
308 PROFILES_SRC
= '''utils/profiles.c'''
310 OPLOCK_SRC
= '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
311 smbd/oplock_onefs.c'''
313 NOTIFY_SRC
= '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
315 FNAME_UTIL_SRC
= '''smbd/filename_util.c'''
318 PLAINTEXT_AUTH_SRC
= '''auth/pampass.c auth/pass_check.c'''
320 SLCACHE_SRC
= '''libsmb/samlogon_cache.c'''
322 DCUTIL_SRC
= '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
324 WINBINDD_SRC1
= '''winbindd/winbindd.c
325 winbindd/winbindd_group.c
326 winbindd/winbindd_util.c
327 winbindd/winbindd_cache.c
328 winbindd/winbindd_pam.c
329 winbindd/winbindd_misc.c
330 winbindd/winbindd_cm.c
331 winbindd/winbindd_wins.c
332 winbindd/winbindd_msrpc.c
333 winbindd/winbindd_rpc.c
334 winbindd/winbindd_reconnect.c
335 winbindd/winbindd_ads.c
336 winbindd/winbindd_samr.c
337 winbindd/winbindd_dual.c
338 winbindd/winbindd_dual_ndr.c
339 winbindd/winbindd_dual_srv.c
340 winbindd/winbindd_async.c
341 winbindd/winbindd_creds.c
342 winbindd/winbindd_cred_cache.c
343 winbindd/winbindd_ccache_access.c
344 winbindd/winbindd_domain.c
345 winbindd/winbindd_idmap.c
346 winbindd/winbindd_locator.c
347 winbindd/winbindd_ndr.c
349 winbindd/wb_lookupsid.c
350 winbindd/wb_lookupname.c
351 winbindd/wb_sid2uid.c
352 winbindd/wb_sid2gid.c
353 winbindd/wb_uid2sid.c
354 winbindd/wb_gid2sid.c
355 winbindd/wb_queryuser.c
356 winbindd/wb_lookupuseraliases.c
357 winbindd/wb_lookupusergroups.c
358 winbindd/wb_getpwsid.c
359 winbindd/wb_gettoken.c
361 winbindd/wb_seqnums.c
362 winbindd/wb_group_members.c
363 winbindd/wb_getgrsid.c
364 winbindd/wb_query_user_list.c
365 winbindd/wb_fill_pwent.c
366 winbindd/wb_next_pwent.c
367 winbindd/wb_next_grent.c
368 winbindd/wb_dsgetdcname.c
369 winbindd/winbindd_lookupsid.c
370 winbindd/winbindd_lookupname.c
371 winbindd/winbindd_sid_to_uid.c
372 winbindd/winbindd_sid_to_gid.c
373 winbindd/winbindd_uid_to_sid.c
374 winbindd/winbindd_gid_to_sid.c
375 winbindd/winbindd_allocate_uid.c
376 winbindd/winbindd_allocate_gid.c
377 winbindd/winbindd_getpwsid.c
378 winbindd/winbindd_getpwnam.c
379 winbindd/winbindd_getpwuid.c
380 winbindd/winbindd_getsidaliases.c
381 winbindd/winbindd_getuserdomgroups.c
382 winbindd/winbindd_getgroups.c
383 winbindd/winbindd_show_sequence.c
384 winbindd/winbindd_getgrgid.c
385 winbindd/winbindd_getgrnam.c
386 winbindd/winbindd_getusersids.c
387 winbindd/winbindd_lookuprids.c
388 winbindd/winbindd_setpwent.c
389 winbindd/winbindd_getpwent.c
390 winbindd/winbindd_endpwent.c
391 winbindd/winbindd_setgrent.c
392 winbindd/winbindd_getgrent.c
393 winbindd/winbindd_endgrent.c
394 winbindd/winbindd_dsgetdcname.c
395 winbindd/winbindd_getdcname.c
396 winbindd/winbindd_list_users.c
397 winbindd/winbindd_list_groups.c
398 winbindd/winbindd_check_machine_acct.c
399 winbindd/winbindd_change_machine_acct.c
400 winbindd/winbindd_ping_dc.c
401 winbindd/winbindd_pam_auth.c
402 winbindd/winbindd_pam_logoff.c
403 winbindd/winbindd_pam_chauthtok.c
404 winbindd/winbindd_pam_auth_crap.c
405 winbindd/winbindd_pam_chng_pswd_auth_crap.c
410 auth/server_info_sam.c
413 ../nsswitch/libwbclient/wb_reqtrans.c'''
415 WINBINDD_SRC
= '''${WINBINDD_SRC1}
418 ../librpc/gen_ndr/srv_lsa.c
419 ../librpc/gen_ndr/srv_samr.c
420 rpc_server/srv_pipe_register.c'''
422 MANGLE_SRC
= '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
424 SMBD_SRC_MAIN
= '''smbd/server.c smbd/server_exit.c'''
426 BUILDOPT_SRC
= '''smbd/build_options.c'''
428 SMBD_SRC_SRV
= '''smbd/server_reload.c smbd/files.c smbd/connection.c
429 smbd/utmp.c smbd/session.c
430 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
431 smbd/share_access.c smbd/fileio.c
432 smbd/ipc.c smbd/lanman.c smbd/negprot.c
433 smbd/message.c smbd/nttrans.c smbd/pipes.c
434 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
435 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
436 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
437 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
438 smbd/posix_acls.c lib/sysacls.c
439 smbd/process.c smbd/service.c smbd/error.c
440 printing/printspoolss.c
441 lib/sysquotas.c lib/sysquotas_linux.c
442 lib/sysquotas_xfs.c lib/sysquotas_4A.c
445 smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
446 smbd/aio.c smbd/statvfs.c
447 smbd/dmapi.c smbd/signing.c
449 smbd/dnsregister.c smbd/globals.c
454 smbd/smb2_sesssetup.c
463 smbd/smb2_keepalive.c
469 ../libcli/smb/smb2_create_blob.c
472 SMBD_SRC_BASE
= '''${SMBD_SRC_SRV}
474 ${OPLOCK_SRC} ${NOTIFY_SRC}
477 PRINTING_SRC
= '''printing/pcap.c printing/print_svid.c printing/print_aix.c
478 printing/print_cups.c printing/print_generic.c
479 printing/lpq_parse.c printing/load.c printing/print_standard.c
480 printing/print_iprint.c printing/printer_list.c'''
482 PRINTBASE_SRC
= '''printing/notify.c printing/printing_db.c'''
483 PRINTBACKEND_SRC
= '''printing/printing.c
484 printing/nt_printing.c
485 printing/nt_printing_tdb.c
486 printing/nt_printing_migrate.c
487 printing/nt_printing_ads.c'''
489 SMBD_SRC
= '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
491 NMBD_SRC1
= '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
492 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
493 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
494 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
495 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
496 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
497 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
498 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
499 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
500 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
501 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
502 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
504 NMBD_SRC
= '${NMBD_SRC1}'
506 SWAT_SRC1
= '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
507 web/swat.c web/neg_lang.c'''
509 SWAT_SRC
= '''${SWAT_SRC1}
512 STATUS_SRC
= '''utils/status.c utils/status_profile.c'''
514 SMBCONTROL_SRC
= '''utils/smbcontrol.c'''
516 SMBTREE_SRC
= '''utils/smbtree.c'''
518 TESTPARM_SRC
= 'utils/testparm.c'
520 SMBTA_UTIL_SRC
= '''utils/smbta-util.c'''
522 TEST_LP_LOAD_SRC
= '''param/test_lp_load.c'''
524 PASSWD_UTIL_SRC
= 'utils/passwd_util.c'
526 SMBPASSWD_SRC
= '''utils/smbpasswd.c ${PASSCHANGE_SRC}'''
528 PDBEDIT_SRC
= '''utils/pdbedit.c'''
530 SMBGET_SRC
= '''utils/smbget.c'''
532 RPCCLIENT_SRC1
= '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
533 rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
534 rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
535 rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
536 rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
537 rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
538 rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
539 rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
540 rpcclient/cmd_winreg.c'''
542 RPCCLIENT_SRC
= '''${RPCCLIENT_SRC1}'''
544 PAM_WINBIND_SRC
= '../nsswitch/pam_winbind.c ${WBCOMMON_SRC} ${LIBREPLACE_SRC}'
546 LIBSMBCLIENT_THREAD_SRC
= '''libsmb/libsmb_thread_impl.c
547 libsmb/libsmb_thread_posix.c'''
549 LIBSMBCLIENT_SRC0
= '''libsmb/libsmb_cache.c
550 libsmb/libsmb_compat.c
551 libsmb/libsmb_context.c
556 libsmb/libsmb_printjob.c
557 libsmb/libsmb_server.c
559 libsmb/libsmb_xattr.c
560 libsmb/libsmb_setget.c'''
562 LIBSMBCLIENT_SRC1
= '''${LIBSMBCLIENT_SRC0}'''
564 LIBSMBCLIENT_SRC
= '${LIBSMBCLIENT_SRC1}'
566 LIBSMBSHAREMODES_SRC0
= 'libsmb/smb_share_modes.c'
568 LIBSMBSHAREMODES_SRC
= '${LIBSMBSHAREMODES_SRC0}'
570 LIBNETAPI_SRC0
= '''lib/netapi/netapi.c
572 lib/netapi/libnetapi.c
573 lib/netapi/joindomain.c
574 lib/netapi/serverinfo.c
578 lib/netapi/localgroup.c
583 lib/netapi/shutdown.c
584 lib/netapi/netlogon.c'''
586 LIBNETAPI_SRC
= '''${LIBNETAPI_SRC0}'''
588 # FIXME: bigballofmud
590 CLIENT_SRC1
= '''client/client.c client/clitar.c
591 client/dnsbrowse.c'''
593 CLIENT_SRC
= '''${CLIENT_SRC1}'''
595 LIBSMBCONF_SRC
= '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
596 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
597 lib/smbconf/smbconf_init.c'''
599 SMBCONFTORT_SRC0
= 'lib/smbconf/testsuite.c'
601 SMBCONFTORT_SRC
= '''${SMBCONFTORT_SRC0}'''
603 LIBNET_SRC
= 'libnet/libnet_join.c libnet/libnet_keytab.c'
606 LIBNET_DSSYNC_SRC
= '''libnet/libnet_dssync.c
607 libnet/libnet_dssync_keytab.c
608 ../libcli/drsuapi/repl_decrypt.c'''
610 LIBNET_SAMSYNC_SRC
= '''libnet/libnet_samsync.c
611 libnet/libnet_samsync_ldif.c
612 libnet/libnet_samsync_passdb.c
613 libnet/libnet_samsync_display.c
614 libnet/libnet_samsync_keytab.c
615 ../libcli/samsync/decrypt.c'''
617 NET_SRC1
= '''utils/net.c utils/net_ads.c utils/net_help.c
618 utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
619 utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
620 utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
621 utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
622 utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
623 utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
624 utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
625 utils/net_dns.c utils/net_ads_gpo.c
626 utils/net_conf.c utils/net_join.c utils/net_user.c
627 utils/net_group.c utils/net_file.c utils/net_registry.c
628 utils/net_dom.c utils/net_share.c
633 registry/reg_parse.c registry/reg_format.c
634 registry/reg_parse_internal.c registry/reg_import.c
635 lib/cbuf.c lib/srprs.c'''
637 NET_SRC2
= 'utils/net_registry_util.c utils/net_help_common.c'
639 NET_SRC
= '''${NET_SRC1}
642 CUPS_SRC
= '''client/smbspool.c'''
644 NMBLOOKUP_SRC
= '''utils/nmblookup.c'''
646 SMBTORTURE_SRC1
= '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
647 torture/denytest.c torture/mangle_test.c
649 torture/test_async_echo.c
650 torture/test_posix_append.c'''
652 SMBTORTURE_SRC
= '''${SMBTORTURE_SRC1}
653 ../nsswitch/libwbclient/wbc_async.c
654 ../nsswitch/libwbclient/wb_reqtrans.c'''
656 MASKTEST_SRC
= '''torture/masktest.c'''
658 MSGTEST_SRC
= '''torture/msgtest.c'''
660 LOCKTEST_SRC
= '''torture/locktest.c'''
662 NSSTEST_SRC
= '''../nsswitch/nsstest.c ${LIBSAMBAUTIL_SRC}'''
664 PDBTEST_SRC
= '''torture/pdbtest.c'''
666 VFSTEST_SRC
= '''torture/cmd_vfs.c torture/vfstest.c'''
668 SMBICONV_SRC
= '''torture/smbiconv.c'''
670 LOG2PCAP_SRC
= '''utils/log2pcaphex.c'''
672 LOCKTEST2_SRC
= '''torture/locktest2.c'''
674 SMBCACLS_SRC
= '''utils/smbcacls.c'''
676 SMBCQUOTAS_SRC
= '''utils/smbcquotas.c'''
678 EVTLOGADM_SRC0
= 'utils/eventlogadm.c'
680 EVTLOGADM_SRC
= '''${EVTLOGADM_SRC0}'''
682 SHARESEC_SRC0
= 'utils/sharesec.c'
683 SHARESEC_SRC
= '''${SHARESEC_SRC0}'''
685 DEBUG2HTML_SRC
= '''utils/debug2html.c utils/debugparse.c'''
687 SMBFILTER_SRC
= '''utils/smbfilter.c'''
689 WINBIND_WINS_NSS_SRC
= '''../nsswitch/wins.c ${PARAM_SRC}
690 ${LIB_NONSMBD_SRC} ${LIBSMB_ERR_SRC}'''
692 WBINFO_SRC
= '''../nsswitch/wbinfo.c'''
694 WINBIND_NSS_SRC
= '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
696 WINBIND_KRB5_LOCATOR_SRC1
= '../nsswitch/winbind_krb5_locator.c'
697 WINBIND_KRB5_LOCATOR_SRC
= '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
699 POPT_SRC
= '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
700 ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
702 NTLM_AUTH_SRC1
= '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
704 NTLM_AUTH_SRC
= '''${NTLM_AUTH_SRC1}
705 libsmb/clikrb5.c libads/kerberos.c'''
708 VLP_SRC
= '''printing/tests/vlp.c
709 ../lib/util/util_tdb.c
710 ${LIBSAMBAUTIL_SRC}'''
712 RPC_OPEN_TCP_SRC
= 'torture/rpc_open_tcp.c'
714 DBWRAP_TOOL_SRC
= 'utils/dbwrap_tool.c'
716 DBWRAP_TORTURE_SRC
= 'utils/dbwrap_torture.c'
718 SPLIT_TOKENS_SRC
= 'utils/split_tokens.c'
722 bld
.SAMBA_GENERATOR('build_options',
723 source
='include/config.h script/mkbuildoptions-waf.awk',
724 target
='smbd/build_options.c',
725 rule
='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
727 t
= bld
.SAMBA_GENERATOR('build_env.h',
728 source
='script/build_env.sh',
729 target
='include/build_env.h',
730 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
731 # todo: work out what is really wanted here
732 t
.env
.SRCDIR
= bld
.path
.abspath()
733 t
.env
.BUILDDIR
= bld
.path
.abspath()
736 bld
.SETUP_BUILD_GROUPS()
738 bld
.SAMBA_MKVERSION('include/version.h')
740 bld
.RECURSE('../lib/replace')
741 bld
.RECURSE('../libcli/smbreadline')
742 print "SBINDIR=%s" % bld
.env
.SBINDIR
745 bld
.RECURSE('../librpc')
746 bld
.RECURSE('librpc/idl')
747 bld
.RECURSE('librpc')
748 bld
.RECURSE('../libcli/security')
750 ######################## SUBSYSTEMS #################################
752 bld
.SAMBA_SUBSYSTEM('WBCOMMON',
755 bld
.SAMBA_LIBRARY('libwbclient',
756 source
='''../nsswitch/libwbclient/wbc_guid.c
757 ../nsswitch/libwbclient/wbc_idmap.c
758 ../nsswitch/libwbclient/wbclient.c
759 ../nsswitch/libwbclient/wbc_pam.c
760 ../nsswitch/libwbclient/wbc_pwd.c
761 ../nsswitch/libwbclient/wbc_sid.c
762 ../nsswitch/libwbclient/wbc_util.c''',
763 public_headers
='../nsswitch/libwbclient/wbclient.h',
764 private_library
=True,
765 public_deps
='talloc WBCOMMON')
767 bld
.SAMBA_LIBRARY('libnetapi',
768 source
=LIBNETAPI_SRC
,
769 public_deps
='''talloc tdb cap libwbclient LIB_NONSMBD LIBSMB KRBCLIENT
770 PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
771 LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL NDR_LIBNETAPI
772 RPC_CLIENT_SCHANNEL LIBSMBCONF REG_SMBCONF TOKEN_UTIL
773 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON
774 RPCCLI_SRVSVC RPCCLI_WKSSVC RPCCLI_INITSHUTDOWN
775 INIT_NETLOGON INIT_SAMR''',
776 public_headers
='lib/netapi/netapi.h',
777 private_library
=True,
780 bld
.SAMBA_LIBRARY('libsmbclient',
781 source
=LIBSMBCLIENT_SRC
,
782 public_deps
='''talloc tdb libwbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
783 LIBMSRPC_GEN LIBMSRPC LIBCLI_LSA RPCCLI_SRVSVC''',
784 public_headers
='include/libsmbclient.h',
785 private_library
=True,
788 bld
.SAMBA_LIBRARY('smbsharemodes',
789 source
=LIBSMBSHAREMODES_SRC
,
790 public_deps
='''talloc tdb''',
791 public_headers
='include/smb_share_modes.h',
792 private_library
=True,
795 bld
.SAMBA_SUBSYSTEM('LIBMSRPC',
796 source
='${LIBMSRPC_SRC}',
797 deps
='''ndr NDR_SECURITY NDR_DCERPC NDR_SCHANNEL
801 bld
.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
803 deps
='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
806 bld
.SAMBA_SUBSYSTEM('LIBGPO',
807 source
='${LIBGPO_SRC}',
811 bld
.SAMBA_SUBSYSTEM('ASN1_UTIL',
812 source
='../lib/util/asn1.c',
816 bld
.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
817 source
=LIBCLI_LDAP_MESSAGE_SRC
)
819 bld
.SAMBA_SUBSYSTEM('LIBCLI_LDAP_NDR',
820 source
=LIBCLI_LDAP_NDR_SRC
)
822 bld
.SAMBA_SUBSYSTEM('AVAHI',
824 deps
='avahi-common avahi-client',
825 enabled
=bld
.env
.with_avahi
)
827 bld
.SAMBA_SUBSYSTEM('GROUPDB',
830 bld
.SAMBA_SUBSYSTEM('TLDAP',
832 deps
='ASN1_UTIL LIBTSOCKET')
834 bld
.SAMBA_SUBSYSTEM('PASSDB',
836 deps
='''GROUPDB TLDAP SECRETS SMBLDAP pdb''',
839 bld
.SAMBA_SUBSYSTEM('PARAM_UTIL',
840 source
=PARAM_UTIL_SRC
)
842 bld
.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
843 source
=PARAM_WITHOUT_REG_SRC
,
844 deps
='''PARAM_UTIL''',
847 bld
.SAMBA_SUBSYSTEM('PARAM',
849 deps
='PARAM_WITHOUT_REG DYNCONFIG LIBSMBCONF',
852 bld
.SAMBA_SUBSYSTEM('REGFIO',
856 bld
.SAMBA_SUBSYSTEM('REG_API_REGF',
857 source
=REG_API_REGF_SRC
,
860 bld
.SAMBA_SUBSYSTEM('REG_BASE',
864 bld
.SAMBA_SUBSYSTEM('REG_SMBCONF',
865 source
=REG_SMBCONF_SRC
,
869 bld
.SAMBA_SUBSYSTEM('REG_FULL',
871 deps
='REG_SMBCONF REG_EVENTLOG',
874 bld
.SAMBA_SUBSYSTEM('REG_EVENTLOG',
875 source
=REG_EVENTLOG_SRC
,
878 bld
.SAMBA_SUBSYSTEM('POPT_SAMBA',
882 bld
.SAMBA_SUBSYSTEM('KRBCLIENT',
883 source
=KRBCLIENT_SRC
,
884 deps
='krb5 k5crypto com_err gssapi gssapi_krb5',
887 bld
.SAMBA_SUBSYSTEM('LIBS',
889 deps
='iconv LIBCRYPTO ndr security NDR_SECURITY charset NDR_MESSAGING',
892 bld
.SAMBA_SUBSYSTEM('LIB_NONSMBD',
893 source
=LIB_NONSMBD_SRC
,
897 bld
.SAMBA_SUBSYSTEM('LIBSMB_ERR',
898 source
=LIBSMB_ERR_SRC
,
899 deps
='SECRETS ldap lber',
902 bld
.SAMBA_SUBSYSTEM('LIBSAMBA',
904 deps
='LIBSMB_ERR NDR_NTLMSSP',
907 bld
.SAMBA_SUBSYSTEM('LIBSMB',
909 deps
='LIBSAMBA CLDAP LIBNMB LIBNBT LIBDRSUAPI SPNEGO_PARSE',
912 bld
.SAMBA_SUBSYSTEM('LIBDRSUAPI',
914 deps
='z LZXPRESS NDR_DRSUAPI NDR_DRSBLOBS',
917 bld
.SAMBA_SUBSYSTEM('CLDAP',
919 deps
='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
922 bld
.SAMBA_SUBSYSTEM('SECRETS',
927 bld
.SAMBA_SUBSYSTEM('SMBLDAP',
932 bld
.SAMBA_SUBSYSTEM('LIBADS',
934 deps
='LIBCLI_LDAP_NDR',
937 bld
.SAMBA_SUBSYSTEM('LIBADS_SERVER',
938 source
=LIBADS_SERVER_SRC
,
942 bld
.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
943 source
=LIBADS_PRINTER_SRC
,
946 bld
.SAMBA_SUBSYSTEM('LIBAFS',
950 bld
.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
951 source
=AFS_SETTOKEN_SRC
,
954 bld
.SAMBA_SUBSYSTEM('LIBSMBCONF',
955 source
=LIBSMBCONF_SRC
,
956 deps
='REG_BASE REG_SMBCONF',
959 bld
.SAMBA_SUBSYSTEM('SMBD_BASE',
960 source
=SMBD_SRC_BASE
,
961 deps
='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
962 DYNCONFIG libwbclient crypt nsl cups cap resolv z PASSDB
963 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
964 LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
965 vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
966 PRINTING PRINTBACKEND NDR_XATTR NDR_NOTIFY REGFIO
967 LIBSMBCONF REG_FULL FNAME_UTIL
968 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON LIBCLI_SPOOLSS
969 RPCCLI_SRVSVC NPA_TSTREAM INIT_NETLOGON INIT_SAMR
973 bld
.SAMBA_SUBSYSTEM('LOCKING',
974 source
='${LOCKING_SRC}',
975 deps
='''tdb talloc''',
978 bld
.SAMBA_SUBSYSTEM('PROFILE',
979 source
='${PROFILE_SRC}',
982 bld
.SAMBA_SUBSYSTEM('PRINTBASE',
983 source
=PRINTBASE_SRC
,
986 bld
.SAMBA_SUBSYSTEM('PRINTBACKEND',
987 source
=PRINTBACKEND_SRC
,
988 deps
='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
991 bld
.SAMBA_SUBSYSTEM('PRINTING',
995 bld
.SAMBA_SUBSYSTEM('PASSWD_UTIL',
996 source
=PASSWD_UTIL_SRC
,
999 bld
.SAMBA_SUBSYSTEM('FNAME_UTIL',
1000 source
=FNAME_UTIL_SRC
,
1003 bld
.SAMBA_SUBSYSTEM('LIBNET',
1005 deps
='NDR_LIBNET_JOIN',
1008 bld
.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
1009 source
=LIBNET_DSSYNC_SRC
,
1013 bld
.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
1014 source
=LIBNET_SAMSYNC_SRC
,
1018 bld
.SAMBA_SUBSYSTEM('LIBEVENTLOG',
1019 source
=LIB_EVENTLOG_SRC
,
1020 deps
='NDR_EVENTLOG',
1023 bld
.SAMBA_SUBSYSTEM('LIBNMB',
1027 bld
.SAMBA_SUBSYSTEM('LIBNBT',
1029 deps
='NDR_SVCCTL NDR_NBT NDR_NBT_BUF LIBCLI_NDR_NETLOGON',
1032 bld
.SAMBA_SUBSYSTEM('SERVICES',
1033 source
=SERVICES_SRC
,
1036 bld
.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1037 source
=PLAINTEXT_AUTH_SRC
,
1040 bld
.SAMBA_SUBSYSTEM('SLCACHE',
1044 bld
.SAMBA_SUBSYSTEM('SPNEGO_PARSE',
1045 source
='../libcli/auth/spnego_parse.c',
1048 bld
.SAMBA_SUBSYSTEM('DCUTIL',
1052 bld
.SAMBA_SUBSYSTEM('ndr',
1057 bld
.SAMBA_SUBSYSTEM('ndr-standard',
1060 NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
1061 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
1062 NDR_ECHO security NDR_DNS
1067 bld
.SAMBA_SUBSYSTEM('dcerpc', '')
1069 bld
.SAMBA_SUBSYSTEM('LZXPRESS',
1071 source
='../lib/compression/lzxpress.c')
1073 bld
.SAMBA_SUBSYSTEM('NDR_SECURITY',
1074 source
='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1078 bld
.SAMBA_SUBSYSTEM('NDR_DCERPC',
1079 source
='../librpc/gen_ndr/ndr_dcerpc.c',
1082 bld
.SAMBA_SUBSYSTEM('errors',
1083 source
='../libcli/util/doserr.c libsmb/nterr.c')
1085 bld
.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1086 source
='../libcli/nbt/nbtname.c',
1088 autoproto
='nbtname.h')
1090 bld
.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1091 source
='../libcli/ndr_netlogon.c',
1092 public_deps
='ndr NDR_SECURITY')
1094 bld
.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1095 source
='../librpc/gen_ndr/cli_winreg.c',
1096 public_deps
='RPC_NDR_WINREG')
1098 bld
.SAMBA_SUBSYSTEM('RPCCLI_ECHO',
1099 source
='../librpc/gen_ndr/cli_echo.c',
1100 public_deps
='RPC_NDR_ECHO')
1102 bld
.SAMBA_SUBSYSTEM('RPCCLI_SAMR',
1103 source
='../librpc/gen_ndr/cli_samr.c',
1104 public_deps
='RPC_NDR_SAMR')
1106 bld
.SAMBA_SUBSYSTEM('RPCCLI_LSA',
1107 source
='../librpc/gen_ndr/cli_lsa.c',
1108 public_deps
='RPC_NDR_LSA')
1110 bld
.SAMBA_SUBSYSTEM('RPCCLI_NETLOGON',
1111 source
='../librpc/gen_ndr/cli_netlogon.c',
1112 public_deps
='RPC_NDR_NETLOGON')
1114 bld
.SAMBA_SUBSYSTEM('RPCCLI_SRVSVC',
1115 source
='../librpc/gen_ndr/cli_srvsvc.c',
1116 public_deps
='RPC_NDR_SRVSVC')
1118 bld
.SAMBA_SUBSYSTEM('RPCCLI_INITSHUTDOWN',
1119 source
='../librpc/gen_ndr/cli_initshutdown.c',
1120 public_deps
='RPC_NDR_INITSHUTDOWN')
1122 bld
.SAMBA_SUBSYSTEM('RPCCLI_WKSSVC',
1123 source
='../librpc/gen_ndr/cli_wkssvc.c',
1124 public_deps
='RPC_NDR_WKSSVC')
1126 bld
.SAMBA_SUBSYSTEM('RPCCLI_SVCCTL',
1127 source
='../librpc/gen_ndr/cli_svcctl.c',
1128 public_deps
='RPC_NDR_SVCCTL')
1130 bld
.SAMBA_SUBSYSTEM('RPCCLI_DSSETUP',
1131 source
='../librpc/gen_ndr/cli_dssetup.c',
1132 public_deps
='RPC_NDR_DSSETUP')
1134 bld
.SAMBA_SUBSYSTEM('RPCCLI_DFS',
1135 source
='../librpc/gen_ndr/cli_dfs.c',
1136 public_deps
='RPC_NDR_DFS')
1138 bld
.SAMBA_SUBSYSTEM('RPCCLI_DRSUAPI',
1139 source
='../librpc/gen_ndr/cli_drsuapi.c',
1140 public_deps
='RPC_NDR_DRSUAPI')
1142 bld
.SAMBA_SUBSYSTEM('RPCCLI_NTSVCS',
1143 source
='../librpc/gen_ndr/cli_ntsvcs.c',
1144 public_deps
='RPC_NDR_NTSVCS')
1146 bld
.SAMBA_SUBSYSTEM('RPCCLI_EVENTLOG',
1147 source
='../librpc/gen_ndr/cli_eventlog.c',
1148 public_deps
='RPC_NDR_EVENTLOG')
1150 bld
.SAMBA_SUBSYSTEM('RPCCLI_EPMAPPER',
1151 source
='../librpc/gen_ndr/cli_epmapper.c',
1152 public_deps
='RPC_NDR_EPMAPPER')
1154 bld
.SAMBA_SUBSYSTEM('RPCCLI_SPOOLSS',
1155 source
='../librpc/gen_ndr/cli_spoolss.c',
1156 public_deps
='RPC_NDR_SPOOLSS')
1158 bld
.SAMBA_SUBSYSTEM('LIBCLI_SAMR',
1159 source
=LIBCLI_SAMR_SRC
,
1162 bld
.SAMBA_SUBSYSTEM('LIBCLI_LSA',
1163 source
=LIBCLI_LSA_SRC
,
1164 deps
='RPCCLI_LSA INIT_LSA')
1166 bld
.SAMBA_SUBSYSTEM('LIBCLI_NETLOGON',
1167 source
=LIBCLI_NETLOGON_SRC
,
1168 deps
='RPCCLI_NETLOGON')
1170 bld
.SAMBA_SUBSYSTEM('LIBCLI_SPOOLSS',
1171 source
=LIBCLI_SPOOLSS_SRC
,
1172 deps
='RPCCLI_SPOOLSS')
1174 bld
.SAMBA_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
1175 source
=RPC_CLIENT_SCHANNEL_SRC
,
1178 bld
.SAMBA_SUBSYSTEM('NPA_TSTREAM',
1179 source
=NPA_TSTREAM_SRC
,
1180 deps
='NDR_NAMED_PIPE_AUTH')
1182 bld
.SAMBA_SUBSYSTEM('INIT_LSA',
1183 source
='rpc_client/init_lsa.c')
1185 bld
.SAMBA_SUBSYSTEM('INIT_NETLOGON',
1186 source
='rpc_client/init_netlogon.c')
1188 bld
.SAMBA_SUBSYSTEM('INIT_SAMR',
1189 source
='rpc_client/init_samr.c')
1191 ########################## BINARIES #################################
1193 bld
.SAMBA_BINARY('smbd/smbd',
1194 source
='${SMBD_SRC_MAIN}',
1195 deps
='''SMBD_BASE''',
1196 install_path
='${SBINDIR}',
1199 bld
.SAMBA_BINARY('nmbd/nmbd',
1201 deps
='''talloc tdb tevent z cap resolv libwbclient dl
1202 PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1203 POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1204 install_path
='${SBINDIR}',
1207 bld
.SAMBA_BINARY('winbindd/winbindd',
1208 source
=WINBINDD_SRC
,
1209 deps
='''talloc tdb tevent cap dl z
1210 libwbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1211 POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1212 SRV_NDR_WBINT RPCCLI_NDR_WBINT LIBAFS
1213 LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1215 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON
1216 RPCCLI_DSSETUP NPA_TSTREAM INIT_NETLOGON
1219 enabled
=bld
.env
.build_winbind
,
1220 install_path
='${SBINDIR}',
1223 bld
.SAMBA_BINARY('web/swat',
1225 deps
='''talloc tevent cap LIBS LIBSMB libwbclient PARAM
1226 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1227 LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING FNAME_UTIL
1228 LIBCLI_SAMR INIT_LSA''',
1229 enabled
=bld
.env
.build_swat
,
1230 install_path
='${SBINDIR}',
1233 bld
.SAMBA_BINARY('rpcclient/rpcclient',
1234 source
=RPCCLIENT_SRC
,
1235 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1236 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1237 LIBADS SMBREADLINE DCUTIL RPCCLI_WINREG RPCCLI_ECHO
1239 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON LIBCLI_SPOOLSS
1240 RPCCLI_SRVSVC RPCCLI_WKSSVC RPCCLI_DSSETUP RPCCLI_DFS
1241 RPCCLI_DRSUAPI RPCCLI_NTSVCS RPCCLI_EVENTLOG INIT_NETLOGON
1246 bld
.SAMBA_BINARY('smbclient',
1248 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1249 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN
1250 LIBMSRPC SMBREADLINE libsmbclient RPCCLI_SRVSVC INIT_LSA''',
1253 bld
.SAMBA_BINARY('net',
1255 deps
='''talloc tdb libnetapi libaddns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1256 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1257 LOCALE_DIR LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
1258 LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
1259 REGFIO NDR_NTPRINTING RPCCLI_WINREG
1260 RPC_CLIENT_SCHANNEL TOKEN_UTIL
1261 LIBCLI_SAMR LIBCLI_LSA LIBCLI_NETLOGON LIBCLI_SPOOLSS
1262 RPCCLI_SRVSVC RPCCLI_WKSSVC RPCCLI_SVCCTL RPCCLI_DSSETUP
1263 RPCCLI_INITSHUTDOWN RPCCLI_DRSUAPI INIT_NETLOGON INIT_SAMR
1267 bld
.SAMBA_BINARY('profiles',
1268 source
=PROFILES_SRC
,
1269 deps
='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD REGFIO''',
1272 bld
.SAMBA_BINARY('smbspool',
1274 deps
='''talloc tdb tevent resolv cap libwbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1275 KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1278 bld
.SAMBA_BINARY('testparm',
1279 source
=TESTPARM_SRC
,
1280 deps
='''talloc tevent ldap cap
1281 libwbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1282 LIBSMB_ERR POPT_SAMBA''',
1285 bld
.SAMBA_BINARY('smbta-util',
1286 source
=SMBTA_UTIL_SRC
,
1287 deps
='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1291 bld
.SAMBA_BINARY('smbstatus',
1293 deps
='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1294 LIBSMB_ERR LOCKING PROFILE FNAME_UTIL''',
1297 bld
.SAMBA_BINARY('smbcontrol',
1298 source
=SMBCONTROL_SRC
,
1299 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA PRINTBASE''',
1302 bld
.SAMBA_BINARY('smbtree',
1304 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1305 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE
1309 bld
.SAMBA_BINARY('smbpasswd',
1310 source
=SMBPASSWD_SRC
,
1311 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1312 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL
1313 LIBCLI_SAMR INIT_LSA''',
1316 bld
.SAMBA_BINARY('pdbedit',
1318 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1319 LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1320 PASSWD_UTIL LIBCLI_LDAP_NDR''',
1323 bld
.SAMBA_BINARY('smbget',
1325 deps
='''talloc tdb libsmbclient POPT_SAMBA''',
1328 bld
.SAMBA_BINARY('nmblookup',
1329 source
=NMBLOOKUP_SRC
,
1330 deps
='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR LIBNMB''',
1333 bld
.SAMBA_BINARY('smbtorture',
1334 source
=SMBTORTURE_SRC
,
1335 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIBSMB KRBCLIENT TLDAP
1336 LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_LSA LIBMSRPC LIBMSRPC_GEN RPCCLI_ECHO''',
1339 bld
.SAMBA_BINARY('smbconftort',
1340 source
=SMBCONFTORT_SRC
,
1341 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1344 bld
.SAMBA_BINARY('masktest',
1345 source
=MASKTEST_SRC
,
1346 deps
='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1347 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1350 bld
.SAMBA_BINARY('msgtest',
1352 deps
='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1355 bld
.SAMBA_BINARY('smbcacls',
1356 source
=SMBCACLS_SRC
,
1357 deps
='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1358 LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1359 LIBMSRPC LIBCLI_LSA''',
1362 bld
.SAMBA_BINARY('smbcquotas',
1363 source
=SMBCQUOTAS_SRC
,
1364 deps
='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1365 POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC
1369 bld
.SAMBA_BINARY('eventlogadm',
1370 source
=EVTLOGADM_SRC
,
1371 deps
='''talloc tevent cap POPT_SAMBA LIBS PARAM
1372 LIB_NONSMBD LIBSMB_ERR PASSDB libwbclient LIBEVENTLOG REG_EVENTLOG''',
1375 bld
.SAMBA_BINARY('sharesec',
1376 source
=SHARESEC_SRC
,
1377 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1380 bld
.SAMBA_BINARY('locktest',
1381 source
=LOCKTEST_SRC
,
1382 deps
='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1383 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING FNAME_UTIL''',
1386 bld
.SAMBA_BINARY('nsstest',
1391 bld
.SAMBA_BINARY('pdbtest',
1393 deps
='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1394 SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1397 bld
.SAMBA_BINARY('vfstest',
1399 deps
='''SMBD_BASE SMBREADLINE''',
1402 bld
.SAMBA_BINARY('smbiconv',
1403 source
=SMBICONV_SRC
,
1404 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1407 bld
.SAMBA_BINARY('log2pcap',
1408 source
=LOG2PCAP_SRC
,
1409 deps
='''talloc popt''',
1412 bld
.SAMBA_BINARY('locktest2',
1413 source
=LOCKTEST2_SRC
,
1414 deps
='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1415 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING FNAME_UTIL''',
1418 bld
.SAMBA_BINARY('debug2html',
1419 source
=DEBUG2HTML_SRC
,
1420 deps
='''talloc popt''',
1423 bld
.SAMBA_BINARY('smbfilter',
1424 source
=SMBFILTER_SRC
,
1425 deps
='''talloc tevent cap resolv libwbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1426 NDR_SAMR NDR_LSA''',
1429 bld
.SAMBA_BINARY('versiontest',
1430 source
='lib/version_test.c ${VERSION_SRC}',
1433 bld
.SAMBA_BINARY('wbinfo',
1435 deps
='''talloc libwbclient tevent cap
1436 ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1437 LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1440 bld
.SAMBA_BINARY('ntlm_auth',
1441 source
=NTLM_AUTH_SRC
,
1442 deps
='''tdb talloc cap resolv krb5 k5crypto com_err libwbclient PARAM LIB_NONSMBD
1443 LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1444 PASSDB GROUPDB SMBLDAP WBCOMMON LIBINIPARSER LIBADS_SERVER
1445 NDR_SAMR NDR_LSA NDR_NETLOGON LIBCLI_LDAP_NDR LIBNMB SLCACHE SPNEGO_PARSE''',
1448 bld
.SAMBA_BINARY('timelimit',
1449 source
='script/tests/timelimit.c',
1452 bld
.SAMBA_BINARY('rpc_open_tcp',
1453 source
=RPC_OPEN_TCP_SRC
,
1454 deps
='''talloc tdb tevent resolv cap libwbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1455 LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1458 bld
.SAMBA_BINARY('test_lp_load',
1459 source
=TEST_LP_LOAD_SRC
,
1460 deps
='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1463 bld
.SAMBA_BINARY('dbwrap_tool',
1464 source
=DBWRAP_TOOL_SRC
,
1465 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1468 bld
.SAMBA_BINARY('dbwrap_torture',
1469 source
=DBWRAP_TORTURE_SRC
,
1470 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1474 bld
.SAMBA_BINARY('split_tokens',
1475 source
=SPLIT_TOKENS_SRC
,
1476 deps
='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA
1480 bld
.SAMBA_BINARY('vlp',
1482 deps
='''talloc tdb PARAM_UTIL''',
1485 swat_files
=recursive_dirlist('../swat', '../swat', '*')
1486 bld
.INSTALL_FILES('${SWATDIR}', swat_files
, base_name
='../swat')
1488 ########################## INCLUDES #################################
1490 bld
.RECURSE('../lib/socket_wrapper')
1491 bld
.RECURSE('../lib/talloc')
1492 bld
.RECURSE('../lib/tdb')
1493 bld
.RECURSE('../lib/nss_wrapper')
1494 bld
.RECURSE('../lib/tevent')
1495 bld
.RECURSE('../lib/popt')
1496 bld
.RECURSE('../lib/zlib')
1497 bld
.RECURSE('../lib/tsocket')
1498 bld
.RECURSE('../lib/iniparser/src')
1499 bld
.RECURSE('../lib/crypto')
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')
1507 bld
.RECURSE('libaddns')
1509 bld
.ENFORCE_GROUP_ORDERING()
1510 bld
.CHECK_PROJECT_RULES()