s3-waf: Actually make --with/--without-swat work
[Samba/vl.git] / source3 / wscript_build
blob636091e24350726a9d04653996bb29e7451f306e
1 #!/usr/bin/env python
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
7 lib/dbwrap_ctdb.c
8 lib/g_lock.c
9 lib/dbwrap_rbt.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'
22 AFS_SRC = 'lib/afs.c'
24 AFS_SETTOKEN_SRC = 'lib/afs_settoken.c'
26 AVAHI_SRC = '' # TODO: fix
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}
41 ${COMPRESSION_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
47 ../librpc/ndr/ndr.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
53 ../librpc/ndr/uuid.c
54 librpc/ndr/util.c
55 ../librpc/gen_ndr/ndr_dcerpc.c'''
57 RPCCLIENT_NDR_SRC = '''rpc_client/ndr.c'''
59 LIBNDR_GEN_SRC0 = '''../librpc/gen_ndr/ndr_samr.c
60 ../librpc/gen_ndr/ndr_lsa.c'''
62 LIBNDR_GEN_SRC1 = '''../librpc/gen_ndr/ndr_netlogon.c
63 ../librpc/ndr/ndr_netlogon.c'''
65 LIBNDR_GEN_SRC2 = '''../librpc/gen_ndr/ndr_spoolss.c
66 ../librpc/ndr/ndr_spoolss_buf.c'''
68 LIBNDR_GEN_SRC = '''../librpc/gen_ndr/ndr_wkssvc.c
69 ${LIBNDR_GEN_SRC0}
70 ../librpc/gen_ndr/ndr_dfs.c
71 ../librpc/gen_ndr/ndr_echo.c
72 ../librpc/gen_ndr/ndr_winreg.c
73 ../librpc/gen_ndr/ndr_initshutdown.c
74 ../librpc/gen_ndr/ndr_srvsvc.c
75 ../librpc/gen_ndr/ndr_eventlog.c
76 ${LIBNDR_GEN_SRC1}
77 ../librpc/gen_ndr/ndr_dssetup.c
78 librpc/gen_ndr/ndr_notify.c
79 ../librpc/gen_ndr/ndr_xattr.c
80 ../librpc/ndr/ndr_xattr.c
81 ../librpc/gen_ndr/ndr_epmapper.c
82 ../librpc/gen_ndr/ndr_named_pipe_auth.c
83 ../librpc/gen_ndr/ndr_ntsvcs.c
84 ${LIBNDR_GEN_SRC2}'''
86 RPC_PARSE_SRC0 = '''rpc_parse/parse_prs.c rpc_parse/parse_misc.c'''
88 # this includes only the low level parse code, not stuff
89 # that requires knowledge of security contexts
90 RPC_PARSE_SRC1 = '''${RPC_PARSE_SRC0}'''
92 RPC_PARSE_SRC2 = '''rpc_parse/parse_rpc.c
93 rpc_client/init_netlogon.c
94 rpc_client/init_lsa.c'''
96 LIBREPLACE_SRC = '''${LIBREPLACE_SRCS}'''
98 SOCKET_WRAPPER_SRC = '''${SOCKET_WRAPPER_SRCS}'''
99 NSS_WRAPPER_SRC = '''${NSS_WRAPPER_SRCS}'''
101 LIBSAMBAUTIL_SRC = '''
102 ${LIBREPLACE_SRC}
103 ${SOCKET_WRAPPER_SRC}
104 ${NSS_WRAPPER_SRC}'''
106 UTIL_SRC = '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
107 ../lib/util/xfile.c ../lib/util/util_strlist.c
108 ../lib/util/util_file.c ../lib/util/data_blob.c
109 ../lib/util/util.c ../lib/util/fsusage.c
110 ../lib/util/params.c ../lib/util/talloc_stack.c
111 ../lib/util/genrand.c ../lib/util/util_net.c
112 ../lib/util/become_daemon.c ../lib/util/system.c
113 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
114 ../lib/util/smb_threads.c ../lib/util/util_id.c
115 ../lib/util/blocking.c ../lib/util/rfc1738.c '''
117 CRYPTO_SRC = '''../lib/crypto/crc32.c ../lib/crypto/md5.c
118 ../lib/crypto/hmacmd5.c ../lib/crypto/arcfour.c
119 ../lib/crypto/md4.c
120 ../lib/crypto/sha256.c ../lib/crypto/hmacsha256.c
121 ../lib/crypto/aes.c ../lib/crypto/rijndael-alg-fst.c'''
123 LIBTEVENT_SRC0 = ''
125 PTHREADPOOL_SRC = ''
127 LIBREPLACE_SRCS = ''
129 SOCKET_WRAPPER_SRCS = ''
131 NSS_WRAPPER_SRCS = ''
133 ZLIB_SRCS = ''
135 LIB_SRC = '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC} ${CRYPTO_SRC}
136 lib/messages.c librpc/gen_ndr/ndr_messaging.c lib/messages_local.c
137 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
138 lib/interfaces.c lib/memcache.c
139 lib/talloc_dict.c
140 lib/serverid.c
141 lib/util_transfer_file.c ../lib/async_req/async_sock.c
142 ${TDB_LIB_SRC}
143 ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
144 lib/interface.c lib/pidfile.c
145 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
146 lib/username.c
147 ../libds/common/flag_mapping.c
148 lib/util_pw.c lib/access.c lib/smbrun.c
149 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
150 lib/wins_srv.c
151 lib/util_str.c lib/clobber.c lib/util_sid.c lib/util_uuid.c
152 lib/util_unistr.c lib/util_file.c
153 lib/util.c lib/util_sock.c lib/sock_exec.c lib/util_sec.c
154 lib/substitute.c lib/dbwrap_util.c
155 lib/ms_fnmatch.c lib/select.c lib/errmap_unix.c
156 lib/tallocmsg.c lib/dmallocmsg.c
157 libsmb/clisigning.c libsmb/smb_signing.c
158 lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
159 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
160 lib/sessionid_tdb.c
161 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
162 lib/ldap_escape.c ${CHARSET_STATIC}
163 lib/secdesc.c lib/util_seaccess.c ../libcli/security/secace.c
164 ../libcli/security/sddl.c
165 ../libcli/security/secacl.c ${PTHREADPOOL_SRC}
166 lib/fncall.c
167 libads/krb5_errs.c lib/system_smbd.c lib/audit.c ${LIBNDR_SRC}
168 lib/file_id.c lib/idmap_cache.c
169 ../libcli/security/dom_sid.c ../libcli/security/security_descriptor.c'''
171 LIB_DUMMY_SRC = '''lib/dummysmbd.c lib/dummyroot.c'''
172 LIB_NONSMBD_SRC = '''${LIB_DUMMY_SRC}'''
174 READLINE_SRC = '''lib/readline.c'''
176 POPT_LIB_SRC = '''lib/popt_common.c'''
178 PARAM_WITHOUT_REG_SRC = '''param/loadparm.c param/util.c lib/sharesec.c lib/ldap_debug_handler.c'''
179 PARAM_REG_ADD_SRC = '''${REG_SMBCONF_SRC} ${LIBSMBCONF_SRC} ${PRIVILEGES_BASIC_SRC}'''
180 PARAM_SRC = '''${PARAM_REG_ADD_SRC}'''
182 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
184 LIBADDNS_SRC0 = '''libaddns/dnsrecord.c libaddns/dnsutils.c libaddns/dnssock.c
185 libaddns/dnsgss.c libaddns/dnsmarshall.c'''
186 LIBADDNS_SRC = '''${LIBADDNS_SRC0} ${SOCKET_WRAPPER_SRC}'''
188 GPEXT_STATIC = ''
189 GPEXT_REGISTRY_SRC = 'libgpo/gpext/registry.c'
190 GPEXT_SCRIPTS_SRC = 'libgpo/gpext/scripts.c'
191 GPEXT_SECURITY_SRC = 'libgpo/gpext/security.c'
193 GPEXT_SRC = '''../libgpo/gpext/gpext.c ${GPEXT_STATIC}'''
195 LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
196 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
197 libgpo/gpo_reg.c
198 ${GPEXT_SRC}'''
199 LIBGPO_SRC = '''${LIBGPO_SRC0}'''
201 LIBADS_SRC = '''libads/ldap.c libads/ldap_printer.c
202 libads/sasl.c libads/sasl_wrapping.c
203 libads/krb5_setpw.c libads/ldap_user.c
204 libads/ads_struct.c libads/kerberos_keytab.c
205 libads/disp_sec.c libads/ads_utils.c libads/ldap_utils.c
206 libads/ldap_schema.c libads/util.c libads/ndr.c'''
208 LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c
209 ../librpc/ndr/ndr_krb5pac.c
210 ../librpc/gen_ndr/ndr_krb5pac.c'''
212 LIBNBT_SRC = '''../libcli/nbt/nbtname.c
213 ../libcli/netlogon.c
214 ../libcli/ndr_netlogon.c
215 ../librpc/gen_ndr/ndr_nbt.c
216 ../librpc/gen_ndr/ndr_svcctl.c
217 ../librpc/ndr/ndr_svcctl.c'''
219 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
220 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
221 libads/dns.c libads/sitename_cache.c'''
223 NTERR_SRC = '''libsmb/nterr.c libsmb/smberr.c'''
224 DOSERR_SRC = '../libcli/util/doserr.c'
225 ERRORMAP_SRC = 'libsmb/errormap.c'
226 DCE_RPC_ERR_SRC = '../librpc/rpc/dcerpc_error.c'
228 LIBSMB_ERR_SRC0 = '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
230 LIBSMB_ERR_SRC1 = '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
232 LIBSMB_ERR_SRC = '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1} ${RPC_PARSE_SRC1}'
234 LIBSMB_SRC0 = '''
235 ../libcli/auth/ntlm_check.c
236 libsmb/ntlmssp.c
237 libsmb/ntlmssp_sign.c
238 ${LIBNDR_NTLMSSP_SRC}
239 ../libcli/auth/ntlmssp_ndr.c'''
241 LIBSAMBA_SRC = '${LIBSMB_SRC0}'
243 LIBCLI_LDAP_MESSAGE_SRC = '''../libcli/ldap/ldap_message.c'''
244 LIBCLI_LDAP_NDR_SRC = '''../libcli/ldap/ldap_ndr.c'''
246 CLDAP_SRC = '''libads/cldap.c
247 ../libcli/cldap/cldap.c lib/ldb_compat.c
248 ../lib/util/idtree.c
249 ${LIBCLI_LDAP_MESSAGE_SRC} ${LIBCLI_LDAP_NDR_SRC}'''
251 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
253 SCHANNEL_SRC = '''../libcli/auth/credentials.c
254 ../libcli/auth/schannel_sign.c
255 ../libcli/auth/schannel_state_tdb.c
256 ../librpc/gen_ndr/ndr_schannel.c
257 ../librpc/ndr/ndr_schannel.c'''
259 LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
260 libsmb/clikrb5.c libsmb/clispnego.c
261 ../libcli/auth/spnego_parse.c
262 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
263 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
264 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
265 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
266 libsmb/clioplock.c libsmb/clirap2.c
267 libsmb/smb_seal.c libsmb/async_smb.c
268 ${LIBNMB_SRC}
269 ${LIBNBT_SRC}
270 ${CLDAP_SRC}
271 ${DRSUAPI_SRC}'''
273 RPC_CLIENT_SRC1 = '''rpc_client/cli_netlogon.c
274 ${SCHANNEL_SRC}'''
276 LIBMSRPC_SRC = '''rpc_client/cli_lsarpc.c rpc_client/cli_samr.c
277 ${RPC_CLIENT_SRC1}
278 ${RPC_CLIENT_SRC}
279 rpc_client/cli_spoolss.c
280 rpc_client/init_spoolss.c
281 rpc_client/init_samr.c
282 ../librpc/rpc/binding.c'''
284 LIBMSRPC_GEN_SRC = '''../librpc/gen_ndr/cli_lsa.c
285 ../librpc/gen_ndr/cli_dfs.c
286 ../librpc/gen_ndr/cli_echo.c
287 ../librpc/gen_ndr/cli_srvsvc.c
288 ../librpc/gen_ndr/cli_svcctl.c
289 ../librpc/gen_ndr/cli_winreg.c
290 ../librpc/gen_ndr/cli_initshutdown.c
291 ../librpc/gen_ndr/cli_eventlog.c
292 ../librpc/gen_ndr/cli_wkssvc.c
293 ../librpc/gen_ndr/cli_netlogon.c
294 ../librpc/gen_ndr/cli_samr.c
295 ../librpc/gen_ndr/cli_dssetup.c
296 ../librpc/gen_ndr/cli_ntsvcs.c
297 ../librpc/gen_ndr/cli_epmapper.c
298 ../librpc/gen_ndr/cli_drsuapi.c
299 ../librpc/gen_ndr/cli_spoolss.c
300 ${LIBNDR_GEN_SRC}
301 ${RPCCLIENT_NDR_SRC}'''
304 # registry-related objects
306 UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
307 UTIL_REG_API_SRC = '''lib/util_reg_api.c'''
309 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
310 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
311 REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
313 REGFIO_SRC = '''registry/regfio.c'''
315 REGSRCS_SRC = '''registry/reg_objects.c'''
317 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
319 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
321 REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
322 registry/reg_backend_shares.c
323 registry/reg_backend_netlogon_params.c
324 registry/reg_backend_prod_options.c
325 registry/reg_backend_tcpip_params.c
326 registry/reg_backend_hkpt_params.c
327 registry/reg_backend_current_version.c
328 registry/reg_backend_perflib.c'''
330 REG_BASE_SRC = '''registry/reg_api.c
331 registry/reg_dispatcher.c
332 registry/reg_cachehook.c
333 ${REGFIO_SRC}
334 ${REGSRCS_SRC}
335 registry/reg_util.c
336 ${UTIL_REG_API_SRC}
337 lib/util_nttoken.c
338 ${REG_BACKENDS_BASE_SRC}
339 ${REG_INIT_BASIC_SRC}'''
341 REG_SMBCONF_SRC = '''${REG_BASE_SRC}
342 ${REG_BACKENDS_SMBCONF_SRC}
343 ${REG_INIT_SMBCONF_SRC}'''
345 REG_FULL_SRC = '''${REG_SMBCONF_SRC}
346 ${REG_BACKENDS_EXTRA_SRC}
347 ${REG_INIT_FULL_SRC}
348 registry/reg_eventlog.c
349 registry/reg_perfcount.c
350 librpc/gen_ndr/ndr_perfcount.c
351 registry/reg_util_legacy.c'''
353 LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
355 RPC_STATIC = ''
357 RPC_LSA_SRC = '''rpc_server/srv_lsa_nt.c ../librpc/gen_ndr/srv_lsa.c'''
359 RPC_NETLOG_SRC = '''rpc_server/srv_netlog_nt.c
360 ../librpc/gen_ndr/srv_netlogon.c'''
362 RPC_SAMR_SRC = '''rpc_server/srv_samr_nt.c
363 rpc_server/srv_samr_util.c
364 ../librpc/gen_ndr/srv_samr.c'''
366 RPC_INITSHUTDOWN_SRC = ''' ../librpc/gen_ndr/srv_initshutdown.c rpc_server/srv_initshutdown_nt.c'''
368 RPC_REG_SRC = ''' rpc_server/srv_winreg_nt.c
369 ../librpc/gen_ndr/srv_winreg.c'''
371 RPC_DSSETUP_SRC = ''' rpc_server/srv_dssetup_nt.c ../librpc/gen_ndr/srv_dssetup.c'''
373 RPC_SVC_SRC = '''rpc_server/srv_srvsvc_nt.c
374 ../librpc/gen_ndr/srv_srvsvc.c'''
376 RPC_WKS_SRC = ''' ../librpc/gen_ndr/srv_wkssvc.c rpc_server/srv_wkssvc_nt.c'''
378 RPC_SVCCTL_SRC = ''' rpc_server/srv_svcctl_nt.c
379 ../librpc/gen_ndr/srv_svcctl.c
380 services/svc_spoolss.c services/svc_rcinit.c services/services_db.c
381 services/svc_netlogon.c services/svc_winreg.c
382 services/svc_wins.c'''
384 RPC_NTSVCS_SRC = '''rpc_server/srv_ntsvcs_nt.c
385 ../librpc/gen_ndr/srv_ntsvcs.c'''
387 RPC_DFS_SRC = ''' ../librpc/gen_ndr/srv_dfs.c rpc_server/srv_dfs_nt.c'''
389 RPC_SPOOLSS_SRC = '''rpc_server/srv_spoolss_nt.c
390 ../librpc/gen_ndr/srv_spoolss.c'''
392 RPC_EVENTLOG_SRC = '''rpc_server/srv_eventlog_nt.c
393 ${LIB_EVENTLOG_SRC} ../librpc/gen_ndr/srv_eventlog.c'''
395 RPC_PIPE_SRC = '''rpc_server/srv_pipe_hnd.c
396 rpc_server/srv_pipe.c rpc_server/srv_lsa_hnd.c'''
398 RPC_ECHO_SRC = '''rpc_server/srv_echo_nt.c ../librpc/gen_ndr/srv_echo.c'''
400 #TODO: RPC_SERVER_SRC used to include RPC_STATIC modules
401 RPC_SERVER_SRC = '''${RPC_PIPE_SRC}'''
403 RPC_PARSE_SRC = '''${RPC_PARSE_SRC2}'''
405 RPC_CLIENT_SRC = '''rpc_client/cli_pipe.c rpc_client/rpc_transport_np.c
406 rpc_client/rpc_transport_sock.c rpc_client/rpc_transport_smbd.c'''
408 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
410 PRIVILEGES_BASIC_SRC = '''lib/privileges_basic.c'''
412 PRIVILEGES_SRC = '''lib/privileges.c'''
414 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
416 PDB_STATIC = ''
417 PDB_TDBSAM_SRC = 'passdb/pdb_tdb.c'
418 PDB_LDAP_SRC = 'passdb/pdb_ldap.c'
419 PDB_ADS_SRC = 'passdb/pdb_ads.c'
420 PDB_SMBPASSWD_SRC = 'passdb/pdb_smbpasswd.c'
421 PDB_WBC_SAM_SRC = 'passdb/pdb_wbc_sam.c'
423 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
424 passdb/machine_sid.c librpc/gen_ndr/ndr_secrets.c'''
426 PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c passdb/pdb_interface.c
427 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
428 passdb/util_unixsids.c passdb/lookup_sid.c
429 passdb/login_cache.c ${PDB_STATIC}
430 passdb/account_pol.c ${PRIVILEGES_SRC}
431 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
432 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
434 CHARSET_STATIC = ''
435 CHARSET_WEIRD_SRC = 'modules/weird.c'
436 CHARSET_CP850_SRC = 'modules/CP850.c'
437 CHARSET_CP437_SRC = 'modules/CP437.c'
438 CHARSET_MACOSXFS_SRC = 'modules/charset_macosxfs.c'
440 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
442 PROFILE_SRC = '''profile/profile.c'''
443 PROFILES_SRC = '''utils/profiles.c
444 ${LIBSMB_ERR_SRC}
445 ${PARAM_SRC}
446 ${LIB_SRC} ${LIB_DUMMY_SRC}'''
448 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
449 smbd/oplock_onefs.c'''
451 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
453 FNAME_UTIL_SRC = '''smbd/filename_util.c'''
455 VFS_STATIC = ''
456 VFS_DEFAULT_SRC = '''modules/vfs_default.c'''
457 VFS_AUDIT_SRC = '''modules/vfs_audit.c'''
458 VFS_EXTD_AUDIT_SRC = '''modules/vfs_extd_audit.c'''
459 VFS_FULL_AUDIT_SRC = '''modules/vfs_full_audit.c'''
460 VFS_FAKE_PERMS_SRC = '''modules/vfs_fake_perms.c'''
461 VFS_RECYCLE_SRC = '''modules/vfs_recycle.c'''
462 VFS_NETATALK_SRC = '''modules/vfs_netatalk.c'''
463 VFS_DEFAULT_QUOTA_SRC = '''modules/vfs_default_quota.c'''
464 VFS_READONLY_SRC = '''modules/vfs_readonly.c modules/getdate.c'''
465 VFS_CAP_SRC = '''modules/vfs_cap.c'''
466 VFS_EXPAND_MSDFS_SRC = '''modules/vfs_expand_msdfs.c'''
467 VFS_SHADOW_COPY_SRC = '''modules/vfs_shadow_copy.c'''
468 VFS_SHADOW_COPY2_SRC = '''modules/vfs_shadow_copy2.c'''
469 VFS_AFSACL_SRC = '''modules/vfs_afsacl.c'''
470 VFS_XATTR_TDB_SRC = '''modules/vfs_xattr_tdb.c'''
471 VFS_POSIXACL_SRC = '''modules/vfs_posixacl.c'''
472 VFS_AIXACL_SRC = '''modules/vfs_aixacl.c modules/vfs_aixacl_util.c'''
473 VFS_AIXACL2_SRC = '''modules/vfs_aixacl2.c modules/vfs_aixacl_util.c modules/nfs4_acls.c'''
474 VFS_SOLARISACL_SRC = '''modules/vfs_solarisacl.c'''
475 VFS_ZFSACL_SRC = '''modules/vfs_zfsacl.c modules/nfs4_acls.c'''
476 VFS_HPUXACL_SRC = '''modules/vfs_hpuxacl.c'''
477 VFS_IRIXACL_SRC = '''modules/vfs_irixacl.c'''
478 VFS_TRU64ACL_SRC = '''modules/vfs_tru64acl.c'''
479 VFS_CATIA_SRC = 'modules/vfs_catia.c'
480 VFS_STREAMS_XATTR_SRC = 'modules/vfs_streams_xattr.c'
481 VFS_STREAMS_DEPOT_SRC = 'modules/vfs_streams_depot.c'
482 VFS_CACHEPRIME_SRC = 'modules/vfs_cacheprime.c'
483 VFS_PREALLOC_SRC = 'modules/vfs_prealloc.c'
484 VFS_COMMIT_SRC = 'modules/vfs_commit.c'
485 VFS_GPFS_SRC = 'modules/vfs_gpfs.c modules/gpfs.c modules/nfs4_acls.c'
486 VFS_NOTIFY_FAM_SRC = 'modules/vfs_notify_fam.c'
487 VFS_READAHEAD_SRC = 'modules/vfs_readahead.c'
488 VFS_TSMSM_SRC = 'modules/vfs_tsmsm.c'
489 VFS_FILEID_SRC = 'modules/vfs_fileid.c'
490 VFS_AIO_FORK_SRC = 'modules/vfs_aio_fork.c'
491 VFS_PREOPEN_SRC = 'modules/vfs_preopen.c'
492 VFS_SYNCOPS_SRC = 'modules/vfs_syncops.c'
493 VFS_ACL_XATTR_SRC = 'modules/vfs_acl_xattr.c'
494 VFS_ACL_TDB_SRC = 'modules/vfs_acl_tdb.c'
495 VFS_SMB_TRAFFIC_ANALYZER_SRC = 'modules/vfs_smb_traffic_analyzer.c'
496 VFS_ONEFS_SRC = '''modules/vfs_onefs.c modules/onefs_acl.c modules/onefs_system.c
497 modules/onefs_open.c modules/onefs_streams.c modules/onefs_dir.c
498 modules/onefs_cbrl.c modules/onefs_notify.c modules/onefs_config.c'''
499 VFS_ONEFS_SHADOW_COPY_SRC = 'modules/vfs_onefs_shadow_copy.c modules/onefs_shadow_copy.c'
500 VFS_DIRSORT_SRC = 'modules/vfs_dirsort.c'
501 VFS_SCANNEDONLY_SRC = 'modules/vfs_scannedonly.c'
502 VFS_CROSSRENAME_SRC = 'modules/vfs_crossrename.c'
504 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
506 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
508 DCUTIL_SRC = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
510 AUTH_BUILTIN_SRC = 'auth/auth_builtin.c'
511 AUTH_DOMAIN_SRC = 'auth/auth_domain.c'
512 AUTH_SAM_SRC = 'auth/auth_sam.c'
513 AUTH_SERVER_SRC = 'auth/auth_server.c'
514 AUTH_UNIX_SRC = 'auth/auth_unix.c'
515 AUTH_WINBIND_SRC = 'auth/auth_winbind.c'
516 AUTH_WBC_SRC = 'auth/auth_wbc.c'
517 AUTH_SCRIPT_SRC = 'auth/auth_script.c'
518 AUTH_NETLOGOND_SRC = 'auth/auth_netlogond.c'
520 AUTH_STATIC = ''
521 AUTH_SRC = '''${AUTH_STATIC} auth/auth.c auth/auth_util.c auth/token_util.c
522 auth/auth_compat.c auth/auth_ntlmssp.c auth/user_info.c auth/check_samsec.c
523 auth/server_info.c auth/server_info_sam.c
524 ${PLAINTEXT_AUTH_SRC} ${SLCACHE_SRC} ${DCUTIL_SRC}'''
526 #FIXME: set IDMAP_STATIC during configuration
527 IDMAP_STATIC=''
528 IDMAP_SRC = 'winbindd/idmap.c winbindd/idmap_util.c ${IDMAP_STATIC}'
530 #FIXME: set NSS_INFO_STATIC during configuration
531 NSS_INFO_STATIC = ''
532 NSS_INFO_TEMPLATE_SRC = 'winbindd/nss_info_template.c'
533 NSS_INFO_SRC = 'winbindd/nss_info.c ${NSS_INFO_STATIC}'
535 IDMAP_HASH_SRC = '''winbindd/idmap_hash/idmap_hash.c
536 winbindd/idmap_hash/mapfile.c'''
538 IDMAP_ADEX_SRC = '''winbindd/idmap_adex/idmap_adex.c
539 winbindd/idmap_adex/cell_util.c
540 winbindd/idmap_adex/likewise_cell.c
541 winbindd/idmap_adex/provider_unified.c
542 winbindd/idmap_adex/gc_util.c
543 winbindd/idmap_adex/domain_util.c'''
545 PERFCOUNT_STATIC = ''
546 PERFCOUNT_ONEFS_SRC = 'modules/perfcount_onefs.c'
547 PERFCOUNT_TEST_SRC = 'modules/perfcount_test.c'
549 WINBINDD_SRC1 = '''winbindd/winbindd.c
550 winbindd/winbindd_group.c
551 winbindd/winbindd_util.c
552 winbindd/winbindd_cache.c
553 winbindd/winbindd_pam.c
554 winbindd/winbindd_misc.c
555 winbindd/winbindd_cm.c
556 winbindd/winbindd_wins.c
557 winbindd/winbindd_rpc.c
558 winbindd/winbindd_reconnect.c
559 winbindd/winbindd_ads.c
560 winbindd/winbindd_passdb.c
561 winbindd/winbindd_dual.c
562 winbindd/winbindd_dual_ndr.c
563 winbindd/winbindd_dual_srv.c
564 librpc/gen_ndr/cli_wbint.c
565 librpc/gen_ndr/srv_wbint.c
566 librpc/gen_ndr/ndr_wbint.c
567 winbindd/winbindd_async.c
568 winbindd/winbindd_creds.c
569 winbindd/winbindd_cred_cache.c
570 winbindd/winbindd_ccache_access.c
571 winbindd/winbindd_domain.c
572 winbindd/winbindd_idmap.c
573 winbindd/winbindd_locator.c
574 winbindd/winbindd_ndr.c
575 winbindd/wb_ping.c
576 winbindd/wb_lookupsid.c
577 winbindd/wb_lookupname.c
578 winbindd/wb_sid2uid.c
579 winbindd/wb_sid2gid.c
580 winbindd/wb_uid2sid.c
581 winbindd/wb_gid2sid.c
582 winbindd/wb_queryuser.c
583 winbindd/wb_lookupuseraliases.c
584 winbindd/wb_lookupusergroups.c
585 winbindd/wb_getpwsid.c
586 winbindd/wb_gettoken.c
587 winbindd/wb_seqnum.c
588 winbindd/wb_seqnums.c
589 winbindd/wb_group_members.c
590 winbindd/wb_getgrsid.c
591 winbindd/wb_query_user_list.c
592 winbindd/wb_fill_pwent.c
593 winbindd/wb_next_pwent.c
594 winbindd/wb_next_grent.c
595 winbindd/wb_dsgetdcname.c
596 winbindd/winbindd_lookupsid.c
597 winbindd/winbindd_lookupname.c
598 winbindd/winbindd_sid_to_uid.c
599 winbindd/winbindd_sid_to_gid.c
600 winbindd/winbindd_uid_to_sid.c
601 winbindd/winbindd_gid_to_sid.c
602 winbindd/winbindd_allocate_uid.c
603 winbindd/winbindd_allocate_gid.c
604 winbindd/winbindd_getpwsid.c
605 winbindd/winbindd_getpwnam.c
606 winbindd/winbindd_getpwuid.c
607 winbindd/winbindd_getsidaliases.c
608 winbindd/winbindd_getuserdomgroups.c
609 winbindd/winbindd_getgroups.c
610 winbindd/winbindd_show_sequence.c
611 winbindd/winbindd_getgrgid.c
612 winbindd/winbindd_getgrnam.c
613 winbindd/winbindd_getusersids.c
614 winbindd/winbindd_lookuprids.c
615 winbindd/winbindd_setpwent.c
616 winbindd/winbindd_getpwent.c
617 winbindd/winbindd_endpwent.c
618 winbindd/winbindd_setgrent.c
619 winbindd/winbindd_getgrent.c
620 winbindd/winbindd_endgrent.c
621 winbindd/winbindd_dsgetdcname.c
622 winbindd/winbindd_getdcname.c
623 winbindd/winbindd_list_users.c
624 winbindd/winbindd_list_groups.c
625 winbindd/winbindd_check_machine_acct.c
626 winbindd/winbindd_change_machine_acct.c
627 winbindd/winbindd_ping_dc.c
628 winbindd/winbindd_set_mapping.c
629 winbindd/winbindd_remove_mapping.c
630 winbindd/winbindd_set_hwm.c
631 winbindd/winbindd_pam_auth.c
632 winbindd/winbindd_pam_logoff.c
633 winbindd/winbindd_pam_chauthtok.c
634 winbindd/winbindd_pam_auth_crap.c
635 winbindd/winbindd_pam_chng_pswd_auth_crap.c
636 winbindd/winbindd_event.c
637 auth/token_util.c
638 auth/check_samsec.c
639 auth/server_info.c
640 auth/server_info_sam.c
641 auth/user_info.c
642 smbd/chgpasswd.c
643 ../nsswitch/libwbclient/wb_reqtrans.c'''
645 WINBINDD_SRC = '''${WINBINDD_SRC1}
646 ${LIBMSRPC_SRC} ${LIBMSRPC_GEN_SRC} ${RPC_PARSE_SRC}
647 ${PROFILE_SRC} ${SLCACHE_SRC}
648 ${LIBADS_SRC}
649 ${DCUTIL_SRC} ${IDMAP_SRC} ${NSS_INFO_SRC}
650 ${AFS_SRC} ${AFS_SETTOKEN_SRC}
651 ${LIBADS_SERVER_SRC}
652 ${TDB_VALIDATE_SRC}'''
654 LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c librpc/gen_ndr/ndr_libnet_join.c'
656 LIBSMBCONF_SRC = '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
657 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
658 lib/smbconf/smbconf_init.c'''
660 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
662 SMBD_SRC_MAIN = '''smbd/server.c'''
664 BUILDOPT_SRC = '''smbd/build_options.c'''
666 SMBD_SRC_SRV = '''smbd/files.c smbd/chgpasswd.c smbd/connection.c
667 smbd/utmp.c smbd/session.c smbd/map_username.c
668 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
669 smbd/share_access.c smbd/fileio.c
670 smbd/ipc.c smbd/lanman.c smbd/negprot.c
671 smbd/message.c smbd/nttrans.c smbd/pipes.c
672 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
673 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
674 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
675 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
676 smbd/posix_acls.c lib/sysacls.c
677 smbd/process.c smbd/service.c smbd/error.c
678 printing/printfsp.c lib/sysquotas.c lib/sysquotas_linux.c
679 lib/sysquotas_xfs.c lib/sysquotas_4A.c
680 smbd/change_trust_pw.c smbd/fake_file.c
681 smbd/quotas.c smbd/ntquotas.c ${AFS_SRC} smbd/msdfs.c
682 ${AFS_SETTOKEN_SRC} smbd/aio.c smbd/statvfs.c
683 smbd/dmapi.c smbd/signing.c
684 smbd/file_access.c
685 smbd/dnsregister.c smbd/globals.c
686 smbd/smb2_server.c
687 smbd/smb2_signing.c
688 smbd/smb2_glue.c
689 smbd/smb2_negprot.c
690 smbd/smb2_sesssetup.c
691 smbd/smb2_tcon.c
692 smbd/smb2_create.c
693 smbd/smb2_close.c
694 smbd/smb2_flush.c
695 smbd/smb2_read.c
696 smbd/smb2_write.c
697 smbd/smb2_lock.c
698 smbd/smb2_ioctl.c
699 smbd/smb2_keepalive.c
700 smbd/smb2_find.c
701 smbd/smb2_notify.c
702 smbd/smb2_getinfo.c
703 smbd/smb2_setinfo.c
704 smbd/smb2_break.c
705 ../libcli/smb/smb2_create_blob.c
706 ${MANGLE_SRC} ${VFS_STATIC}'''
708 SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
709 ${RPC_SERVER_SRC} ${RPC_PARSE_SRC}
710 ${LOCKING_SRC} ${PRINTING_SRC}
711 ${PROFILE_SRC} ${PRINTBACKEND_SRC}
712 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
713 ${LIBMSRPC_SRC}
714 ${LIBMSRPC_GEN_SRC} ${AVAHI_SRC} ${LIBADS_SRC}
715 ${LIBADS_SERVER_SRC} ${REG_FULL_SRC}
716 ${BUILDOPT_SRC}
717 ${LIBNET_SRC} ${LIBSMBCONF_SRC}
718 ${RPC_LSA_SRC}
719 ${RPC_NETLOG_SRC} ${RPC_SAMR_SRC}
720 ${RPC_INITSHUTDOWN_SRC} ${RPC_REG_SRC}
721 ${RPC_DSSETUP_SRC} ${RPC_SVC_SRC} ${RPC_WKS_SRC}
722 ${RPC_SVCCTL_SRC} ${RPC_NTSVCS_SRC} ${RPC_DFS_SRC}
723 ${RPC_SPOOLSS_SRC} ${RPC_EVENTLOG_SRC}
724 ${RPC_ECHO_SRC}
725 ${AUTH_SRC}
726 ${PRIVILEGES_BASIC_SRC}'''
728 PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
729 printing/print_cups.c printing/print_generic.c
730 printing/lpq_parse.c printing/load.c printing/print_standard.c
731 printing/print_iprint.c'''
733 PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
734 PRINTBACKEND_SRC = 'printing/printing.c printing/nt_printing.c ${PRINTBASE_SRC}'
736 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
738 NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
739 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
740 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
741 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
742 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
743 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
744 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
745 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
746 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
747 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
748 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
749 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
751 NMBD_SRC = '${NMBD_SRC1} ${PROFILE_SRC} ${LIBNDR_GEN_SRC0}'
753 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
754 web/swat.c web/neg_lang.c'''
756 SWAT_SRC = '''${SWAT_SRC1} ${PRINTING_SRC} ${PRINTBASE_SRC}
757 ${LOCKING_SRC}
758 ${PLAINTEXT_AUTH_SRC}
759 ${RPC_PARSE_SRC} ${LIBMSRPC_GEN_SRC} ${LIBMSRPC_SRC}
760 ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}'''
762 WBINFO_SRC = '../nsswitch/wbinfo.c ${AFS_SETTOKEN_SRC}'
764 TESTPARM_SRC = 'utils/testparm.c'
766 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
768 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}
769 registry/reg_eventlog.c ${LIB_EVENTLOG_SRC}
770 ../librpc/gen_ndr/ndr_eventlog.c
771 ../librpc/gen_ndr/ndr_lsa.c'''
773 LIBS='ICONV'
775 bld.env.AWK = 'gawk'
777 bld.SAMBA_GENERATOR('build_options',
778 source='include/config.h script/mkbuildoptions.awk',
779 target='smbd/build_options.c',
780 rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
782 t = bld.SAMBA_GENERATOR('build_env.h',
783 source='script/build_env.sh',
784 target='include/build_env.h',
785 rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
786 # todo: work out what is really wanted here
787 t.env.SRCDIR = bld.path.abspath()
788 t.env.BUILDDIR = bld.path.abspath()
791 bld.SETUP_BUILD_GROUPS()
793 bld.RECURSE('../lib/replace')
794 print "SBINDIR=%s" % bld.env.SBINDIR
795 bld.RECURSE('build')
797 bld.RECURSE('../librpc/idl')
798 bld.RECURSE('librpc/idl')
800 bld.SAMBA_MKVERSION('include/version.h')
802 for prefix in bld.env.MODULE_PREFIXES:
803 static_key = "%s_STATIC" % prefix.upper()
804 shared_key = "%s_SHARED" % prefix.upper()
806 # Set up the static modules
807 static_src = locals()[static_key]
808 for module in bld.env[static_key]:
809 static_src += "${%s_SRC} " % module
810 # for some reason static_src doesn't seem to be a reference, so save it
811 # back to the locals
812 locals()[static_key] = static_src
814 # Set up subsystems for the shared modules
815 for module in bld.env[shared_key]:
816 bld.SAMBA_SUBSYSTEM(module,
817 source="${%s_SRC}" % module,
818 vars=locals())
820 ######################## SUBSYSTEMS #################################
822 bld.SAMBA_SUBSYSTEM('WBCOMMON',
823 source=WBCOMMON_SRC)
825 bld.SAMBA_SUBSYSTEM('LIBWBCLIENT',
826 source='''../nsswitch/libwbclient/wbc_guid.c
827 ../nsswitch/libwbclient/wbc_idmap.c
828 ../nsswitch/libwbclient/wbclient.c
829 ../nsswitch/libwbclient/wbc_pam.c
830 ../nsswitch/libwbclient/wbc_pwd.c
831 ../nsswitch/libwbclient/wbc_sid.c
832 ../nsswitch/libwbclient/wbc_util.c''',
833 public_deps='talloc WBCOMMON')
836 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
837 source='../lib/util/asn1.c',
838 deps='talloc',
839 local_include=False)
841 bld.SAMBA_SUBSYSTEM('GROUPDB',
842 source=GROUPDB_SRC)
844 bld.SAMBA_SUBSYSTEM('TLDAP',
845 source=TLDAP_SRC,
846 deps='ASN1_UTIL LIBTSOCKET')
848 bld.SAMBA_SUBSYSTEM('PASSDB',
849 source=PASSDB_SRC,
850 deps='GROUPDB TLDAP SECRETS',
851 vars=locals())
853 bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
854 source=PARAM_WITHOUT_REG_SRC)
856 bld.SAMBA_SUBSYSTEM('PARAM',
857 source=PARAM_SRC,
858 deps='PARAM_WITHOUT_REG',
859 vars=locals())
861 bld.SAMBA_SUBSYSTEM('POPT_SAMBA',
862 source=POPT_LIB_SRC,
863 vars=locals())
865 bld.SAMBA_SUBSYSTEM('KRBCLIENT',
866 source=KRBCLIENT_SRC,
867 vars=locals())
869 bld.SAMBA_SUBSYSTEM('LIBS',
870 source=LIB_SRC,
871 deps='NSS_WRAPPER',
872 vars=locals())
874 bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
875 source=LIB_NONSMBD_SRC,
876 deps='LIBS',
877 vars=locals())
879 bld.SAMBA_SUBSYSTEM('LIBSMB_ERR',
880 source=LIBSMB_ERR_SRC,
881 deps='SECRETS SMBLDAP',
882 vars=locals())
884 bld.SAMBA_SUBSYSTEM('LIBSAMBA',
885 source=LIBSAMBA_SRC,
886 deps='LIBSMB_ERR',
887 vars=locals())
889 bld.SAMBA_SUBSYSTEM('LIBSMB',
890 source=LIBSMB_SRC,
891 deps='LIBSAMBA ZLIB',
892 vars=locals())
894 bld.SAMBA_SUBSYSTEM('SECRETS',
895 source=SECRETS_SRC,
896 vars=locals())
898 bld.SAMBA_SUBSYSTEM('SMBLDAP',
899 source=SMBLDAP_SRC,
900 deps='ldap lber',
901 vars=locals())
903 ########################## BINARIES #################################
905 bld.SAMBA_BINARY('smbd/smbd',
906 source=SMBD_SRC,
907 deps='''tdb DYNCONFIG tevent dl krb5 ldap gssapi gssapi_krb5
908 NSS_WRAPPER LIBWBCLIENT crypt nsl cups cap resolv ZLIB PASSDB
909 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT''',
910 install_path='${SBINDIR}',
911 vars=locals())
913 bld.SAMBA_BINARY('nmbd/nmbd',
914 source=NMBD_SRC,
915 deps='''talloc tdb tevent ZLIB cap resolv LIBWBCLIENT dl
916 NSS_WRAPPER DYNCONFIG PASSDB PARAM ldap LIB_NONSMBD LIBSMB
917 POPT_SAMBA KRBCLIENT''',
918 install_path='${SBINDIR}',
919 vars=locals())
921 bld.SAMBA_BINARY('winbindd/winbindd',
922 source=WINBINDD_SRC,
923 deps='''talloc tdb tevent cap dl DYNCONFIG ZLIB NSS_WRAPPER
924 LIBWBCLIENT PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
925 POPT_SAMBA KRBCLIENT''',
926 enabled=bld.env.build_winbind,
927 install_path='${SBINDIR}',
928 vars=locals())
930 bld.SAMBA_BINARY('web/swat',
931 source=SWAT_SRC,
932 deps='''talloc tevent cap DYNCONFIG LIBS LIBSMB LIBWBCLIENT PARAM
933 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT''',
934 enabled=bld.env.build_swat,
935 install_path='${SBINDIR}',
936 vars=locals())
938 bld.SAMBA_BINARY('wbinfo',
939 source=WBINFO_SRC,
940 deps='''talloc LIBWBCLIENT DYNCONFIG tevent cap
941 NSS_WRAPPER ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
942 LIBSAMBA POPT_SAMBA''',
943 vars=locals())
945 bld.SAMBA_BINARY('testparm',
946 source=TESTPARM_SRC,
947 deps='''talloc tevent DYNCONFIG ldap cap NSS_WRAPPER
948 LIBWBCLIENT ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
949 LIBSMB_ERR POPT_SAMBA''',
950 vars=locals())
952 bld.SAMBA_BINARY('eventlogadm',
953 source=EVTLOGADM_SRC,
954 deps='''talloc tevent cap POPT_SAMBA DYNCONFIG LIBS PARAM
955 LIB_NONSMBD LIBSMB_ERR PASSDB LIBWBCLIENT''',
956 vars=locals())
958 swat_files=recursive_dirlist('../swat', '../swat', '*')
959 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
961 ########################## INCLUDES #################################
963 bld.RECURSE('../lib/socket_wrapper')
964 bld.RECURSE('../lib/talloc')
965 bld.RECURSE('../lib/tdb')
966 bld.RECURSE('../lib/nss_wrapper')
967 bld.RECURSE('../lib/tevent')
968 bld.RECURSE('../lib/popt')
969 bld.RECURSE('../lib/zlib')
970 bld.RECURSE('../lib/tsocket')
972 bld.ENFORCE_GROUP_ORDERING()
973 bld.CHECK_PROJECT_RULES()