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 LIBNDR_DRSUAPI_SRC
= '''../librpc/ndr/ndr_drsuapi.c
33 ../librpc/ndr/ndr_compression.c
34 ../librpc/gen_ndr/ndr_drsuapi.c
35 ../librpc/ndr/ndr_drsblobs.c
36 ../librpc/gen_ndr/ndr_drsblobs.c'''
38 COMPRESSION_SRC
= '../lib/compression/mszip.c'
40 DRSUAPI_SRC
= '''${LIBNDR_DRSUAPI_SRC}
43 LIBNDR_SRC
= '''../librpc/ndr/ndr_basic.c
45 ../librpc/ndr/ndr_misc.c
46 ../librpc/gen_ndr/ndr_misc.c
47 ../librpc/ndr/ndr_string.c
51 LIBCLI_SPOOLSS_SRC
= '''
52 ../librpc/gen_ndr/cli_spoolss.c
53 ../librpc/gen_ndr/ndr_spoolss_c.c
54 rpc_client/cli_spoolss.c
55 rpc_client/init_spoolss.c'''
57 LIBCLI_EVENTLOG_SRC
= '''
58 ../librpc/gen_ndr/cli_eventlog.c
59 ../librpc/gen_ndr/ndr_eventlog_c.c'''
61 LIBCLI_NTSVCS_SRC
= '''
62 ../librpc/gen_ndr/cli_ntsvcs.c
63 ../librpc/gen_ndr/ndr_ntsvcs_c.c'''
65 LIBCLI_DRSUAPI_SRC
= '''
66 ../librpc/gen_ndr/cli_drsuapi.c
67 ../librpc/gen_ndr/ndr_drsuapi_c.c'''
70 ../librpc/gen_ndr/cli_dfs.c
71 ../librpc/gen_ndr/ndr_dfs_c.c'''
73 LIBCLI_INITSHUTDOWN_SRC
= '''
74 ../librpc/gen_ndr/cli_initshutdown.c
75 ../librpc/gen_ndr/ndr_initshutdown_c.c'''
77 LIBCLI_DSSETUP_SRC
= '''
78 ../librpc/gen_ndr/cli_dssetup.c
79 ../librpc/gen_ndr/ndr_dssetup_c.c'''
81 LIBCLI_SVCCTL_SRC
= '''
82 ../librpc/gen_ndr/cli_svcctl.c
83 ../librpc/gen_ndr/ndr_svcctl_c.c'''
85 LIBCLI_WKSSVC_SRC
= '''
86 ../librpc/gen_ndr/cli_wkssvc.c
87 ../librpc/gen_ndr/ndr_wkssvc_c.c'''
89 LIBCLI_SRVSVC_SRC
= '''
90 ../librpc/gen_ndr/cli_srvsvc.c
91 ../librpc/gen_ndr/ndr_srvsvc_c.c'''
94 ../librpc/gen_ndr/cli_lsa.c
95 ../librpc/gen_ndr/ndr_lsa_c.c
96 rpc_client/cli_lsarpc.c
97 rpc_client/init_lsa.c'''
100 ../librpc/gen_ndr/cli_samr.c
101 ../librpc/gen_ndr/ndr_samr_c.c
102 rpc_client/cli_samr.c'''
104 LIBCLI_NETLOGON_SRC
= '''
105 ../librpc/gen_ndr/cli_netlogon.c
106 ../librpc/gen_ndr/ndr_netlogon_c.c
107 rpc_client/cli_netlogon.c'''
109 LIBCLI_EPMAPPER_SRC
= '''
110 ../librpc/gen_ndr/cli_epmapper.c
111 ../librpc/gen_ndr/ndr_epmapper_c.c'''
113 # this includes only the low level parse code, not stuff
114 # that requires knowledge of security contexts
115 REG_PARSE_PRS_SRC
= '''registry/reg_parse_prs.c'''
117 LIBREPLACE_SRC
= '''${LIBREPLACE_SRCS}'''
119 LIBSAMBAUTIL_SRC
= '''${LIBREPLACE_SRC}'''
121 UTIL_SRC
= '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
122 ../lib/util/xfile.c ../lib/util/util_strlist.c
123 ../lib/util/util_file.c ../lib/util/data_blob.c
124 ../lib/util/util.c ../lib/util/fsusage.c
125 ../lib/util/params.c ../lib/util/talloc_stack.c
126 ../lib/util/genrand.c ../lib/util/util_net.c
127 ../lib/util/become_daemon.c ../lib/util/system.c
128 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
129 ../lib/util/tevent_werror.c
130 ../lib/util/smb_threads.c ../lib/util/util_id.c
131 ../lib/util/blocking.c ../lib/util/rfc1738.c
132 ../lib/util/select.c'''
140 LIB_SRC
= '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC}
141 lib/messages.c lib/messages_local.c
142 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
143 lib/interfaces.c lib/memcache.c
147 lib/util_transfer_file.c ../lib/async_req/async_sock.c
149 ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
150 lib/interface.c lib/pidfile.c
151 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
153 ../libds/common/flag_mapping.c
154 lib/access.c lib/smbrun.c
155 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
157 lib/util_str.c lib/clobber.c lib/util_sid.c
158 lib/util_unistr.c lib/util_file.c
159 lib/util.c lib/util_names.c
160 lib/util_sock.c lib/sock_exec.c lib/util_sec.c
161 lib/substitute.c lib/dbwrap_util.c
162 lib/ms_fnmatch.c lib/errmap_unix.c
163 lib/tallocmsg.c lib/dmallocmsg.c
164 libsmb/clisigning.c libsmb/smb_signing.c
165 lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
166 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
168 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
169 lib/server_contexts.c
171 lib/secdesc.c ${PTHREADPOOL_SRC}
173 libads/krb5_errs.c lib/system_smbd.c lib/audit.c
174 lib/file_id.c lib/idmap_cache.c'''
176 LIB_DUMMY_SRC
= '''lib/dummysmbd.c lib/dummyroot.c'''
177 LIB_NONSMBD_SRC
= '''${LIB_DUMMY_SRC}'''
179 POPT_LIB_SRC
= '''lib/popt_common.c'''
181 PARAM_WITHOUT_REG_SRC
= '''param/loadparm.c param/util.c param/loadparm_server_role.c
182 lib/sharesec.c lib/ldap_debug_handler.c'''
184 KRBCLIENT_SRC
= '''libads/kerberos.c libads/ads_status.c'''
186 LIBGPO_SRC0
= '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
187 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
189 LIBGPO_SRC
= '''${LIBGPO_SRC0}'''
191 LIBADS_SRC
= '''libads/ldap.c
192 libads/sasl.c libads/sasl_wrapping.c
194 libads/kerberos_util.c
196 libads/ads_struct.c libads/kerberos_keytab.c
197 libads/disp_sec.c libads/ldap_utils.c
198 libads/ldap_schema.c libads/util.c libads/ndr.c'''
200 LIBADS_SERVER_SRC
= '''libads/kerberos_verify.c libads/authdata.c'''
202 LIBADS_PRINTER_SRC
= '''libads/ldap_printer.c'''
204 SECRETS_SRC
= '''passdb/secrets.c passdb/machine_account_secrets.c
205 passdb/machine_sid.c'''
207 LIBNBT_SRC
= '''../libcli/nbt/nbtname.c
209 ../libcli/ndr_netlogon.c
210 ../librpc/gen_ndr/ndr_nbt.c
211 ../librpc/gen_ndr/ndr_svcctl.c
212 ../librpc/ndr/ndr_svcctl.c'''
214 LIBNMB_SRC
= '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
215 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
216 libads/dns.c libads/sitename_cache.c'''
218 NTERR_SRC
= '''libsmb/nterr.c libsmb/smberr.c'''
219 DOSERR_SRC
= '../libcli/util/doserr.c'
220 ERRORMAP_SRC
= 'libsmb/errormap.c'
221 DCE_RPC_ERR_SRC
= '../librpc/rpc/dcerpc_error.c'
223 LIBSMB_ERR_SRC0
= '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
225 LIBSMB_ERR_SRC1
= '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
227 LIBSMB_ERR_SRC
= '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}'
230 ../libcli/auth/ntlm_check.c
232 libsmb/ntlmssp_wrap.c
233 ../libcli/auth/ntlmssp.c
234 ../libcli/auth/ntlmssp_sign.c
235 ../libcli/auth/ntlmssp_ndr.c
236 ../libcli/auth/ntlmssp_server.c'''
238 LIBSAMBA_SRC
= '${LIBSMB_SRC0}'
240 LIBCLI_LDAP_MESSAGE_SRC
= '''../libcli/ldap/ldap_message.c'''
241 LIBCLI_LDAP_NDR_SRC
= '''../libcli/ldap/ldap_ndr.c lib/ldb_compat.c'''
243 CLDAP_SRC
= '''libads/cldap.c
244 ../libcli/cldap/cldap.c
245 ../lib/util/idtree.c'''
247 TLDAP_SRC
= '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
249 SCHANNEL_SRC
= '''../libcli/auth/credentials.c
250 ../libcli/auth/schannel_sign.c
251 ../libcli/auth/schannel_state_tdb.c'''
253 LIBSMB_SRC
= '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
254 libsmb/clikrb5.c libsmb/clispnego.c
255 ../libcli/auth/spnego_parse.c
256 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
257 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
258 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
259 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
260 libsmb/clioplock.c libsmb/clirap2.c
261 libsmb/smb_seal.c libsmb/async_smb.c
268 rpc_client/cli_pipe.c
269 librpc/crypto/gse_krb5.c
271 librpc/crypto/cli_spnego.c
272 librpc/rpc/rpc_common.c
273 rpc_client/rpc_transport_np.c
274 rpc_client/rpc_transport_sock.c
275 rpc_client/rpc_transport_tstream.c
276 ../librpc/rpc/binding.c
277 ../librpc/rpc/dcerpc_util.c
278 librpc/rpc/dcerpc_helpers.c
279 ../librpc/rpc/binding_handle.c
280 ${LIBCLI_EPMAPPER_SRC}'''
283 # registry-related objects
285 UTIL_REG_SRC
= '''../libcli/registry/util_reg.c'''
287 REG_INIT_BASIC_SRC
= '''registry/reg_init_basic.c'''
288 REG_INIT_SMBCONF_SRC
= '''registry/reg_init_smbconf.c'''
289 REG_INIT_FULL_SRC
= '''registry/reg_init_full.c'''
291 REGFIO_SRC
= '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
293 REG_API_REGF_SRC
= '''registry/reg_api_regf.c'''
295 REGSRCS_SRC
= '''registry/reg_objects.c'''
297 REG_BACKENDS_BASE_SRC
= '''registry/reg_backend_db.c'''
299 REG_BACKENDS_SMBCONF_SRC
= '''registry/reg_backend_smbconf.c'''
301 REG_BACKENDS_EXTRA_SRC
= '''registry/reg_backend_printing.c
302 registry/reg_backend_shares.c
303 registry/reg_backend_netlogon_params.c
304 registry/reg_backend_prod_options.c
305 registry/reg_backend_tcpip_params.c
306 registry/reg_backend_hkpt_params.c
307 registry/reg_backend_current_version.c
308 registry/reg_backend_perflib.c'''
310 REG_BASE_SRC
= '''registry/reg_api.c
311 registry/reg_dispatcher.c
312 registry/reg_cachehook.c
314 registry/reg_util_internal.c
316 ${REG_BACKENDS_BASE_SRC}
317 ${REG_INIT_BASIC_SRC}'''
319 REG_SMBCONF_SRC
= '''
320 ${REG_BACKENDS_SMBCONF_SRC}
321 ${REG_INIT_SMBCONF_SRC}
322 registry/reg_util_token.c
323 registry/reg_api_util.c'''
326 ${REG_BACKENDS_EXTRA_SRC}
328 registry/reg_eventlog.c
329 registry/reg_perfcount.c'''
331 SERVICES_SRC
= '''services/svc_spoolss.c
332 services/svc_rcinit.c
333 services/services_db.c
334 services/svc_netlogon.c
335 services/svc_winreg.c
336 services/svc_wins.c'''
338 LIB_EVENTLOG_SRC
= '''lib/eventlog/eventlog.c'''
340 NPA_TSTREAM_SRC
= '''../libcli/named_pipe_auth/npa_tstream.c
341 ../librpc/gen_ndr/ndr_named_pipe_auth.c'''
343 RPC_NCACN_NP
= '''rpc_server/rpc_ncacn_np.c
344 rpc_server/rpc_handles.c'''
346 RPC_SERVICE
= '''rpc_server/rpc_server.c'''
348 RPC_CRYPTO
= '''rpc_server/dcesrv_ntlmssp.c
349 rpc_server/dcesrv_gssapi.c
350 rpc_server/dcesrv_spnego.c'''
352 RPC_PIPE_SRC
= '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
353 ${RPC_NCACN_NP} ${RPC_SERVICE} ${RPC_CRYPTO}'''
355 RPC_SERVER_SRC
= '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC}'''
357 RPC_CLIENT_SCHANNEL_SRC
= '''rpc_client/cli_pipe_schannel.c'''
359 LOCKING_SRC
= '''locking/locking.c locking/brlock.c locking/posix.c'''
361 PRIVILEGES_SRC
= '''lib/privileges.c'''
363 PASSDB_GET_SET_SRC
= '''passdb/pdb_get_set.c'''
365 PASSDB_SRC
= '''${PASSDB_GET_SET_SRC} passdb/passdb.c
366 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
367 passdb/util_unixsids.c passdb/lookup_sid.c
369 passdb/account_pol.c ${PRIVILEGES_SRC}
370 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
371 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
373 GROUPDB_SRC
= '''groupdb/mapping.c groupdb/mapping_tdb.c'''
375 PROFILE_SRC
= '''profile/profile.c'''
376 PROFILES_SRC
= '''utils/profiles.c'''
378 OPLOCK_SRC
= '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
379 smbd/oplock_onefs.c'''
381 NOTIFY_SRC
= '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c
382 librpc/gen_ndr/ndr_notify.c'''
384 FNAME_UTIL_SRC
= '''smbd/filename_util.c'''
387 PLAINTEXT_AUTH_SRC
= '''auth/pampass.c auth/pass_check.c'''
389 SLCACHE_SRC
= '''libsmb/samlogon_cache.c'''
391 DCUTIL_SRC
= '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
393 WINBINDD_SRC1
= '''winbindd/winbindd.c
394 winbindd/winbindd_group.c
395 winbindd/winbindd_util.c
396 winbindd/winbindd_cache.c
397 winbindd/winbindd_pam.c
398 winbindd/winbindd_misc.c
399 winbindd/winbindd_cm.c
400 winbindd/winbindd_wins.c
401 winbindd/winbindd_msrpc.c
402 winbindd/winbindd_rpc.c
403 winbindd/winbindd_reconnect.c
404 winbindd/winbindd_ads.c
405 winbindd/winbindd_samr.c
406 winbindd/winbindd_dual.c
407 winbindd/winbindd_dual_ndr.c
408 winbindd/winbindd_dual_srv.c
409 winbindd/winbindd_async.c
410 winbindd/winbindd_creds.c
411 winbindd/winbindd_cred_cache.c
412 winbindd/winbindd_ccache_access.c
413 winbindd/winbindd_domain.c
414 winbindd/winbindd_idmap.c
415 winbindd/winbindd_locator.c
416 winbindd/winbindd_ndr.c
418 winbindd/wb_lookupsid.c
419 winbindd/wb_lookupname.c
420 winbindd/wb_sid2uid.c
421 winbindd/wb_sid2gid.c
422 winbindd/wb_uid2sid.c
423 winbindd/wb_gid2sid.c
424 winbindd/wb_queryuser.c
425 winbindd/wb_lookupuseraliases.c
426 winbindd/wb_lookupusergroups.c
427 winbindd/wb_getpwsid.c
428 winbindd/wb_gettoken.c
430 winbindd/wb_seqnums.c
431 winbindd/wb_group_members.c
432 winbindd/wb_getgrsid.c
433 winbindd/wb_query_user_list.c
434 winbindd/wb_fill_pwent.c
435 winbindd/wb_next_pwent.c
436 winbindd/wb_next_grent.c
437 winbindd/wb_dsgetdcname.c
438 winbindd/winbindd_lookupsid.c
439 winbindd/winbindd_lookupname.c
440 winbindd/winbindd_sid_to_uid.c
441 winbindd/winbindd_sid_to_gid.c
442 winbindd/winbindd_uid_to_sid.c
443 winbindd/winbindd_gid_to_sid.c
444 winbindd/winbindd_allocate_uid.c
445 winbindd/winbindd_allocate_gid.c
446 winbindd/winbindd_getpwsid.c
447 winbindd/winbindd_getpwnam.c
448 winbindd/winbindd_getpwuid.c
449 winbindd/winbindd_getsidaliases.c
450 winbindd/winbindd_getuserdomgroups.c
451 winbindd/winbindd_getgroups.c
452 winbindd/winbindd_show_sequence.c
453 winbindd/winbindd_getgrgid.c
454 winbindd/winbindd_getgrnam.c
455 winbindd/winbindd_getusersids.c
456 winbindd/winbindd_lookuprids.c
457 winbindd/winbindd_setpwent.c
458 winbindd/winbindd_getpwent.c
459 winbindd/winbindd_endpwent.c
460 winbindd/winbindd_setgrent.c
461 winbindd/winbindd_getgrent.c
462 winbindd/winbindd_endgrent.c
463 winbindd/winbindd_dsgetdcname.c
464 winbindd/winbindd_getdcname.c
465 winbindd/winbindd_list_users.c
466 winbindd/winbindd_list_groups.c
467 winbindd/winbindd_check_machine_acct.c
468 winbindd/winbindd_change_machine_acct.c
469 winbindd/winbindd_ping_dc.c
470 winbindd/winbindd_pam_auth.c
471 winbindd/winbindd_pam_logoff.c
472 winbindd/winbindd_pam_chauthtok.c
473 winbindd/winbindd_pam_auth_crap.c
474 winbindd/winbindd_pam_chng_pswd_auth_crap.c
480 auth/server_info_sam.c
483 ../nsswitch/libwbclient/wb_reqtrans.c'''
485 WINBINDD_SRC
= '''${WINBINDD_SRC1}
486 ${RPC_NCACN_NP} ${NPA_TSTREAM_SRC}
488 ${LIBCLI_DSSETUP_SRC}
491 ${LIBCLI_NETLOGON_SRC}
492 rpc_client/init_netlogon.c
493 rpc_server/srv_lsa_nt.c ../librpc/gen_ndr/srv_lsa.c
494 rpc_server/srv_samr_nt.c ../librpc/gen_ndr/srv_samr.c
495 rpc_server/srv_samr_util.c
496 rpc_server/srv_samr_chgpasswd.c
497 rpc_server/srv_pipe_register.c'''
499 MANGLE_SRC
= '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
501 SMBD_SRC_MAIN
= '''smbd/server.c smbd/server_exit.c'''
503 BUILDOPT_SRC
= '''smbd/build_options.c'''
505 SMBD_SRC_SRV
= '''smbd/server_reload.c smbd/files.c smbd/connection.c
506 smbd/utmp.c smbd/session.c
507 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
508 smbd/share_access.c smbd/fileio.c
509 smbd/ipc.c smbd/lanman.c smbd/negprot.c
510 smbd/message.c smbd/nttrans.c smbd/pipes.c
511 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
512 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
513 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
514 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
515 smbd/posix_acls.c lib/sysacls.c
516 smbd/process.c smbd/service.c smbd/error.c
517 printing/printspoolss.c
518 lib/sysquotas.c lib/sysquotas_linux.c
519 lib/sysquotas_xfs.c lib/sysquotas_4A.c
522 smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
523 smbd/aio.c smbd/statvfs.c
524 smbd/dmapi.c smbd/signing.c
526 smbd/dnsregister.c smbd/globals.c
531 smbd/smb2_sesssetup.c
540 smbd/smb2_keepalive.c
546 ../libcli/smb/smb2_create_blob.c
549 SMBD_SRC_BASE
= '''${SMBD_SRC_SRV}
551 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
553 ${LIBCLI_SPOOLSS_SRC}
557 ${LIBCLI_NETLOGON_SRC}
558 rpc_client/init_netlogon.c
559 rpc_client/init_samr.c'''
561 PRINTING_SRC
= '''printing/pcap.c printing/print_svid.c printing/print_aix.c
562 printing/print_cups.c printing/print_generic.c
563 printing/lpq_parse.c printing/load.c printing/print_standard.c
564 printing/print_iprint.c printing/printer_list.c'''
566 PRINTBASE_SRC
= '''printing/notify.c printing/printing_db.c'''
567 PRINTBACKEND_SRC
= '''printing/printing.c
568 printing/nt_printing.c
569 printing/nt_printing_tdb.c
570 printing/nt_printing_migrate.c
571 printing/nt_printing_ads.c'''
573 SMBD_SRC
= '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
575 NMBD_SRC1
= '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
576 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
577 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
578 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
579 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
580 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
581 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
582 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
583 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
584 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
585 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
586 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
588 NMBD_SRC
= '${NMBD_SRC1}'
590 SWAT_SRC1
= '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
591 web/swat.c web/neg_lang.c'''
593 SWAT_SRC
= '''${SWAT_SRC1}
594 ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}
596 rpc_client/init_lsa.c'''
598 STATUS_SRC
= '''utils/status.c utils/status_profile.c
601 SMBCONTROL_SRC
= '''utils/smbcontrol.c'''
603 SMBTREE_SRC
= '''utils/smbtree.c
604 ${LIBCLI_SRVSVC_SRC}'''
606 TESTPARM_SRC
= 'utils/testparm.c'
608 SMBTA_UTIL_SRC
= '''utils/smbta-util.c ${FNAME_UTIL_SRC}'''
610 TEST_LP_LOAD_SRC
= '''param/test_lp_load.c'''
612 PASSWD_UTIL_SRC
= 'utils/passwd_util.c'
614 SMBPASSWD_SRC
= '''utils/smbpasswd.c ${PASSCHANGE_SRC}
616 rpc_client/init_lsa.c'''
618 PDBEDIT_SRC
= '''utils/pdbedit.c'''
620 SMBGET_SRC
= '''utils/smbget.c'''
622 RPCCLIENT_SRC1
= '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
623 rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
624 rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
625 rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
626 rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
627 rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
628 rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
629 rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
630 rpcclient/cmd_winreg.c'''
632 RPCCLIENT_SRC
= '''${RPCCLIENT_SRC1}
633 ${LIBCLI_SPOOLSS_SRC}
634 ${LIBCLI_EVENTLOG_SRC}
636 ${LIBCLI_DRSUAPI_SRC}
638 ${LIBCLI_DSSETUP_SRC}
643 ${LIBCLI_NETLOGON_SRC}
644 rpc_client/init_netlogon.c
645 rpc_client/init_samr.c'''
647 PAM_WINBIND_SRC
= '../nsswitch/pam_winbind.c ${WBCOMMON_SRC} ${LIBREPLACE_SRC}'
649 LIBSMBCLIENT_THREAD_SRC
= '''libsmb/libsmb_thread_impl.c
650 libsmb/libsmb_thread_posix.c'''
652 LIBSMBCLIENT_SRC0
= '''libsmb/libsmb_cache.c
653 libsmb/libsmb_compat.c
654 libsmb/libsmb_context.c
659 libsmb/libsmb_printjob.c
660 libsmb/libsmb_server.c
662 libsmb/libsmb_xattr.c
663 libsmb/libsmb_setget.c'''
665 LIBSMBCLIENT_SRC1
= '''${LIBSMBCLIENT_SRC0}
669 LIBSMBCLIENT_SRC
= '${LIBSMBCLIENT_SRC1}'
671 LIBSMBSHAREMODES_SRC0
= 'libsmb/smb_share_modes.c'
673 LIBSMBSHAREMODES_SRC
= '${LIBSMBSHAREMODES_SRC0}'
675 LIBNETAPI_SRC0
= '''lib/netapi/netapi.c
677 lib/netapi/libnetapi.c
678 lib/netapi/joindomain.c
679 lib/netapi/serverinfo.c
683 lib/netapi/localgroup.c
688 lib/netapi/shutdown.c
689 lib/netapi/netlogon.c'''
691 LIBNETAPI_SRC
= '''${LIBNETAPI_SRC0}
693 ${LIBCLI_INITSHUTDOWN_SRC}
698 ${LIBCLI_NETLOGON_SRC}
699 rpc_client/init_netlogon.c
700 rpc_client/init_samr.c'''
702 # FIXME: bigballofmud
704 CLIENT_SRC1
= '''client/client.c client/clitar.c
705 client/dnsbrowse.c'''
707 CLIENT_SRC
= '''${CLIENT_SRC1}
709 rpc_client/init_lsa.c'''
711 LIBSMBCONF_SRC
= '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
712 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
713 lib/smbconf/smbconf_init.c'''
715 SMBCONFTORT_SRC0
= 'lib/smbconf/testsuite.c'
717 SMBCONFTORT_SRC
= '''${SMBCONFTORT_SRC0}'''
719 LIBNET_SRC
= 'libnet/libnet_join.c libnet/libnet_keytab.c'
722 LIBNET_DSSYNC_SRC
= '''libnet/libnet_dssync.c
723 libnet/libnet_dssync_keytab.c
724 ../libcli/drsuapi/repl_decrypt.c'''
726 LIBNET_SAMSYNC_SRC
= '''libnet/libnet_samsync.c
727 libnet/libnet_samsync_ldif.c
728 libnet/libnet_samsync_passdb.c
729 libnet/libnet_samsync_display.c
730 libnet/libnet_samsync_keytab.c
731 ../libcli/samsync/decrypt.c'''
733 NET_SRC1
= '''utils/net.c utils/net_ads.c utils/net_help.c
734 utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
735 utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
736 utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
737 utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
738 utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
739 utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
740 utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
741 utils/net_dns.c utils/net_ads_gpo.c
742 utils/net_conf.c utils/net_join.c utils/net_user.c
743 utils/net_group.c utils/net_file.c utils/net_registry.c
744 auth/token_util.c utils/net_dom.c utils/net_share.c
749 ${LIBCLI_SPOOLSS_SRC}
750 ${LIBCLI_DRSUAPI_SRC}
751 ${LIBCLI_INITSHUTDOWN_SRC}
752 ${LIBCLI_DSSETUP_SRC}
758 ${LIBCLI_NETLOGON_SRC}
759 rpc_client/init_netlogon.c
760 rpc_client/init_samr.c
761 registry/reg_parse.c registry/reg_format.c
762 registry/reg_parse_internal.c registry/reg_import.c
763 lib/cbuf.c lib/srprs.c'''
765 NET_SRC2
= 'utils/net_registry_util.c utils/net_help_common.c'
767 NET_SRC
= '''${NET_SRC1}
770 CUPS_SRC
= '''client/smbspool.c'''
772 NMBLOOKUP_SRC
= '''utils/nmblookup.c ${LIBNMB_SRC}'''
774 SMBTORTURE_SRC1
= '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
775 torture/denytest.c torture/mangle_test.c
777 torture/test_async_echo.c
778 torture/test_posix_append.c'''
780 SMBTORTURE_SRC
= '''${SMBTORTURE_SRC1} ${TLDAP_SRC}
781 ../nsswitch/libwbclient/wbc_async.c
782 ../nsswitch/libwbclient/wb_reqtrans.c'''
784 MASKTEST_SRC
= '''torture/masktest.c'''
786 MSGTEST_SRC
= '''torture/msgtest.c'''
788 LOCKTEST_SRC
= '''torture/locktest.c ${FNAME_UTIL_SRC}'''
790 NSSTEST_SRC
= '''../nsswitch/nsstest.c ${LIBSAMBAUTIL_SRC}'''
792 PDBTEST_SRC
= '''torture/pdbtest.c'''
794 VFSTEST_SRC
= '''torture/cmd_vfs.c torture/vfstest.c'''
796 SMBICONV_SRC
= '''torture/smbiconv.c'''
798 LOG2PCAP_SRC
= '''utils/log2pcaphex.c'''
800 LOCKTEST2_SRC
= '''torture/locktest2.c ${FNAME_UTIL_SRC}'''
802 SMBCACLS_SRC
= '''utils/smbcacls.c
805 SMBCQUOTAS_SRC
= '''utils/smbcquotas.c
808 EVTLOGADM_SRC0
= 'utils/eventlogadm.c'
810 EVTLOGADM_SRC
= '''${EVTLOGADM_SRC0}
811 registry/reg_eventlog.c'''
813 SHARESEC_SRC0
= 'utils/sharesec.c'
814 SHARESEC_SRC
= '''${SHARESEC_SRC0}'''
816 DEBUG2HTML_SRC
= '''utils/debug2html.c utils/debugparse.c'''
818 SMBFILTER_SRC
= '''utils/smbfilter.c'''
820 WINBIND_WINS_NSS_SRC
= '''../nsswitch/wins.c ${PARAM_SRC}
821 ${LIB_NONSMBD_SRC} ${LIBSMB_ERR_SRC} ${LIBNMB_SRC}'''
823 WBINFO_SRC
= '''../nsswitch/wbinfo.c'''
825 WINBIND_NSS_SRC
= '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
827 WINBIND_KRB5_LOCATOR_SRC1
= '../nsswitch/winbind_krb5_locator.c'
828 WINBIND_KRB5_LOCATOR_SRC
= '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
830 POPT_SRC
= '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
831 ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
833 NTLM_AUTH_SRC1
= '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
835 NTLM_AUTH_SRC
= '''${NTLM_AUTH_SRC1}
836 ../libcli/auth/spnego_parse.c libsmb/clikrb5.c libads/kerberos.c
837 libsmb/samlogon_cache.c
841 VLP_SRC
= '''printing/tests/vlp.c
842 ../lib/util/util_tdb.c
846 RPC_OPEN_TCP_SRC
= 'torture/rpc_open_tcp.c'
848 DBWRAP_TOOL_SRC
= 'utils/dbwrap_tool.c'
850 DBWRAP_TORTURE_SRC
= 'utils/dbwrap_torture.c'
852 SPLIT_TOKENS_SRC
= 'utils/split_tokens.c'
856 bld
.SAMBA_GENERATOR('build_options',
857 source
='include/config.h script/mkbuildoptions-waf.awk',
858 target
='smbd/build_options.c',
859 rule
='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
861 t
= bld
.SAMBA_GENERATOR('build_env.h',
862 source
='script/build_env.sh',
863 target
='include/build_env.h',
864 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
865 # todo: work out what is really wanted here
866 t
.env
.SRCDIR
= bld
.path
.abspath()
867 t
.env
.BUILDDIR
= bld
.path
.abspath()
870 bld
.SETUP_BUILD_GROUPS()
872 bld
.SAMBA_MKVERSION('include/version.h')
874 bld
.RECURSE('../lib/replace')
875 bld
.RECURSE('../libcli/smbreadline')
876 print "SBINDIR=%s" % bld
.env
.SBINDIR
879 bld
.RECURSE('../librpc')
880 bld
.RECURSE('librpc/idl')
881 bld
.RECURSE('librpc')
882 bld
.RECURSE('../libcli/security')
884 ######################## SUBSYSTEMS #################################
886 bld
.SAMBA_SUBSYSTEM('WBCOMMON',
889 bld
.SAMBA_LIBRARY('libwbclient',
890 source
='''../nsswitch/libwbclient/wbc_guid.c
891 ../nsswitch/libwbclient/wbc_idmap.c
892 ../nsswitch/libwbclient/wbclient.c
893 ../nsswitch/libwbclient/wbc_pam.c
894 ../nsswitch/libwbclient/wbc_pwd.c
895 ../nsswitch/libwbclient/wbc_sid.c
896 ../nsswitch/libwbclient/wbc_util.c''',
897 public_headers
='../nsswitch/libwbclient/wbclient.h',
898 private_library
=True,
899 public_deps
='talloc WBCOMMON')
901 bld
.SAMBA_LIBRARY('libnetapi',
902 source
=LIBNETAPI_SRC
,
903 public_deps
='''talloc tdb cap libwbclient LIB_NONSMBD LIBSMB KRBCLIENT
904 PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
905 LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL NDR_LIBNETAPI
906 RPC_CLIENT_SCHANNEL LIBSMBCONF REG_SMBCONF''',
907 public_headers
='lib/netapi/netapi.h',
908 private_library
=True,
911 bld
.SAMBA_LIBRARY('libsmbclient',
912 source
=LIBSMBCLIENT_SRC
,
913 public_deps
='''talloc tdb libwbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
914 LIBMSRPC_GEN LIBMSRPC''',
915 public_headers
='include/libsmbclient.h',
916 private_library
=True,
919 bld
.SAMBA_LIBRARY('smbsharemodes',
920 source
=LIBSMBSHAREMODES_SRC
,
921 public_deps
='''talloc tdb''',
922 public_headers
='include/smb_share_modes.h',
923 private_library
=True,
926 bld
.SAMBA_SUBSYSTEM('LIBMSRPC',
927 source
='${LIBMSRPC_SRC}',
928 deps
='ndr NDR_SECURITY NDR_DCERPC NDR_SCHANNEL',
931 bld
.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
933 deps
='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
936 bld
.SAMBA_SUBSYSTEM('LIBGPO',
937 source
='${LIBGPO_SRC}',
941 bld
.SAMBA_SUBSYSTEM('ASN1_UTIL',
942 source
='../lib/util/asn1.c',
946 bld
.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
947 source
=LIBCLI_LDAP_MESSAGE_SRC
)
949 bld
.SAMBA_SUBSYSTEM('LIBCLI_LDAP_NDR',
950 source
=LIBCLI_LDAP_NDR_SRC
)
952 bld
.SAMBA_SUBSYSTEM('AVAHI',
954 deps
='avahi-common avahi-client',
955 enabled
=bld
.env
.with_avahi
)
957 bld
.SAMBA_SUBSYSTEM('GROUPDB',
960 bld
.SAMBA_SUBSYSTEM('TLDAP',
962 deps
='ASN1_UTIL LIBTSOCKET')
964 bld
.SAMBA_SUBSYSTEM('PASSDB',
966 deps
='''GROUPDB TLDAP SECRETS SMBLDAP pdb''',
969 bld
.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
970 source
=PARAM_WITHOUT_REG_SRC
)
972 bld
.SAMBA_SUBSYSTEM('PARAM',
974 deps
='PARAM_WITHOUT_REG DYNCONFIG LIBSMBCONF',
977 bld
.SAMBA_SUBSYSTEM('REGFIO',
981 bld
.SAMBA_SUBSYSTEM('REG_API_REGF',
982 source
=REG_API_REGF_SRC
,
985 bld
.SAMBA_SUBSYSTEM('REG_BASE',
989 bld
.SAMBA_SUBSYSTEM('REG_SMBCONF',
990 source
=REG_SMBCONF_SRC
,
994 bld
.SAMBA_SUBSYSTEM('REG_FULL',
999 bld
.SAMBA_SUBSYSTEM('POPT_SAMBA',
1000 source
=POPT_LIB_SRC
,
1003 bld
.SAMBA_SUBSYSTEM('KRBCLIENT',
1004 source
=KRBCLIENT_SRC
,
1005 deps
='krb5 k5crypto com_err gssapi gssapi_krb5',
1008 bld
.SAMBA_SUBSYSTEM('LIBS',
1010 deps
='iconv LIBCRYPTO ndr security NDR_SECURITY charset NDR_MESSAGING',
1013 bld
.SAMBA_SUBSYSTEM('LIB_NONSMBD',
1014 source
=LIB_NONSMBD_SRC
,
1018 bld
.SAMBA_SUBSYSTEM('LIBSMB_ERR',
1019 source
=LIBSMB_ERR_SRC
,
1020 deps
='SECRETS ldap lber',
1023 bld
.SAMBA_SUBSYSTEM('LIBSAMBA',
1024 source
=LIBSAMBA_SRC
,
1025 deps
='LIBSMB_ERR NDR_NTLMSSP',
1028 bld
.SAMBA_SUBSYSTEM('LIBSMB',
1030 deps
='LIBSAMBA z LZXPRESS CLDAP',
1033 bld
.SAMBA_SUBSYSTEM('CLDAP',
1035 deps
='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
1038 bld
.SAMBA_SUBSYSTEM('SECRETS',
1043 bld
.SAMBA_SUBSYSTEM('SMBLDAP',
1048 bld
.SAMBA_SUBSYSTEM('LIBADS',
1050 deps
='LIBCLI_LDAP_NDR',
1053 bld
.SAMBA_SUBSYSTEM('LIBADS_SERVER',
1054 source
=LIBADS_SERVER_SRC
,
1058 bld
.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
1059 source
=LIBADS_PRINTER_SRC
,
1062 bld
.SAMBA_SUBSYSTEM('LIBAFS',
1066 bld
.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
1067 source
=AFS_SETTOKEN_SRC
,
1070 bld
.SAMBA_SUBSYSTEM('LIBSMBCONF',
1071 source
=LIBSMBCONF_SRC
,
1072 deps
='REG_BASE REG_SMBCONF',
1075 bld
.SAMBA_SUBSYSTEM('SMBD_BASE',
1076 source
=SMBD_SRC_BASE
,
1077 deps
='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
1078 DYNCONFIG libwbclient crypt nsl cups cap resolv z PASSDB
1079 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
1080 LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
1081 vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
1082 PRINTING PRINTBACKEND NDR_XATTR REGFIO
1087 bld
.SAMBA_SUBSYSTEM('LOCKING',
1088 source
='${LOCKING_SRC}',
1089 deps
='''tdb talloc''',
1092 bld
.SAMBA_SUBSYSTEM('PROFILE',
1093 source
='${PROFILE_SRC}',
1096 bld
.SAMBA_SUBSYSTEM('PRINTBASE',
1097 source
=PRINTBASE_SRC
,
1100 bld
.SAMBA_SUBSYSTEM('PRINTBACKEND',
1101 source
=PRINTBACKEND_SRC
,
1102 deps
='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
1105 bld
.SAMBA_SUBSYSTEM('PRINTING',
1106 source
=PRINTING_SRC
,
1109 bld
.SAMBA_SUBSYSTEM('PASSWD_UTIL',
1110 source
=PASSWD_UTIL_SRC
,
1113 bld
.SAMBA_SUBSYSTEM('LIBNET',
1115 deps
='NDR_LIBNET_JOIN',
1118 bld
.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
1119 source
=LIBNET_DSSYNC_SRC
,
1123 bld
.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
1124 source
=LIBNET_SAMSYNC_SRC
,
1128 bld
.SAMBA_SUBSYSTEM('LIBEVENTLOG',
1129 source
=LIB_EVENTLOG_SRC
,
1130 deps
='NDR_EVENTLOG',
1133 bld
.SAMBA_SUBSYSTEM('SERVICES',
1134 source
=SERVICES_SRC
,
1137 bld
.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1138 source
=PLAINTEXT_AUTH_SRC
,
1141 bld
.SAMBA_SUBSYSTEM('SLCACHE',
1145 bld
.SAMBA_SUBSYSTEM('DCUTIL',
1149 bld
.SAMBA_SUBSYSTEM('ndr',
1154 bld
.SAMBA_SUBSYSTEM('ndr-standard',
1157 NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
1158 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
1159 NDR_ECHO security NDR_DNS
1164 bld
.SAMBA_SUBSYSTEM('dcerpc', '')
1166 bld
.SAMBA_SUBSYSTEM('LZXPRESS',
1168 source
='../lib/compression/lzxpress.c')
1170 bld
.SAMBA_SUBSYSTEM('NDR_SECURITY',
1171 source
='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1175 bld
.SAMBA_SUBSYSTEM('NDR_DCERPC',
1176 source
='../librpc/gen_ndr/ndr_dcerpc.c',
1179 bld
.SAMBA_SUBSYSTEM('errors',
1180 source
='../libcli/util/doserr.c libsmb/nterr.c')
1182 bld
.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1183 source
='../libcli/nbt/nbtname.c',
1185 autoproto
='nbtname.h')
1187 bld
.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1188 source
='../libcli/ndr_netlogon.c',
1189 public_deps
='ndr NDR_SECURITY')
1191 bld
.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1192 source
='../librpc/gen_ndr/cli_winreg.c',
1193 public_deps
='RPC_NDR_WINREG')
1195 bld
.SAMBA_SUBSYSTEM('RPCCLI_ECHO',
1196 source
='../librpc/gen_ndr/cli_echo.c',
1197 public_deps
='RPC_NDR_ECHO')
1199 bld
.SAMBA_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
1200 source
=RPC_CLIENT_SCHANNEL_SRC
,
1204 ########################## BINARIES #################################
1206 bld
.SAMBA_BINARY('smbd/smbd',
1207 source
='${SMBD_SRC_MAIN}',
1208 deps
='''SMBD_BASE''',
1209 install_path
='${SBINDIR}',
1212 bld
.SAMBA_BINARY('nmbd/nmbd',
1214 deps
='''talloc tdb tevent z cap resolv libwbclient dl
1215 PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1216 POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1217 install_path
='${SBINDIR}',
1220 bld
.SAMBA_BINARY('winbindd/winbindd',
1221 source
=WINBINDD_SRC
,
1222 deps
='''talloc tdb tevent cap dl z
1223 libwbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1224 POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1225 SRV_NDR_WBINT RPCCLI_NDR_WBINT LIBAFS
1226 LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1228 enabled
=bld
.env
.build_winbind
,
1229 install_path
='${SBINDIR}',
1232 bld
.SAMBA_BINARY('web/swat',
1234 deps
='''talloc tevent cap LIBS LIBSMB libwbclient PARAM
1235 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1236 LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING''',
1237 enabled
=bld
.env
.build_swat
,
1238 install_path
='${SBINDIR}',
1241 bld
.SAMBA_BINARY('rpcclient/rpcclient',
1242 source
=RPCCLIENT_SRC
,
1243 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1244 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1245 LIBADS SMBREADLINE DCUTIL RPCCLI_WINREG RPCCLI_ECHO
1246 RPC_CLIENT_SCHANNEL''',
1249 bld
.SAMBA_BINARY('smbclient',
1251 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1252 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN
1253 LIBMSRPC SMBREADLINE libsmbclient''',
1256 bld
.SAMBA_BINARY('net',
1258 deps
='''talloc tdb libnetapi libaddns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1259 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1260 LOCALE_DIR LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
1261 LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
1262 REGFIO NDR_NTPRINTING RPCCLI_WINREG
1263 RPC_CLIENT_SCHANNEL''',
1266 bld
.SAMBA_BINARY('profiles',
1267 source
=PROFILES_SRC
,
1268 deps
='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD REGFIO''',
1271 bld
.SAMBA_BINARY('smbspool',
1273 deps
='''talloc tdb tevent resolv cap libwbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1274 KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1277 bld
.SAMBA_BINARY('testparm',
1278 source
=TESTPARM_SRC
,
1279 deps
='''talloc tevent ldap cap
1280 libwbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1281 LIBSMB_ERR POPT_SAMBA''',
1284 bld
.SAMBA_BINARY('smbta-util',
1285 source
=SMBTA_UTIL_SRC
,
1286 deps
='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1290 bld
.SAMBA_BINARY('smbstatus',
1292 deps
='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1293 LIBSMB_ERR LOCKING PROFILE''',
1296 bld
.SAMBA_BINARY('smbcontrol',
1297 source
=SMBCONTROL_SRC
,
1298 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA PRINTBASE''',
1301 bld
.SAMBA_BINARY('smbtree',
1303 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1304 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE''',
1307 bld
.SAMBA_BINARY('smbpasswd',
1308 source
=SMBPASSWD_SRC
,
1309 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1310 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL''',
1313 bld
.SAMBA_BINARY('pdbedit',
1315 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1316 LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1317 PASSWD_UTIL LIBCLI_LDAP_NDR''',
1320 bld
.SAMBA_BINARY('smbget',
1322 deps
='''talloc tdb libsmbclient POPT_SAMBA''',
1325 bld
.SAMBA_BINARY('nmblookup',
1326 source
=NMBLOOKUP_SRC
,
1327 deps
='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1330 bld
.SAMBA_BINARY('smbtorture',
1331 source
=SMBTORTURE_SRC
,
1332 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1333 LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_LSA LIBMSRPC LIBMSRPC_GEN RPCCLI_ECHO''',
1336 bld
.SAMBA_BINARY('smbconftort',
1337 source
=SMBCONFTORT_SRC
,
1338 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1341 bld
.SAMBA_BINARY('masktest',
1342 source
=MASKTEST_SRC
,
1343 deps
='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1344 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1347 bld
.SAMBA_BINARY('msgtest',
1349 deps
='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1352 bld
.SAMBA_BINARY('smbcacls',
1353 source
=SMBCACLS_SRC
,
1354 deps
='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1355 LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1359 bld
.SAMBA_BINARY('smbcquotas',
1360 source
=SMBCQUOTAS_SRC
,
1361 deps
='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1362 POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC''',
1365 bld
.SAMBA_BINARY('eventlogadm',
1366 source
=EVTLOGADM_SRC
,
1367 deps
='''talloc tevent cap POPT_SAMBA LIBS PARAM
1368 LIB_NONSMBD LIBSMB_ERR PASSDB libwbclient LIBEVENTLOG''',
1371 bld
.SAMBA_BINARY('sharesec',
1372 source
=SHARESEC_SRC
,
1373 deps
='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1376 bld
.SAMBA_BINARY('locktest',
1377 source
=LOCKTEST_SRC
,
1378 deps
='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1379 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1382 bld
.SAMBA_BINARY('nsstest',
1387 bld
.SAMBA_BINARY('pdbtest',
1389 deps
='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1390 SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1393 bld
.SAMBA_BINARY('vfstest',
1395 deps
='''SMBD_BASE SMBREADLINE''',
1398 bld
.SAMBA_BINARY('smbiconv',
1399 source
=SMBICONV_SRC
,
1400 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1403 bld
.SAMBA_BINARY('log2pcap',
1404 source
=LOG2PCAP_SRC
,
1405 deps
='''talloc popt''',
1408 bld
.SAMBA_BINARY('locktest2',
1409 source
=LOCKTEST2_SRC
,
1410 deps
='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1411 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1414 bld
.SAMBA_BINARY('debug2html',
1415 source
=DEBUG2HTML_SRC
,
1416 deps
='''talloc popt''',
1419 bld
.SAMBA_BINARY('smbfilter',
1420 source
=SMBFILTER_SRC
,
1421 deps
='''talloc tevent cap resolv libwbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1422 NDR_SAMR NDR_LSA''',
1425 bld
.SAMBA_BINARY('versiontest',
1426 source
='lib/version_test.c ${VERSION_SRC}',
1429 bld
.SAMBA_BINARY('wbinfo',
1431 deps
='''talloc libwbclient tevent cap
1432 ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1433 LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1436 bld
.SAMBA_BINARY('ntlm_auth',
1437 source
=NTLM_AUTH_SRC
,
1438 deps
='''tdb talloc cap resolv krb5 k5crypto com_err libwbclient PARAM LIB_NONSMBD
1439 LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1440 PASSDB GROUPDB SMBLDAP WBCOMMON LIBINIPARSER LIBADS_SERVER
1441 NDR_SAMR NDR_LSA NDR_NETLOGON LIBCLI_LDAP_NDR''',
1444 bld
.SAMBA_BINARY('timelimit',
1445 source
='script/tests/timelimit.c',
1448 bld
.SAMBA_BINARY('rpc_open_tcp',
1449 source
=RPC_OPEN_TCP_SRC
,
1450 deps
='''talloc tdb tevent resolv cap libwbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1451 LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1454 bld
.SAMBA_BINARY('test_lp_load',
1455 source
=TEST_LP_LOAD_SRC
,
1456 deps
='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1459 bld
.SAMBA_BINARY('dbwrap_tool',
1460 source
=DBWRAP_TOOL_SRC
,
1461 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1464 bld
.SAMBA_BINARY('dbwrap_torture',
1465 source
=DBWRAP_TORTURE_SRC
,
1466 deps
='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1470 bld
.SAMBA_BINARY('split_tokens',
1471 source
=SPLIT_TOKENS_SRC
,
1472 deps
='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA
1476 bld
.SAMBA_BINARY('vlp',
1478 deps
='''talloc tdb''',
1481 swat_files
=recursive_dirlist('../swat', '../swat', '*')
1482 bld
.INSTALL_FILES('${SWATDIR}', swat_files
, base_name
='../swat')
1484 ########################## INCLUDES #################################
1486 bld
.RECURSE('../lib/socket_wrapper')
1487 bld
.RECURSE('../lib/talloc')
1488 bld
.RECURSE('../lib/tdb')
1489 bld
.RECURSE('../lib/nss_wrapper')
1490 bld
.RECURSE('../lib/tevent')
1491 bld
.RECURSE('../lib/popt')
1492 bld
.RECURSE('../lib/zlib')
1493 bld
.RECURSE('../lib/tsocket')
1494 bld
.RECURSE('../lib/iniparser/src')
1495 bld
.RECURSE('../lib/crypto')
1496 bld
.RECURSE('modules')
1498 bld
.RECURSE('passdb')
1499 bld
.RECURSE('winbindd')
1500 bld
.RECURSE('libgpo/gpext')
1501 bld
.RECURSE('pam_smbpass')
1502 bld
.RECURSE('rpc_server')
1503 bld
.RECURSE('libaddns')
1505 bld
.ENFORCE_GROUP_ORDERING()
1506 bld
.CHECK_PROJECT_RULES()