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 ../lib/compression/lzxpress.c'
40 DRSUAPI_SRC
= '''${LIBNDR_DRSUAPI_SRC}
43 LIBNDR_NTLMSSP_SRC
= '''../librpc/gen_ndr/ndr_ntlmssp.c
44 ../librpc/ndr/ndr_ntlmssp.c'''
46 LIBNDR_SRC
= '''../librpc/ndr/ndr_basic.c
48 ../librpc/ndr/ndr_misc.c
49 ../librpc/gen_ndr/ndr_misc.c
50 ../librpc/gen_ndr/ndr_security.c
51 ../librpc/ndr/ndr_sec_helper.c
52 ../librpc/ndr/ndr_string.c
55 ../librpc/gen_ndr/ndr_dcerpc.c'''
57 LIBNDR_GEN_SRC0
= '''../librpc/gen_ndr/ndr_samr.c
58 ../librpc/gen_ndr/ndr_lsa.c'''
60 LIBNDR_NETLOGON_SRC
= '''../librpc/gen_ndr/ndr_netlogon.c
61 ../librpc/ndr/ndr_netlogon.c'''
63 LIBNDR_SCHANNEL_SRC
= '''../librpc/gen_ndr/ndr_schannel.c
64 ../librpc/ndr/ndr_schannel.c'''
66 LIBNDR_SPOOLSS_SRC
= '''../librpc/gen_ndr/ndr_spoolss.c
67 ../librpc/ndr/ndr_spoolss_buf.c'''
69 LIBNDR_XATTR_SRC
= '''../librpc/gen_ndr/ndr_xattr.c
70 ../librpc/ndr/ndr_xattr.c'''
72 LIBCLI_SPOOLSS_SRC
= '''
73 librpc/gen_ndr/cli_spoolss.c
74 librpc/gen_ndr/ndr_spoolss_c.c
75 rpc_client/cli_spoolss.c
76 rpc_client/init_spoolss.c'''
78 LIBCLI_EVENTLOG_SRC
= '''
79 librpc/gen_ndr/cli_eventlog.c
80 librpc/gen_ndr/ndr_eventlog_c.c'''
82 LIBCLI_WINREG_SRC
= '''
83 librpc/gen_ndr/cli_winreg.c
84 librpc/gen_ndr/ndr_winreg_c.c'''
86 LIBCLI_NTSVCS_SRC
= '''
87 librpc/gen_ndr/cli_ntsvcs.c
88 librpc/gen_ndr/ndr_ntsvcs_c.c'''
90 LIBCLI_DRSUAPI_SRC
= '''
91 librpc/gen_ndr/cli_drsuapi.c
92 librpc/gen_ndr/ndr_drsuapi_c.c'''
95 librpc/gen_ndr/cli_dfs.c
96 librpc/gen_ndr/ndr_dfs_c.c'''
99 librpc/gen_ndr/cli_echo.c
100 librpc/gen_ndr/ndr_echo_c.c'''
102 LIBCLI_INITSHUTDOWN_SRC
= '''
103 librpc/gen_ndr/cli_initshutdown.c
104 librpc/gen_ndr/ndr_initshutdown_c.c'''
106 LIBCLI_DSSETUP_SRC
= '''
107 librpc/gen_ndr/cli_dssetup.c
108 librpc/gen_ndr/ndr_dssetup_c.c'''
110 LIBCLI_SVCCTL_SRC
= '''
111 librpc/gen_ndr/cli_svcctl.c
112 librpc/gen_ndr/ndr_svcctl_c.c'''
114 LIBCLI_WKSSVC_SRC
= '''
115 librpc/gen_ndr/cli_wkssvc.c
116 librpc/gen_ndr/ndr_wkssvc_c.c'''
118 LIBCLI_SRVSVC_SRC
= '''
119 librpc/gen_ndr/cli_srvsvc.c
120 librpc/gen_ndr/ndr_srvsvc_c.c'''
123 librpc/gen_ndr/cli_lsa.c
124 librpc/gen_ndr/ndr_lsa_c.c
125 rpc_client/cli_lsarpc.c
126 rpc_client/init_lsa.c'''
128 LIBCLI_SAMR_SRC
= '''
129 librpc/gen_ndr/cli_samr.c
130 librpc/gen_ndr/ndr_samr_c.c
131 rpc_client/cli_samr.c'''
133 LIBCLI_NETLOGON_SRC
= '''
134 librpc/gen_ndr/cli_netlogon.c
135 librpc/gen_ndr/ndr_netlogon_c.c
136 rpc_client/cli_netlogon.c'''
138 LIBCLI_EPMAPPER_SRC
= '''
139 librpc/gen_ndr/cli_epmapper.c
140 librpc/gen_ndr/ndr_epmapper_c.c'''
142 LIBNDR_GEN_SRC
= '''../librpc/gen_ndr/ndr_wkssvc.c
144 ../librpc/gen_ndr/ndr_dfs.c
145 ../librpc/gen_ndr/ndr_echo.c
146 ../librpc/gen_ndr/ndr_winreg.c
147 ../librpc/gen_ndr/ndr_initshutdown.c
148 ../librpc/gen_ndr/ndr_srvsvc.c
149 ../librpc/gen_ndr/ndr_eventlog.c
150 ${LIBNDR_NETLOGON_SRC}
151 ../librpc/gen_ndr/ndr_dssetup.c
152 ../librpc/gen_ndr/ndr_epmapper.c
153 ../librpc/gen_ndr/ndr_ntsvcs.c
154 ${LIBNDR_SPOOLSS_SRC}'''
156 LIBNDR_NTPRINTING_SRC
= '''../librpc/gen_ndr/ndr_ntprinting.c
157 ../librpc/ndr/ndr_ntprinting.c'''
159 # this includes only the low level parse code, not stuff
160 # that requires knowledge of security contexts
161 REG_PARSE_PRS_SRC
= '''registry/reg_parse_prs.c'''
163 LIBREPLACE_SRC
= '''${LIBREPLACE_SRCS}'''
165 SOCKET_WRAPPER_SRC
= '''${SOCKET_WRAPPER_SRCS}'''
166 NSS_WRAPPER_SRC
= '''${NSS_WRAPPER_SRCS}'''
168 LIBSAMBAUTIL_SRC
= '''
170 ${SOCKET_WRAPPER_SRC}
171 ${NSS_WRAPPER_SRC}'''
173 UTIL_SRC
= '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
174 ../lib/util/xfile.c ../lib/util/util_strlist.c
175 ../lib/util/util_file.c ../lib/util/data_blob.c
176 ../lib/util/util.c ../lib/util/fsusage.c
177 ../lib/util/params.c ../lib/util/talloc_stack.c
178 ../lib/util/genrand.c ../lib/util/util_net.c
179 ../lib/util/become_daemon.c ../lib/util/system.c
180 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
181 ../lib/util/smb_threads.c ../lib/util/util_id.c
182 ../lib/util/blocking.c ../lib/util/rfc1738.c '''
184 CRYPTO_SRC
= '''../lib/crypto/crc32.c ../lib/crypto/md5.c
185 ../lib/crypto/hmacmd5.c ../lib/crypto/arcfour.c
187 ../lib/crypto/sha256.c ../lib/crypto/hmacsha256.c
188 ../lib/crypto/aes.c ../lib/crypto/rijndael-alg-fst.c'''
196 SOCKET_WRAPPER_SRCS
= ''
198 NSS_WRAPPER_SRCS
= ''
202 LIB_SRC
= '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC} ${CRYPTO_SRC}
203 lib/messages.c librpc/gen_ndr/ndr_messaging.c lib/messages_local.c
204 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
205 lib/interfaces.c lib/memcache.c
209 lib/util_transfer_file.c ../lib/async_req/async_sock.c
211 ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
212 lib/interface.c lib/pidfile.c
213 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
215 ../libds/common/flag_mapping.c
216 lib/util_pw.c lib/access.c lib/smbrun.c
217 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
219 lib/util_str.c lib/clobber.c lib/util_sid.c lib/util_uuid.c
220 lib/util_unistr.c lib/util_file.c lib/util_names.c
221 lib/util.c lib/util_sock.c lib/sock_exec.c lib/util_sec.c
222 lib/substitute.c lib/dbwrap_util.c
223 lib/ms_fnmatch.c lib/select.c lib/errmap_unix.c
224 lib/tallocmsg.c lib/dmallocmsg.c
225 libsmb/clisigning.c libsmb/smb_signing.c
226 lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
227 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
229 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
230 lib/server_contexts.c
231 lib/ldap_escape.c ${CHARSET_STATIC}
232 lib/secdesc.c lib/util_seaccess.c ../libcli/security/secace.c
233 ../libcli/security/sddl.c
234 ../libcli/security/secacl.c ${PTHREADPOOL_SRC}
236 libads/krb5_errs.c lib/system_smbd.c lib/audit.c ${LIBNDR_SRC}
237 lib/file_id.c lib/idmap_cache.c
238 ../libcli/security/dom_sid.c ../libcli/security/security_descriptor.c'''
240 LIB_DUMMY_SRC
= '''lib/dummysmbd.c lib/dummyroot.c'''
241 LIB_NONSMBD_SRC
= '''${LIB_DUMMY_SRC}'''
243 READLINE_SRC
= '''lib/readline.c'''
245 POPT_LIB_SRC
= '''lib/popt_common.c'''
247 PARAM_WITHOUT_REG_SRC
= '''param/loadparm.c param/util.c param/loadparm_server_role.c
248 lib/sharesec.c lib/ldap_debug_handler.c'''
249 PARAM_REG_ADD_SRC
= '''${REG_SMBCONF_SRC} ${LIBSMBCONF_SRC} ${PRIVILEGES_BASIC_SRC}'''
250 PARAM_SRC
= '''${PARAM_REG_ADD_SRC}'''
252 KRBCLIENT_SRC
= '''libads/kerberos.c libads/ads_status.c'''
254 LIBADDNS_SRC0
= '''libaddns/dnsrecord.c libaddns/dnsutils.c libaddns/dnssock.c
255 libaddns/dnsgss.c libaddns/dnsmarshall.c'''
256 LIBADDNS_SRC
= '''${LIBADDNS_SRC0} ${SOCKET_WRAPPER_SRC}'''
259 GPEXT_REGISTRY_SRC
= 'libgpo/gpext/registry.c'
260 GPEXT_SCRIPTS_SRC
= 'libgpo/gpext/scripts.c'
261 GPEXT_SECURITY_SRC
= 'libgpo/gpext/security.c'
263 GPEXT_SRC
= '''../libgpo/gpext/gpext.c ${GPEXT_STATIC}'''
265 LIBGPO_SRC0
= '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
266 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
269 LIBGPO_SRC
= '''${LIBGPO_SRC0}'''
271 LIBADS_SRC
= '''libads/ldap.c
272 libads/sasl.c libads/sasl_wrapping.c
274 libads/kerberos_util.c
276 libads/ads_struct.c libads/kerberos_keytab.c
277 libads/disp_sec.c libads/ldap_utils.c
278 libads/ldap_schema.c libads/util.c libads/ndr.c'''
280 LIBADS_PRINTER_SRC
= '''libads/ldap_printer.c'''
282 LIBADS_SERVER_SRC
= '''libads/kerberos_verify.c libads/authdata.c
283 ../librpc/ndr/ndr_krb5pac.c
284 ../librpc/gen_ndr/ndr_krb5pac.c'''
286 LIBNBT_SRC
= '''../libcli/nbt/nbtname.c
288 ../libcli/ndr_netlogon.c
289 ../librpc/gen_ndr/ndr_nbt.c
290 ../librpc/gen_ndr/ndr_svcctl.c
291 ../librpc/ndr/ndr_svcctl.c'''
293 LIBNMB_SRC
= '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
294 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
295 libads/dns.c libads/sitename_cache.c'''
297 NTERR_SRC
= '''libsmb/nterr.c libsmb/smberr.c'''
298 DOSERR_SRC
= '../libcli/util/doserr.c'
299 ERRORMAP_SRC
= 'libsmb/errormap.c'
300 DCE_RPC_ERR_SRC
= '../librpc/rpc/dcerpc_error.c'
302 LIBSMB_ERR_SRC0
= '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
304 LIBSMB_ERR_SRC1
= '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
306 LIBSMB_ERR_SRC
= '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1} ${REG_PARSE_PRS_SRC}'
309 ../libcli/auth/ntlm_check.c
311 libsmb/ntlmssp_wrap.c
312 ../libcli/auth/ntlmssp.c
313 ../libcli/auth/ntlmssp_sign.c
314 ${LIBNDR_NTLMSSP_SRC}
315 ../libcli/auth/ntlmssp_ndr.c
316 ../libcli/auth/ntlmssp_server.c'''
318 LIBSAMBA_SRC
= '${LIBSMB_SRC0}'
320 LIBCLI_LDAP_MESSAGE_SRC
= '''../libcli/ldap/ldap_message.c'''
321 LIBCLI_LDAP_NDR_SRC
= '''../libcli/ldap/ldap_ndr.c'''
323 CLDAP_SRC
= '''libads/cldap.c
324 ../libcli/cldap/cldap.c lib/ldb_compat.c
326 ${LIBCLI_LDAP_MESSAGE_SRC} ${LIBCLI_LDAP_NDR_SRC}'''
328 TLDAP_SRC
= '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
330 SCHANNEL_SRC
= '''../libcli/auth/credentials.c
331 ../libcli/auth/schannel_sign.c
332 ../libcli/auth/schannel_state_tdb.c
333 ${LIBNDR_SCHANNEL_SRC}'''
335 LIBSMB_SRC
= '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
336 libsmb/clikrb5.c libsmb/clispnego.c
337 ../libcli/auth/spnego_parse.c
338 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
339 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
340 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
341 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
342 libsmb/clioplock.c libsmb/clirap2.c
343 libsmb/smb_seal.c libsmb/async_smb.c
351 rpc_client/cli_pipe.c
352 librpc/rpc/rpc_common.c
353 librpc/rpc/dcerpc_gssapi.c
354 librpc/rpc/dcerpc_krb5.c
355 librpc/rpc/dcerpc_spnego.c
356 rpc_client/rpc_transport_np.c
357 rpc_client/rpc_transport_sock.c
358 ../librpc/rpc/binding.c
359 ../librpc/rpc/dcerpc_util.c
360 librpc/rpc/dcerpc_helpers.c
361 ../librpc/rpc/binding_handle.c'''
363 LIBMSRPC_GEN_SRC
= '''
364 ${LIBCLI_EPMAPPER_SRC}
368 # registry-related objects
370 UTIL_REG_SRC
= '''../libcli/registry/util_reg.c'''
372 REG_INIT_BASIC_SRC
= '''registry/reg_init_basic.c'''
373 REG_INIT_SMBCONF_SRC
= '''registry/reg_init_smbconf.c'''
374 REG_INIT_FULL_SRC
= '''registry/reg_init_full.c'''
376 REGFIO_SRC
= '''registry/regfio.c'''
378 REGSRCS_SRC
= '''registry/reg_objects.c'''
380 REG_BACKENDS_BASE_SRC
= '''registry/reg_backend_db.c'''
382 REG_BACKENDS_SMBCONF_SRC
= '''registry/reg_backend_smbconf.c'''
384 REG_BACKENDS_EXTRA_SRC
= '''registry/reg_backend_printing.c
385 registry/reg_backend_shares.c
386 registry/reg_backend_netlogon_params.c
387 registry/reg_backend_prod_options.c
388 registry/reg_backend_tcpip_params.c
389 registry/reg_backend_hkpt_params.c
390 registry/reg_backend_current_version.c
391 registry/reg_backend_perflib.c'''
393 REG_BASE_SRC
= '''registry/reg_api.c
394 registry/reg_dispatcher.c
395 registry/reg_cachehook.c
398 registry/reg_util_internal.c
400 ${REG_BACKENDS_BASE_SRC}
401 ${REG_INIT_BASIC_SRC}'''
403 REG_SMBCONF_SRC
= '''${REG_BASE_SRC}
404 ${REG_BACKENDS_SMBCONF_SRC}
405 ${REG_INIT_SMBCONF_SRC}
406 registry/reg_util_token.c'''
408 REG_FULL_SRC
= '''${REG_SMBCONF_SRC}
409 ${REG_BACKENDS_EXTRA_SRC}
411 registry/reg_eventlog.c
412 registry/reg_perfcount.c
413 librpc/gen_ndr/ndr_perfcount.c
414 registry/reg_util_legacy.c'''
416 LIB_EVENTLOG_SRC
= '''lib/eventlog/eventlog.c'''
420 RPC_LSARPC_SRC
= '''rpc_server/srv_lsa_nt.c
421 ../librpc/gen_ndr/srv_lsa.c'''
423 RPC_NETLOGON_SRC
= '''rpc_server/srv_netlog_nt.c
424 ../librpc/gen_ndr/srv_netlogon.c'''
426 RPC_SAMR_SRC
= '''rpc_server/srv_samr_nt.c
427 rpc_server/srv_samr_util.c
428 rpc_server/srv_samr_chgpasswd.c
429 ../librpc/gen_ndr/srv_samr.c'''
431 RPC_INITSHUTDOWN_SRC
= ''' ../librpc/gen_ndr/srv_initshutdown.c rpc_server/srv_initshutdown_nt.c'''
433 RPC_WINREG_SRC
= '''rpc_server/srv_winreg_nt.c
434 ../librpc/gen_ndr/srv_winreg.c'''
436 RPC_DSSETUP_SRC
= ''' rpc_server/srv_dssetup_nt.c ../librpc/gen_ndr/srv_dssetup.c'''
438 RPC_SRVSVC_SRC
= '''rpc_server/srv_srvsvc_nt.c
439 ../librpc/gen_ndr/srv_srvsvc.c'''
441 RPC_WKSSVC_SRC
= '''../librpc/gen_ndr/srv_wkssvc.c
442 rpc_server/srv_wkssvc_nt.c'''
444 RPC_SVCCTL_SRC
= ''' rpc_server/srv_svcctl_nt.c
445 ../librpc/gen_ndr/srv_svcctl.c
446 services/svc_spoolss.c services/svc_rcinit.c services/services_db.c
447 services/svc_netlogon.c services/svc_winreg.c
448 services/svc_wins.c'''
450 RPC_NTSVCS_SRC
= '''rpc_server/srv_ntsvcs_nt.c
451 ../librpc/gen_ndr/srv_ntsvcs.c'''
453 RPC_NETDFS_SRC
= '''../librpc/gen_ndr/srv_dfs.c
454 rpc_server/srv_dfs_nt.c'''
456 RPC_SPOOLSS_SRC
= '''rpc_server/srv_spoolss_nt.c
457 rpc_server/srv_spoolss_util.c
458 ../librpc/gen_ndr/srv_spoolss.c'''
460 RPC_EVENTLOG_SRC
= '''rpc_server/srv_eventlog_nt.c
461 ${LIB_EVENTLOG_SRC} ../librpc/gen_ndr/srv_eventlog.c'''
463 NPA_TSTREAM_SRC
= '''../libcli/named_pipe_auth/npa_tstream.c
464 ../librpc/gen_ndr/ndr_named_pipe_auth.c'''
466 RPC_NCACN_NP_INTERNAL
= '''rpc_server/srv_pipe_register.c rpc_server/rpc_ncacn_np_internal.c
467 rpc_server/rpc_handles.c'''
469 RPC_PIPE_SRC
= '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
470 ${RPC_NCACN_NP_INTERNAL}'''
472 RPC_RPCECHO_SRC
= '''rpc_server/srv_echo_nt.c ../librpc/gen_ndr/srv_echo.c'''
474 RPC_SERVER_SRC
= '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC} ${RPC_STATIC}'''
476 RPC_CLIENT_SCHANNEL_SRC
= '''rpc_client/cli_pipe_schannel.c'''
478 LOCKING_SRC
= '''locking/locking.c locking/brlock.c locking/posix.c'''
480 PRIVILEGES_BASIC_SRC
= '''../libcli/security/privileges.c'''
482 PRIVILEGES_SRC
= '''lib/privileges.c'''
484 PASSDB_GET_SET_SRC
= '''passdb/pdb_get_set.c'''
487 PDB_TDBSAM_SRC
= 'passdb/pdb_tdb.c'
488 PDB_LDAP_SRC
= 'passdb/pdb_ldap.c passdb/pdb_nds.c'
489 PDB_ADS_SRC
= 'passdb/pdb_ads.c'
490 PDB_SMBPASSWD_SRC
= 'passdb/pdb_smbpasswd.c'
491 PDB_WBC_SAM_SRC
= 'passdb/pdb_wbc_sam.c'
493 SECRETS_SRC
= '''passdb/secrets.c passdb/machine_account_secrets.c
494 passdb/machine_sid.c librpc/gen_ndr/ndr_secrets.c'''
496 PASSDB_SRC
= '''${PASSDB_GET_SET_SRC} passdb/passdb.c passdb/pdb_interface.c
497 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
498 passdb/util_unixsids.c passdb/lookup_sid.c
499 passdb/login_cache.c ${PDB_STATIC}
500 passdb/account_pol.c ${PRIVILEGES_SRC}
501 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
502 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
505 CHARSET_WEIRD_SRC
= 'modules/weird.c'
506 CHARSET_CP850_SRC
= 'modules/CP850.c'
507 CHARSET_CP437_SRC
= 'modules/CP437.c'
508 CHARSET_MACOSXFS_SRC
= 'modules/charset_macosxfs.c'
510 GROUPDB_SRC
= '''groupdb/mapping.c groupdb/mapping_tdb.c'''
512 PROFILE_SRC
= '''profile/profile.c'''
513 PROFILES_SRC
= '''utils/profiles.c
516 ${LIB_SRC} ${LIB_DUMMY_SRC}'''
518 OPLOCK_SRC
= '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
519 smbd/oplock_onefs.c'''
521 NOTIFY_SRC
= '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c
522 librpc/gen_ndr/ndr_notify.c'''
524 FNAME_UTIL_SRC
= '''smbd/filename_util.c'''
527 VFS_DEFAULT_SRC
= '''modules/vfs_default.c'''
528 VFS_AUDIT_SRC
= '''modules/vfs_audit.c'''
529 VFS_EXTD_AUDIT_SRC
= '''modules/vfs_extd_audit.c'''
530 VFS_FULL_AUDIT_SRC
= '''modules/vfs_full_audit.c'''
531 VFS_FAKE_PERMS_SRC
= '''modules/vfs_fake_perms.c'''
532 VFS_RECYCLE_SRC
= '''modules/vfs_recycle.c'''
533 VFS_NETATALK_SRC
= '''modules/vfs_netatalk.c'''
534 VFS_DEFAULT_QUOTA_SRC
= '''modules/vfs_default_quota.c'''
535 VFS_READONLY_SRC
= '''modules/vfs_readonly.c modules/getdate.c'''
536 VFS_CAP_SRC
= '''modules/vfs_cap.c'''
537 VFS_EXPAND_MSDFS_SRC
= '''modules/vfs_expand_msdfs.c'''
538 VFS_SHADOW_COPY_SRC
= '''modules/vfs_shadow_copy.c'''
539 VFS_SHADOW_COPY2_SRC
= '''modules/vfs_shadow_copy2.c'''
540 VFS_AFSACL_SRC
= '''modules/vfs_afsacl.c'''
541 VFS_XATTR_TDB_SRC
= '''modules/vfs_xattr_tdb.c'''
542 VFS_POSIXACL_SRC
= '''modules/vfs_posixacl.c'''
543 VFS_AIXACL_SRC
= '''modules/vfs_aixacl.c modules/vfs_aixacl_util.c'''
544 VFS_AIXACL2_SRC
= '''modules/vfs_aixacl2.c modules/vfs_aixacl_util.c modules/nfs4_acls.c'''
545 VFS_SOLARISACL_SRC
= '''modules/vfs_solarisacl.c'''
546 VFS_ZFSACL_SRC
= '''modules/vfs_zfsacl.c modules/nfs4_acls.c'''
547 VFS_HPUXACL_SRC
= '''modules/vfs_hpuxacl.c'''
548 VFS_IRIXACL_SRC
= '''modules/vfs_irixacl.c'''
549 VFS_TRU64ACL_SRC
= '''modules/vfs_tru64acl.c'''
550 VFS_CATIA_SRC
= 'modules/vfs_catia.c'
551 VFS_STREAMS_XATTR_SRC
= 'modules/vfs_streams_xattr.c'
552 VFS_STREAMS_DEPOT_SRC
= 'modules/vfs_streams_depot.c'
553 VFS_CACHEPRIME_SRC
= 'modules/vfs_cacheprime.c'
554 VFS_PREALLOC_SRC
= 'modules/vfs_prealloc.c'
555 VFS_COMMIT_SRC
= 'modules/vfs_commit.c'
556 VFS_GPFS_SRC
= 'modules/vfs_gpfs.c modules/gpfs.c modules/nfs4_acls.c'
557 VFS_NOTIFY_FAM_SRC
= 'modules/vfs_notify_fam.c'
558 VFS_READAHEAD_SRC
= 'modules/vfs_readahead.c'
559 VFS_TSMSM_SRC
= 'modules/vfs_tsmsm.c'
560 VFS_FILEID_SRC
= 'modules/vfs_fileid.c'
561 VFS_AIO_FORK_SRC
= 'modules/vfs_aio_fork.c'
562 VFS_PREOPEN_SRC
= 'modules/vfs_preopen.c'
563 VFS_SYNCOPS_SRC
= 'modules/vfs_syncops.c'
564 VFS_ACL_XATTR_SRC
= 'modules/vfs_acl_xattr.c'
565 VFS_ACL_TDB_SRC
= 'modules/vfs_acl_tdb.c'
566 VFS_SMB_TRAFFIC_ANALYZER_SRC
= 'modules/vfs_smb_traffic_analyzer.c'
567 VFS_ONEFS_SRC
= '''modules/vfs_onefs.c modules/onefs_acl.c modules/onefs_system.c
568 modules/onefs_open.c modules/onefs_streams.c modules/onefs_dir.c
569 modules/onefs_cbrl.c modules/onefs_notify.c modules/onefs_config.c'''
570 VFS_ONEFS_SHADOW_COPY_SRC
= 'modules/vfs_onefs_shadow_copy.c modules/onefs_shadow_copy.c'
571 VFS_DIRSORT_SRC
= 'modules/vfs_dirsort.c'
572 VFS_SCANNEDONLY_SRC
= 'modules/vfs_scannedonly.c'
573 VFS_CROSSRENAME_SRC
= 'modules/vfs_crossrename.c'
575 PLAINTEXT_AUTH_SRC
= '''auth/pampass.c auth/pass_check.c'''
577 SLCACHE_SRC
= '''libsmb/samlogon_cache.c'''
579 DCUTIL_SRC
= '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
581 AUTH_BUILTIN_SRC
= 'auth/auth_builtin.c'
582 AUTH_DOMAIN_SRC
= 'auth/auth_domain.c'
583 AUTH_SAM_SRC
= 'auth/auth_sam.c'
584 AUTH_SERVER_SRC
= 'auth/auth_server.c'
585 AUTH_UNIX_SRC
= 'auth/auth_unix.c'
586 AUTH_WINBIND_SRC
= 'auth/auth_winbind.c'
587 AUTH_WBC_SRC
= 'auth/auth_wbc.c'
588 AUTH_SCRIPT_SRC
= 'auth/auth_script.c'
589 AUTH_NETLOGOND_SRC
= 'auth/auth_netlogond.c'
592 AUTH_SRC
= '''${AUTH_STATIC} auth/auth.c auth/auth_util.c auth/token_util.c
593 auth/auth_compat.c auth/auth_ntlmssp.c auth/user_info.c auth/check_samsec.c
594 auth/user_util.c auth/user_krb5.c auth/server_info.c auth/server_info_sam.c
595 ${PLAINTEXT_AUTH_SRC} ${SLCACHE_SRC} ${DCUTIL_SRC}'''
597 #FIXME: set IDMAP_STATIC during configuration
599 IDMAP_SRC
= 'winbindd/idmap.c winbindd/idmap_util.c ${IDMAP_STATIC}'
601 #FIXME: set NSS_INFO_STATIC during configuration
603 NSS_INFO_TEMPLATE_SRC
= 'winbindd/nss_info_template.c'
604 NSS_INFO_SRC
= 'winbindd/nss_info.c ${NSS_INFO_STATIC}'
606 IDMAP_HASH_SRC
= '''winbindd/idmap_hash/idmap_hash.c
607 winbindd/idmap_hash/mapfile.c'''
609 IDMAP_ADEX_SRC
= '''winbindd/idmap_adex/idmap_adex.c
610 winbindd/idmap_adex/cell_util.c
611 winbindd/idmap_adex/likewise_cell.c
612 winbindd/idmap_adex/provider_unified.c
613 winbindd/idmap_adex/gc_util.c
614 winbindd/idmap_adex/domain_util.c'''
616 PERFCOUNT_STATIC
= ''
617 PERFCOUNT_ONEFS_SRC
= 'modules/perfcount_onefs.c'
618 PERFCOUNT_TEST_SRC
= 'modules/perfcount_test.c'
620 WINBINDD_SRC1
= '''winbindd/winbindd.c
621 winbindd/winbindd_group.c
622 winbindd/winbindd_util.c
623 winbindd/winbindd_cache.c
624 winbindd/winbindd_pam.c
625 winbindd/winbindd_misc.c
626 winbindd/winbindd_cm.c
627 winbindd/winbindd_wins.c
628 winbindd/winbindd_msrpc.c
629 winbindd/winbindd_rpc.c
630 winbindd/winbindd_reconnect.c
631 winbindd/winbindd_ads.c
632 winbindd/winbindd_samr.c
633 winbindd/winbindd_dual.c
634 winbindd/winbindd_dual_ndr.c
635 winbindd/winbindd_dual_srv.c
636 librpc/gen_ndr/cli_wbint.c
637 librpc/gen_ndr/srv_wbint.c
638 librpc/gen_ndr/ndr_wbint.c
639 librpc/gen_ndr/ndr_wbint_c.c
640 winbindd/winbindd_async.c
641 winbindd/winbindd_creds.c
642 winbindd/winbindd_cred_cache.c
643 winbindd/winbindd_ccache_access.c
644 winbindd/winbindd_domain.c
645 winbindd/winbindd_idmap.c
646 winbindd/winbindd_locator.c
647 winbindd/winbindd_ndr.c
649 winbindd/wb_lookupsid.c
650 winbindd/wb_lookupname.c
651 winbindd/wb_sid2uid.c
652 winbindd/wb_sid2gid.c
653 winbindd/wb_uid2sid.c
654 winbindd/wb_gid2sid.c
655 winbindd/wb_queryuser.c
656 winbindd/wb_lookupuseraliases.c
657 winbindd/wb_lookupusergroups.c
658 winbindd/wb_getpwsid.c
659 winbindd/wb_gettoken.c
661 winbindd/wb_seqnums.c
662 winbindd/wb_group_members.c
663 winbindd/wb_getgrsid.c
664 winbindd/wb_query_user_list.c
665 winbindd/wb_fill_pwent.c
666 winbindd/wb_next_pwent.c
667 winbindd/wb_next_grent.c
668 winbindd/wb_dsgetdcname.c
669 winbindd/winbindd_lookupsid.c
670 winbindd/winbindd_lookupname.c
671 winbindd/winbindd_sid_to_uid.c
672 winbindd/winbindd_sid_to_gid.c
673 winbindd/winbindd_uid_to_sid.c
674 winbindd/winbindd_gid_to_sid.c
675 winbindd/winbindd_allocate_uid.c
676 winbindd/winbindd_allocate_gid.c
677 winbindd/winbindd_getpwsid.c
678 winbindd/winbindd_getpwnam.c
679 winbindd/winbindd_getpwuid.c
680 winbindd/winbindd_getsidaliases.c
681 winbindd/winbindd_getuserdomgroups.c
682 winbindd/winbindd_getgroups.c
683 winbindd/winbindd_show_sequence.c
684 winbindd/winbindd_getgrgid.c
685 winbindd/winbindd_getgrnam.c
686 winbindd/winbindd_getusersids.c
687 winbindd/winbindd_lookuprids.c
688 winbindd/winbindd_setpwent.c
689 winbindd/winbindd_getpwent.c
690 winbindd/winbindd_endpwent.c
691 winbindd/winbindd_setgrent.c
692 winbindd/winbindd_getgrent.c
693 winbindd/winbindd_endgrent.c
694 winbindd/winbindd_dsgetdcname.c
695 winbindd/winbindd_getdcname.c
696 winbindd/winbindd_list_users.c
697 winbindd/winbindd_list_groups.c
698 winbindd/winbindd_check_machine_acct.c
699 winbindd/winbindd_change_machine_acct.c
700 winbindd/winbindd_ping_dc.c
701 winbindd/winbindd_pam_auth.c
702 winbindd/winbindd_pam_logoff.c
703 winbindd/winbindd_pam_chauthtok.c
704 winbindd/winbindd_pam_auth_crap.c
705 winbindd/winbindd_pam_chng_pswd_auth_crap.c
711 auth/server_info_sam.c
714 rpc_server/srv_samr_chgpasswd.c
715 ../nsswitch/libwbclient/wb_reqtrans.c'''
717 WINBINDD_SRC
= '''${WINBINDD_SRC1}
718 ${LIBMSRPC_SRC} ${LIBMSRPC_GEN_SRC}
719 ${PROFILE_SRC} ${SLCACHE_SRC}
721 ${DCUTIL_SRC} ${IDMAP_SRC} ${NSS_INFO_SRC}
722 ${AFS_SRC} ${AFS_SETTOKEN_SRC}
724 ${RPC_NCACN_NP_INTERNAL} ${RPC_SAMR_SRC} ${RPC_LSARPC_SRC}
726 ${LIBCLI_DSSETUP_SRC}
729 ${LIBCLI_NETLOGON_SRC}
730 rpc_client/init_netlogon.c'''
732 LIBNET_SRC
= 'libnet/libnet_join.c libnet/libnet_keytab.c librpc/gen_ndr/ndr_libnet_join.c'
734 LIBSMBCONF_SRC
= '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
735 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
736 lib/smbconf/smbconf_init.c'''
738 MANGLE_SRC
= '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
740 SMBD_SRC_MAIN
= '''smbd/server.c smbd/server_exit.c'''
742 BUILDOPT_SRC
= '''smbd/build_options.c'''
744 SMBD_SRC_SRV
= '''smbd/server_reload.c smbd/files.c smbd/connection.c
745 smbd/utmp.c smbd/session.c
746 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
747 smbd/share_access.c smbd/fileio.c
748 smbd/ipc.c smbd/lanman.c smbd/negprot.c
749 smbd/message.c smbd/nttrans.c smbd/pipes.c
750 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
751 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
752 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
753 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
754 smbd/posix_acls.c lib/sysacls.c
755 smbd/process.c smbd/service.c smbd/error.c
756 printing/printspoolss.c
757 lib/sysquotas.c lib/sysquotas_linux.c
758 lib/sysquotas_xfs.c lib/sysquotas_4A.c
760 smbd/quotas.c smbd/ntquotas.c ${AFS_SRC} smbd/msdfs.c
761 ${AFS_SETTOKEN_SRC} smbd/aio.c smbd/statvfs.c
762 smbd/dmapi.c smbd/signing.c
764 smbd/dnsregister.c smbd/globals.c
769 smbd/smb2_sesssetup.c
778 smbd/smb2_keepalive.c
784 ../libcli/smb/smb2_create_blob.c
785 ${MANGLE_SRC} ${VFS_STATIC}'''
787 SMBD_SRC_BASE
= '''${SMBD_SRC_SRV}
789 ${LOCKING_SRC} ${PRINTING_SRC}
790 ${PROFILE_SRC} ${PRINTBACKEND_SRC}
791 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
793 ${LIBMSRPC_GEN_SRC} ${LIBADS_SRC}
794 ${LIBADS_SERVER_SRC} ${LIBADS_PRINTER_SRC} ${REG_FULL_SRC}
796 ${LIBNET_SRC} ${LIBSMBCONF_SRC}
797 ${LIBCLI_SPOOLSS_SRC}
802 ${LIBCLI_NETLOGON_SRC}
803 ${RPC_CLIENT_SCHANNEL_SRC}
804 rpc_client/init_netlogon.c
805 rpc_client/init_samr.c
807 ${PRIVILEGES_BASIC_SRC}
808 ${LIBNDR_XATTR_SRC}'''
810 PRINTING_SRC
= '''printing/pcap.c printing/print_svid.c printing/print_aix.c
811 printing/print_cups.c printing/print_generic.c
812 printing/lpq_parse.c printing/load.c printing/print_standard.c
813 printing/print_iprint.c'''
815 PRINTBASE_SRC
= '''printing/notify.c printing/printing_db.c'''
816 PRINTBACKEND_SRC
= '''printing/printing.c
817 printing/nt_printing.c
818 printing/nt_printing_tdb.c
819 printing/nt_printing_migrate.c
820 printing/nt_printing_ads.c
821 ${LIBNDR_NTPRINTING_SRC}
824 SMBD_SRC
= '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
826 NMBD_SRC1
= '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
827 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
828 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
829 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
830 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
831 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
832 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
833 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
834 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
835 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
836 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
837 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
839 NMBD_SRC
= '${NMBD_SRC1} ${PROFILE_SRC} ${LIBNDR_GEN_SRC0}'
841 SWAT_SRC1
= '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
842 web/swat.c web/neg_lang.c'''
844 SWAT_SRC
= '''${SWAT_SRC1} ${PRINTING_SRC} ${PRINTBASE_SRC}
846 ${PLAINTEXT_AUTH_SRC}
847 ${LIBMSRPC_GEN_SRC} ${LIBMSRPC_SRC}
848 ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}
850 rpc_client/init_lsa.c'''
852 WBINFO_SRC
= '../nsswitch/wbinfo.c ${AFS_SETTOKEN_SRC}'
854 TESTPARM_SRC
= 'utils/testparm.c'
856 EVTLOGADM_SRC0
= 'utils/eventlogadm.c'
858 EVTLOGADM_SRC
= '''${EVTLOGADM_SRC0}
859 registry/reg_eventlog.c ${LIB_EVENTLOG_SRC}
860 ../librpc/gen_ndr/ndr_eventlog.c
861 ../librpc/gen_ndr/ndr_lsa.c'''
863 DISPLAY_SEC_SRC
= '../libcli/security/display_sec.c'
865 CLIENT_SRC1
= '''client/client.c client/clitar.c
869 CLIENT_SRC
= '''${CLIENT_SRC1} ${LIBMSRPC_GEN_SRC}
870 ${READLINE_SRC} ${DISPLAY_SEC_SRC}
872 rpc_client/init_lsa.c'''
877 bld
.SAMBA_GENERATOR('build_options',
878 source
='include/config.h script/mkbuildoptions.awk',
879 target
='smbd/build_options.c',
880 rule
='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
882 t
= bld
.SAMBA_GENERATOR('build_env.h',
883 source
='script/build_env.sh',
884 target
='include/build_env.h',
885 rule
='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
886 # todo: work out what is really wanted here
887 t
.env
.SRCDIR
= bld
.path
.abspath()
888 t
.env
.BUILDDIR
= bld
.path
.abspath()
891 bld
.SETUP_BUILD_GROUPS()
893 bld
.RECURSE('../lib/replace')
894 print "SBINDIR=%s" % bld
.env
.SBINDIR
897 bld
.RECURSE('../librpc/idl')
898 bld
.RECURSE('librpc/idl')
900 bld
.SAMBA_MKVERSION('include/version.h')
902 for prefix
in bld
.env
.MODULE_PREFIXES
:
903 static_key
= "%s_STATIC" % prefix
.upper()
904 shared_key
= "%s_SHARED" % prefix
.upper()
906 # Set up the static modules
907 static_src
= locals()[static_key
]
908 for module
in bld
.env
[static_key
]:
909 static_src
+= "${%s_SRC} " % module
910 # for some reason static_src doesn't seem to be a reference, so save it
912 locals()[static_key
] = static_src
914 # Set up subsystems for the shared modules
915 for module
in bld
.env
[shared_key
]:
916 bld
.SAMBA_SUBSYSTEM(module
,
917 source
="${%s_SRC}" % module
,
920 ######################## SUBSYSTEMS #################################
922 bld
.SAMBA_SUBSYSTEM('WBCOMMON',
925 bld
.SAMBA_SUBSYSTEM('LIBWBCLIENT',
926 source
='''../nsswitch/libwbclient/wbc_guid.c
927 ../nsswitch/libwbclient/wbc_idmap.c
928 ../nsswitch/libwbclient/wbclient.c
929 ../nsswitch/libwbclient/wbc_pam.c
930 ../nsswitch/libwbclient/wbc_pwd.c
931 ../nsswitch/libwbclient/wbc_sid.c
932 ../nsswitch/libwbclient/wbc_util.c''',
933 public_deps
='talloc WBCOMMON')
936 bld
.SAMBA_SUBSYSTEM('ASN1_UTIL',
937 source
='../lib/util/asn1.c',
941 bld
.SAMBA_SUBSYSTEM('AVAHI',
943 deps
='avahi-common avahi-client',
944 enabled
=bld
.env
.with_avahi
)
946 bld
.SAMBA_SUBSYSTEM('GROUPDB',
949 bld
.SAMBA_SUBSYSTEM('TLDAP',
951 deps
='ASN1_UTIL LIBTSOCKET')
953 bld
.SAMBA_SUBSYSTEM('PASSDB',
955 deps
='GROUPDB TLDAP SECRETS',
958 bld
.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
959 source
=PARAM_WITHOUT_REG_SRC
)
961 bld
.SAMBA_SUBSYSTEM('PARAM',
963 deps
='PARAM_WITHOUT_REG',
966 bld
.SAMBA_SUBSYSTEM('POPT_SAMBA',
970 bld
.SAMBA_SUBSYSTEM('KRBCLIENT',
971 source
=KRBCLIENT_SRC
,
972 deps
='krb5 k5crypto com_err gssapi gssapi_krb5',
975 bld
.SAMBA_SUBSYSTEM('LIBS',
977 deps
='NSS_WRAPPER iconv',
980 bld
.SAMBA_SUBSYSTEM('LIB_NONSMBD',
981 source
=LIB_NONSMBD_SRC
,
985 bld
.SAMBA_SUBSYSTEM('LIBSMB_ERR',
986 source
=LIBSMB_ERR_SRC
,
987 deps
='SECRETS SMBLDAP',
990 bld
.SAMBA_SUBSYSTEM('LIBSAMBA',
995 bld
.SAMBA_SUBSYSTEM('LIBSMB',
997 deps
='LIBSAMBA ZLIB',
1000 bld
.SAMBA_SUBSYSTEM('SECRETS',
1004 bld
.SAMBA_SUBSYSTEM('SMBLDAP',
1009 ########################## BINARIES #################################
1011 bld
.SAMBA_BINARY('smbd/smbd',
1013 deps
='''tdb DYNCONFIG tevent dl krb5 ldap gssapi gssapi_krb5
1014 NSS_WRAPPER LIBWBCLIENT crypt nsl cups cap resolv ZLIB PASSDB
1015 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI''',
1016 install_path
='${SBINDIR}',
1019 bld
.SAMBA_BINARY('nmbd/nmbd',
1021 deps
='''talloc tdb tevent ZLIB cap resolv LIBWBCLIENT dl
1022 NSS_WRAPPER DYNCONFIG PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1023 POPT_SAMBA KRBCLIENT''',
1024 install_path
='${SBINDIR}',
1027 bld
.SAMBA_BINARY('winbindd/winbindd',
1028 source
=WINBINDD_SRC
,
1029 deps
='''talloc tdb tevent cap dl DYNCONFIG ZLIB NSS_WRAPPER
1030 LIBWBCLIENT PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1031 POPT_SAMBA KRBCLIENT''',
1032 enabled
=bld
.env
.build_winbind
,
1033 install_path
='${SBINDIR}',
1036 bld
.SAMBA_BINARY('web/swat',
1038 deps
='''talloc tevent cap DYNCONFIG LIBS LIBSMB LIBWBCLIENT PARAM
1039 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups''',
1040 enabled
=bld
.env
.build_swat
,
1041 install_path
='${SBINDIR}',
1044 bld
.SAMBA_BINARY('smbclient',
1046 deps
='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1047 PARAM_WITHOUT_REG LIBWBCLIENT DYNCONFIG PARAM KRBCLIENT''',
1050 bld
.SAMBA_BINARY('wbinfo',
1052 deps
='''talloc LIBWBCLIENT DYNCONFIG tevent cap
1053 NSS_WRAPPER ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1054 LIBSAMBA POPT_SAMBA''',
1057 bld
.SAMBA_BINARY('testparm',
1058 source
=TESTPARM_SRC
,
1059 deps
='''talloc tevent DYNCONFIG ldap cap NSS_WRAPPER
1060 LIBWBCLIENT ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1061 LIBSMB_ERR POPT_SAMBA''',
1064 bld
.SAMBA_BINARY('eventlogadm',
1065 source
=EVTLOGADM_SRC
,
1066 deps
='''talloc tevent cap POPT_SAMBA DYNCONFIG LIBS PARAM
1067 LIB_NONSMBD LIBSMB_ERR PASSDB LIBWBCLIENT''',
1070 swat_files
=recursive_dirlist('../swat', '../swat', '*')
1071 bld
.INSTALL_FILES('${SWATDIR}', swat_files
, base_name
='../swat')
1073 ########################## INCLUDES #################################
1075 bld
.RECURSE('../lib/socket_wrapper')
1076 bld
.RECURSE('../lib/talloc')
1077 bld
.RECURSE('../lib/tdb')
1078 bld
.RECURSE('../lib/nss_wrapper')
1079 bld
.RECURSE('../lib/tevent')
1080 bld
.RECURSE('../lib/popt')
1081 bld
.RECURSE('../lib/zlib')
1082 bld
.RECURSE('../lib/tsocket')
1084 bld
.ENFORCE_GROUP_ORDERING()
1085 bld
.CHECK_PROJECT_RULES()