s3-net: add command registry convert
[Samba.git] / source3 / wscript_build
blobd37c869bf6d5c0d6bf85c02dc538ab515e3d4bfd
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 LIBNDR_GEN_SRC0 = '''../librpc/gen_ndr/ndr_samr.c
58 ../librpc/gen_ndr/ndr_lsa.c'''
60 LIBNDR_NETLOGON_SRC = '''../librpc/gen_ndr/ndr_netlogon.c
61 ../librpc/ndr/ndr_netlogon.c'''
63 LIBNDR_SCHANNEL_SRC = '''../librpc/gen_ndr/ndr_schannel.c
64 ../librpc/ndr/ndr_schannel.c'''
66 LIBNDR_SPOOLSS_SRC = '''../librpc/gen_ndr/ndr_spoolss.c
67 ../librpc/ndr/ndr_spoolss_buf.c'''
69 LIBNDR_PREG_SRC = '''librpc/gen_ndr/ndr_preg.c
70 librpc/ndr/ndr_preg.c'''
72 LIBNDR_XATTR_SRC = '''../librpc/gen_ndr/ndr_xattr.c
73 ../librpc/ndr/ndr_xattr.c'''
75 LIBCLI_SPOOLSS_SRC = '''
76 ../librpc/gen_ndr/cli_spoolss.c
77 ../librpc/gen_ndr/ndr_spoolss_c.c
78 rpc_client/cli_spoolss.c
79 rpc_client/init_spoolss.c'''
81 LIBCLI_EVENTLOG_SRC = '''
82 ../librpc/gen_ndr/cli_eventlog.c
83 ../librpc/gen_ndr/ndr_eventlog_c.c'''
85 LIBCLI_WINREG_SRC = '''
86 ../librpc/gen_ndr/cli_winreg.c
87 ../librpc/gen_ndr/ndr_winreg_c.c'''
89 LIBCLI_NTSVCS_SRC = '''
90 ../librpc/gen_ndr/cli_ntsvcs.c
91 ../librpc/gen_ndr/ndr_ntsvcs_c.c'''
93 LIBCLI_DRSUAPI_SRC = '''
94 ../librpc/gen_ndr/cli_drsuapi.c
95 ../librpc/gen_ndr/ndr_drsuapi_c.c'''
97 LIBCLI_DFS_SRC = '''
98 ../librpc/gen_ndr/cli_dfs.c
99 ../librpc/gen_ndr/ndr_dfs_c.c'''
101 LIBCLI_ECHO_SRC = '''
102 ../librpc/gen_ndr/cli_echo.c
103 ../librpc/gen_ndr/ndr_echo_c.c'''
105 LIBCLI_INITSHUTDOWN_SRC = '''
106 ../librpc/gen_ndr/cli_initshutdown.c
107 ../librpc/gen_ndr/ndr_initshutdown_c.c'''
109 LIBCLI_DSSETUP_SRC = '''
110 ../librpc/gen_ndr/cli_dssetup.c
111 ../librpc/gen_ndr/ndr_dssetup_c.c'''
113 LIBCLI_SVCCTL_SRC = '''
114 ../librpc/gen_ndr/cli_svcctl.c
115 ../librpc/gen_ndr/ndr_svcctl_c.c'''
117 LIBCLI_WKSSVC_SRC = '''
118 ../librpc/gen_ndr/cli_wkssvc.c
119 ../librpc/gen_ndr/ndr_wkssvc_c.c'''
121 LIBCLI_SRVSVC_SRC = '''
122 ../librpc/gen_ndr/cli_srvsvc.c
123 ../librpc/gen_ndr/ndr_srvsvc_c.c'''
125 LIBCLI_LSA_SRC = '''
126 ../librpc/gen_ndr/cli_lsa.c
127 ../librpc/gen_ndr/ndr_lsa_c.c
128 rpc_client/cli_lsarpc.c
129 rpc_client/init_lsa.c'''
131 LIBCLI_SAMR_SRC = '''
132 ../librpc/gen_ndr/cli_samr.c
133 ../librpc/gen_ndr/ndr_samr_c.c
134 rpc_client/cli_samr.c'''
136 LIBCLI_NETLOGON_SRC = '''
137 ../librpc/gen_ndr/cli_netlogon.c
138 ../librpc/gen_ndr/ndr_netlogon_c.c
139 rpc_client/cli_netlogon.c'''
141 LIBCLI_EPMAPPER_SRC = '''
142 ../librpc/gen_ndr/cli_epmapper.c
143 ../librpc/gen_ndr/ndr_epmapper_c.c'''
145 LIBNDR_GEN_SRC = '''../librpc/gen_ndr/ndr_wkssvc.c
146 ${LIBNDR_GEN_SRC0}
147 ../librpc/gen_ndr/ndr_dfs.c
148 ../librpc/gen_ndr/ndr_echo.c
149 ../librpc/gen_ndr/ndr_winreg.c
150 ../librpc/gen_ndr/ndr_initshutdown.c
151 ../librpc/gen_ndr/ndr_srvsvc.c
152 ../librpc/gen_ndr/ndr_eventlog.c
153 ${LIBNDR_NETLOGON_SRC}
154 ../librpc/gen_ndr/ndr_dssetup.c
155 ../librpc/gen_ndr/ndr_epmapper.c
156 ../librpc/gen_ndr/ndr_ntsvcs.c
157 ${LIBNDR_SPOOLSS_SRC}'''
159 LIBNDR_NTPRINTING_SRC = '''../librpc/gen_ndr/ndr_ntprinting.c
160 ../librpc/ndr/ndr_ntprinting.c'''
162 # this includes only the low level parse code, not stuff
163 # that requires knowledge of security contexts
164 REG_PARSE_PRS_SRC = '''registry/reg_parse_prs.c'''
166 LIBREPLACE_SRC = '''${LIBREPLACE_SRCS}'''
168 SOCKET_WRAPPER_SRC = '''${SOCKET_WRAPPER_SRCS}'''
169 NSS_WRAPPER_SRC = '''${NSS_WRAPPER_SRCS}'''
171 LIBSAMBAUTIL_SRC = '''
172 ${LIBREPLACE_SRC}
173 ${SOCKET_WRAPPER_SRC}
174 ${NSS_WRAPPER_SRC}'''
176 UTIL_SRC = '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
177 ../lib/util/xfile.c ../lib/util/util_strlist.c
178 ../lib/util/util_file.c ../lib/util/data_blob.c
179 ../lib/util/util.c ../lib/util/fsusage.c
180 ../lib/util/params.c ../lib/util/talloc_stack.c
181 ../lib/util/genrand.c ../lib/util/util_net.c
182 ../lib/util/become_daemon.c ../lib/util/system.c
183 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
184 ../lib/util/smb_threads.c ../lib/util/util_id.c
185 ../lib/util/blocking.c ../lib/util/rfc1738.c '''
187 CRYPTO_SRC = '''../lib/crypto/crc32.c ../lib/crypto/md5.c
188 ../lib/crypto/hmacmd5.c ../lib/crypto/arcfour.c
189 ../lib/crypto/md4.c
190 ../lib/crypto/sha256.c ../lib/crypto/hmacsha256.c
191 ../lib/crypto/aes.c ../lib/crypto/rijndael-alg-fst.c'''
193 LIBTEVENT_SRC0 = ''
195 PTHREADPOOL_SRC = ''
197 LIBREPLACE_SRCS = ''
199 SOCKET_WRAPPER_SRCS = ''
201 NSS_WRAPPER_SRCS = ''
203 ZLIB_SRCS = ''
205 LIB_SRC = '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC} ${CRYPTO_SRC}
206 lib/messages.c librpc/gen_ndr/ndr_messaging.c lib/messages_local.c
207 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
208 lib/interfaces.c lib/memcache.c
209 lib/talloc_dict.c
210 lib/util_sconn.c
211 lib/serverid.c
212 lib/util_transfer_file.c ../lib/async_req/async_sock.c
213 ${TDB_LIB_SRC}
214 ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
215 lib/interface.c lib/pidfile.c
216 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
217 lib/username.c
218 ../libds/common/flag_mapping.c
219 lib/util_pw.c lib/access.c lib/smbrun.c
220 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
221 lib/wins_srv.c
222 lib/util_str.c lib/clobber.c lib/util_sid.c
223 lib/util_unistr.c lib/util_file.c lib/util_names.c
224 lib/util.c lib/util_sock.c lib/sock_exec.c lib/util_sec.c
225 lib/substitute.c lib/dbwrap_util.c
226 lib/ms_fnmatch.c lib/select.c lib/errmap_unix.c
227 lib/tallocmsg.c lib/dmallocmsg.c
228 libsmb/clisigning.c libsmb/smb_signing.c
229 lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
230 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
231 lib/sessionid_tdb.c
232 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
233 lib/server_contexts.c
234 lib/ldap_escape.c ${CHARSET_STATIC}
235 lib/secdesc.c lib/util_seaccess.c ../libcli/security/secace.c
236 ../libcli/security/sddl.c
237 ../libcli/security/secacl.c ${PTHREADPOOL_SRC}
238 lib/fncall.c
239 libads/krb5_errs.c lib/system_smbd.c lib/audit.c ${LIBNDR_SRC}
240 lib/file_id.c lib/idmap_cache.c
241 ../libcli/security/dom_sid.c ../libcli/security/security_descriptor.c'''
243 LIB_DUMMY_SRC = '''lib/dummysmbd.c lib/dummyroot.c'''
244 LIB_NONSMBD_SRC = '''${LIB_DUMMY_SRC}'''
246 READLINE_SRC = '''lib/readline.c'''
248 POPT_LIB_SRC = '''lib/popt_common.c'''
250 PARAM_WITHOUT_REG_SRC = '''param/loadparm.c param/util.c param/loadparm_server_role.c
251 lib/sharesec.c lib/ldap_debug_handler.c'''
252 PARAM_REG_ADD_SRC = '''${REG_SMBCONF_SRC} ${LIBSMBCONF_SRC} ${PRIVILEGES_BASIC_SRC}'''
253 PARAM_SRC = '''${PARAM_REG_ADD_SRC}'''
255 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
257 LIBADDNS_SRC0 = '''libaddns/dnsrecord.c libaddns/dnsutils.c libaddns/dnssock.c
258 libaddns/dnsgss.c libaddns/dnsmarshall.c'''
259 LIBADDNS_SRC = '''${LIBADDNS_SRC0} ${SOCKET_WRAPPER_SRC}'''
261 GPEXT_STATIC = ''
262 GPEXT_REGISTRY_SRC = 'libgpo/gpext/registry.c'
263 GPEXT_SCRIPTS_SRC = 'libgpo/gpext/scripts.c'
264 GPEXT_SECURITY_SRC = 'libgpo/gpext/security.c'
266 GPEXT_SRC = '''../libgpo/gpext/gpext.c ${GPEXT_STATIC}'''
268 LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
269 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
270 libgpo/gpo_reg.c
271 ${GPEXT_SRC}'''
272 LIBGPO_SRC = '''${LIBGPO_SRC0}'''
274 LIBADS_SRC = '''libads/ldap.c
275 libads/sasl.c libads/sasl_wrapping.c
276 libads/krb5_setpw.c
277 libads/kerberos_util.c
278 libads/ldap_user.c
279 libads/ads_struct.c libads/kerberos_keytab.c
280 libads/disp_sec.c libads/ldap_utils.c
281 libads/ldap_schema.c libads/util.c libads/ndr.c'''
283 LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
285 LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c
286 ../librpc/ndr/ndr_krb5pac.c
287 ../librpc/gen_ndr/ndr_krb5pac.c'''
289 LIBNBT_SRC = '''../libcli/nbt/nbtname.c
290 ../libcli/netlogon.c
291 ../libcli/ndr_netlogon.c
292 ../librpc/gen_ndr/ndr_nbt.c
293 ../librpc/gen_ndr/ndr_svcctl.c
294 ../librpc/ndr/ndr_svcctl.c'''
296 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
297 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
298 libads/dns.c libads/sitename_cache.c'''
300 NTERR_SRC = '''libsmb/nterr.c libsmb/smberr.c'''
301 DOSERR_SRC = '../libcli/util/doserr.c'
302 ERRORMAP_SRC = 'libsmb/errormap.c'
303 DCE_RPC_ERR_SRC = '../librpc/rpc/dcerpc_error.c'
305 LIBSMB_ERR_SRC0 = '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
307 LIBSMB_ERR_SRC1 = '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
309 LIBSMB_ERR_SRC = '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}'
311 LIBSMB_SRC0 = '''
312 ../libcli/auth/ntlm_check.c
313 libsmb/ntlmssp.c
314 libsmb/ntlmssp_wrap.c
315 ../libcli/auth/ntlmssp.c
316 ../libcli/auth/ntlmssp_sign.c
317 ${LIBNDR_NTLMSSP_SRC}
318 ../libcli/auth/ntlmssp_ndr.c
319 ../libcli/auth/ntlmssp_server.c'''
321 LIBSAMBA_SRC = '${LIBSMB_SRC0}'
323 LIBCLI_LDAP_MESSAGE_SRC = '''../libcli/ldap/ldap_message.c'''
324 LIBCLI_LDAP_NDR_SRC = '''../libcli/ldap/ldap_ndr.c lib/ldb_compat.c'''
326 CLDAP_SRC = '''libads/cldap.c
327 ../libcli/cldap/cldap.c
328 ../lib/util/idtree.c
329 ${LIBCLI_LDAP_MESSAGE_SRC} ${LIBCLI_LDAP_NDR_SRC}'''
331 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
333 SCHANNEL_SRC = '''../libcli/auth/credentials.c
334 ../libcli/auth/schannel_sign.c
335 ../libcli/auth/schannel_state_tdb.c
336 ${LIBNDR_SCHANNEL_SRC}'''
338 LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
339 libsmb/clikrb5.c libsmb/clispnego.c
340 ../libcli/auth/spnego_parse.c
341 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
342 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
343 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
344 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
345 libsmb/clioplock.c libsmb/clirap2.c
346 libsmb/smb_seal.c libsmb/async_smb.c
347 ${LIBNMB_SRC}
348 ${LIBNBT_SRC}
349 ${CLDAP_SRC}
350 ${DRSUAPI_SRC}'''
352 LIBMSRPC_SRC = '''
353 ${SCHANNEL_SRC}
354 rpc_client/cli_pipe.c
355 librpc/rpc/rpc_common.c
356 librpc/rpc/dcerpc_gssapi.c
357 librpc/rpc/dcerpc_krb5.c
358 librpc/rpc/dcerpc_spnego.c
359 rpc_client/rpc_transport_np.c
360 rpc_client/rpc_transport_sock.c
361 rpc_client/rpc_transport_tstream.c
362 ../librpc/rpc/binding.c
363 ../librpc/rpc/dcerpc_util.c
364 librpc/rpc/dcerpc_helpers.c
365 ../librpc/rpc/binding_handle.c'''
367 LIBMSRPC_GEN_SRC = '''
368 ${LIBCLI_EPMAPPER_SRC}
369 ${LIBNDR_GEN_SRC}'''
372 # registry-related objects
374 UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
376 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
377 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
378 REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
380 REGFIO_SRC = '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
382 REG_API_REGF_SRC = '''registry/reg_api_regf.c'''
384 REGSRCS_SRC = '''registry/reg_objects.c'''
386 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
388 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
390 REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
391 registry/reg_backend_shares.c
392 registry/reg_backend_netlogon_params.c
393 registry/reg_backend_prod_options.c
394 registry/reg_backend_tcpip_params.c
395 registry/reg_backend_hkpt_params.c
396 registry/reg_backend_current_version.c
397 registry/reg_backend_perflib.c'''
399 REG_BASE_SRC = '''registry/reg_api.c
400 registry/reg_dispatcher.c
401 registry/reg_cachehook.c
402 ${REGSRCS_SRC}
403 registry/reg_util_internal.c
404 lib/util_nttoken.c
405 ${REG_BACKENDS_BASE_SRC}
406 ${REG_INIT_BASIC_SRC}'''
408 REG_SMBCONF_SRC = '''${REG_BASE_SRC}
409 ${REG_BACKENDS_SMBCONF_SRC}
410 ${REG_INIT_SMBCONF_SRC}
411 registry/reg_util_token.c
412 registry/reg_api_util.c'''
414 REG_FULL_SRC = '''${REG_SMBCONF_SRC}
415 ${REG_BACKENDS_EXTRA_SRC}
416 ${REG_INIT_FULL_SRC}
417 registry/reg_eventlog.c
418 registry/reg_perfcount.c
419 librpc/gen_ndr/ndr_perfcount.c'''
421 LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
423 RPC_STATIC = ''
425 RPC_LSARPC_SRC = '''rpc_server/srv_lsa_nt.c
426 ../librpc/gen_ndr/srv_lsa.c'''
428 RPC_NETLOGON_SRC = '''rpc_server/srv_netlog_nt.c
429 ../librpc/gen_ndr/srv_netlogon.c'''
431 RPC_SAMR_SRC = '''rpc_server/srv_samr_nt.c
432 rpc_server/srv_samr_util.c
433 rpc_server/srv_samr_chgpasswd.c
434 ../librpc/gen_ndr/srv_samr.c'''
436 RPC_INITSHUTDOWN_SRC = ''' ../librpc/gen_ndr/srv_initshutdown.c rpc_server/srv_initshutdown_nt.c'''
438 RPC_WINREG_SRC = '''rpc_server/srv_winreg_nt.c
439 ../librpc/gen_ndr/srv_winreg.c'''
441 RPC_DSSETUP_SRC = ''' rpc_server/srv_dssetup_nt.c ../librpc/gen_ndr/srv_dssetup.c'''
443 RPC_SRVSVC_SRC = '''rpc_server/srv_srvsvc_nt.c
444 ../librpc/gen_ndr/srv_srvsvc.c'''
446 RPC_WKSSVC_SRC = '''../librpc/gen_ndr/srv_wkssvc.c
447 rpc_server/srv_wkssvc_nt.c'''
449 RPC_SVCCTL_SRC = ''' rpc_server/srv_svcctl_nt.c
450 ../librpc/gen_ndr/srv_svcctl.c
451 services/svc_spoolss.c services/svc_rcinit.c services/services_db.c
452 services/svc_netlogon.c services/svc_winreg.c
453 services/svc_wins.c'''
455 RPC_NTSVCS_SRC = '''rpc_server/srv_ntsvcs_nt.c
456 ../librpc/gen_ndr/srv_ntsvcs.c'''
458 RPC_NETDFS_SRC = '''../librpc/gen_ndr/srv_dfs.c
459 rpc_server/srv_dfs_nt.c'''
461 RPC_SPOOLSS_SRC = '''rpc_server/srv_spoolss_nt.c
462 rpc_server/srv_spoolss_util.c
463 ../librpc/gen_ndr/srv_spoolss.c'''
465 RPC_EVENTLOG_SRC = '''rpc_server/srv_eventlog_nt.c
466 ${LIB_EVENTLOG_SRC} ../librpc/gen_ndr/srv_eventlog.c'''
468 NPA_TSTREAM_SRC = '''../libcli/named_pipe_auth/npa_tstream.c
469 ../librpc/gen_ndr/ndr_named_pipe_auth.c'''
471 RPC_NCACN_NP = '''rpc_server/srv_pipe_register.c rpc_server/rpc_ncacn_np.c
472 rpc_server/rpc_handles.c'''
474 RPC_SERVICE = '''rpc_server/rpc_server.c'''
476 RPC_PIPE_SRC = '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
477 ${RPC_NCACN_NP} ${RPC_SERVICE}'''
479 RPC_RPCECHO_SRC = '''rpc_server/srv_echo_nt.c ../librpc/gen_ndr/srv_echo.c'''
481 RPC_SERVER_SRC = '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC} ${RPC_STATIC}'''
483 RPC_CLIENT_SCHANNEL_SRC = '''rpc_client/cli_pipe_schannel.c'''
485 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
487 PRIVILEGES_BASIC_SRC = '''../libcli/security/privileges.c'''
489 PRIVILEGES_SRC = '''lib/privileges.c'''
491 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
493 PDB_STATIC = ''
494 PDB_TDBSAM_SRC = 'passdb/pdb_tdb.c'
495 PDB_LDAP_SRC = 'passdb/pdb_ldap.c passdb/pdb_nds.c'
496 PDB_ADS_SRC = 'passdb/pdb_ads.c'
497 PDB_SMBPASSWD_SRC = 'passdb/pdb_smbpasswd.c'
498 PDB_WBC_SAM_SRC = 'passdb/pdb_wbc_sam.c'
500 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
501 passdb/machine_sid.c librpc/gen_ndr/ndr_secrets.c'''
503 PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c passdb/pdb_interface.c
504 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
505 passdb/util_unixsids.c passdb/lookup_sid.c
506 passdb/login_cache.c ${PDB_STATIC}
507 passdb/account_pol.c ${PRIVILEGES_SRC}
508 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
509 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
511 CHARSET_STATIC = ''
512 CHARSET_WEIRD_SRC = 'modules/weird.c'
513 CHARSET_CP850_SRC = 'modules/CP850.c'
514 CHARSET_CP437_SRC = 'modules/CP437.c'
515 CHARSET_MACOSXFS_SRC = 'modules/charset_macosxfs.c'
517 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
519 PROFILE_SRC = '''profile/profile.c'''
520 PROFILES_SRC = '''utils/profiles.c
521 ${LIBSMB_ERR_SRC}
522 ${PARAM_SRC}
523 ${LIB_SRC} ${LIB_DUMMY_SRC}'''
525 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
526 smbd/oplock_onefs.c'''
528 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c
529 librpc/gen_ndr/ndr_notify.c'''
531 FNAME_UTIL_SRC = '''smbd/filename_util.c'''
533 VFS_STATIC = ''
534 VFS_DEFAULT_SRC = '''modules/vfs_default.c'''
535 VFS_AUDIT_SRC = '''modules/vfs_audit.c'''
536 VFS_EXTD_AUDIT_SRC = '''modules/vfs_extd_audit.c'''
537 VFS_FULL_AUDIT_SRC = '''modules/vfs_full_audit.c'''
538 VFS_FAKE_PERMS_SRC = '''modules/vfs_fake_perms.c'''
539 VFS_RECYCLE_SRC = '''modules/vfs_recycle.c'''
540 VFS_NETATALK_SRC = '''modules/vfs_netatalk.c'''
541 VFS_DEFAULT_QUOTA_SRC = '''modules/vfs_default_quota.c'''
542 VFS_READONLY_SRC = '''modules/vfs_readonly.c modules/getdate.c'''
543 VFS_CAP_SRC = '''modules/vfs_cap.c'''
544 VFS_EXPAND_MSDFS_SRC = '''modules/vfs_expand_msdfs.c'''
545 VFS_SHADOW_COPY_SRC = '''modules/vfs_shadow_copy.c'''
546 VFS_SHADOW_COPY2_SRC = '''modules/vfs_shadow_copy2.c'''
547 VFS_AFSACL_SRC = '''modules/vfs_afsacl.c'''
548 VFS_XATTR_TDB_SRC = '''modules/vfs_xattr_tdb.c'''
549 VFS_POSIXACL_SRC = '''modules/vfs_posixacl.c'''
550 VFS_AIXACL_SRC = '''modules/vfs_aixacl.c modules/vfs_aixacl_util.c'''
551 VFS_AIXACL2_SRC = '''modules/vfs_aixacl2.c modules/vfs_aixacl_util.c modules/nfs4_acls.c'''
552 VFS_SOLARISACL_SRC = '''modules/vfs_solarisacl.c'''
553 VFS_ZFSACL_SRC = '''modules/vfs_zfsacl.c modules/nfs4_acls.c'''
554 VFS_HPUXACL_SRC = '''modules/vfs_hpuxacl.c'''
555 VFS_IRIXACL_SRC = '''modules/vfs_irixacl.c'''
556 VFS_TRU64ACL_SRC = '''modules/vfs_tru64acl.c'''
557 VFS_CATIA_SRC = 'modules/vfs_catia.c'
558 VFS_STREAMS_XATTR_SRC = 'modules/vfs_streams_xattr.c'
559 VFS_STREAMS_DEPOT_SRC = 'modules/vfs_streams_depot.c'
560 VFS_CACHEPRIME_SRC = 'modules/vfs_cacheprime.c'
561 VFS_PREALLOC_SRC = 'modules/vfs_prealloc.c'
562 VFS_COMMIT_SRC = 'modules/vfs_commit.c'
563 VFS_GPFS_SRC = 'modules/vfs_gpfs.c modules/gpfs.c modules/nfs4_acls.c'
564 VFS_NOTIFY_FAM_SRC = 'modules/vfs_notify_fam.c'
565 VFS_READAHEAD_SRC = 'modules/vfs_readahead.c'
566 VFS_TSMSM_SRC = 'modules/vfs_tsmsm.c'
567 VFS_FILEID_SRC = 'modules/vfs_fileid.c'
568 VFS_AIO_FORK_SRC = 'modules/vfs_aio_fork.c'
569 VFS_PREOPEN_SRC = 'modules/vfs_preopen.c'
570 VFS_SYNCOPS_SRC = 'modules/vfs_syncops.c'
571 VFS_ACL_XATTR_SRC = 'modules/vfs_acl_xattr.c'
572 VFS_ACL_TDB_SRC = 'modules/vfs_acl_tdb.c'
573 VFS_SMB_TRAFFIC_ANALYZER_SRC = 'modules/vfs_smb_traffic_analyzer.c'
574 VFS_ONEFS_SRC = '''modules/vfs_onefs.c modules/onefs_acl.c modules/onefs_system.c
575 modules/onefs_open.c modules/onefs_streams.c modules/onefs_dir.c
576 modules/onefs_cbrl.c modules/onefs_notify.c modules/onefs_config.c'''
577 VFS_ONEFS_SHADOW_COPY_SRC = 'modules/vfs_onefs_shadow_copy.c modules/onefs_shadow_copy.c'
578 VFS_DIRSORT_SRC = 'modules/vfs_dirsort.c'
579 VFS_SCANNEDONLY_SRC = 'modules/vfs_scannedonly.c'
580 VFS_CROSSRENAME_SRC = 'modules/vfs_crossrename.c'
582 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
584 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
586 DCUTIL_SRC = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
588 AUTH_BUILTIN_SRC = 'auth/auth_builtin.c'
589 AUTH_DOMAIN_SRC = 'auth/auth_domain.c'
590 AUTH_SAM_SRC = 'auth/auth_sam.c'
591 AUTH_SERVER_SRC = 'auth/auth_server.c'
592 AUTH_UNIX_SRC = 'auth/auth_unix.c'
593 AUTH_WINBIND_SRC = 'auth/auth_winbind.c'
594 AUTH_WBC_SRC = 'auth/auth_wbc.c'
595 AUTH_SCRIPT_SRC = 'auth/auth_script.c'
596 AUTH_NETLOGOND_SRC = 'auth/auth_netlogond.c'
598 AUTH_STATIC = ''
599 AUTH_SRC = '''${AUTH_STATIC} auth/auth.c auth/auth_util.c auth/token_util.c
600 auth/auth_compat.c auth/auth_ntlmssp.c auth/user_info.c auth/check_samsec.c
601 auth/user_util.c auth/user_krb5.c auth/server_info.c auth/server_info_sam.c
602 ${PLAINTEXT_AUTH_SRC} ${SLCACHE_SRC} ${DCUTIL_SRC}'''
604 #FIXME: set IDMAP_STATIC during configuration
605 IDMAP_STATIC=''
606 IDMAP_SRC = 'winbindd/idmap.c winbindd/idmap_util.c ${IDMAP_STATIC}'
608 #FIXME: set NSS_INFO_STATIC during configuration
609 NSS_INFO_STATIC = ''
610 NSS_INFO_TEMPLATE_SRC = 'winbindd/nss_info_template.c'
611 NSS_INFO_SRC = 'winbindd/nss_info.c ${NSS_INFO_STATIC}'
613 IDMAP_HASH_SRC = '''winbindd/idmap_hash/idmap_hash.c
614 winbindd/idmap_hash/mapfile.c'''
616 IDMAP_ADEX_SRC = '''winbindd/idmap_adex/idmap_adex.c
617 winbindd/idmap_adex/cell_util.c
618 winbindd/idmap_adex/likewise_cell.c
619 winbindd/idmap_adex/provider_unified.c
620 winbindd/idmap_adex/gc_util.c
621 winbindd/idmap_adex/domain_util.c'''
623 PERFCOUNT_STATIC = ''
624 PERFCOUNT_ONEFS_SRC = 'modules/perfcount_onefs.c'
625 PERFCOUNT_TEST_SRC = 'modules/perfcount_test.c'
627 WINBINDD_SRC1 = '''winbindd/winbindd.c
628 winbindd/winbindd_group.c
629 winbindd/winbindd_util.c
630 winbindd/winbindd_cache.c
631 winbindd/winbindd_pam.c
632 winbindd/winbindd_misc.c
633 winbindd/winbindd_cm.c
634 winbindd/winbindd_wins.c
635 winbindd/winbindd_msrpc.c
636 winbindd/winbindd_rpc.c
637 winbindd/winbindd_reconnect.c
638 winbindd/winbindd_ads.c
639 winbindd/winbindd_samr.c
640 winbindd/winbindd_dual.c
641 winbindd/winbindd_dual_ndr.c
642 winbindd/winbindd_dual_srv.c
643 librpc/gen_ndr/cli_wbint.c
644 librpc/gen_ndr/srv_wbint.c
645 librpc/gen_ndr/ndr_wbint.c
646 librpc/gen_ndr/ndr_wbint_c.c
647 winbindd/winbindd_async.c
648 winbindd/winbindd_creds.c
649 winbindd/winbindd_cred_cache.c
650 winbindd/winbindd_ccache_access.c
651 winbindd/winbindd_domain.c
652 winbindd/winbindd_idmap.c
653 winbindd/winbindd_locator.c
654 winbindd/winbindd_ndr.c
655 winbindd/wb_ping.c
656 winbindd/wb_lookupsid.c
657 winbindd/wb_lookupname.c
658 winbindd/wb_sid2uid.c
659 winbindd/wb_sid2gid.c
660 winbindd/wb_uid2sid.c
661 winbindd/wb_gid2sid.c
662 winbindd/wb_queryuser.c
663 winbindd/wb_lookupuseraliases.c
664 winbindd/wb_lookupusergroups.c
665 winbindd/wb_getpwsid.c
666 winbindd/wb_gettoken.c
667 winbindd/wb_seqnum.c
668 winbindd/wb_seqnums.c
669 winbindd/wb_group_members.c
670 winbindd/wb_getgrsid.c
671 winbindd/wb_query_user_list.c
672 winbindd/wb_fill_pwent.c
673 winbindd/wb_next_pwent.c
674 winbindd/wb_next_grent.c
675 winbindd/wb_dsgetdcname.c
676 winbindd/winbindd_lookupsid.c
677 winbindd/winbindd_lookupname.c
678 winbindd/winbindd_sid_to_uid.c
679 winbindd/winbindd_sid_to_gid.c
680 winbindd/winbindd_uid_to_sid.c
681 winbindd/winbindd_gid_to_sid.c
682 winbindd/winbindd_allocate_uid.c
683 winbindd/winbindd_allocate_gid.c
684 winbindd/winbindd_getpwsid.c
685 winbindd/winbindd_getpwnam.c
686 winbindd/winbindd_getpwuid.c
687 winbindd/winbindd_getsidaliases.c
688 winbindd/winbindd_getuserdomgroups.c
689 winbindd/winbindd_getgroups.c
690 winbindd/winbindd_show_sequence.c
691 winbindd/winbindd_getgrgid.c
692 winbindd/winbindd_getgrnam.c
693 winbindd/winbindd_getusersids.c
694 winbindd/winbindd_lookuprids.c
695 winbindd/winbindd_setpwent.c
696 winbindd/winbindd_getpwent.c
697 winbindd/winbindd_endpwent.c
698 winbindd/winbindd_setgrent.c
699 winbindd/winbindd_getgrent.c
700 winbindd/winbindd_endgrent.c
701 winbindd/winbindd_dsgetdcname.c
702 winbindd/winbindd_getdcname.c
703 winbindd/winbindd_list_users.c
704 winbindd/winbindd_list_groups.c
705 winbindd/winbindd_check_machine_acct.c
706 winbindd/winbindd_change_machine_acct.c
707 winbindd/winbindd_ping_dc.c
708 winbindd/winbindd_pam_auth.c
709 winbindd/winbindd_pam_logoff.c
710 winbindd/winbindd_pam_chauthtok.c
711 winbindd/winbindd_pam_auth_crap.c
712 winbindd/winbindd_pam_chng_pswd_auth_crap.c
713 auth/auth_util.c
714 auth/token_util.c
715 auth/user_util.c
716 auth/check_samsec.c
717 auth/server_info.c
718 auth/server_info_sam.c
719 auth/user_info.c
720 auth/user_util.c
721 rpc_server/srv_samr_chgpasswd.c
722 ../nsswitch/libwbclient/wb_reqtrans.c'''
724 WINBINDD_SRC = '''${WINBINDD_SRC1}
725 ${LIBMSRPC_SRC} ${LIBMSRPC_GEN_SRC}
726 ${PROFILE_SRC} ${SLCACHE_SRC}
727 ${LIBADS_SRC}
728 ${DCUTIL_SRC} ${IDMAP_SRC} ${NSS_INFO_SRC}
729 ${AFS_SRC} ${AFS_SETTOKEN_SRC}
730 ${LIBADS_SERVER_SRC}
731 ${RPC_NCACN_NP} ${NPA_TSTREAM_SRC} ${RPC_SAMR_SRC} ${RPC_LSARPC_SRC}
732 ${TDB_VALIDATE_SRC}
733 ${LIBCLI_DSSETUP_SRC}
734 ${LIBCLI_LSA_SRC}
735 ${LIBCLI_SAMR_SRC}
736 ${LIBCLI_NETLOGON_SRC}
737 rpc_client/init_netlogon.c'''
739 LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c librpc/gen_ndr/ndr_libnet_join.c'
741 LIBSMBCONF_SRC = '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
742 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
743 lib/smbconf/smbconf_init.c'''
745 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
747 SMBD_SRC_MAIN = '''smbd/server.c smbd/server_exit.c'''
749 BUILDOPT_SRC = '''smbd/build_options.c'''
751 SMBD_SRC_SRV = '''smbd/server_reload.c smbd/files.c smbd/connection.c
752 smbd/utmp.c smbd/session.c
753 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
754 smbd/share_access.c smbd/fileio.c
755 smbd/ipc.c smbd/lanman.c smbd/negprot.c
756 smbd/message.c smbd/nttrans.c smbd/pipes.c
757 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
758 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
759 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
760 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
761 smbd/posix_acls.c lib/sysacls.c
762 smbd/process.c smbd/service.c smbd/error.c
763 printing/printspoolss.c
764 lib/sysquotas.c lib/sysquotas_linux.c
765 lib/sysquotas_xfs.c lib/sysquotas_4A.c
766 smbd/fake_file.c
767 smbd/quotas.c smbd/ntquotas.c ${AFS_SRC} smbd/msdfs.c
768 ${AFS_SETTOKEN_SRC} smbd/aio.c smbd/statvfs.c
769 smbd/dmapi.c smbd/signing.c
770 smbd/file_access.c
771 smbd/dnsregister.c smbd/globals.c
772 smbd/smb2_server.c
773 smbd/smb2_signing.c
774 smbd/smb2_glue.c
775 smbd/smb2_negprot.c
776 smbd/smb2_sesssetup.c
777 smbd/smb2_tcon.c
778 smbd/smb2_create.c
779 smbd/smb2_close.c
780 smbd/smb2_flush.c
781 smbd/smb2_read.c
782 smbd/smb2_write.c
783 smbd/smb2_lock.c
784 smbd/smb2_ioctl.c
785 smbd/smb2_keepalive.c
786 smbd/smb2_find.c
787 smbd/smb2_notify.c
788 smbd/smb2_getinfo.c
789 smbd/smb2_setinfo.c
790 smbd/smb2_break.c
791 ../libcli/smb/smb2_create_blob.c
792 ${MANGLE_SRC} ${VFS_STATIC}'''
794 SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
795 ${RPC_SERVER_SRC}
796 ${LOCKING_SRC} ${PRINTING_SRC}
797 ${PROFILE_SRC} ${PRINTBACKEND_SRC}
798 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
799 ${LIBMSRPC_SRC}
800 ${LIBMSRPC_GEN_SRC} ${LIBADS_SRC}
801 ${LIBADS_SERVER_SRC} ${LIBADS_PRINTER_SRC} ${REG_FULL_SRC}
802 ${BUILDOPT_SRC}
803 ${LIBNET_SRC} ${LIBSMBCONF_SRC}
804 ${LIBCLI_SPOOLSS_SRC}
805 ${LIBCLI_WINREG_SRC}
806 ${LIBCLI_SRVSVC_SRC}
807 ${LIBCLI_LSA_SRC}
808 ${LIBCLI_SAMR_SRC}
809 ${LIBCLI_NETLOGON_SRC}
810 ${RPC_CLIENT_SCHANNEL_SRC}
811 rpc_client/init_netlogon.c
812 rpc_client/init_samr.c
813 ${AUTH_SRC}
814 ${PRIVILEGES_BASIC_SRC}
815 ${REGFIO_SRC}
816 ${REG_API_REGF_SRC}
817 ${LIBNDR_XATTR_SRC}'''
819 PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
820 printing/print_cups.c printing/print_generic.c
821 printing/lpq_parse.c printing/load.c printing/print_standard.c
822 printing/print_iprint.c printing/printer_list.c'''
824 PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
825 PRINTBACKEND_SRC = '''printing/printing.c
826 printing/nt_printing.c
827 printing/nt_printing_tdb.c
828 printing/nt_printing_migrate.c
829 printing/nt_printing_ads.c
830 ${LIBNDR_NTPRINTING_SRC}
831 ${PRINTBASE_SRC}'''
833 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
835 NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
836 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
837 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
838 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
839 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
840 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
841 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
842 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
843 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
844 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
845 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
846 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
848 NMBD_SRC = '${NMBD_SRC1} ${PROFILE_SRC} ${LIBNDR_GEN_SRC0}'
850 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
851 web/swat.c web/neg_lang.c'''
853 SWAT_SRC = '''${SWAT_SRC1} ${PRINTING_SRC} ${PRINTBASE_SRC}
854 ${LOCKING_SRC}
855 ${PLAINTEXT_AUTH_SRC}
856 ${LIBMSRPC_GEN_SRC} ${LIBMSRPC_SRC}
857 ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}
858 ${LIBCLI_SAMR_SRC}
859 rpc_client/init_lsa.c'''
861 WBINFO_SRC = '../nsswitch/wbinfo.c ${AFS_SETTOKEN_SRC}'
863 TESTPARM_SRC = 'utils/testparm.c'
865 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
867 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}
868 registry/reg_eventlog.c ${LIB_EVENTLOG_SRC}
869 ../librpc/gen_ndr/ndr_eventlog.c
870 ../librpc/gen_ndr/ndr_lsa.c'''
872 DISPLAY_SEC_SRC= '../libcli/security/display_sec.c'
874 CLIENT_SRC1 = '''client/client.c client/clitar.c
875 client/dnsbrowse.c
876 ${LIBMSRPC_SRC}'''
878 CLIENT_SRC = '''${CLIENT_SRC1} ${LIBMSRPC_GEN_SRC}
879 ${READLINE_SRC} ${DISPLAY_SEC_SRC}
880 ${LIBCLI_SRVSVC_SRC}
881 rpc_client/init_lsa.c'''
883 RPCCLIENT_SRC1 = '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
884 rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
885 rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
886 rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
887 rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
888 rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
889 rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
890 rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
891 rpcclient/cmd_winreg.c
892 ${DISPLAY_SEC_SRC}'''
894 RPCCLIENT_SRC = '''${RPCCLIENT_SRC1}
895 ${LIBMSRPC_GEN_SRC}
896 ${LIBMSRPC_SRC}
897 ${READLINE_SRC}
898 ${LIBADS_SRC}
899 ${DCUTIL_SRC}
900 ${LIBCLI_SPOOLSS_SRC}
901 ${LIBCLI_EVENTLOG_SRC}
902 ${LIBCLI_NTSVCS_SRC}
903 ${LIBCLI_DRSUAPI_SRC}
904 ${LIBCLI_DFS_SRC}
905 ${LIBCLI_ECHO_SRC}
906 ${LIBCLI_DSSETUP_SRC}
907 ${LIBCLI_WKSSVC_SRC}
908 ${LIBCLI_SRVSVC_SRC}
909 ${LIBCLI_LSA_SRC}
910 ${LIBCLI_SAMR_SRC}
911 ${LIBCLI_WINREG_SRC}
912 ${LIBCLI_NETLOGON_SRC}
913 ${RPC_CLIENT_SCHANNEL_SRC}
914 rpc_client/init_netlogon.c
915 rpc_client/init_samr.c'''
917 LIBNET_DSSYNC_SRC = '''libnet/libnet_dssync.c
918 libnet/libnet_dssync_keytab.c
919 ../libcli/drsuapi/repl_decrypt.c'''
921 LIBNET_SAMSYNC_SRC = '''libnet/libnet_samsync.c
922 libnet/libnet_samsync_ldif.c
923 libnet/libnet_samsync_passdb.c
924 libnet/libnet_samsync_display.c
925 libnet/libnet_samsync_keytab.c
926 ../libcli/samsync/decrypt.c'''
928 PASSWD_UTIL_SRC = 'utils/passwd_util.c'
930 NET_SRC1 = '''utils/net.c utils/net_ads.c utils/net_help.c
931 utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
932 utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
933 utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
934 utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
935 utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
936 utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
937 utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
938 ${PASSWD_UTIL_SRC} utils/net_dns.c utils/net_ads_gpo.c
939 utils/net_conf.c utils/net_join.c utils/net_user.c
940 utils/net_group.c utils/net_file.c utils/net_registry.c
941 auth/token_util.c utils/net_dom.c utils/net_share.c
942 utils/net_g_lock.c
943 utils/net_serverid.c
944 utils/net_eventlog.c
945 utils/net_printing.c
946 ${LIBNDR_NTPRINTING_SRC}
947 ${LIBNDR_PREG_SRC}
948 ${LIBCLI_SPOOLSS_SRC}
949 ${LIBCLI_WINREG_SRC}
950 ${LIBCLI_DRSUAPI_SRC}
951 ${LIBCLI_INITSHUTDOWN_SRC}
952 ${LIBCLI_DSSETUP_SRC}
953 ${LIBCLI_SVCCTL_SRC}
954 ${LIBCLI_WKSSVC_SRC}
955 ${LIBCLI_SRVSVC_SRC}
956 ${LIBCLI_LSA_SRC}
957 ${LIBCLI_SAMR_SRC}
958 ${LIBCLI_NETLOGON_SRC}
959 ${RPC_CLIENT_SCHANNEL_SRC}
960 rpc_client/init_netlogon.c
961 rpc_client/init_samr.c'''
964 NET_SRC2 = 'utils/net_registry_util.c utils/net_help_common.c'
966 NET_SRC = '''${NET_SRC1}
967 ${NET_SRC2}
968 ${LIBADDNS_SRC0}
969 ${LIBMSRPC_SRC} ${LIBMSRPC_GEN_SRC}
970 ${LIBADS_SRC} ${LIBADS_SERVER_SRC} ${LIBADS_PRINTER_SRC}
971 ${DCUTIL_SRC}
972 ${AFS_SRC} ${AFS_SETTOKEN_SRC} ${READLINE_SRC}
973 ${LIBGPO_SRC} ${DISPLAY_SEC_SRC}
974 ${LIBNET_SRC} ${LIBNET_DSSYNC_SRC} ${LIBNET_SAMSYNC_SRC}
975 ${LIB_EVENTLOG_SRC} ${REGFIO_SRC}'''
977 LIBS='ICONV'
979 bld.SAMBA_GENERATOR('build_options',
980 source='include/config.h script/mkbuildoptions.awk',
981 target='smbd/build_options.c',
982 rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
984 t = bld.SAMBA_GENERATOR('build_env.h',
985 source='script/build_env.sh',
986 target='include/build_env.h',
987 rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
988 # todo: work out what is really wanted here
989 t.env.SRCDIR = bld.path.abspath()
990 t.env.BUILDDIR = bld.path.abspath()
993 bld.SETUP_BUILD_GROUPS()
995 bld.RECURSE('../lib/replace')
996 print "SBINDIR=%s" % bld.env.SBINDIR
997 bld.RECURSE('build')
999 bld.RECURSE('../librpc/idl')
1000 bld.RECURSE('librpc/idl')
1002 bld.SAMBA_MKVERSION('include/version.h')
1004 for prefix in bld.env.MODULE_PREFIXES:
1005 static_key = "%s_STATIC" % prefix.upper()
1006 shared_key = "%s_SHARED" % prefix.upper()
1008 # Set up the static modules
1009 static_src = locals()[static_key]
1010 for module in bld.env[static_key]:
1011 static_src += "${%s_SRC} " % module
1012 # for some reason static_src doesn't seem to be a reference, so save it
1013 # back to the locals
1014 locals()[static_key] = static_src
1016 # Set up subsystems for the shared modules
1017 for module in bld.env[shared_key]:
1018 bld.SAMBA_SUBSYSTEM(module,
1019 source="${%s_SRC}" % module,
1020 vars=locals())
1022 ######################## SUBSYSTEMS #################################
1024 bld.SAMBA_SUBSYSTEM('WBCOMMON',
1025 source=WBCOMMON_SRC)
1027 bld.SAMBA_LIBRARY('libwbclient',
1028 source='''../nsswitch/libwbclient/wbc_guid.c
1029 ../nsswitch/libwbclient/wbc_idmap.c
1030 ../nsswitch/libwbclient/wbclient.c
1031 ../nsswitch/libwbclient/wbc_pam.c
1032 ../nsswitch/libwbclient/wbc_pwd.c
1033 ../nsswitch/libwbclient/wbc_sid.c
1034 ../nsswitch/libwbclient/wbc_util.c''',
1035 public_deps='talloc WBCOMMON')
1037 bld.SAMBA_LIBRARY('libnetapi',
1038 source='''lib/netapi/netapi.c
1039 lib/netapi/cm.c
1040 librpc/gen_ndr/ndr_libnetapi.c
1041 lib/netapi/libnetapi.c
1042 lib/netapi/joindomain.c
1043 lib/netapi/serverinfo.c
1044 lib/netapi/getdc.c
1045 lib/netapi/user.c
1046 lib/netapi/group.c
1047 lib/netapi/localgroup.c
1048 lib/netapi/samr.c
1049 lib/netapi/sid.c
1050 lib/netapi/share.c
1051 lib/netapi/file.c
1052 lib/netapi/shutdown.c
1053 lib/netapi/netlogon.c''',
1054 public_deps='''talloc tdb''')
1056 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
1057 source='../lib/util/asn1.c',
1058 deps='talloc',
1059 local_include=False)
1061 bld.SAMBA_SUBSYSTEM('AVAHI',
1062 source=AVAHI_SRC,
1063 deps='avahi-common avahi-client',
1064 enabled=bld.env.with_avahi)
1066 bld.SAMBA_SUBSYSTEM('GROUPDB',
1067 source=GROUPDB_SRC)
1069 bld.SAMBA_SUBSYSTEM('TLDAP',
1070 source=TLDAP_SRC,
1071 deps='ASN1_UTIL LIBTSOCKET')
1073 bld.SAMBA_SUBSYSTEM('PASSDB',
1074 source=PASSDB_SRC,
1075 deps='GROUPDB TLDAP SECRETS',
1076 vars=locals())
1078 bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
1079 source=PARAM_WITHOUT_REG_SRC)
1081 bld.SAMBA_SUBSYSTEM('PARAM',
1082 source=PARAM_SRC,
1083 deps='PARAM_WITHOUT_REG',
1084 vars=locals())
1086 bld.SAMBA_SUBSYSTEM('POPT_SAMBA',
1087 source=POPT_LIB_SRC,
1088 vars=locals())
1090 bld.SAMBA_SUBSYSTEM('KRBCLIENT',
1091 source=KRBCLIENT_SRC,
1092 deps='krb5 k5crypto com_err gssapi gssapi_krb5',
1093 vars=locals())
1095 bld.SAMBA_SUBSYSTEM('LIBS',
1096 source=LIB_SRC,
1097 deps='NSS_WRAPPER iconv',
1098 vars=locals())
1100 bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
1101 source=LIB_NONSMBD_SRC,
1102 deps='LIBS',
1103 vars=locals())
1105 bld.SAMBA_SUBSYSTEM('LIBSMB_ERR',
1106 source=LIBSMB_ERR_SRC,
1107 deps='SECRETS SMBLDAP',
1108 vars=locals())
1110 bld.SAMBA_SUBSYSTEM('LIBSAMBA',
1111 source=LIBSAMBA_SRC,
1112 deps='LIBSMB_ERR',
1113 vars=locals())
1115 bld.SAMBA_SUBSYSTEM('LIBSMB',
1116 source=LIBSMB_SRC,
1117 deps='LIBSAMBA ZLIB',
1118 vars=locals())
1120 bld.SAMBA_SUBSYSTEM('SECRETS',
1121 source=SECRETS_SRC,
1122 vars=locals())
1124 bld.SAMBA_SUBSYSTEM('SMBLDAP',
1125 source=SMBLDAP_SRC,
1126 deps='ldap lber',
1127 vars=locals())
1129 ########################## BINARIES #################################
1131 bld.SAMBA_BINARY('smbd/smbd',
1132 source=SMBD_SRC,
1133 deps='''tdb DYNCONFIG tevent dl krb5 ldap gssapi gssapi_krb5
1134 NSS_WRAPPER libwbclient crypt nsl cups cap resolv ZLIB PASSDB
1135 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI''',
1136 install_path='${SBINDIR}',
1137 vars=locals())
1139 bld.SAMBA_BINARY('nmbd/nmbd',
1140 source=NMBD_SRC,
1141 deps='''talloc tdb tevent ZLIB cap resolv libwbclient dl
1142 NSS_WRAPPER DYNCONFIG PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1143 POPT_SAMBA KRBCLIENT''',
1144 install_path='${SBINDIR}',
1145 vars=locals())
1147 bld.SAMBA_BINARY('winbindd/winbindd',
1148 source=WINBINDD_SRC,
1149 deps='''talloc tdb tevent cap dl DYNCONFIG ZLIB NSS_WRAPPER
1150 libwbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1151 POPT_SAMBA KRBCLIENT''',
1152 enabled=bld.env.build_winbind,
1153 install_path='${SBINDIR}',
1154 vars=locals())
1156 bld.SAMBA_BINARY('web/swat',
1157 source=SWAT_SRC,
1158 deps='''talloc tevent cap DYNCONFIG LIBS LIBSMB libwbclient PARAM
1159 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups''',
1160 enabled=bld.env.build_swat,
1161 install_path='${SBINDIR}',
1162 vars=locals())
1164 bld.SAMBA_BINARY('smbclient',
1165 source=CLIENT_SRC,
1166 deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1167 PARAM_WITHOUT_REG libwbclient DYNCONFIG PARAM KRBCLIENT''',
1168 vars=locals())
1170 bld.SAMBA_BINARY('rpcclient/rpcclient',
1171 source=RPCCLIENT_SRC,
1172 deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1173 PARAM_WITHOUT_REG libwbclient DYNCONFIG PARAM KRBCLIENT''',
1174 vars=locals())
1176 bld.SAMBA_BINARY('wbinfo',
1177 source=WBINFO_SRC,
1178 deps='''talloc libwbclient DYNCONFIG tevent cap
1179 NSS_WRAPPER ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1180 LIBSAMBA POPT_SAMBA''',
1181 vars=locals())
1183 bld.SAMBA_BINARY('testparm',
1184 source=TESTPARM_SRC,
1185 deps='''talloc tevent DYNCONFIG ldap cap NSS_WRAPPER
1186 libwbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1187 LIBSMB_ERR POPT_SAMBA''',
1188 vars=locals())
1190 bld.SAMBA_BINARY('eventlogadm',
1191 source=EVTLOGADM_SRC,
1192 deps='''talloc tevent cap POPT_SAMBA DYNCONFIG LIBS PARAM
1193 LIB_NONSMBD LIBSMB_ERR PASSDB libwbclient''',
1194 vars=locals())
1196 bld.SAMBA_BINARY('net',
1197 source=NET_SRC,
1198 deps='''talloc tdb libnetapi cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1199 PARAM_WITHOUT_REG libwbclient DYNCONFIG PARAM KRBCLIENT
1200 LOCALE_DIR''',
1201 vars=locals())
1203 swat_files=recursive_dirlist('../swat', '../swat', '*')
1204 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
1206 ########################## INCLUDES #################################
1208 bld.RECURSE('../lib/socket_wrapper')
1209 bld.RECURSE('../lib/talloc')
1210 bld.RECURSE('../lib/tdb')
1211 bld.RECURSE('../lib/nss_wrapper')
1212 bld.RECURSE('../lib/tevent')
1213 bld.RECURSE('../lib/popt')
1214 bld.RECURSE('../lib/zlib')
1215 bld.RECURSE('../lib/tsocket')
1217 bld.ENFORCE_GROUP_ORDERING()
1218 bld.CHECK_PROJECT_RULES()