s4:sam.py - assign valid values when performing the special-attributes constraint...
[Samba.git] / source3 / wscript_build
blob308fae1a1d40639037821c29da788c1687f4b3c9
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'
40 DRSUAPI_SRC = '''${LIBNDR_DRSUAPI_SRC}
41 ${COMPRESSION_SRC}'''
43 LIBNDR_SRC = '''../librpc/ndr/ndr_basic.c
44 ../librpc/ndr/ndr.c
45 ../librpc/ndr/ndr_misc.c
46 ../librpc/gen_ndr/ndr_misc.c
47 ../librpc/ndr/ndr_string.c
48 ../librpc/ndr/uuid.c
49 librpc/ndr/util.c'''
51 LIBCLI_SPOOLSS_SRC = '''
52 ../librpc/gen_ndr/cli_spoolss.c
53 ../librpc/gen_ndr/ndr_spoolss_c.c
54 rpc_client/cli_spoolss.c
55 rpc_client/init_spoolss.c'''
57 LIBCLI_EVENTLOG_SRC = '''
58 ../librpc/gen_ndr/cli_eventlog.c
59 ../librpc/gen_ndr/ndr_eventlog_c.c'''
61 LIBCLI_NTSVCS_SRC = '''
62 ../librpc/gen_ndr/cli_ntsvcs.c
63 ../librpc/gen_ndr/ndr_ntsvcs_c.c'''
65 LIBCLI_DRSUAPI_SRC = '''
66 ../librpc/gen_ndr/cli_drsuapi.c
67 ../librpc/gen_ndr/ndr_drsuapi_c.c'''
69 LIBCLI_DFS_SRC = '''
70 ../librpc/gen_ndr/cli_dfs.c
71 ../librpc/gen_ndr/ndr_dfs_c.c'''
73 LIBCLI_INITSHUTDOWN_SRC = '''
74 ../librpc/gen_ndr/cli_initshutdown.c
75 ../librpc/gen_ndr/ndr_initshutdown_c.c'''
77 LIBCLI_DSSETUP_SRC = '''
78 ../librpc/gen_ndr/cli_dssetup.c
79 ../librpc/gen_ndr/ndr_dssetup_c.c'''
81 LIBCLI_SVCCTL_SRC = '''
82 ../librpc/gen_ndr/cli_svcctl.c
83 ../librpc/gen_ndr/ndr_svcctl_c.c'''
85 LIBCLI_WKSSVC_SRC = '''
86 ../librpc/gen_ndr/cli_wkssvc.c
87 ../librpc/gen_ndr/ndr_wkssvc_c.c'''
89 LIBCLI_SRVSVC_SRC = '''
90 ../librpc/gen_ndr/cli_srvsvc.c
91 ../librpc/gen_ndr/ndr_srvsvc_c.c'''
93 LIBCLI_LSA_SRC = '''
94 ../librpc/gen_ndr/cli_lsa.c
95 ../librpc/gen_ndr/ndr_lsa_c.c
96 rpc_client/cli_lsarpc.c
97 rpc_client/init_lsa.c'''
99 LIBCLI_SAMR_SRC = '''
100 ../librpc/gen_ndr/cli_samr.c
101 ../librpc/gen_ndr/ndr_samr_c.c
102 rpc_client/cli_samr.c'''
104 LIBCLI_NETLOGON_SRC = '''
105 ../librpc/gen_ndr/cli_netlogon.c
106 ../librpc/gen_ndr/ndr_netlogon_c.c
107 rpc_client/cli_netlogon.c'''
109 LIBCLI_EPMAPPER_SRC = '''
110 ../librpc/gen_ndr/cli_epmapper.c
111 ../librpc/gen_ndr/ndr_epmapper_c.c'''
113 # this includes only the low level parse code, not stuff
114 # that requires knowledge of security contexts
115 REG_PARSE_PRS_SRC = '''registry/reg_parse_prs.c'''
117 LIBREPLACE_SRC = '''${LIBREPLACE_SRCS}'''
119 LIBSAMBAUTIL_SRC = '''${LIBREPLACE_SRC}'''
121 UTIL_SRC = '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
122 ../lib/util/xfile.c ../lib/util/util_strlist.c
123 ../lib/util/util_file.c ../lib/util/data_blob.c
124 ../lib/util/util.c ../lib/util/fsusage.c
125 ../lib/util/params.c ../lib/util/talloc_stack.c
126 ../lib/util/genrand.c ../lib/util/util_net.c
127 ../lib/util/become_daemon.c ../lib/util/system.c
128 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
129 ../lib/util/tevent_werror.c
130 ../lib/util/smb_threads.c ../lib/util/util_id.c
131 ../lib/util/blocking.c ../lib/util/rfc1738.c
132 ../lib/util/select.c'''
134 LIBTEVENT_SRC0 = ''
136 PTHREADPOOL_SRC = ''
138 LIBREPLACE_SRCS = ''
140 LIB_SRC = '''${LIBSAMBAUTIL_SRC} ${UTIL_SRC}
141 lib/messages.c lib/messages_local.c
142 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
143 lib/interfaces.c lib/memcache.c
144 lib/talloc_dict.c
145 lib/util_sconn.c
146 lib/serverid.c
147 lib/util_transfer_file.c ../lib/async_req/async_sock.c
148 ${TDB_LIB_SRC}
149 ${VERSION_SRC} lib/charcnv.c lib/debug.c lib/fault.c
150 lib/interface.c lib/pidfile.c
151 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
152 lib/username.c
153 ../libds/common/flag_mapping.c
154 lib/access.c lib/smbrun.c
155 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
156 lib/wins_srv.c
157 lib/util_str.c lib/clobber.c lib/util_sid.c
158 lib/util_unistr.c lib/util_file.c
159 lib/util.c lib/util_names.c
160 lib/util_sock.c lib/sock_exec.c lib/util_sec.c
161 lib/substitute.c lib/dbwrap_util.c
162 lib/ms_fnmatch.c lib/errmap_unix.c
163 lib/tallocmsg.c lib/dmallocmsg.c
164 libsmb/clisigning.c libsmb/smb_signing.c
165 lib/iconv.c lib/pam_errors.c intl/lang_tdb.c
166 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
167 lib/sessionid_tdb.c
168 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
169 lib/server_contexts.c
170 lib/ldap_escape.c
171 lib/secdesc.c ${PTHREADPOOL_SRC}
172 lib/fncall.c
173 libads/krb5_errs.c lib/system_smbd.c lib/audit.c
174 lib/file_id.c lib/idmap_cache.c'''
176 LIB_DUMMY_SRC = '''lib/dummysmbd.c lib/dummyroot.c'''
177 LIB_NONSMBD_SRC = '''${LIB_DUMMY_SRC}'''
179 POPT_LIB_SRC = '''lib/popt_common.c'''
181 PARAM_WITHOUT_REG_SRC = '''param/loadparm.c param/util.c param/loadparm_server_role.c
182 lib/sharesec.c lib/ldap_debug_handler.c'''
184 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
186 LIBADDNS_SRC0 = '''libaddns/dnsrecord.c libaddns/dnsutils.c libaddns/dnssock.c
187 libaddns/dnsgss.c libaddns/dnsmarshall.c'''
188 LIBADDNS_SRC = '''${LIBADDNS_SRC0}'''
190 LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
191 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
192 libgpo/gpo_reg.c'''
193 LIBGPO_SRC = '''${LIBGPO_SRC0}'''
195 LIBADS_SRC = '''libads/ldap.c
196 libads/sasl.c libads/sasl_wrapping.c
197 libads/krb5_setpw.c
198 libads/kerberos_util.c
199 libads/ldap_user.c
200 libads/ads_struct.c libads/kerberos_keytab.c
201 libads/disp_sec.c libads/ldap_utils.c
202 libads/ldap_schema.c libads/util.c libads/ndr.c'''
204 LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c'''
206 LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
208 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
209 passdb/machine_sid.c'''
211 LIBNBT_SRC = '''../libcli/nbt/nbtname.c
212 ../libcli/netlogon.c
213 ../libcli/ndr_netlogon.c
214 ../librpc/gen_ndr/ndr_nbt.c
215 ../librpc/gen_ndr/ndr_svcctl.c
216 ../librpc/ndr/ndr_svcctl.c'''
218 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
219 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
220 libads/dns.c libads/sitename_cache.c'''
222 NTERR_SRC = '''libsmb/nterr.c libsmb/smberr.c'''
223 DOSERR_SRC = '../libcli/util/doserr.c'
224 ERRORMAP_SRC = 'libsmb/errormap.c'
225 DCE_RPC_ERR_SRC = '../librpc/rpc/dcerpc_error.c'
227 LIBSMB_ERR_SRC0 = '''${NTERR_SRC} ${DOSERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
229 LIBSMB_ERR_SRC1 = '''../libcli/auth/smbdes.c ../libcli/auth/smbencrypt.c ../libcli/auth/msrpc_parse.c ../libcli/auth/session.c'''
231 LIBSMB_ERR_SRC = '${LIBSMB_ERR_SRC0} ${LIBSMB_ERR_SRC1}'
233 LIBSMB_SRC0 = '''
234 ../libcli/auth/ntlm_check.c
235 libsmb/ntlmssp.c
236 libsmb/ntlmssp_wrap.c
237 ../libcli/auth/ntlmssp.c
238 ../libcli/auth/ntlmssp_sign.c
239 ../libcli/auth/ntlmssp_ndr.c
240 ../libcli/auth/ntlmssp_server.c'''
242 LIBSAMBA_SRC = '${LIBSMB_SRC0}'
244 LIBCLI_LDAP_MESSAGE_SRC = '''../libcli/ldap/ldap_message.c'''
245 LIBCLI_LDAP_NDR_SRC = '''../libcli/ldap/ldap_ndr.c lib/ldb_compat.c'''
247 CLDAP_SRC = '''libads/cldap.c
248 ../libcli/cldap/cldap.c
249 ../lib/util/idtree.c'''
251 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
253 SCHANNEL_SRC = '''../libcli/auth/credentials.c
254 ../libcli/auth/schannel_sign.c
255 ../libcli/auth/schannel_state_tdb.c'''
257 LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
258 libsmb/clikrb5.c libsmb/clispnego.c
259 ../libcli/auth/spnego_parse.c
260 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
261 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
262 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
263 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
264 libsmb/clioplock.c libsmb/clirap2.c
265 libsmb/smb_seal.c libsmb/async_smb.c
266 ${LIBNMB_SRC}
267 ${LIBNBT_SRC}
268 ${DRSUAPI_SRC}'''
270 LIBMSRPC_SRC = '''
271 ${SCHANNEL_SRC}
272 rpc_client/cli_pipe.c
273 librpc/crypto/gse_krb5.c
274 librpc/crypto/gse.c
275 librpc/crypto/cli_spnego.c
276 librpc/rpc/rpc_common.c
277 rpc_client/rpc_transport_np.c
278 rpc_client/rpc_transport_sock.c
279 rpc_client/rpc_transport_tstream.c
280 ../librpc/rpc/binding.c
281 ../librpc/rpc/dcerpc_util.c
282 librpc/rpc/dcerpc_helpers.c
283 ../librpc/rpc/binding_handle.c
284 ${LIBCLI_EPMAPPER_SRC}'''
287 # registry-related objects
289 UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
291 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
292 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
293 REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
295 REGFIO_SRC = '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
297 REG_API_REGF_SRC = '''registry/reg_api_regf.c'''
299 REGSRCS_SRC = '''registry/reg_objects.c'''
301 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
303 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
305 REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
306 registry/reg_backend_shares.c
307 registry/reg_backend_netlogon_params.c
308 registry/reg_backend_prod_options.c
309 registry/reg_backend_tcpip_params.c
310 registry/reg_backend_hkpt_params.c
311 registry/reg_backend_current_version.c
312 registry/reg_backend_perflib.c'''
314 REG_BASE_SRC = '''registry/reg_api.c
315 registry/reg_dispatcher.c
316 registry/reg_cachehook.c
317 ${REGSRCS_SRC}
318 registry/reg_util_internal.c
319 lib/util_nttoken.c
320 ${REG_BACKENDS_BASE_SRC}
321 ${REG_INIT_BASIC_SRC}'''
323 REG_SMBCONF_SRC = '''
324 ${REG_BACKENDS_SMBCONF_SRC}
325 ${REG_INIT_SMBCONF_SRC}
326 registry/reg_util_token.c
327 registry/reg_api_util.c'''
329 REG_FULL_SRC = '''
330 ${REG_BACKENDS_EXTRA_SRC}
331 ${REG_INIT_FULL_SRC}
332 registry/reg_eventlog.c
333 registry/reg_perfcount.c'''
335 SERVICES_SRC = '''services/svc_spoolss.c
336 services/svc_rcinit.c
337 services/services_db.c
338 services/svc_netlogon.c
339 services/svc_winreg.c
340 services/svc_wins.c'''
342 LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
344 NPA_TSTREAM_SRC = '''../libcli/named_pipe_auth/npa_tstream.c
345 ../librpc/gen_ndr/ndr_named_pipe_auth.c'''
347 RPC_NCACN_NP = '''rpc_server/rpc_ncacn_np.c
348 rpc_server/rpc_handles.c'''
350 RPC_SERVICE = '''rpc_server/rpc_server.c'''
352 RPC_CRYPTO = '''rpc_server/dcesrv_ntlmssp.c
353 rpc_server/dcesrv_gssapi.c
354 rpc_server/dcesrv_spnego.c'''
356 RPC_PIPE_SRC = '''rpc_server/srv_pipe_hnd.c rpc_server/srv_pipe.c
357 ${RPC_NCACN_NP} ${RPC_SERVICE} ${RPC_CRYPTO}'''
359 RPC_SERVER_SRC = '''${RPC_PIPE_SRC} ${NPA_TSTREAM_SRC}'''
361 RPC_CLIENT_SCHANNEL_SRC = '''rpc_client/cli_pipe_schannel.c'''
363 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
365 PRIVILEGES_SRC = '''lib/privileges.c'''
367 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
369 PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c
370 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
371 passdb/util_unixsids.c passdb/lookup_sid.c
372 passdb/login_cache.c
373 passdb/account_pol.c ${PRIVILEGES_SRC}
374 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
375 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
377 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
379 PROFILE_SRC = '''profile/profile.c'''
380 PROFILES_SRC = '''utils/profiles.c'''
382 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
383 smbd/oplock_onefs.c'''
385 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c
386 librpc/gen_ndr/ndr_notify.c'''
388 FNAME_UTIL_SRC = '''smbd/filename_util.c'''
391 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
393 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
395 DCUTIL_SRC = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
397 WINBINDD_SRC1 = '''winbindd/winbindd.c
398 winbindd/winbindd_group.c
399 winbindd/winbindd_util.c
400 winbindd/winbindd_cache.c
401 winbindd/winbindd_pam.c
402 winbindd/winbindd_misc.c
403 winbindd/winbindd_cm.c
404 winbindd/winbindd_wins.c
405 winbindd/winbindd_msrpc.c
406 winbindd/winbindd_rpc.c
407 winbindd/winbindd_reconnect.c
408 winbindd/winbindd_ads.c
409 winbindd/winbindd_samr.c
410 winbindd/winbindd_dual.c
411 winbindd/winbindd_dual_ndr.c
412 winbindd/winbindd_dual_srv.c
413 winbindd/winbindd_async.c
414 winbindd/winbindd_creds.c
415 winbindd/winbindd_cred_cache.c
416 winbindd/winbindd_ccache_access.c
417 winbindd/winbindd_domain.c
418 winbindd/winbindd_idmap.c
419 winbindd/winbindd_locator.c
420 winbindd/winbindd_ndr.c
421 winbindd/wb_ping.c
422 winbindd/wb_lookupsid.c
423 winbindd/wb_lookupname.c
424 winbindd/wb_sid2uid.c
425 winbindd/wb_sid2gid.c
426 winbindd/wb_uid2sid.c
427 winbindd/wb_gid2sid.c
428 winbindd/wb_queryuser.c
429 winbindd/wb_lookupuseraliases.c
430 winbindd/wb_lookupusergroups.c
431 winbindd/wb_getpwsid.c
432 winbindd/wb_gettoken.c
433 winbindd/wb_seqnum.c
434 winbindd/wb_seqnums.c
435 winbindd/wb_group_members.c
436 winbindd/wb_getgrsid.c
437 winbindd/wb_query_user_list.c
438 winbindd/wb_fill_pwent.c
439 winbindd/wb_next_pwent.c
440 winbindd/wb_next_grent.c
441 winbindd/wb_dsgetdcname.c
442 winbindd/winbindd_lookupsid.c
443 winbindd/winbindd_lookupname.c
444 winbindd/winbindd_sid_to_uid.c
445 winbindd/winbindd_sid_to_gid.c
446 winbindd/winbindd_uid_to_sid.c
447 winbindd/winbindd_gid_to_sid.c
448 winbindd/winbindd_allocate_uid.c
449 winbindd/winbindd_allocate_gid.c
450 winbindd/winbindd_getpwsid.c
451 winbindd/winbindd_getpwnam.c
452 winbindd/winbindd_getpwuid.c
453 winbindd/winbindd_getsidaliases.c
454 winbindd/winbindd_getuserdomgroups.c
455 winbindd/winbindd_getgroups.c
456 winbindd/winbindd_show_sequence.c
457 winbindd/winbindd_getgrgid.c
458 winbindd/winbindd_getgrnam.c
459 winbindd/winbindd_getusersids.c
460 winbindd/winbindd_lookuprids.c
461 winbindd/winbindd_setpwent.c
462 winbindd/winbindd_getpwent.c
463 winbindd/winbindd_endpwent.c
464 winbindd/winbindd_setgrent.c
465 winbindd/winbindd_getgrent.c
466 winbindd/winbindd_endgrent.c
467 winbindd/winbindd_dsgetdcname.c
468 winbindd/winbindd_getdcname.c
469 winbindd/winbindd_list_users.c
470 winbindd/winbindd_list_groups.c
471 winbindd/winbindd_check_machine_acct.c
472 winbindd/winbindd_change_machine_acct.c
473 winbindd/winbindd_ping_dc.c
474 winbindd/winbindd_pam_auth.c
475 winbindd/winbindd_pam_logoff.c
476 winbindd/winbindd_pam_chauthtok.c
477 winbindd/winbindd_pam_auth_crap.c
478 winbindd/winbindd_pam_chng_pswd_auth_crap.c
479 auth/auth_util.c
480 auth/token_util.c
481 auth/user_util.c
482 auth/check_samsec.c
483 auth/server_info.c
484 auth/server_info_sam.c
485 auth/user_info.c
486 auth/user_util.c
487 ../nsswitch/libwbclient/wb_reqtrans.c'''
489 WINBINDD_SRC = '''${WINBINDD_SRC1}
490 ${RPC_NCACN_NP} ${NPA_TSTREAM_SRC}
491 ${TDB_VALIDATE_SRC}
492 ${LIBCLI_DSSETUP_SRC}
493 ${LIBCLI_LSA_SRC}
494 ${LIBCLI_SAMR_SRC}
495 ${LIBCLI_NETLOGON_SRC}
496 rpc_client/init_netlogon.c
497 rpc_server/srv_lsa_nt.c ../librpc/gen_ndr/srv_lsa.c
498 rpc_server/srv_samr_nt.c ../librpc/gen_ndr/srv_samr.c
499 rpc_server/srv_samr_util.c
500 rpc_server/srv_samr_chgpasswd.c
501 rpc_server/srv_pipe_register.c'''
503 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
505 SMBD_SRC_MAIN = '''smbd/server.c smbd/server_exit.c'''
507 BUILDOPT_SRC = '''smbd/build_options.c'''
509 SMBD_SRC_SRV = '''smbd/server_reload.c smbd/files.c smbd/connection.c
510 smbd/utmp.c smbd/session.c
511 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
512 smbd/share_access.c smbd/fileio.c
513 smbd/ipc.c smbd/lanman.c smbd/negprot.c
514 smbd/message.c smbd/nttrans.c smbd/pipes.c
515 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
516 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
517 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
518 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
519 smbd/posix_acls.c lib/sysacls.c
520 smbd/process.c smbd/service.c smbd/error.c
521 printing/printspoolss.c
522 lib/sysquotas.c lib/sysquotas_linux.c
523 lib/sysquotas_xfs.c lib/sysquotas_4A.c
524 lib/sysquotas_nfs.c
525 smbd/fake_file.c
526 smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
527 smbd/aio.c smbd/statvfs.c
528 smbd/dmapi.c smbd/signing.c
529 smbd/file_access.c
530 smbd/dnsregister.c smbd/globals.c
531 smbd/smb2_server.c
532 smbd/smb2_signing.c
533 smbd/smb2_glue.c
534 smbd/smb2_negprot.c
535 smbd/smb2_sesssetup.c
536 smbd/smb2_tcon.c
537 smbd/smb2_create.c
538 smbd/smb2_close.c
539 smbd/smb2_flush.c
540 smbd/smb2_read.c
541 smbd/smb2_write.c
542 smbd/smb2_lock.c
543 smbd/smb2_ioctl.c
544 smbd/smb2_keepalive.c
545 smbd/smb2_find.c
546 smbd/smb2_notify.c
547 smbd/smb2_getinfo.c
548 smbd/smb2_setinfo.c
549 smbd/smb2_break.c
550 ../libcli/smb/smb2_create_blob.c
551 ${MANGLE_SRC}'''
553 SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
554 ${RPC_SERVER_SRC}
555 ${OPLOCK_SRC} ${NOTIFY_SRC} ${FNAME_UTIL_SRC}
556 ${BUILDOPT_SRC}
557 ${LIBCLI_SPOOLSS_SRC}
558 ${LIBCLI_SRVSVC_SRC}
559 ${LIBCLI_LSA_SRC}
560 ${LIBCLI_SAMR_SRC}
561 ${LIBCLI_NETLOGON_SRC}
562 rpc_client/init_netlogon.c
563 rpc_client/init_samr.c'''
565 PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
566 printing/print_cups.c printing/print_generic.c
567 printing/lpq_parse.c printing/load.c printing/print_standard.c
568 printing/print_iprint.c printing/printer_list.c'''
570 PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
571 PRINTBACKEND_SRC = '''printing/printing.c
572 printing/nt_printing.c
573 printing/nt_printing_tdb.c
574 printing/nt_printing_migrate.c
575 printing/nt_printing_ads.c'''
577 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
579 NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
580 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
581 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
582 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
583 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
584 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
585 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
586 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
587 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
588 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
589 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
590 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
592 NMBD_SRC = '${NMBD_SRC1}'
594 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
595 web/swat.c web/neg_lang.c'''
597 SWAT_SRC = '''${SWAT_SRC1}
598 ${PASSCHANGE_SRC} ${FNAME_UTIL_SRC}
599 ${LIBCLI_SAMR_SRC}
600 rpc_client/init_lsa.c'''
602 STATUS_SRC = '''utils/status.c utils/status_profile.c
603 ${FNAME_UTIL_SRC}'''
605 SMBCONTROL_SRC = '''utils/smbcontrol.c'''
607 SMBTREE_SRC = '''utils/smbtree.c
608 ${LIBCLI_SRVSVC_SRC}'''
610 TESTPARM_SRC = 'utils/testparm.c'
612 SMBTA_UTIL_SRC = '''utils/smbta-util.c ${FNAME_UTIL_SRC}'''
614 TEST_LP_LOAD_SRC = '''param/test_lp_load.c'''
616 PASSWD_UTIL_SRC = 'utils/passwd_util.c'
618 SMBPASSWD_SRC = '''utils/smbpasswd.c ${PASSCHANGE_SRC}
619 ${LIBCLI_SAMR_SRC}
620 rpc_client/init_lsa.c'''
622 PDBEDIT_SRC = '''utils/pdbedit.c'''
624 SMBGET_SRC = '''utils/smbget.c'''
626 RPCCLIENT_SRC1 = '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
627 rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
628 rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
629 rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
630 rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
631 rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
632 rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
633 rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
634 rpcclient/cmd_winreg.c'''
636 RPCCLIENT_SRC = '''${RPCCLIENT_SRC1}
637 ${LIBCLI_SPOOLSS_SRC}
638 ${LIBCLI_EVENTLOG_SRC}
639 ${LIBCLI_NTSVCS_SRC}
640 ${LIBCLI_DRSUAPI_SRC}
641 ${LIBCLI_DFS_SRC}
642 ${LIBCLI_DSSETUP_SRC}
643 ${LIBCLI_WKSSVC_SRC}
644 ${LIBCLI_SRVSVC_SRC}
645 ${LIBCLI_LSA_SRC}
646 ${LIBCLI_SAMR_SRC}
647 ${LIBCLI_NETLOGON_SRC}
648 rpc_client/init_netlogon.c
649 rpc_client/init_samr.c'''
651 PAM_WINBIND_SRC = '../nsswitch/pam_winbind.c ${WBCOMMON_SRC} ${LIBREPLACE_SRC}'
653 LIBSMBCLIENT_THREAD_SRC = '''libsmb/libsmb_thread_impl.c
654 libsmb/libsmb_thread_posix.c'''
656 LIBSMBCLIENT_SRC0 = '''libsmb/libsmb_cache.c
657 libsmb/libsmb_compat.c
658 libsmb/libsmb_context.c
659 libsmb/libsmb_dir.c
660 libsmb/libsmb_file.c
661 libsmb/libsmb_misc.c
662 libsmb/libsmb_path.c
663 libsmb/libsmb_printjob.c
664 libsmb/libsmb_server.c
665 libsmb/libsmb_stat.c
666 libsmb/libsmb_xattr.c
667 libsmb/libsmb_setget.c'''
669 LIBSMBCLIENT_SRC1 = '''${LIBSMBCLIENT_SRC0}
670 ${LIBCLI_SRVSVC_SRC}
671 ${LIBCLI_LSA_SRC}'''
673 LIBSMBCLIENT_SRC = '${LIBSMBCLIENT_SRC1}'
675 LIBSMBSHAREMODES_SRC0 = 'libsmb/smb_share_modes.c'
677 LIBSMBSHAREMODES_SRC = '${LIBSMBSHAREMODES_SRC0}'
679 LIBNETAPI_SRC0 = '''lib/netapi/netapi.c
680 lib/netapi/cm.c
681 lib/netapi/libnetapi.c
682 lib/netapi/joindomain.c
683 lib/netapi/serverinfo.c
684 lib/netapi/getdc.c
685 lib/netapi/user.c
686 lib/netapi/group.c
687 lib/netapi/localgroup.c
688 lib/netapi/samr.c
689 lib/netapi/sid.c
690 lib/netapi/share.c
691 lib/netapi/file.c
692 lib/netapi/shutdown.c
693 lib/netapi/netlogon.c'''
695 LIBNETAPI_SRC = '''${LIBNETAPI_SRC0}
696 auth/token_util.c
697 ${LIBCLI_INITSHUTDOWN_SRC}
698 ${LIBCLI_WKSSVC_SRC}
699 ${LIBCLI_SRVSVC_SRC}
700 ${LIBCLI_LSA_SRC}
701 ${LIBCLI_SAMR_SRC}
702 ${LIBCLI_NETLOGON_SRC}
703 rpc_client/init_netlogon.c
704 rpc_client/init_samr.c'''
706 # FIXME: bigballofmud
708 CLIENT_SRC1 = '''client/client.c client/clitar.c
709 client/dnsbrowse.c'''
711 CLIENT_SRC = '''${CLIENT_SRC1}
712 ${LIBCLI_SRVSVC_SRC}
713 rpc_client/init_lsa.c'''
715 LIBSMBCONF_SRC = '''../lib/smbconf/smbconf.c ../lib/smbconf/smbconf_util.c
716 ../lib/smbconf/smbconf_txt.c lib/smbconf/smbconf_reg.c
717 lib/smbconf/smbconf_init.c'''
719 SMBCONFTORT_SRC0 = 'lib/smbconf/testsuite.c'
721 SMBCONFTORT_SRC = '''${SMBCONFTORT_SRC0}'''
723 LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c'
726 LIBNET_DSSYNC_SRC = '''libnet/libnet_dssync.c
727 libnet/libnet_dssync_keytab.c
728 ../libcli/drsuapi/repl_decrypt.c'''
730 LIBNET_SAMSYNC_SRC = '''libnet/libnet_samsync.c
731 libnet/libnet_samsync_ldif.c
732 libnet/libnet_samsync_passdb.c
733 libnet/libnet_samsync_display.c
734 libnet/libnet_samsync_keytab.c
735 ../libcli/samsync/decrypt.c'''
737 NET_SRC1 = '''utils/net.c utils/net_ads.c utils/net_help.c
738 utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
739 utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
740 utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
741 utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
742 utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
743 utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
744 utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
745 utils/net_dns.c utils/net_ads_gpo.c
746 utils/net_conf.c utils/net_join.c utils/net_user.c
747 utils/net_group.c utils/net_file.c utils/net_registry.c
748 auth/token_util.c utils/net_dom.c utils/net_share.c
749 utils/net_g_lock.c
750 utils/net_serverid.c
751 utils/net_eventlog.c
752 utils/net_printing.c
753 ${LIBCLI_SPOOLSS_SRC}
754 ${LIBCLI_DRSUAPI_SRC}
755 ${LIBCLI_INITSHUTDOWN_SRC}
756 ${LIBCLI_DSSETUP_SRC}
757 ${LIBCLI_SVCCTL_SRC}
758 ${LIBCLI_WKSSVC_SRC}
759 ${LIBCLI_SRVSVC_SRC}
760 ${LIBCLI_LSA_SRC}
761 ${LIBCLI_SAMR_SRC}
762 ${LIBCLI_NETLOGON_SRC}
763 rpc_client/init_netlogon.c
764 rpc_client/init_samr.c
765 registry/reg_parse.c registry/reg_format.c
766 registry/reg_parse_internal.c registry/reg_import.c
767 lib/cbuf.c lib/srprs.c'''
769 NET_SRC2 = 'utils/net_registry_util.c utils/net_help_common.c'
771 NET_SRC = '''${NET_SRC1}
772 ${NET_SRC2}'''
774 CUPS_SRC = '''client/smbspool.c'''
776 NMBLOOKUP_SRC = '''utils/nmblookup.c ${LIBNMB_SRC}'''
778 SMBTORTURE_SRC1 = '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
779 torture/denytest.c torture/mangle_test.c
780 torture/nbench.c
781 torture/test_async_echo.c
782 torture/test_posix_append.c'''
784 SMBTORTURE_SRC = '''${SMBTORTURE_SRC1} ${TLDAP_SRC}
785 ../nsswitch/libwbclient/wbc_async.c
786 ../nsswitch/libwbclient/wb_reqtrans.c'''
788 MASKTEST_SRC = '''torture/masktest.c'''
790 MSGTEST_SRC = '''torture/msgtest.c'''
792 LOCKTEST_SRC = '''torture/locktest.c ${FNAME_UTIL_SRC}'''
794 NSSTEST_SRC = '''../nsswitch/nsstest.c ${LIBSAMBAUTIL_SRC}'''
796 PDBTEST_SRC = '''torture/pdbtest.c'''
798 VFSTEST_SRC = '''torture/cmd_vfs.c torture/vfstest.c'''
800 SMBICONV_SRC = '''torture/smbiconv.c'''
802 LOG2PCAP_SRC = '''utils/log2pcaphex.c'''
804 LOCKTEST2_SRC = '''torture/locktest2.c ${FNAME_UTIL_SRC}'''
806 SMBCACLS_SRC = '''utils/smbcacls.c
807 ${LIBCLI_LSA_SRC}'''
809 SMBCQUOTAS_SRC = '''utils/smbcquotas.c
810 ${LIBCLI_LSA_SRC}'''
812 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
814 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}
815 registry/reg_eventlog.c'''
817 SHARESEC_SRC0 = 'utils/sharesec.c'
818 SHARESEC_SRC = '''${SHARESEC_SRC0}'''
820 DEBUG2HTML_SRC = '''utils/debug2html.c utils/debugparse.c'''
822 SMBFILTER_SRC = '''utils/smbfilter.c'''
824 WINBIND_WINS_NSS_SRC = '''../nsswitch/wins.c ${PARAM_SRC}
825 ${LIB_NONSMBD_SRC} ${LIBSMB_ERR_SRC} ${LIBNMB_SRC}'''
827 WBINFO_SRC = '''../nsswitch/wbinfo.c'''
829 WINBIND_NSS_SRC = '''${WBCOMMON_SRC} ${LIBREPLACE_SRC}'''
831 WINBIND_KRB5_LOCATOR_SRC1 = '../nsswitch/winbind_krb5_locator.c'
832 WINBIND_KRB5_LOCATOR_SRC = '''${WINBIND_KRB5_LOCATOR_SRC1} ${LIBREPLACE_SRC}'''
834 POPT_SRC = '''../lib/popt/findme.c ../lib/popt/popt.c ../lib/popt/poptconfig.c \
835 ../lib/popt/popthelp.c ../lib/popt/poptparse.c'''
837 NTLM_AUTH_SRC1 = '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
839 NTLM_AUTH_SRC = '''${NTLM_AUTH_SRC1}
840 ../libcli/auth/spnego_parse.c libsmb/clikrb5.c libads/kerberos.c
841 libsmb/samlogon_cache.c
842 ${LIBNMB_SRC}'''
845 VLP_SRC = '''printing/tests/vlp.c
846 ../lib/util/util_tdb.c
847 ${LIBSAMBAUTIL_SRC}
848 param/util.c'''
850 RPC_OPEN_TCP_SRC = 'torture/rpc_open_tcp.c'
852 DBWRAP_TOOL_SRC = 'utils/dbwrap_tool.c'
854 DBWRAP_TORTURE_SRC = 'utils/dbwrap_torture.c'
856 SPLIT_TOKENS_SRC = 'utils/split_tokens.c'
858 LIBS='ICONV'
860 bld.SAMBA_GENERATOR('build_options',
861 source='include/config.h script/mkbuildoptions-waf.awk',
862 target='smbd/build_options.c',
863 rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
865 t = bld.SAMBA_GENERATOR('build_env.h',
866 source='script/build_env.sh',
867 target='include/build_env.h',
868 rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
869 # todo: work out what is really wanted here
870 t.env.SRCDIR = bld.path.abspath()
871 t.env.BUILDDIR = bld.path.abspath()
874 bld.SETUP_BUILD_GROUPS()
876 bld.SAMBA_MKVERSION('include/version.h')
878 bld.RECURSE('../lib/replace')
879 bld.RECURSE('../libcli/smbreadline')
880 print "SBINDIR=%s" % bld.env.SBINDIR
881 bld.RECURSE('build')
883 bld.RECURSE('../librpc')
884 bld.RECURSE('librpc/idl')
885 bld.RECURSE('librpc')
886 bld.RECURSE('../libcli/security')
888 ######################## SUBSYSTEMS #################################
890 bld.SAMBA_SUBSYSTEM('WBCOMMON',
891 source=WBCOMMON_SRC)
893 bld.SAMBA_LIBRARY('libwbclient',
894 source='''../nsswitch/libwbclient/wbc_guid.c
895 ../nsswitch/libwbclient/wbc_idmap.c
896 ../nsswitch/libwbclient/wbclient.c
897 ../nsswitch/libwbclient/wbc_pam.c
898 ../nsswitch/libwbclient/wbc_pwd.c
899 ../nsswitch/libwbclient/wbc_sid.c
900 ../nsswitch/libwbclient/wbc_util.c''',
901 public_headers='../nsswitch/libwbclient/wbclient.h',
902 private_library=True,
903 public_deps='talloc WBCOMMON')
905 bld.SAMBA_LIBRARY('libnetapi',
906 source=LIBNETAPI_SRC,
907 public_deps='''talloc tdb cap libwbclient LIB_NONSMBD LIBSMB KRBCLIENT
908 PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
909 LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL NDR_LIBNETAPI
910 RPC_CLIENT_SCHANNEL LIBSMBCONF REG_SMBCONF''',
911 public_headers='lib/netapi/netapi.h',
912 private_library=True,
913 vars=locals())
915 bld.SAMBA_LIBRARY('libsmbclient',
916 source=LIBSMBCLIENT_SRC,
917 public_deps='''talloc tdb libwbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
918 LIBMSRPC_GEN LIBMSRPC''',
919 public_headers='include/libsmbclient.h',
920 private_library=True,
921 vars=locals())
923 bld.SAMBA_LIBRARY('smbsharemodes',
924 source=LIBSMBSHAREMODES_SRC,
925 public_deps='''talloc tdb''',
926 public_headers='include/smb_share_modes.h',
927 private_library=True,
928 vars=locals())
930 bld.SAMBA_LIBRARY('libaddns',
931 source=LIBADDNS_SRC,
932 public_deps='talloc krb5 k5crypto com_err gssapi gssapi_krb5',
933 private_library=True,
934 vars=locals())
936 bld.SAMBA_SUBSYSTEM('LIBMSRPC',
937 source='${LIBMSRPC_SRC}',
938 deps='ndr NDR_SECURITY NDR_DCERPC NDR_SCHANNEL',
939 vars=locals())
941 bld.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
942 source='',
943 deps='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
944 vars=locals())
946 bld.SAMBA_SUBSYSTEM('LIBGPO',
947 source='${LIBGPO_SRC}',
948 deps='gpext',
949 vars=locals())
951 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
952 source='../lib/util/asn1.c',
953 deps='talloc',
954 local_include=False)
956 bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_MESSAGE',
957 source=LIBCLI_LDAP_MESSAGE_SRC)
959 bld.SAMBA_SUBSYSTEM('LIBCLI_LDAP_NDR',
960 source=LIBCLI_LDAP_NDR_SRC)
962 bld.SAMBA_SUBSYSTEM('AVAHI',
963 source=AVAHI_SRC,
964 deps='avahi-common avahi-client',
965 enabled=bld.env.with_avahi)
967 bld.SAMBA_SUBSYSTEM('GROUPDB',
968 source=GROUPDB_SRC)
970 bld.SAMBA_SUBSYSTEM('TLDAP',
971 source=TLDAP_SRC,
972 deps='ASN1_UTIL LIBTSOCKET')
974 bld.SAMBA_SUBSYSTEM('PASSDB',
975 source=PASSDB_SRC,
976 deps='''GROUPDB TLDAP SECRETS SMBLDAP pdb''',
977 vars=locals())
979 bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
980 source=PARAM_WITHOUT_REG_SRC)
982 bld.SAMBA_SUBSYSTEM('PARAM',
983 source='',
984 deps='PARAM_WITHOUT_REG DYNCONFIG LIBSMBCONF',
985 vars=locals())
987 bld.SAMBA_SUBSYSTEM('REGFIO',
988 source=REGFIO_SRC,
989 vars=locals())
991 bld.SAMBA_SUBSYSTEM('REG_API_REGF',
992 source=REG_API_REGF_SRC,
993 vars=locals())
995 bld.SAMBA_SUBSYSTEM('REG_BASE',
996 source=REG_BASE_SRC,
997 vars=locals())
999 bld.SAMBA_SUBSYSTEM('REG_SMBCONF',
1000 source=REG_SMBCONF_SRC,
1001 deps='REG_BASE',
1002 vars=locals())
1004 bld.SAMBA_SUBSYSTEM('REG_FULL',
1005 source=REG_FULL_SRC,
1006 deps='REG_SMBCONF',
1007 vars=locals())
1009 bld.SAMBA_SUBSYSTEM('POPT_SAMBA',
1010 source=POPT_LIB_SRC,
1011 vars=locals())
1013 bld.SAMBA_SUBSYSTEM('KRBCLIENT',
1014 source=KRBCLIENT_SRC,
1015 deps='krb5 k5crypto com_err gssapi gssapi_krb5',
1016 vars=locals())
1018 bld.SAMBA_SUBSYSTEM('LIBS',
1019 source=LIB_SRC,
1020 deps='iconv LIBCRYPTO ndr security NDR_SECURITY charset NDR_MESSAGING',
1021 vars=locals())
1023 bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
1024 source=LIB_NONSMBD_SRC,
1025 deps='LIBS',
1026 vars=locals())
1028 bld.SAMBA_SUBSYSTEM('LIBSMB_ERR',
1029 source=LIBSMB_ERR_SRC,
1030 deps='SECRETS ldap lber',
1031 vars=locals())
1033 bld.SAMBA_SUBSYSTEM('LIBSAMBA',
1034 source=LIBSAMBA_SRC,
1035 deps='LIBSMB_ERR NDR_NTLMSSP',
1036 vars=locals())
1038 bld.SAMBA_SUBSYSTEM('LIBSMB',
1039 source=LIBSMB_SRC,
1040 deps='LIBSAMBA z LZXPRESS CLDAP',
1041 vars=locals())
1043 bld.SAMBA_SUBSYSTEM('CLDAP',
1044 source=CLDAP_SRC,
1045 deps='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
1046 vars=locals())
1048 bld.SAMBA_SUBSYSTEM('SECRETS',
1049 source=SECRETS_SRC,
1050 deps='NDR_SECRETS',
1051 vars=locals())
1053 bld.SAMBA_SUBSYSTEM('SMBLDAP',
1054 source=SMBLDAP_SRC,
1055 deps='ldap lber',
1056 vars=locals())
1058 bld.SAMBA_SUBSYSTEM('LIBADS',
1059 source=LIBADS_SRC,
1060 deps='LIBCLI_LDAP_NDR',
1061 vars=locals())
1063 bld.SAMBA_SUBSYSTEM('LIBADS_SERVER',
1064 source=LIBADS_SERVER_SRC,
1065 deps='NDR_KRB5PAC',
1066 vars=locals())
1068 bld.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
1069 source=LIBADS_PRINTER_SRC,
1070 vars=locals())
1072 bld.SAMBA_SUBSYSTEM('LIBAFS',
1073 source=AFS_SRC,
1074 vars=locals())
1076 bld.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
1077 source=AFS_SETTOKEN_SRC,
1078 vars=locals())
1080 bld.SAMBA_SUBSYSTEM('LIBSMBCONF',
1081 source=LIBSMBCONF_SRC,
1082 deps='REG_BASE REG_SMBCONF',
1083 vars=locals())
1085 bld.SAMBA_SUBSYSTEM('SMBD_BASE',
1086 source=SMBD_SRC_BASE,
1087 deps='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
1088 DYNCONFIG libwbclient crypt nsl cups cap resolv z PASSDB
1089 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
1090 LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
1091 vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
1092 PRINTING PRINTBACKEND NDR_XATTR REGFIO
1093 LIBSMBCONF REG_FULL
1094 ''',
1095 vars=locals())
1097 bld.SAMBA_SUBSYSTEM('LOCKING',
1098 source='${LOCKING_SRC}',
1099 deps='''tdb talloc''',
1100 vars=locals())
1102 bld.SAMBA_SUBSYSTEM('PROFILE',
1103 source='${PROFILE_SRC}',
1104 vars=locals())
1106 bld.SAMBA_SUBSYSTEM('PRINTBASE',
1107 source=PRINTBASE_SRC,
1108 vars=locals())
1110 bld.SAMBA_SUBSYSTEM('PRINTBACKEND',
1111 source=PRINTBACKEND_SRC,
1112 deps='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
1113 vars=locals())
1115 bld.SAMBA_SUBSYSTEM('PRINTING',
1116 source=PRINTING_SRC,
1117 vars=locals())
1119 bld.SAMBA_SUBSYSTEM('PASSWD_UTIL',
1120 source=PASSWD_UTIL_SRC,
1121 vars=locals())
1123 bld.SAMBA_SUBSYSTEM('LIBNET',
1124 source=LIBNET_SRC,
1125 deps='NDR_LIBNET_JOIN',
1126 vars=locals())
1128 bld.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
1129 source=LIBNET_DSSYNC_SRC,
1130 deps='LIBNET',
1131 vars=locals())
1133 bld.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
1134 source=LIBNET_SAMSYNC_SRC,
1135 deps='LIBNET',
1136 vars=locals())
1138 bld.SAMBA_SUBSYSTEM('LIBEVENTLOG',
1139 source=LIB_EVENTLOG_SRC,
1140 deps='NDR_EVENTLOG',
1141 vars=locals())
1143 bld.SAMBA_SUBSYSTEM('SERVICES',
1144 source=SERVICES_SRC,
1145 vars=locals())
1147 bld.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1148 source=PLAINTEXT_AUTH_SRC,
1149 vars=locals())
1151 bld.SAMBA_SUBSYSTEM('SLCACHE',
1152 source=SLCACHE_SRC,
1153 vars=locals())
1155 bld.SAMBA_SUBSYSTEM('DCUTIL',
1156 source=DCUTIL_SRC,
1157 vars=locals())
1159 bld.SAMBA_SUBSYSTEM('ndr',
1160 source=LIBNDR_SRC,
1161 vars=locals())
1163 #FIXME
1164 bld.SAMBA_SUBSYSTEM('ndr-standard',
1165 source='',
1166 deps='''
1167 NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
1168 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
1169 NDR_ECHO security NDR_DNS
1170 ''',
1171 vars=locals())
1173 #FIXME
1174 bld.SAMBA_SUBSYSTEM('dcerpc', '')
1176 bld.SAMBA_SUBSYSTEM('LZXPRESS',
1177 deps='replace',
1178 source='../lib/compression/lzxpress.c')
1180 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
1181 source='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1182 deps='ndr',
1183 vars=locals())
1185 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
1186 source='../librpc/gen_ndr/ndr_dcerpc.c',
1187 vars=locals())
1189 bld.SAMBA_SUBSYSTEM('errors',
1190 source='../libcli/util/doserr.c libsmb/nterr.c')
1192 bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1193 source='../libcli/nbt/nbtname.c',
1194 deps='talloc',
1195 autoproto='nbtname.h')
1197 bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
1198 source='../libcli/ndr_netlogon.c',
1199 public_deps='ndr NDR_SECURITY')
1201 bld.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1202 source='../librpc/gen_ndr/cli_winreg.c',
1203 public_deps='RPC_NDR_WINREG')
1205 bld.SAMBA_SUBSYSTEM('RPCCLI_ECHO',
1206 source='../librpc/gen_ndr/cli_echo.c',
1207 public_deps='RPC_NDR_ECHO')
1209 bld.SAMBA_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
1210 source=RPC_CLIENT_SCHANNEL_SRC,
1211 vars=locals())
1214 ########################## BINARIES #################################
1216 bld.SAMBA_BINARY('smbd/smbd',
1217 source='${SMBD_SRC_MAIN}',
1218 deps='''SMBD_BASE''',
1219 install_path='${SBINDIR}',
1220 vars=locals())
1222 bld.SAMBA_BINARY('nmbd/nmbd',
1223 source=NMBD_SRC,
1224 deps='''talloc tdb tevent z cap resolv libwbclient dl
1225 PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1226 POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1227 install_path='${SBINDIR}',
1228 vars=locals())
1230 bld.SAMBA_BINARY('winbindd/winbindd',
1231 source=WINBINDD_SRC,
1232 deps='''talloc tdb tevent cap dl z
1233 libwbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1234 POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1235 SRV_NDR_WBINT RPCCLI_NDR_WBINT LIBAFS
1236 LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1237 ''',
1238 enabled=bld.env.build_winbind,
1239 install_path='${SBINDIR}',
1240 vars=locals())
1242 bld.SAMBA_BINARY('web/swat',
1243 source=SWAT_SRC,
1244 deps='''talloc tevent cap LIBS LIBSMB libwbclient PARAM
1245 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1246 LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING''',
1247 enabled=bld.env.build_swat,
1248 install_path='${SBINDIR}',
1249 vars=locals())
1251 bld.SAMBA_BINARY('rpcclient/rpcclient',
1252 source=RPCCLIENT_SRC,
1253 deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1254 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1255 LIBADS SMBREADLINE DCUTIL RPCCLI_WINREG RPCCLI_ECHO
1256 RPC_CLIENT_SCHANNEL''',
1257 vars=locals())
1259 bld.SAMBA_BINARY('smbclient',
1260 source=CLIENT_SRC,
1261 deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1262 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN
1263 LIBMSRPC SMBREADLINE libsmbclient''',
1264 vars=locals())
1266 bld.SAMBA_BINARY('net',
1267 source=NET_SRC,
1268 deps='''talloc tdb libnetapi libaddns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1269 PARAM_WITHOUT_REG libwbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1270 LOCALE_DIR LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
1271 LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
1272 REGFIO NDR_NTPRINTING RPCCLI_WINREG
1273 RPC_CLIENT_SCHANNEL''',
1274 vars=locals())
1276 bld.SAMBA_BINARY('profiles',
1277 source=PROFILES_SRC,
1278 deps='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD REGFIO''',
1279 vars=locals())
1281 bld.SAMBA_BINARY('smbspool',
1282 source=CUPS_SRC,
1283 deps='''talloc tdb tevent resolv cap libwbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1284 KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1285 vars=locals())
1287 bld.SAMBA_BINARY('testparm',
1288 source=TESTPARM_SRC,
1289 deps='''talloc tevent ldap cap
1290 libwbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1291 LIBSMB_ERR POPT_SAMBA''',
1292 vars=locals())
1294 bld.SAMBA_BINARY('smbta-util',
1295 source=SMBTA_UTIL_SRC,
1296 deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1297 LIBSMB_ERR''',
1298 vars=locals())
1300 bld.SAMBA_BINARY('smbstatus',
1301 source=STATUS_SRC,
1302 deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1303 LIBSMB_ERR LOCKING PROFILE''',
1304 vars=locals())
1306 bld.SAMBA_BINARY('smbcontrol',
1307 source=SMBCONTROL_SRC,
1308 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA PRINTBASE''',
1309 vars=locals())
1311 bld.SAMBA_BINARY('smbtree',
1312 source=SMBTREE_SRC,
1313 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1314 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE''',
1315 vars=locals())
1317 bld.SAMBA_BINARY('smbpasswd',
1318 source=SMBPASSWD_SRC,
1319 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1320 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL''',
1321 vars=locals())
1323 bld.SAMBA_BINARY('pdbedit',
1324 source=PDBEDIT_SRC,
1325 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD
1326 LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1327 PASSWD_UTIL LIBCLI_LDAP_NDR''',
1328 vars=locals())
1330 bld.SAMBA_BINARY('smbget',
1331 source=SMBGET_SRC,
1332 deps='''talloc tdb libsmbclient POPT_SAMBA''',
1333 vars=locals())
1335 bld.SAMBA_BINARY('nmblookup',
1336 source=NMBLOOKUP_SRC,
1337 deps='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1338 vars=locals())
1340 bld.SAMBA_BINARY('smbtorture',
1341 source=SMBTORTURE_SRC,
1342 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1343 LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_LSA LIBMSRPC LIBMSRPC_GEN RPCCLI_ECHO''',
1344 vars=locals())
1346 bld.SAMBA_BINARY('smbconftort',
1347 source=SMBCONFTORT_SRC,
1348 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1349 vars=locals())
1351 bld.SAMBA_BINARY('masktest',
1352 source=MASKTEST_SRC,
1353 deps='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1354 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1355 vars=locals())
1357 bld.SAMBA_BINARY('msgtest',
1358 source=MSGTEST_SRC,
1359 deps='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1360 vars=locals())
1362 bld.SAMBA_BINARY('smbcacls',
1363 source=SMBCACLS_SRC,
1364 deps='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT
1365 LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1366 LIBMSRPC''',
1367 vars=locals())
1369 bld.SAMBA_BINARY('smbcquotas',
1370 source=SMBCQUOTAS_SRC,
1371 deps='''talloc tdb cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1372 POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC''',
1373 vars=locals())
1375 bld.SAMBA_BINARY('eventlogadm',
1376 source=EVTLOGADM_SRC,
1377 deps='''talloc tevent cap POPT_SAMBA LIBS PARAM
1378 LIB_NONSMBD LIBSMB_ERR PASSDB libwbclient LIBEVENTLOG''',
1379 vars=locals())
1381 bld.SAMBA_BINARY('sharesec',
1382 source=SHARESEC_SRC,
1383 deps='''talloc tdb tevent cap resolv libwbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1384 vars=locals())
1386 bld.SAMBA_BINARY('locktest',
1387 source=LOCKTEST_SRC,
1388 deps='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1389 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1390 vars=locals())
1392 bld.SAMBA_BINARY('nsstest',
1393 source=NSSTEST_SRC,
1394 deps='',
1395 vars=locals())
1397 bld.SAMBA_BINARY('pdbtest',
1398 source=PDBTEST_SRC,
1399 deps='''talloc tdb cap resolv libwbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1400 SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1401 vars=locals())
1403 bld.SAMBA_BINARY('vfstest',
1404 source=VFSTEST_SRC,
1405 deps='''SMBD_BASE SMBREADLINE''',
1406 vars=locals())
1408 bld.SAMBA_BINARY('smbiconv',
1409 source=SMBICONV_SRC,
1410 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1411 vars=locals())
1413 bld.SAMBA_BINARY('log2pcap',
1414 source=LOG2PCAP_SRC,
1415 deps='''talloc popt''',
1416 vars=locals())
1418 bld.SAMBA_BINARY('locktest2',
1419 source=LOCKTEST2_SRC,
1420 deps='''talloc tdb tevent cap resolv libwbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1421 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING''',
1422 vars=locals())
1424 bld.SAMBA_BINARY('debug2html',
1425 source=DEBUG2HTML_SRC,
1426 deps='''talloc popt''',
1427 vars=locals())
1429 bld.SAMBA_BINARY('smbfilter',
1430 source=SMBFILTER_SRC,
1431 deps='''talloc tevent cap resolv libwbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1432 NDR_SAMR NDR_LSA''',
1433 vars=locals())
1435 bld.SAMBA_BINARY('versiontest',
1436 source='lib/version_test.c ${VERSION_SRC}',
1437 vars=locals())
1439 bld.SAMBA_BINARY('wbinfo',
1440 source=WBINFO_SRC,
1441 deps='''talloc libwbclient tevent cap
1442 ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1443 LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1444 vars=locals())
1446 bld.SAMBA_BINARY('ntlm_auth',
1447 source=NTLM_AUTH_SRC,
1448 deps='''tdb talloc cap resolv krb5 k5crypto com_err libwbclient PARAM LIB_NONSMBD
1449 LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1450 PASSDB GROUPDB SMBLDAP WBCOMMON LIBINIPARSER LIBADS_SERVER
1451 NDR_SAMR NDR_LSA NDR_NETLOGON LIBCLI_LDAP_NDR''',
1452 vars=locals())
1454 bld.SAMBA_BINARY('timelimit',
1455 source='script/tests/timelimit.c',
1456 vars=locals())
1458 bld.SAMBA_BINARY('rpc_open_tcp',
1459 source=RPC_OPEN_TCP_SRC,
1460 deps='''talloc tdb tevent resolv cap libwbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1461 LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1462 vars=locals())
1464 bld.SAMBA_BINARY('test_lp_load',
1465 source=TEST_LP_LOAD_SRC,
1466 deps='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1467 vars=locals())
1469 bld.SAMBA_BINARY('dbwrap_tool',
1470 source=DBWRAP_TOOL_SRC,
1471 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1472 vars=locals())
1474 bld.SAMBA_BINARY('dbwrap_torture',
1475 source=DBWRAP_TORTURE_SRC,
1476 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1477 POPT_SAMBA''',
1478 vars=locals())
1480 bld.SAMBA_BINARY('split_tokens',
1481 source=SPLIT_TOKENS_SRC,
1482 deps='''talloc tdb tevent cap libwbclient PARAM LIB_NONSMBD POPT_SAMBA
1483 LIBSAMBA''',
1484 vars=locals())
1486 bld.SAMBA_BINARY('vlp',
1487 source=VLP_SRC,
1488 deps='''talloc tdb''',
1489 vars=locals())
1491 swat_files=recursive_dirlist('../swat', '../swat', '*')
1492 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
1494 ########################## INCLUDES #################################
1496 bld.RECURSE('../lib/socket_wrapper')
1497 bld.RECURSE('../lib/talloc')
1498 bld.RECURSE('../lib/tdb')
1499 bld.RECURSE('../lib/nss_wrapper')
1500 bld.RECURSE('../lib/tevent')
1501 bld.RECURSE('../lib/popt')
1502 bld.RECURSE('../lib/zlib')
1503 bld.RECURSE('../lib/tsocket')
1504 bld.RECURSE('../lib/iniparser/src')
1505 bld.RECURSE('../lib/crypto')
1506 bld.RECURSE('modules')
1507 bld.RECURSE('auth')
1508 bld.RECURSE('passdb')
1509 bld.RECURSE('winbindd')
1510 bld.RECURSE('libgpo/gpext')
1511 bld.RECURSE('pam_smbpass')
1512 bld.RECURSE('rpc_server')
1514 bld.ENFORCE_GROUP_ORDERING()
1515 bld.CHECK_PROJECT_RULES()