3 from samba_utils
import *
5 TDB_LIB_SRC
= '''lib/util_tdb.c ../lib/util/util_tdb.c
6 lib/dbwrap.c lib/dbwrap_tdb.c
11 TDB_VALIDATE_SRC
= '''lib/tdb_validate.c'''
13 SMBLDAP_SRC
= '''${SMBLDAP} ${SMBLDAPUTIL}'''
15 VERSION_SRC
= '''lib/version.c'''
17 WBCOMMON_SRC
= '../nsswitch/wb_common.c'
21 AFS_SETTOKEN_SRC
= 'lib/afs_settoken.c'
23 AVAHI_SRC
= '' # TODO: fix
25 SERVER_MUTEX_SRC
= 'lib/server_mutex.c'
27 PASSCHANGE_SRC
= '''libsmb/passchange.c'''
29 LIBNDR_DRSUAPI_SRC
= '''../librpc/ndr/ndr_drsuapi.c
30 ../librpc/ndr/ndr_compression.c
31 ../librpc/gen_ndr/ndr_drsuapi.c
32 ../librpc/ndr/ndr_drsblobs.c
33 ../librpc/gen_ndr/ndr_drsblobs.c'''
35 ZLIB_SRC
= '''${ZLIB_SRCS}'''
37 COMPRESSION_SRC
= '''../lib/compression/mszip.c
38 ../lib/compression/lzxpress.c
41 DRSUAPI_SRC
= '''${LIBNDR_DRSUAPI_SRC}
44 LIBNDR_NTLMSSP_SRC
= '''../librpc/gen_ndr/ndr_ntlmssp.c
45 ../librpc/ndr/ndr_ntlmssp.c'''
47 LIBNDR_SRC
= '''../librpc/ndr/ndr_basic.c
49 ../librpc/ndr/ndr_misc.c
50 ../librpc/gen_ndr/ndr_misc.c
51 ../librpc/gen_ndr/ndr_security.c
52 ../librpc/ndr/ndr_sec_helper.c
53 librpc/ndr/ndr_string.c
56 ../librpc/gen_ndr/ndr_dcerpc.c'''
58 RPCCLIENT_NDR_SRC
= '''rpc_client/ndr.c'''
60 LIBNDR_GEN_SRC0
= '''../librpc/gen_ndr/ndr_samr.c
61 ../librpc/gen_ndr/ndr_lsa.c'''
63 LIBNDR_GEN_SRC1
= '''../librpc/gen_ndr/ndr_netlogon.c
64 ../librpc/ndr/ndr_netlogon.c'''
66 LIBNDR_GEN_SRC2
= '''../librpc/gen_ndr/ndr_spoolss.c
67 ../librpc/ndr/ndr_spoolss_buf.c'''
69 LIBNDR_GEN_SRC
= '''../librpc/gen_ndr/ndr_wkssvc.c
71 ../librpc/gen_ndr/ndr_dfs.c
72 ../librpc/gen_ndr/ndr_echo.c
73 ../librpc/gen_ndr/ndr_winreg.c
74 ../librpc/gen_ndr/ndr_initshutdown.c
75 ../librpc/gen_ndr/ndr_srvsvc.c
76 ../librpc/gen_ndr/ndr_eventlog.c
78 ../librpc/gen_ndr/ndr_dssetup.c
79 librpc/gen_ndr/ndr_notify.c
80 ../librpc/gen_ndr/ndr_xattr.c
81 ../librpc/ndr/ndr_xattr.c
82 ../librpc/gen_ndr/ndr_epmapper.c
83 ../librpc/gen_ndr/ndr_named_pipe_auth.c
84 ../librpc/gen_ndr/ndr_ntsvcs.c
87 RPC_PARSE_SRC0
= '''rpc_parse/parse_prs.c rpc_parse/parse_misc.c'''
89 # this includes only the low level parse code, not stuff
90 # that requires knowledge of security contexts
91 RPC_PARSE_SRC1
= '''${RPC_PARSE_SRC0}'''
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
= '''
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
121 ../lib/crypto/sha256.c ../lib/crypto/hmacsha256.c
122 ../lib/crypto/aes.c ../lib/crypto/rijndael-alg-fst.c'''
124 LIB_SRC
= '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC} ${CRYPTO_SRC}
125 lib/messages.c librpc/gen_ndr/ndr_messaging.c lib/messages_local.c
126 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
127 lib/interfaces.c lib/memcache.c
130 lib/util_transfer_file.c ../lib/async_req/async_sock.c
132 ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
133 lib/interface.c lib/pidfile.c
134 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
136 ../libds/common/flag_mapping.c
137 lib/util_pw.c lib/access.c lib/smbrun.c
138 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
140 lib/util_str.c lib/clobber.c lib/util_sid.c lib/util_uuid.c
141 lib/util_unistr.c lib/util_file.c
142 lib/util.c lib/util_sock.c lib/sock_exec.c lib/util_sec.c
143 lib/substitute.c lib/dbwrap_util.c
144 lib/ms_fnmatch.c lib/select.c lib/errmap_unix.c
145 lib/tallocmsg.c lib/dmallocmsg.c
146 libsmb/clisigning.c libsmb/smb_signing.c
147 lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
148 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
150 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
151 lib/ldap_escape.c ${CHARSET_STATIC}
152 lib/secdesc.c lib/util_seaccess.c ../libcli/security/secace.c
153 ../libcli/security/sddl.c
154 ../libcli/security/secacl.c ${PTHREADPOOL_SRC}
156 libads/krb5_errs.c lib/system_smbd.c lib/audit.c ${LIBNDR_SRC}
157 lib/file_id.c lib/idmap_cache.c
158 ../libcli/security/dom_sid.c ../libcli/security/security_descriptor.c'''
160 LIB_DUMMY_SRC
= '''lib/dummysmbd.c lib/dummyroot.c'''
161 LIB_NONSMBD_SRC
= '''${LIB_SRC} ${LIB_DUMMY_SRC}'''
163 READLINE_SRC
= '''lib/readline.c'''
165 # Also depends on ${SECRETS_SRC} ${LIBSAMBA_SRC}
166 # Be sure to include them into your application
167 POPT_LIB_SRC
= '''lib/popt_common.c'''
169 PARAM_WITHOUT_REG_SRC
= '''param/loadparm.c param/util.c lib/sharesec.c lib/ldap_debug_handler.c'''
170 PARAM_REG_ADD_SRC
= '''${REG_SMBCONF_SRC} ${LIBSMBCONF_SRC} ${PRIVILEGES_BASIC_SRC}'''
171 PARAM_SRC
= '''${PARAM_WITHOUT_REG_SRC} ${PARAM_REG_ADD_SRC}'''
173 KRBCLIENT_SRC
= '''libads/kerberos.c libads/ads_status.c'''
175 LIBADDNS_SRC0
= '''libaddns/dnsrecord.c libaddns/dnsutils.c libaddns/dnssock.c
176 libaddns/dnsgss.c libaddns/dnsmarshall.c'''
177 LIBADDNS_SRC
= '''${LIBADDNS_SRC0} ${SOCKET_WRAPPER_SRC}'''
179 GPEXT_SRC
= '''../libgpo/gpext/gpext.c ${GPEXT_STATIC}'''
181 LIBGPO_SRC0
= '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
182 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
185 LIBGPO_SRC
= '''${LIBGPO_SRC0}'''
187 LIBADS_SRC
= '''libads/ldap.c libads/ldap_printer.c
188 libads/sasl.c libads/sasl_wrapping.c
189 libads/krb5_setpw.c libads/ldap_user.c
190 libads/ads_struct.c libads/kerberos_keytab.c
191 libads/disp_sec.c libads/ads_utils.c libads/ldap_utils.c
192 libads/ldap_schema.c libads/util.c libads/ndr.c'''
194 LIBADS_SERVER_SRC
= '''libads/kerberos_verify.c libads/authdata.c
195 ../librpc/ndr/ndr_krb5pac.c
196 ../librpc/gen_ndr/ndr_krb5pac.c'''
198 SECRETS_SRC
= '''passdb/secrets.c passdb/machine_sid.c
199 librpc/gen_ndr/ndr_secrets.c'''
201 LIBNBT_SRC
= '''../libcli/nbt/nbtname.c
203 ../libcli/ndr_netlogon.c
204 ../librpc/gen_ndr/ndr_nbt.c
205 ../librpc/gen_ndr/ndr_svcctl.c
206 ../librpc/ndr/ndr_svcctl.c'''
208 LIBNMB_SRC
= '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
209 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
210 libads/dns.c libads/sitename_cache.c'''
212 NTERR_SRC
= '''libsmb/nterr.c libsmb/smberr.c'''
213 DOSERR_SRC
= '../libcli/util/doserr.c'
214 ERRORMAP_SRC
= 'libsmb/errormap.c'
215 DCE_RPC_ERR_SRC
= '../librpc/rpc/dcerpc_error.c'
217 LIBSMB_ERR_SRC0
= '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
219 LIBSMB_ERR_SRC1
= '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
221 LIBSMB_ERR_SRC
= '''${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}
226 ../libcli/auth/ntlm_check.c
228 libsmb/ntlmssp_sign.c
229 ${LIBNDR_NTLMSSP_SRC}
230 ../libcli/auth/ntlmssp_ndr.c'''
232 LIBSAMBA_SRC
= '''${LIBSMB_SRC0}
235 LIBCLI_LDAP_MESSAGE_SRC
= '''../libcli/ldap/ldap_message.c'''
236 LIBCLI_LDAP_NDR_SRC
= '''../libcli/ldap/ldap_ndr.c'''
238 LIBTSOCKET_SRC
= '''../lib/tsocket/tsocket.c
239 ../lib/tsocket/tsocket_helpers.c
240 ../lib/tsocket/tsocket_bsd.c'''
242 CLDAP_SRC
= '''libads/cldap.c
243 ../libcli/cldap/cldap.c
245 ${LIBCLI_LDAP_MESSAGE_SRC} ${LIBCLI_LDAP_NDR_SRC} ${LIBTSOCKET_SRC}'''
247 TLDAP_SRC
= '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
249 SCHANNEL_SRC
= '''../libcli/auth/credentials.c
250 ../libcli/auth/schannel_sign.c
251 ../libcli/auth/schannel_state_tdb.c
252 ../librpc/gen_ndr/ndr_schannel.c
253 ../librpc/ndr/ndr_schannel.c'''
255 LIBSMB_SRC
= '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
256 libsmb/clikrb5.c libsmb/clispnego.c
257 ../libcli/auth/spnego_parse.c
259 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
260 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
261 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
262 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
263 libsmb/clioplock.c libsmb/clirap2.c
264 libsmb/smb_seal.c libsmb/async_smb.c
271 RPC_CLIENT_SRC1
= '''rpc_client/cli_netlogon.c
274 LIBMSRPC_SRC
= '''rpc_client/cli_lsarpc.c rpc_client/cli_samr.c
277 rpc_client/cli_spoolss.c
278 rpc_client/init_spoolss.c
279 rpc_client/init_samr.c
280 ../librpc/rpc/binding.c'''
282 LIBMSRPC_GEN_SRC
= '''../librpc/gen_ndr/cli_lsa.c
283 ../librpc/gen_ndr/cli_dfs.c
284 ../librpc/gen_ndr/cli_echo.c
285 ../librpc/gen_ndr/cli_srvsvc.c
286 ../librpc/gen_ndr/cli_svcctl.c
287 ../librpc/gen_ndr/cli_winreg.c
288 ../librpc/gen_ndr/cli_initshutdown.c
289 ../librpc/gen_ndr/cli_eventlog.c
290 ../librpc/gen_ndr/cli_wkssvc.c
291 ../librpc/gen_ndr/cli_netlogon.c
292 ../librpc/gen_ndr/cli_samr.c
293 ../librpc/gen_ndr/cli_dssetup.c
294 ../librpc/gen_ndr/cli_ntsvcs.c
295 ../librpc/gen_ndr/cli_epmapper.c
296 ../librpc/gen_ndr/cli_drsuapi.c
297 ../librpc/gen_ndr/cli_spoolss.c
299 ${RPCCLIENT_NDR_SRC}'''
302 # registry-related objects
304 UTIL_REG_SRC
= '''lib/util_reg.c'''
305 UTIL_REG_API_SRC
= '''lib/util_reg_api.c'''
307 REG_INIT_BASIC_SRC
= '''registry/reg_init_basic.c'''
308 REG_INIT_SMBCONF_SRC
= '''registry/reg_init_smbconf.c'''
309 REG_INIT_FULL_SRC
= '''registry/reg_init_full.c'''
311 REGFIO_SRC
= '''registry/regfio.c'''
313 REGSRCS_SRC
= '''registry/reg_objects.c'''
315 REG_BACKENDS_BASE_SRC
= '''registry/reg_backend_db.c'''
317 REG_BACKENDS_SMBCONF_SRC
= '''registry/reg_backend_smbconf.c'''
319 REG_BACKENDS_EXTRA_SRC
= '''registry/reg_backend_printing.c
320 registry/reg_backend_shares.c
321 registry/reg_backend_netlogon_params.c
322 registry/reg_backend_prod_options.c
323 registry/reg_backend_tcpip_params.c
324 registry/reg_backend_hkpt_params.c
325 registry/reg_backend_current_version.c
326 registry/reg_backend_perflib.c'''
328 REG_BASE_SRC
= '''registry/reg_api.c
329 registry/reg_dispatcher.c
330 registry/reg_cachehook.c
336 ${REG_BACKENDS_BASE_SRC}
337 ${REG_INIT_BASIC_SRC}'''
339 REG_SMBCONF_SRC
= '''${REG_BASE_SRC}
340 ${REG_BACKENDS_SMBCONF_SRC}
341 ${REG_INIT_SMBCONF_SRC}'''
343 REG_FULL_SRC
= '''${REG_SMBCONF_SRC}
344 ${REG_BACKENDS_EXTRA_SRC}
346 registry/reg_eventlog.c
347 registry/reg_perfcount.c
348 librpc/gen_ndr/ndr_perfcount.c
349 registry/reg_util_legacy.c'''
351 LIB_EVENTLOG_SRC
= '''lib/eventlog/eventlog.c'''
353 RPC_LSA_SRC
= '''rpc_server/srv_lsa_nt.c ../librpc/gen_ndr/srv_lsa.c'''
355 RPC_NETLOG_SRC
= '''rpc_server/srv_netlog_nt.c
356 ../librpc/gen_ndr/srv_netlogon.c'''
358 RPC_SAMR_SRC
= '''rpc_server/srv_samr_nt.c
359 rpc_server/srv_samr_util.c
360 ../librpc/gen_ndr/srv_samr.c'''
362 RPC_INITSHUTDOWN_SRC
= ''' ../librpc/gen_ndr/srv_initshutdown.c rpc_server/srv_initshutdown_nt.c'''
364 RPC_REG_SRC
= ''' rpc_server/srv_winreg_nt.c
365 ../librpc/gen_ndr/srv_winreg.c'''
367 RPC_DSSETUP_SRC
= ''' rpc_server/srv_dssetup_nt.c ../librpc/gen_ndr/srv_dssetup.c'''
369 RPC_SVC_SRC
= '''rpc_server/srv_srvsvc_nt.c
370 ../librpc/gen_ndr/srv_srvsvc.c'''
372 RPC_WKS_SRC
= ''' ../librpc/gen_ndr/srv_wkssvc.c rpc_server/srv_wkssvc_nt.c'''
374 RPC_SVCCTL_SRC
= ''' rpc_server/srv_svcctl_nt.c
375 ../librpc/gen_ndr/srv_svcctl.c
376 services/svc_spoolss.c services/svc_rcinit.c services/services_db.c
377 services/svc_netlogon.c services/svc_winreg.c
378 services/svc_wins.c'''
380 RPC_NTSVCS_SRC
= '''rpc_server/srv_ntsvcs_nt.c
381 ../librpc/gen_ndr/srv_ntsvcs.c'''
383 RPC_DFS_SRC
= ''' ../librpc/gen_ndr/srv_dfs.c rpc_server/srv_dfs_nt.c'''
385 RPC_SPOOLSS_SRC
= '''rpc_server/srv_spoolss_nt.c
386 ../librpc/gen_ndr/srv_spoolss.c'''
388 RPC_EVENTLOG_SRC
= '''rpc_server/srv_eventlog_nt.c
389 ${LIB_EVENTLOG_SRC} ../librpc/gen_ndr/srv_eventlog.c'''
391 RPC_PIPE_SRC
= '''rpc_server/srv_pipe_hnd.c
392 rpc_server/srv_pipe.c rpc_server/srv_lsa_hnd.c'''
394 RPC_ECHO_SRC
= '''rpc_server/srv_echo_nt.c ../librpc/gen_ndr/srv_echo.c'''
396 RPC_SERVER_SRC
= '''${RPC_STATIC} ${RPC_PIPE_SRC}'''
398 RPC_PARSE_SRC
= '''${RPC_PARSE_SRC2}'''
400 RPC_CLIENT_SRC
= '''rpc_client/cli_pipe.c rpc_client/rpc_transport_np.c
401 rpc_client/rpc_transport_sock.c rpc_client/rpc_transport_smbd.c'''
403 LOCKING_SRC
= '''locking/locking.c locking/brlock.c locking/posix.c'''
405 PRIVILEGES_BASIC_SRC
= '''lib/privileges_basic.c'''
407 PRIVILEGES_SRC
= '''lib/privileges.c'''
409 PASSDB_GET_SET_SRC
= '''passdb/pdb_get_set.c'''
411 PASSDB_SRC
= '''${PASSDB_GET_SET_SRC} passdb/passdb.c passdb/pdb_interface.c
412 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
413 passdb/util_unixsids.c passdb/lookup_sid.c
414 passdb/login_cache.c ${PDB_STATIC}
415 lib/account_pol.c ${PRIVILEGES_SRC}
416 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
418 DEVEL_HELP_WEIRD_SRC
= '''modules/weird.c'''
419 CP850_SRC
= '''modules/CP850.c'''
420 CP437_SRC
= '''modules/CP437.c'''
421 CHARSET_MACOSXFS_SRC
= '''modules/charset_macosxfs.c'''
423 GROUPDB_SRC
= '''groupdb/mapping.c groupdb/mapping_tdb.c'''
425 PROFILE_SRC
= '''profile/profile.c'''
426 PROFILES_SRC
= '''utils/profiles.c
429 ${LIB_SRC} ${LIB_DUMMY_SRC}
432 OPLOCK_SRC
= '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
433 smbd/oplock_onefs.c'''
435 NOTIFY_SRC
= '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
437 FNAME_UTIL_SRC
= '''smbd/filename_util.c'''
439 VFS_DEFAULT_SRC
= '''modules/vfs_default.c'''
440 VFS_AUDIT_SRC
= '''modules/vfs_audit.c'''
441 VFS_EXTD_AUDIT_SRC
= '''modules/vfs_extd_audit.c'''
442 VFS_FULL_AUDIT_SRC
= '''modules/vfs_full_audit.c'''
443 VFS_FAKE_PERMS_SRC
= '''modules/vfs_fake_perms.c'''
444 VFS_RECYCLE_SRC
= '''modules/vfs_recycle.c'''
445 VFS_NETATALK_SRC
= '''modules/vfs_netatalk.c'''
446 VFS_DEFAULT_QUOTA_SRC
= '''modules/vfs_default_quota.c'''
447 VFS_READONLY_SRC
= '''modules/vfs_readonly.c modules/getdate.c'''
448 VFS_CAP_SRC
= '''modules/vfs_cap.c'''
449 VFS_EXPAND_MSDFS_SRC
= '''modules/vfs_expand_msdfs.c'''
450 VFS_SHADOW_COPY_SRC
= '''modules/vfs_shadow_copy.c'''
451 VFS_SHADOW_COPY2_SRC
= '''modules/vfs_shadow_copy2.c'''
452 VFS_AFSACL_SRC
= '''modules/vfs_afsacl.c'''
453 VFS_XATTR_TDB_SRC
= '''modules/vfs_xattr_tdb.c'''
454 VFS_POSIXACL_SRC
= '''modules/vfs_posixacl.c'''
455 VFS_AIXACL_SRC
= '''modules/vfs_aixacl.c modules/vfs_aixacl_util.c'''
456 VFS_AIXACL2_SRC
= '''modules/vfs_aixacl2.c modules/vfs_aixacl_util.c modules/nfs4_acls.c'''
457 VFS_SOLARISACL_SRC
= '''modules/vfs_solarisacl.c'''
458 VFS_ZFSACL_SRC
= '''modules/vfs_zfsacl.c modules/nfs4_acls.c'''
459 VFS_HPUXACL_SRC
= '''modules/vfs_hpuxacl.c'''
460 VFS_IRIXACL_SRC
= '''modules/vfs_irixacl.c'''
461 VFS_TRU64ACL_SRC
= '''modules/vfs_tru64acl.c'''
462 VFS_CATIA_SRC
= 'modules/vfs_catia.c'
463 VFS_STREAMS_XATTR_SRC
= 'modules/vfs_streams_xattr.c'
464 VFS_STREAMS_DEPOT_SRC
= 'modules/vfs_streams_depot.c'
465 VFS_CACHEPRIME_SRC
= 'modules/vfs_cacheprime.c'
466 VFS_PREALLOC_SRC
= 'modules/vfs_prealloc.c'
467 VFS_COMMIT_SRC
= 'modules/vfs_commit.c'
468 VFS_GPFS_SRC
= 'modules/vfs_gpfs.c modules/gpfs.c modules/nfs4_acls.c'
469 VFS_NOTIFY_FAM_SRC
= 'modules/vfs_notify_fam.c'
470 VFS_READAHEAD_SRC
= 'modules/vfs_readahead.c'
471 VFS_TSMSM_SRC
= 'modules/vfs_tsmsm.c'
472 VFS_FILEID_SRC
= 'modules/vfs_fileid.c'
473 VFS_AIO_FORK_SRC
= 'modules/vfs_aio_fork.c'
474 VFS_PREOPEN_SRC
= 'modules/vfs_preopen.c'
475 VFS_SYNCOPS_SRC
= 'modules/vfs_syncops.c'
476 VFS_ACL_XATTR_SRC
= 'modules/vfs_acl_xattr.c'
477 VFS_ACL_TDB_SRC
= 'modules/vfs_acl_tdb.c'
478 VFS_SMB_TRAFFIC_ANALYZER_SRC
= 'modules/vfs_smb_traffic_analyzer.c'
479 VFS_ONEFS_SRC
= '''modules/vfs_onefs.c modules/onefs_acl.c modules/onefs_system.c
480 modules/onefs_open.c modules/onefs_streams.c modules/onefs_dir.c
481 modules/onefs_cbrl.c modules/onefs_notify.c modules/onefs_config.c'''
482 VFS_ONEFS_SHADOW_COPY_SRC
= 'modules/vfs_onefs_shadow_copy.c modules/onefs_shadow_copy.c'
483 PERFCOUNT_ONEFS_SRC
= 'modules/perfcount_onefs.c'
484 PERFCOUNT_TEST_SRC
= 'modules/perfcount_test.c'
485 VFS_DIRSORT_SRC
= 'modules/vfs_dirsort.c'
486 VFS_SCANNEDONLY_SRC
= 'modules/vfs_scannedonly.c'
487 VFS_CROSSRENAME_SRC
= 'modules/vfs_crossrename.c'
489 PLAINTEXT_AUTH_SRC
= '''auth/pampass.c auth/pass_check.c'''
491 SLCACHE_SRC
= '''libsmb/samlogon_cache.c'''
493 DCUTIL_SRC
= '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
495 AUTH_BUILTIN_SRC
= 'auth/auth_builtin.c'
496 AUTH_DOMAIN_SRC
= 'auth/auth_domain.c'
497 AUTH_SAM_SRC
= 'auth/auth_sam.c'
498 AUTH_SERVER_SRC
= 'auth/auth_server.c'
499 AUTH_UNIX_SRC
= 'auth/auth_unix.c'
500 AUTH_WINBIND_SRC
= 'auth/auth_winbind.c'
501 AUTH_WBC_SRC
= 'auth/auth_wbc.c'
502 AUTH_SCRIPT_SRC
= 'auth/auth_script.c'
503 AUTH_NETLOGOND_SRC
= 'auth/auth_netlogond.c'
505 AUTH_SRC
= '''auth/auth.c ${AUTH_STATIC} auth/auth_util.c auth/token_util.c
506 auth/auth_compat.c auth/auth_ntlmssp.c
507 ${PLAINTEXT_AUTH_SRC} ${SLCACHE_SRC} ${DCUTIL_SRC}'''
509 MANGLE_SRC
= '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
511 SMBD_SRC_MAIN
= '''smbd/server.c'''
513 BUILDOPT_SRC
= '''smbd/build_options.c'''
515 SMBD_SRC_SRV
= '''smbd/files.c smbd/chgpasswd.c smbd/connection.c
516 smbd/utmp.c smbd/session.c smbd/map_username.c
517 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
518 smbd/share_access.c smbd/fileio.c
519 smbd/ipc.c smbd/lanman.c smbd/negprot.c
520 smbd/message.c smbd/nttrans.c smbd/pipes.c
521 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
522 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
523 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
524 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
525 smbd/posix_acls.c lib/sysacls.c
526 smbd/process.c smbd/service.c smbd/error.c
527 printing/printfsp.c lib/sysquotas.c lib/sysquotas_linux.c
528 lib/sysquotas_xfs.c lib/sysquotas_4A.c
529 smbd/change_trust_pw.c smbd/fake_file.c
530 smbd/quotas.c smbd/ntquotas.c ${AFS_SRC} smbd/msdfs.c
531 ${AFS_SETTOKEN_SRC} smbd/aio.c smbd/statvfs.c
532 smbd/dmapi.c smbd/signing.c
534 smbd/dnsregister.c smbd/globals.c
539 smbd/smb2_sesssetup.c
548 smbd/smb2_keepalive.c
554 ../libcli/smb/smb2_create_blob.c
555 ${MANGLE_SRC} ${VFS_STATIC}'''
557 SMBD_SRC_BASE
= '''${PARAM_WITHOUT_REG_SRC} ${SMBD_SRC_SRV} ${LIBSMB_SRC}
558 ${RPC_SERVER_SRC} ${RPC_PARSE_SRC}
559 ${LOCKING_SRC} ${PASSDB_SRC} ${PRINTING_SRC} ${PROFILE_SRC}
560 ${LIB_SRC} ${PRINTBACKEND_SRC} ${OPLOCK_SRC}
561 ${NOTIFY_SRC} ${FNAME_UTIL_SRC} ${GROUPDB_SRC} ${AUTH_SRC}
562 ${LIBMSRPC_SRC} ${LIBMSRPC_GEN_SRC} ${AVAHI_SRC}
563 ${LIBADS_SRC} ${KRBCLIENT_SRC} ${LIBADS_SERVER_SRC}
564 ${REG_FULL_SRC} ${POPT_LIB_SRC} ${BUILDOPT_SRC}
565 ${SMBLDAP_SRC} ${LDB_SRC} ${LIBNET_SRC}
567 ${PRIVILEGES_BASIC_SRC}'''
569 PRINTING_SRC
= '''printing/pcap.c printing/print_svid.c printing/print_aix.c
570 printing/print_cups.c printing/print_generic.c
571 printing/lpq_parse.c printing/load.c
572 printing/print_iprint.c'''
574 PRINTBASE_SRC
= '''printing/notify.c printing/printing_db.c'''
575 PRINTBACKEND_SRC
= 'printing/printing.c printing/nt_printing.c ${PRINTBASE_SRC}'
577 SMBD_SRC
= '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
583 bld
.SAMBA_GENERATOR('build_options',
584 source
='include/config.h script/mkbuildoptions.awk',
585 target
='smbd/build_options.c',
586 rule
='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
588 bld
.SETUP_BUILD_GROUPS()
590 bld
.RECURSE('../lib/replace')
591 print "SBINDIR=%s" % bld
.env
.SBINDIR
594 bld
.SAMBA_MKVERSION('include/version.h')
596 bld
.SAMBA_BINARY('smbd/smbd',
598 deps
='tdb DYNCONFIG',
601 bld
.RECURSE('../lib/socket_wrapper')
602 bld
.RECURSE('../lib/talloc')
603 bld
.RECURSE('../lib/tdb')
604 bld
.RECURSE('../lib/nss_wrapper')
605 bld
.RECURSE('../lib/uid_wrapper')
607 bld
.ENFORCE_GROUP_ORDERING()
608 bld
.CHECK_PROJECT_RULES()