s3-security: remove some more shared secdesc defines.
[Samba/ekacnet.git] / source3 / wscript_build
blobab61d80d95b4c1d4d9bb3a7f3319d461205eec47
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_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 lib/util_names.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 param/loadparm_server_role.c
179 lib/sharesec.c lib/ldap_debug_handler.c'''
180 PARAM_REG_ADD_SRC = '''${REG_SMBCONF_SRC} ${LIBSMBCONF_SRC} ${PRIVILEGES_BASIC_SRC}'''
181 PARAM_SRC = '''${PARAM_REG_ADD_SRC}'''
183 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
185 LIBADDNS_SRC0 = '''libaddns/dnsrecord.c libaddns/dnsutils.c libaddns/dnssock.c
186 libaddns/dnsgss.c libaddns/dnsmarshall.c'''
187 LIBADDNS_SRC = '''${LIBADDNS_SRC0} ${SOCKET_WRAPPER_SRC}'''
189 GPEXT_STATIC = ''
190 GPEXT_REGISTRY_SRC = 'libgpo/gpext/registry.c'
191 GPEXT_SCRIPTS_SRC = 'libgpo/gpext/scripts.c'
192 GPEXT_SECURITY_SRC = 'libgpo/gpext/security.c'
194 GPEXT_SRC = '''../libgpo/gpext/gpext.c ${GPEXT_STATIC}'''
196 LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
197 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
198 libgpo/gpo_reg.c
199 ${GPEXT_SRC}'''
200 LIBGPO_SRC = '''${LIBGPO_SRC0}'''
202 LIBADS_SRC = '''libads/ldap.c libads/ldap_printer.c
203 libads/sasl.c libads/sasl_wrapping.c
204 libads/krb5_setpw.c libads/ldap_user.c
205 libads/ads_struct.c libads/kerberos_keytab.c
206 libads/disp_sec.c libads/ads_utils.c libads/ldap_utils.c
207 libads/ldap_schema.c libads/util.c libads/ndr.c'''
209 LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c
210 ../librpc/ndr/ndr_krb5pac.c
211 ../librpc/gen_ndr/ndr_krb5pac.c'''
213 LIBNBT_SRC = '''../libcli/nbt/nbtname.c
214 ../libcli/netlogon.c
215 ../libcli/ndr_netlogon.c
216 ../librpc/gen_ndr/ndr_nbt.c
217 ../librpc/gen_ndr/ndr_svcctl.c
218 ../librpc/ndr/ndr_svcctl.c'''
220 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
221 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
222 libads/dns.c libads/sitename_cache.c'''
224 NTERR_SRC = '''libsmb/nterr.c libsmb/smberr.c'''
225 DOSERR_SRC = '../libcli/util/doserr.c'
226 ERRORMAP_SRC = 'libsmb/errormap.c'
227 DCE_RPC_ERR_SRC = '../librpc/rpc/dcerpc_error.c'
229 LIBSMB_ERR_SRC0 = '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
231 LIBSMB_ERR_SRC1 = '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
233 LIBSMB_ERR_SRC = '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1} ${RPC_PARSE_SRC1}'
235 LIBSMB_SRC0 = '''
236 ../libcli/auth/ntlm_check.c
237 libsmb/ntlmssp.c
238 ../libcli/auth/ntlmssp.c
239 ../libcli/auth/ntlmssp_sign.c
240 ${LIBNDR_NTLMSSP_SRC}
241 ../libcli/auth/ntlmssp_ndr.c'''
243 LIBSAMBA_SRC = '${LIBSMB_SRC0}'
245 LIBCLI_LDAP_MESSAGE_SRC = '''../libcli/ldap/ldap_message.c'''
246 LIBCLI_LDAP_NDR_SRC = '''../libcli/ldap/ldap_ndr.c'''
248 CLDAP_SRC = '''libads/cldap.c
249 ../libcli/cldap/cldap.c lib/ldb_compat.c
250 ../lib/util/idtree.c
251 ${LIBCLI_LDAP_MESSAGE_SRC} ${LIBCLI_LDAP_NDR_SRC}'''
253 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
255 SCHANNEL_SRC = '''../libcli/auth/credentials.c
256 ../libcli/auth/schannel_sign.c
257 ../libcli/auth/schannel_state_tdb.c
258 ../librpc/gen_ndr/ndr_schannel.c
259 ../librpc/ndr/ndr_schannel.c'''
261 LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
262 libsmb/clikrb5.c libsmb/clispnego.c
263 ../libcli/auth/spnego_parse.c
264 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
265 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
266 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
267 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
268 libsmb/clioplock.c libsmb/clirap2.c
269 libsmb/smb_seal.c libsmb/async_smb.c
270 ${LIBNMB_SRC}
271 ${LIBNBT_SRC}
272 ${CLDAP_SRC}
273 ${DRSUAPI_SRC}'''
275 RPC_CLIENT_SRC1 = '''rpc_client/cli_netlogon.c
276 ${SCHANNEL_SRC}'''
278 LIBMSRPC_SRC = '''rpc_client/cli_lsarpc.c rpc_client/cli_samr.c
279 ${RPC_CLIENT_SRC1}
280 ${RPC_CLIENT_SRC}
281 rpc_client/cli_spoolss.c
282 rpc_client/init_spoolss.c
283 rpc_client/init_samr.c
284 ../librpc/rpc/binding.c'''
286 LIBMSRPC_GEN_SRC = '''../librpc/gen_ndr/cli_lsa.c
287 ../librpc/gen_ndr/cli_dfs.c
288 ../librpc/gen_ndr/cli_echo.c
289 ../librpc/gen_ndr/cli_srvsvc.c
290 ../librpc/gen_ndr/cli_svcctl.c
291 ../librpc/gen_ndr/cli_winreg.c
292 ../librpc/gen_ndr/cli_initshutdown.c
293 ../librpc/gen_ndr/cli_eventlog.c
294 ../librpc/gen_ndr/cli_wkssvc.c
295 ../librpc/gen_ndr/cli_netlogon.c
296 ../librpc/gen_ndr/cli_samr.c
297 ../librpc/gen_ndr/cli_dssetup.c
298 ../librpc/gen_ndr/cli_ntsvcs.c
299 ../librpc/gen_ndr/cli_epmapper.c
300 ../librpc/gen_ndr/cli_drsuapi.c
301 ../librpc/gen_ndr/cli_spoolss.c
302 ${LIBNDR_GEN_SRC}
303 ${RPCCLIENT_NDR_SRC}'''
306 # registry-related objects
308 UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
309 REG_UTIL_MARSHALLING_SRC = '''registry/reg_util_marshalling.c'''
311 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
312 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
313 REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
315 REGFIO_SRC = '''registry/regfio.c'''
317 REGSRCS_SRC = '''registry/reg_objects.c'''
319 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
321 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
323 REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
324 registry/reg_backend_shares.c
325 registry/reg_backend_netlogon_params.c
326 registry/reg_backend_prod_options.c
327 registry/reg_backend_tcpip_params.c
328 registry/reg_backend_hkpt_params.c
329 registry/reg_backend_current_version.c
330 registry/reg_backend_perflib.c'''
332 REG_BASE_SRC = '''registry/reg_api.c
333 registry/reg_dispatcher.c
334 registry/reg_cachehook.c
335 ${REGFIO_SRC}
336 ${REGSRCS_SRC}
337 registry/reg_util_internal.c
338 ${REG_UTIL_MARSHALLING_SRC}
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 ../librpc/gen_ndr/srv_spoolss.c'''
396 RPC_EVENTLOG_SRC = '''rpc_server/srv_eventlog_nt.c
397 ${LIB_EVENTLOG_SRC} ../librpc/gen_ndr/srv_eventlog.c'''
399 NPA_TSTREAM_SRC = '''../libcli/named_pipe_auth/npa_tstream.c'''
401 RPC_PIPE_SRC = '''rpc_server/srv_pipe_hnd.c
402 rpc_server/srv_pipe.c rpc_server/srv_lsa_hnd.c'''
404 RPC_ECHO_SRC = '''rpc_server/srv_echo_nt.c ../librpc/gen_ndr/srv_echo.c'''
406 #TODO: RPC_SERVER_SRC used to include RPC_STATIC modules
407 RPC_SERVER_SRC = '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC}'''
409 RPC_PARSE_SRC = '''${RPC_PARSE_SRC2}'''
411 RPC_CLIENT_SRC = '''rpc_client/cli_pipe.c rpc_client/rpc_transport_np.c
412 rpc_client/rpc_transport_sock.c rpc_client/rpc_transport_smbd.c'''
414 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
416 PRIVILEGES_BASIC_SRC = '''lib/privileges_basic.c'''
418 PRIVILEGES_SRC = '''lib/privileges.c'''
420 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
422 PDB_STATIC = ''
423 PDB_TDBSAM_SRC = 'passdb/pdb_tdb.c'
424 PDB_LDAP_SRC = 'passdb/pdb_ldap.c'
425 PDB_ADS_SRC = 'passdb/pdb_ads.c'
426 PDB_SMBPASSWD_SRC = 'passdb/pdb_smbpasswd.c'
427 PDB_WBC_SAM_SRC = 'passdb/pdb_wbc_sam.c'
429 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
430 passdb/machine_sid.c librpc/gen_ndr/ndr_secrets.c'''
432 PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c passdb/pdb_interface.c
433 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
434 passdb/util_unixsids.c passdb/lookup_sid.c
435 passdb/login_cache.c ${PDB_STATIC}
436 passdb/account_pol.c ${PRIVILEGES_SRC}
437 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
438 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
440 CHARSET_STATIC = ''
441 CHARSET_WEIRD_SRC = 'modules/weird.c'
442 CHARSET_CP850_SRC = 'modules/CP850.c'
443 CHARSET_CP437_SRC = 'modules/CP437.c'
444 CHARSET_MACOSXFS_SRC = 'modules/charset_macosxfs.c'
446 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
448 PROFILE_SRC = '''profile/profile.c'''
449 PROFILES_SRC = '''utils/profiles.c
450 ${LIBSMB_ERR_SRC}
451 ${PARAM_SRC}
452 ${LIB_SRC} ${LIB_DUMMY_SRC}'''
454 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
455 smbd/oplock_onefs.c'''
457 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
459 FNAME_UTIL_SRC = '''smbd/filename_util.c'''
461 VFS_STATIC = ''
462 VFS_DEFAULT_SRC = '''modules/vfs_default.c'''
463 VFS_AUDIT_SRC = '''modules/vfs_audit.c'''
464 VFS_EXTD_AUDIT_SRC = '''modules/vfs_extd_audit.c'''
465 VFS_FULL_AUDIT_SRC = '''modules/vfs_full_audit.c'''
466 VFS_FAKE_PERMS_SRC = '''modules/vfs_fake_perms.c'''
467 VFS_RECYCLE_SRC = '''modules/vfs_recycle.c'''
468 VFS_NETATALK_SRC = '''modules/vfs_netatalk.c'''
469 VFS_DEFAULT_QUOTA_SRC = '''modules/vfs_default_quota.c'''
470 VFS_READONLY_SRC = '''modules/vfs_readonly.c modules/getdate.c'''
471 VFS_CAP_SRC = '''modules/vfs_cap.c'''
472 VFS_EXPAND_MSDFS_SRC = '''modules/vfs_expand_msdfs.c'''
473 VFS_SHADOW_COPY_SRC = '''modules/vfs_shadow_copy.c'''
474 VFS_SHADOW_COPY2_SRC = '''modules/vfs_shadow_copy2.c'''
475 VFS_AFSACL_SRC = '''modules/vfs_afsacl.c'''
476 VFS_XATTR_TDB_SRC = '''modules/vfs_xattr_tdb.c'''
477 VFS_POSIXACL_SRC = '''modules/vfs_posixacl.c'''
478 VFS_AIXACL_SRC = '''modules/vfs_aixacl.c modules/vfs_aixacl_util.c'''
479 VFS_AIXACL2_SRC = '''modules/vfs_aixacl2.c modules/vfs_aixacl_util.c modules/nfs4_acls.c'''
480 VFS_SOLARISACL_SRC = '''modules/vfs_solarisacl.c'''
481 VFS_ZFSACL_SRC = '''modules/vfs_zfsacl.c modules/nfs4_acls.c'''
482 VFS_HPUXACL_SRC = '''modules/vfs_hpuxacl.c'''
483 VFS_IRIXACL_SRC = '''modules/vfs_irixacl.c'''
484 VFS_TRU64ACL_SRC = '''modules/vfs_tru64acl.c'''
485 VFS_CATIA_SRC = 'modules/vfs_catia.c'
486 VFS_STREAMS_XATTR_SRC = 'modules/vfs_streams_xattr.c'
487 VFS_STREAMS_DEPOT_SRC = 'modules/vfs_streams_depot.c'
488 VFS_CACHEPRIME_SRC = 'modules/vfs_cacheprime.c'
489 VFS_PREALLOC_SRC = 'modules/vfs_prealloc.c'
490 VFS_COMMIT_SRC = 'modules/vfs_commit.c'
491 VFS_GPFS_SRC = 'modules/vfs_gpfs.c modules/gpfs.c modules/nfs4_acls.c'
492 VFS_NOTIFY_FAM_SRC = 'modules/vfs_notify_fam.c'
493 VFS_READAHEAD_SRC = 'modules/vfs_readahead.c'
494 VFS_TSMSM_SRC = 'modules/vfs_tsmsm.c'
495 VFS_FILEID_SRC = 'modules/vfs_fileid.c'
496 VFS_AIO_FORK_SRC = 'modules/vfs_aio_fork.c'
497 VFS_PREOPEN_SRC = 'modules/vfs_preopen.c'
498 VFS_SYNCOPS_SRC = 'modules/vfs_syncops.c'
499 VFS_ACL_XATTR_SRC = 'modules/vfs_acl_xattr.c'
500 VFS_ACL_TDB_SRC = 'modules/vfs_acl_tdb.c'
501 VFS_SMB_TRAFFIC_ANALYZER_SRC = 'modules/vfs_smb_traffic_analyzer.c'
502 VFS_ONEFS_SRC = '''modules/vfs_onefs.c modules/onefs_acl.c modules/onefs_system.c
503 modules/onefs_open.c modules/onefs_streams.c modules/onefs_dir.c
504 modules/onefs_cbrl.c modules/onefs_notify.c modules/onefs_config.c'''
505 VFS_ONEFS_SHADOW_COPY_SRC = 'modules/vfs_onefs_shadow_copy.c modules/onefs_shadow_copy.c'
506 VFS_DIRSORT_SRC = 'modules/vfs_dirsort.c'
507 VFS_SCANNEDONLY_SRC = 'modules/vfs_scannedonly.c'
508 VFS_CROSSRENAME_SRC = 'modules/vfs_crossrename.c'
510 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
512 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
514 DCUTIL_SRC = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
516 AUTH_BUILTIN_SRC = 'auth/auth_builtin.c'
517 AUTH_DOMAIN_SRC = 'auth/auth_domain.c'
518 AUTH_SAM_SRC = 'auth/auth_sam.c'
519 AUTH_SERVER_SRC = 'auth/auth_server.c'
520 AUTH_UNIX_SRC = 'auth/auth_unix.c'
521 AUTH_WINBIND_SRC = 'auth/auth_winbind.c'
522 AUTH_WBC_SRC = 'auth/auth_wbc.c'
523 AUTH_SCRIPT_SRC = 'auth/auth_script.c'
524 AUTH_NETLOGOND_SRC = 'auth/auth_netlogond.c'
526 AUTH_STATIC = ''
527 AUTH_SRC = '''${AUTH_STATIC} auth/auth.c auth/auth_util.c auth/token_util.c
528 auth/auth_compat.c auth/auth_ntlmssp.c auth/user_info.c auth/check_samsec.c
529 auth/server_info.c auth/server_info_sam.c
530 ${PLAINTEXT_AUTH_SRC} ${SLCACHE_SRC} ${DCUTIL_SRC}'''
532 #FIXME: set IDMAP_STATIC during configuration
533 IDMAP_STATIC=''
534 IDMAP_SRC = 'winbindd/idmap.c winbindd/idmap_util.c ${IDMAP_STATIC}'
536 #FIXME: set NSS_INFO_STATIC during configuration
537 NSS_INFO_STATIC = ''
538 NSS_INFO_TEMPLATE_SRC = 'winbindd/nss_info_template.c'
539 NSS_INFO_SRC = 'winbindd/nss_info.c ${NSS_INFO_STATIC}'
541 IDMAP_HASH_SRC = '''winbindd/idmap_hash/idmap_hash.c
542 winbindd/idmap_hash/mapfile.c'''
544 IDMAP_ADEX_SRC = '''winbindd/idmap_adex/idmap_adex.c
545 winbindd/idmap_adex/cell_util.c
546 winbindd/idmap_adex/likewise_cell.c
547 winbindd/idmap_adex/provider_unified.c
548 winbindd/idmap_adex/gc_util.c
549 winbindd/idmap_adex/domain_util.c'''
551 PERFCOUNT_STATIC = ''
552 PERFCOUNT_ONEFS_SRC = 'modules/perfcount_onefs.c'
553 PERFCOUNT_TEST_SRC = 'modules/perfcount_test.c'
555 WINBINDD_SRC1 = '''winbindd/winbindd.c
556 winbindd/winbindd_group.c
557 winbindd/winbindd_util.c
558 winbindd/winbindd_cache.c
559 winbindd/winbindd_pam.c
560 winbindd/winbindd_misc.c
561 winbindd/winbindd_cm.c
562 winbindd/winbindd_wins.c
563 winbindd/winbindd_rpc.c
564 winbindd/winbindd_reconnect.c
565 winbindd/winbindd_ads.c
566 winbindd/winbindd_passdb.c
567 winbindd/winbindd_dual.c
568 winbindd/winbindd_dual_ndr.c
569 winbindd/winbindd_dual_srv.c
570 librpc/gen_ndr/cli_wbint.c
571 librpc/gen_ndr/srv_wbint.c
572 librpc/gen_ndr/ndr_wbint.c
573 winbindd/winbindd_async.c
574 winbindd/winbindd_creds.c
575 winbindd/winbindd_cred_cache.c
576 winbindd/winbindd_ccache_access.c
577 winbindd/winbindd_domain.c
578 winbindd/winbindd_idmap.c
579 winbindd/winbindd_locator.c
580 winbindd/winbindd_ndr.c
581 winbindd/wb_ping.c
582 winbindd/wb_lookupsid.c
583 winbindd/wb_lookupname.c
584 winbindd/wb_sid2uid.c
585 winbindd/wb_sid2gid.c
586 winbindd/wb_uid2sid.c
587 winbindd/wb_gid2sid.c
588 winbindd/wb_queryuser.c
589 winbindd/wb_lookupuseraliases.c
590 winbindd/wb_lookupusergroups.c
591 winbindd/wb_getpwsid.c
592 winbindd/wb_gettoken.c
593 winbindd/wb_seqnum.c
594 winbindd/wb_seqnums.c
595 winbindd/wb_group_members.c
596 winbindd/wb_getgrsid.c
597 winbindd/wb_query_user_list.c
598 winbindd/wb_fill_pwent.c
599 winbindd/wb_next_pwent.c
600 winbindd/wb_next_grent.c
601 winbindd/wb_dsgetdcname.c
602 winbindd/winbindd_lookupsid.c
603 winbindd/winbindd_lookupname.c
604 winbindd/winbindd_sid_to_uid.c
605 winbindd/winbindd_sid_to_gid.c
606 winbindd/winbindd_uid_to_sid.c
607 winbindd/winbindd_gid_to_sid.c
608 winbindd/winbindd_allocate_uid.c
609 winbindd/winbindd_allocate_gid.c
610 winbindd/winbindd_getpwsid.c
611 winbindd/winbindd_getpwnam.c
612 winbindd/winbindd_getpwuid.c
613 winbindd/winbindd_getsidaliases.c
614 winbindd/winbindd_getuserdomgroups.c
615 winbindd/winbindd_getgroups.c
616 winbindd/winbindd_show_sequence.c
617 winbindd/winbindd_getgrgid.c
618 winbindd/winbindd_getgrnam.c
619 winbindd/winbindd_getusersids.c
620 winbindd/winbindd_lookuprids.c
621 winbindd/winbindd_setpwent.c
622 winbindd/winbindd_getpwent.c
623 winbindd/winbindd_endpwent.c
624 winbindd/winbindd_setgrent.c
625 winbindd/winbindd_getgrent.c
626 winbindd/winbindd_endgrent.c
627 winbindd/winbindd_dsgetdcname.c
628 winbindd/winbindd_getdcname.c
629 winbindd/winbindd_list_users.c
630 winbindd/winbindd_list_groups.c
631 winbindd/winbindd_check_machine_acct.c
632 winbindd/winbindd_change_machine_acct.c
633 winbindd/winbindd_ping_dc.c
634 winbindd/winbindd_set_mapping.c
635 winbindd/winbindd_remove_mapping.c
636 winbindd/winbindd_set_hwm.c
637 winbindd/winbindd_pam_auth.c
638 winbindd/winbindd_pam_logoff.c
639 winbindd/winbindd_pam_chauthtok.c
640 winbindd/winbindd_pam_auth_crap.c
641 winbindd/winbindd_pam_chng_pswd_auth_crap.c
642 winbindd/winbindd_event.c
643 auth/token_util.c
644 auth/check_samsec.c
645 auth/server_info.c
646 auth/server_info_sam.c
647 auth/user_info.c
648 rpc_server/srv_samr_chgpasswd.c
649 ../nsswitch/libwbclient/wb_reqtrans.c'''
651 WINBINDD_SRC = '''${WINBINDD_SRC1}
652 ${LIBMSRPC_SRC} ${LIBMSRPC_GEN_SRC} ${RPC_PARSE_SRC}
653 ${PROFILE_SRC} ${SLCACHE_SRC}
654 ${LIBADS_SRC}
655 ${DCUTIL_SRC} ${IDMAP_SRC} ${NSS_INFO_SRC}
656 ${AFS_SRC} ${AFS_SETTOKEN_SRC}
657 ${LIBADS_SERVER_SRC}
658 ${TDB_VALIDATE_SRC}'''
660 LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c librpc/gen_ndr/ndr_libnet_join.c'
662 LIBSMBCONF_SRC = '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
663 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
664 lib/smbconf/smbconf_init.c'''
666 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
668 SMBD_SRC_MAIN = '''smbd/server.c smbd/server_exit.c'''
670 BUILDOPT_SRC = '''smbd/build_options.c'''
672 SMBD_SRC_SRV = '''smbd/server_reload.c smbd/files.c smbd/connection.c
673 smbd/utmp.c smbd/session.c smbd/map_username.c
674 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
675 smbd/share_access.c smbd/fileio.c
676 smbd/ipc.c smbd/lanman.c smbd/negprot.c
677 smbd/message.c smbd/nttrans.c smbd/pipes.c
678 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
679 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
680 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
681 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
682 smbd/posix_acls.c lib/sysacls.c
683 smbd/process.c smbd/service.c smbd/error.c
684 printing/printfsp.c lib/sysquotas.c lib/sysquotas_linux.c
685 lib/sysquotas_xfs.c lib/sysquotas_4A.c
686 smbd/change_trust_pw.c smbd/fake_file.c
687 smbd/quotas.c smbd/ntquotas.c ${AFS_SRC} smbd/msdfs.c
688 ${AFS_SETTOKEN_SRC} smbd/aio.c smbd/statvfs.c
689 smbd/dmapi.c smbd/signing.c
690 smbd/file_access.c
691 smbd/dnsregister.c smbd/globals.c
692 smbd/smb2_server.c
693 smbd/smb2_signing.c
694 smbd/smb2_glue.c
695 smbd/smb2_negprot.c
696 smbd/smb2_sesssetup.c
697 smbd/smb2_tcon.c
698 smbd/smb2_create.c
699 smbd/smb2_close.c
700 smbd/smb2_flush.c
701 smbd/smb2_read.c
702 smbd/smb2_write.c
703 smbd/smb2_lock.c
704 smbd/smb2_ioctl.c
705 smbd/smb2_keepalive.c
706 smbd/smb2_find.c
707 smbd/smb2_notify.c
708 smbd/smb2_getinfo.c
709 smbd/smb2_setinfo.c
710 smbd/smb2_break.c
711 ../libcli/smb/smb2_create_blob.c
712 ${MANGLE_SRC} ${VFS_STATIC}'''
714 SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
715 ${RPC_SERVER_SRC} ${RPC_PARSE_SRC}
716 ${LOCKING_SRC} ${PRINTING_SRC}
717 ${PROFILE_SRC} ${PRINTBACKEND_SRC}
718 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
719 ${LIBMSRPC_SRC}
720 ${LIBMSRPC_GEN_SRC} ${LIBADS_SRC}
721 ${LIBADS_SERVER_SRC} ${REG_FULL_SRC}
722 ${BUILDOPT_SRC}
723 ${LIBNET_SRC} ${LIBSMBCONF_SRC}
724 ${RPC_LSA_SRC}
725 ${RPC_NETLOG_SRC} ${RPC_SAMR_SRC}
726 ${RPC_INITSHUTDOWN_SRC} ${RPC_REG_SRC}
727 ${RPC_DSSETUP_SRC} ${RPC_SVC_SRC} ${RPC_WKS_SRC}
728 ${RPC_SVCCTL_SRC} ${RPC_NTSVCS_SRC} ${RPC_DFS_SRC}
729 ${RPC_SPOOLSS_SRC} ${RPC_EVENTLOG_SRC}
730 ${RPC_ECHO_SRC}
731 ${AUTH_SRC}
732 ${PRIVILEGES_BASIC_SRC}'''
734 PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
735 printing/print_cups.c printing/print_generic.c
736 printing/lpq_parse.c printing/load.c printing/print_standard.c
737 printing/print_iprint.c'''
739 PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
740 PRINTBACKEND_SRC = 'printing/printing.c printing/nt_printing.c ${PRINTBASE_SRC}'
742 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
744 NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
745 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
746 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
747 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
748 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
749 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
750 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
751 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
752 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
753 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
754 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
755 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
757 NMBD_SRC = '${NMBD_SRC1} ${PROFILE_SRC} ${LIBNDR_GEN_SRC0}'
759 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
760 web/swat.c web/neg_lang.c'''
762 SWAT_SRC = '''${SWAT_SRC1} ${PRINTING_SRC} ${PRINTBASE_SRC}
763 ${LOCKING_SRC}
764 ${PLAINTEXT_AUTH_SRC}
765 ${RPC_PARSE_SRC} ${LIBMSRPC_GEN_SRC} ${LIBMSRPC_SRC}
766 ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}'''
768 WBINFO_SRC = '../nsswitch/wbinfo.c ${AFS_SETTOKEN_SRC}'
770 TESTPARM_SRC = 'utils/testparm.c'
772 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
774 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}
775 registry/reg_eventlog.c ${LIB_EVENTLOG_SRC}
776 ../librpc/gen_ndr/ndr_eventlog.c
777 ../librpc/gen_ndr/ndr_lsa.c'''
779 DISPLAY_SEC_SRC= '../libcli/security/display_sec.c'
781 CLIENT_SRC1 = '''client/client.c client/clitar.c ${RPC_CLIENT_SRC}
782 ../librpc/rpc/binding.c client/dnsbrowse.c
783 ${RPC_CLIENT_SRC1} ${RPC_PARSE_SRC2}'''
785 CLIENT_SRC = '''${CLIENT_SRC1} ${LIBMSRPC_GEN_SRC}
786 ${READLINE_SRC} ${DISPLAY_SEC_SRC}'''
789 LIBS='ICONV'
791 bld.SAMBA_GENERATOR('build_options',
792 source='include/config.h script/mkbuildoptions.awk',
793 target='smbd/build_options.c',
794 rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
796 t = bld.SAMBA_GENERATOR('build_env.h',
797 source='script/build_env.sh',
798 target='include/build_env.h',
799 rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
800 # todo: work out what is really wanted here
801 t.env.SRCDIR = bld.path.abspath()
802 t.env.BUILDDIR = bld.path.abspath()
805 bld.SETUP_BUILD_GROUPS()
807 bld.RECURSE('../lib/replace')
808 print "SBINDIR=%s" % bld.env.SBINDIR
809 bld.RECURSE('build')
811 bld.RECURSE('../librpc/idl')
812 bld.RECURSE('librpc/idl')
814 bld.SAMBA_MKVERSION('include/version.h')
816 for prefix in bld.env.MODULE_PREFIXES:
817 static_key = "%s_STATIC" % prefix.upper()
818 shared_key = "%s_SHARED" % prefix.upper()
820 # Set up the static modules
821 static_src = locals()[static_key]
822 for module in bld.env[static_key]:
823 static_src += "${%s_SRC} " % module
824 # for some reason static_src doesn't seem to be a reference, so save it
825 # back to the locals
826 locals()[static_key] = static_src
828 # Set up subsystems for the shared modules
829 for module in bld.env[shared_key]:
830 bld.SAMBA_SUBSYSTEM(module,
831 source="${%s_SRC}" % module,
832 vars=locals())
834 ######################## SUBSYSTEMS #################################
836 bld.SAMBA_SUBSYSTEM('WBCOMMON',
837 source=WBCOMMON_SRC)
839 bld.SAMBA_SUBSYSTEM('LIBWBCLIENT',
840 source='''../nsswitch/libwbclient/wbc_guid.c
841 ../nsswitch/libwbclient/wbc_idmap.c
842 ../nsswitch/libwbclient/wbclient.c
843 ../nsswitch/libwbclient/wbc_pam.c
844 ../nsswitch/libwbclient/wbc_pwd.c
845 ../nsswitch/libwbclient/wbc_sid.c
846 ../nsswitch/libwbclient/wbc_util.c''',
847 public_deps='talloc WBCOMMON')
850 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
851 source='../lib/util/asn1.c',
852 deps='talloc',
853 local_include=False)
855 bld.SAMBA_SUBSYSTEM('AVAHI',
856 source=AVAHI_SRC,
857 deps='avahi-common avahi-client',
858 enabled=bld.env.with_avahi)
860 bld.SAMBA_SUBSYSTEM('GROUPDB',
861 source=GROUPDB_SRC)
863 bld.SAMBA_SUBSYSTEM('TLDAP',
864 source=TLDAP_SRC,
865 deps='ASN1_UTIL LIBTSOCKET')
867 bld.SAMBA_SUBSYSTEM('PASSDB',
868 source=PASSDB_SRC,
869 deps='GROUPDB TLDAP SECRETS',
870 vars=locals())
872 bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
873 source=PARAM_WITHOUT_REG_SRC)
875 bld.SAMBA_SUBSYSTEM('PARAM',
876 source=PARAM_SRC,
877 deps='PARAM_WITHOUT_REG',
878 vars=locals())
880 bld.SAMBA_SUBSYSTEM('POPT_SAMBA',
881 source=POPT_LIB_SRC,
882 vars=locals())
884 bld.SAMBA_SUBSYSTEM('KRBCLIENT',
885 source=KRBCLIENT_SRC,
886 deps='krb5 gssapi gssapi_krb5',
887 vars=locals())
889 bld.SAMBA_SUBSYSTEM('LIBS',
890 source=LIB_SRC,
891 deps='NSS_WRAPPER',
892 vars=locals())
894 bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
895 source=LIB_NONSMBD_SRC,
896 deps='LIBS',
897 vars=locals())
899 bld.SAMBA_SUBSYSTEM('LIBSMB_ERR',
900 source=LIBSMB_ERR_SRC,
901 deps='SECRETS SMBLDAP',
902 vars=locals())
904 bld.SAMBA_SUBSYSTEM('LIBSAMBA',
905 source=LIBSAMBA_SRC,
906 deps='LIBSMB_ERR',
907 vars=locals())
909 bld.SAMBA_SUBSYSTEM('LIBSMB',
910 source=LIBSMB_SRC,
911 deps='LIBSAMBA ZLIB',
912 vars=locals())
914 bld.SAMBA_SUBSYSTEM('SECRETS',
915 source=SECRETS_SRC,
916 vars=locals())
918 bld.SAMBA_SUBSYSTEM('SMBLDAP',
919 source=SMBLDAP_SRC,
920 deps='ldap lber',
921 vars=locals())
923 ########################## BINARIES #################################
925 bld.SAMBA_BINARY('smbd/smbd',
926 source=SMBD_SRC,
927 deps='''tdb DYNCONFIG tevent dl krb5 ldap gssapi gssapi_krb5
928 NSS_WRAPPER LIBWBCLIENT crypt nsl cups cap resolv ZLIB PASSDB
929 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI''',
930 install_path='${SBINDIR}',
931 vars=locals())
933 bld.SAMBA_BINARY('nmbd/nmbd',
934 source=NMBD_SRC,
935 deps='''talloc tdb tevent ZLIB cap resolv LIBWBCLIENT dl
936 NSS_WRAPPER DYNCONFIG PASSDB PARAM ldap LIB_NONSMBD LIBSMB
937 POPT_SAMBA KRBCLIENT''',
938 install_path='${SBINDIR}',
939 vars=locals())
941 bld.SAMBA_BINARY('winbindd/winbindd',
942 source=WINBINDD_SRC,
943 deps='''talloc tdb tevent cap dl DYNCONFIG ZLIB NSS_WRAPPER
944 LIBWBCLIENT PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
945 POPT_SAMBA KRBCLIENT''',
946 enabled=bld.env.build_winbind,
947 install_path='${SBINDIR}',
948 vars=locals())
950 bld.SAMBA_BINARY('web/swat',
951 source=SWAT_SRC,
952 deps='''talloc tevent cap DYNCONFIG LIBS LIBSMB LIBWBCLIENT PARAM
953 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups''',
954 enabled=bld.env.build_swat,
955 install_path='${SBINDIR}',
956 vars=locals())
958 bld.SAMBA_BINARY('smbclient',
959 source=CLIENT_SRC,
960 deps='''talloc tdb cap POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
961 PARAM_WITHOUT_REG LIBWBCLIENT DYNCONFIG PARAM KRBCLIENT''',
962 vars=locals())
964 bld.SAMBA_BINARY('wbinfo',
965 source=WBINFO_SRC,
966 deps='''talloc LIBWBCLIENT DYNCONFIG tevent cap
967 NSS_WRAPPER ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
968 LIBSAMBA POPT_SAMBA''',
969 vars=locals())
971 bld.SAMBA_BINARY('testparm',
972 source=TESTPARM_SRC,
973 deps='''talloc tevent DYNCONFIG ldap cap NSS_WRAPPER
974 LIBWBCLIENT ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
975 LIBSMB_ERR POPT_SAMBA''',
976 vars=locals())
978 bld.SAMBA_BINARY('eventlogadm',
979 source=EVTLOGADM_SRC,
980 deps='''talloc tevent cap POPT_SAMBA DYNCONFIG LIBS PARAM
981 LIB_NONSMBD LIBSMB_ERR PASSDB LIBWBCLIENT''',
982 vars=locals())
984 swat_files=recursive_dirlist('../swat', '../swat', '*')
985 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
987 ########################## INCLUDES #################################
989 bld.RECURSE('../lib/socket_wrapper')
990 bld.RECURSE('../lib/talloc')
991 bld.RECURSE('../lib/tdb')
992 bld.RECURSE('../lib/nss_wrapper')
993 bld.RECURSE('../lib/tevent')
994 bld.RECURSE('../lib/popt')
995 bld.RECURSE('../lib/zlib')
996 bld.RECURSE('../lib/tsocket')
998 bld.ENFORCE_GROUP_ORDERING()
999 bld.CHECK_PROJECT_RULES()