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