s3-docs: Typos in smbclient man page
[Samba.git] / source3 / wscript_build
blob84acc936788449f28467fada3458dfc6fdec58ba
1 #!/usr/bin/env python
3 from samba_utils import *
4 import samba_version
6 TDB_LIB_SRC = '''
7 lib/dbwrap.c lib/dbwrap_tdb.c
8 lib/dbwrap_ctdb.c
9 lib/g_lock.c
10 lib/dbwrap_rbt.c'''
12 TDB_VALIDATE_SRC = '''lib/tdb_validate.c'''
14 SMBLDAP = bld.env.SMBLDAP or ""
15 SMBLDAPUTIL = bld.env.SMBLDAPUTIL or ""
17 SMBLDAP_SRC = '''${SMBLDAP} ${SMBLDAPUTIL}'''
19 VERSION_SRC = '''lib/version.c'''
21 WBCOMMON_SRC = '../nsswitch/wb_common.c'
23 AFS_SRC = 'lib/afs.c'
25 AFS_SETTOKEN_SRC = 'lib/afs_settoken.c'
27 AVAHI_SRC = 'lib/avahi.c smbd/avahi_register.c'
29 SERVER_MUTEX_SRC = 'lib/server_mutex.c'
31 PASSCHANGE_SRC = '''libsmb/passchange.c'''
33 COMPRESSION_SRC = '../lib/compression/mszip.c'
35 DRSUAPI_SRC = '''${COMPRESSION_SRC}'''
37 LIBNDR_SRC = '''../librpc/ndr/ndr_basic.c
38 ../librpc/ndr/ndr.c
39 ../librpc/ndr/ndr_misc.c
40 ../librpc/gen_ndr/ndr_misc.c
41 ../librpc/ndr/ndr_string.c
42 ../librpc/ndr/uuid.c
43 librpc/ndr/util.c'''
45 LIBCLI_SPOOLSS_SRC = '''rpc_client/cli_spoolss.c
46 rpc_client/init_spoolss.c'''
48 LIBCLI_LSA_SRC = '''rpc_client/cli_lsarpc.c'''
50 LIBCLI_SAMR_SRC = 'rpc_client/cli_samr.c'
52 LIBRPCCLI_NETLOGON_SRC = 'rpc_client/cli_netlogon.c'
54 # this includes only the low level parse code, not stuff
55 # that requires knowledge of security contexts
56 REG_PARSE_PRS_SRC = '''registry/reg_parse_prs.c'''
58 LIBREPLACE_SRC = '''${LIBREPLACE_SRCS}'''
60 LIBSAMBAUTIL_SRC = '''${LIBREPLACE_SRC}'''
62 UTIL_SRC = '''../lib/util/rbtree.c ../lib/util/signal.c ../lib/util/time.c
63 ../lib/util/xfile.c ../lib/util/util_strlist.c
64 ../lib/util/util_file.c ../lib/util/data_blob.c
65 ../lib/util/util.c ../lib/util/fsusage.c
66 ../lib/util/params.c ../lib/util/talloc_stack.c
67 ../lib/util/genrand.c ../lib/util/util_net.c
68 ../lib/util/become_daemon.c ../lib/util/system.c
69 ../lib/util/tevent_unix.c ../lib/util/tevent_ntstatus.c
70 ../lib/util/tevent_werror.c
71 ../lib/util/smb_threads.c ../lib/util/util_id.c
72 ../lib/util/blocking.c ../lib/util/rfc1738.c
73 ../lib/util/select.c'''
75 LIBTEVENT_SRC0 = ''
77 PTHREADPOOL_SRC = ''
79 LIBREPLACE_SRCS = ''
81 LIB_SRC = '''${LIBSAMBAUTIL_SRC}
82 lib/messages.c lib/messages_local.c
83 lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
84 lib/interfaces.c lib/memcache.c
85 lib/talloc_dict.c
86 lib/util_sconn.c
87 lib/serverid.c
88 lib/util_transfer_file.c
89 ${TDB_LIB_SRC}
90 lib/debug.c lib/fault.c
91 lib/interface.c lib/pidfile.c
92 lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
93 lib/username.c
94 ../libds/common/flag_mapping.c
95 lib/access.c lib/smbrun.c
96 lib/bitmap.c lib/dprintf.c ${UTIL_REG_SRC}
97 lib/wins_srv.c
98 lib/clobber.c lib/util_sid.c
99 lib/util_file.c
100 lib/util.c lib/util_names.c
101 lib/util_sock.c lib/sock_exec.c lib/util_sec.c
102 lib/substitute.c lib/dbwrap_util.c
103 lib/ms_fnmatch.c lib/errmap_unix.c
104 lib/tallocmsg.c lib/dmallocmsg.c
105 libsmb/clisigning.c libsmb/smb_signing.c
106 lib/pam_errors.c intl/lang_tdb.c
107 lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
108 lib/sessionid_tdb.c
109 lib/module.c lib/events.c ${LIBTEVENT_SRC0}
110 lib/server_contexts.c
111 lib/ldap_escape.c
112 lib/secdesc.c ${PTHREADPOOL_SRC}
113 lib/fncall.c
114 libads/krb5_errs.c lib/system_smbd.c lib/audit.c
115 lib/file_id.c lib/idmap_cache.c'''
117 LIB_DUMMY_SRC = '''lib/dummysmbd.c lib/dummyroot.c'''
118 LIB_NONSMBD_SRC = '''${LIB_DUMMY_SRC}'''
120 POPT_LIB_SRC = '''lib/popt_common.c'''
122 PARAM_UTIL_SRC = '''param/util.c'''
124 PARAM_WITHOUT_REG_SRC = '''param/loadparm.c param/loadparm_server_role.c
125 lib/sharesec.c lib/ldap_debug_handler.c'''
127 KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c'''
129 LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
130 ../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
131 libgpo/gpo_reg.c'''
132 LIBGPO_SRC = '''${LIBGPO_SRC0}'''
134 LIBADS_SRC = '''libads/ldap.c
135 libads/sasl.c libads/sasl_wrapping.c
136 libads/krb5_setpw.c
137 libads/kerberos_util.c
138 libads/ldap_user.c
139 libads/ads_struct.c libads/kerberos_keytab.c
140 libads/disp_sec.c libads/ldap_utils.c
141 libads/ldap_schema.c libads/util.c libads/ndr.c'''
143 LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c'''
145 LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
147 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
148 passdb/machine_sid.c'''
150 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
151 libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
152 libads/dns.c libads/sitename_cache.c'''
154 NTERR_SRC = '''libsmb/smberr.c'''
155 ERRORMAP_SRC = 'libsmb/errormap.c'
156 DCE_RPC_ERR_SRC = '../librpc/rpc/dcerpc_error.c'
158 LIBSMB_ERR_SRC = '''${NTERR_SRC} ${ERRORMAP_SRC} ${DCE_RPC_ERR_SRC}'''
160 LIBSMB_SRC0 = '''
161 libsmb/ntlmssp.c
162 libsmb/ntlmssp_wrap.c
163 ../libcli/auth/ntlmssp.c
164 ../libcli/auth/ntlmssp_sign.c
165 ../libcli/auth/ntlmssp_ndr.c
166 ../libcli/auth/ntlmssp_server.c'''
168 LIBSAMBA_SRC = '${LIBSMB_SRC0}'
170 CLDAP_SRC = '''libads/cldap.c
171 ../libcli/cldap/cldap.c
172 ../lib/util/idtree.c'''
174 TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
176 SCHANNEL_SRC = '''../libcli/auth/schannel_sign.c'''
178 LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
179 libsmb/clikrb5.c libsmb/clispnego.c
180 libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
181 libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
182 libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
183 libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
184 libsmb/clioplock.c libsmb/clirap2.c
185 libsmb/smb_seal.c libsmb/async_smb.c
186 libsmb/cli_np_tstream.c
187 libsmb/smbsock_connect.c'''
189 LIBMSRPC_SRC = '''
190 ${SCHANNEL_SRC}
191 rpc_client/cli_pipe.c
192 librpc/crypto/gse_krb5.c
193 librpc/crypto/gse.c
194 librpc/crypto/cli_spnego.c
195 librpc/rpc/rpc_common.c
196 rpc_client/rpc_transport_np.c
197 rpc_client/rpc_transport_sock.c
198 rpc_client/rpc_transport_tstream.c
199 ../librpc/rpc/binding.c
200 ../librpc/rpc/dcerpc_util.c
201 librpc/rpc/dcerpc_helpers.c
202 ../librpc/rpc/binding_handle.c'''
205 # registry-related objects
207 UTIL_REG_SRC = '''../libcli/registry/util_reg.c'''
209 REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
210 REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
211 REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
213 REGFIO_SRC = '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
215 REG_API_REGF_SRC = '''registry/reg_api_regf.c'''
217 REGSRCS_SRC = '''registry/reg_objects.c'''
219 REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
221 REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
223 REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
224 registry/reg_backend_shares.c
225 registry/reg_backend_netlogon_params.c
226 registry/reg_backend_prod_options.c
227 registry/reg_backend_tcpip_params.c
228 registry/reg_backend_hkpt_params.c
229 registry/reg_backend_current_version.c
230 registry/reg_backend_perflib.c'''
232 REG_BASE_SRC = '''registry/reg_api.c
233 registry/reg_dispatcher.c
234 registry/reg_cachehook.c
235 ${REGSRCS_SRC}
236 registry/reg_util_internal.c
237 lib/util_nttoken.c
238 ${REG_BACKENDS_BASE_SRC}
239 ${REG_INIT_BASIC_SRC}'''
241 REG_SMBCONF_SRC = '''
242 ${REG_BACKENDS_SMBCONF_SRC}
243 ${REG_INIT_SMBCONF_SRC}
244 registry/reg_util_token.c
245 registry/reg_api_util.c'''
247 REG_EVENTLOG_SRC = '''registry/reg_eventlog.c'''
249 REG_FULL_SRC = '''
250 ${REG_BACKENDS_EXTRA_SRC}
251 ${REG_INIT_FULL_SRC}
252 registry/reg_perfcount.c'''
254 SERVICES_SRC = '''services/svc_spoolss.c
255 services/svc_rcinit.c
256 services/services_db.c
257 services/svc_netlogon.c
258 services/svc_winreg.c
259 services/svc_wins.c'''
261 LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
263 RPC_CLIENT_SCHANNEL_SRC = '''rpc_client/cli_pipe_schannel.c'''
265 LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
267 PRIVILEGES_SRC = '''lib/privileges.c'''
269 PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
271 PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c
272 passdb/util_wellknown.c passdb/util_builtin.c passdb/pdb_compat.c
273 passdb/util_unixsids.c passdb/lookup_sid.c
274 passdb/login_cache.c
275 passdb/account_pol.c ${PRIVILEGES_SRC}
276 lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}'''
277 #FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
279 GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
281 PROFILE_SRC = '''profile/profile.c'''
282 PROFILES_SRC = '''utils/profiles.c'''
284 OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
285 smbd/oplock_onefs.c'''
287 NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
289 FNAME_UTIL_SRC = '''smbd/filename_util.c'''
292 PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
294 SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
296 DCUTIL_SRC = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
298 WINBINDD_SRC1 = '''winbindd/winbindd.c
299 winbindd/winbindd_group.c
300 winbindd/winbindd_util.c
301 winbindd/winbindd_cache.c
302 winbindd/winbindd_pam.c
303 winbindd/winbindd_misc.c
304 winbindd/winbindd_cm.c
305 winbindd/winbindd_wins.c
306 winbindd/winbindd_msrpc.c
307 winbindd/winbindd_rpc.c
308 winbindd/winbindd_reconnect.c
309 winbindd/winbindd_ads.c
310 winbindd/winbindd_samr.c
311 winbindd/winbindd_dual.c
312 winbindd/winbindd_dual_ndr.c
313 winbindd/winbindd_dual_srv.c
314 winbindd/winbindd_async.c
315 winbindd/winbindd_creds.c
316 winbindd/winbindd_cred_cache.c
317 winbindd/winbindd_ccache_access.c
318 winbindd/winbindd_domain.c
319 winbindd/winbindd_idmap.c
320 winbindd/winbindd_locator.c
321 winbindd/winbindd_ndr.c
322 winbindd/wb_ping.c
323 winbindd/wb_lookupsid.c
324 winbindd/wb_lookupname.c
325 winbindd/wb_sid2uid.c
326 winbindd/wb_sid2gid.c
327 winbindd/wb_uid2sid.c
328 winbindd/wb_gid2sid.c
329 winbindd/wb_queryuser.c
330 winbindd/wb_lookupuseraliases.c
331 winbindd/wb_lookupusergroups.c
332 winbindd/wb_getpwsid.c
333 winbindd/wb_gettoken.c
334 winbindd/wb_seqnum.c
335 winbindd/wb_seqnums.c
336 winbindd/wb_group_members.c
337 winbindd/wb_getgrsid.c
338 winbindd/wb_query_user_list.c
339 winbindd/wb_fill_pwent.c
340 winbindd/wb_next_pwent.c
341 winbindd/wb_next_grent.c
342 winbindd/wb_dsgetdcname.c
343 winbindd/winbindd_lookupsid.c
344 winbindd/winbindd_lookupname.c
345 winbindd/winbindd_sid_to_uid.c
346 winbindd/winbindd_sid_to_gid.c
347 winbindd/winbindd_uid_to_sid.c
348 winbindd/winbindd_gid_to_sid.c
349 winbindd/winbindd_allocate_uid.c
350 winbindd/winbindd_allocate_gid.c
351 winbindd/winbindd_getpwsid.c
352 winbindd/winbindd_getpwnam.c
353 winbindd/winbindd_getpwuid.c
354 winbindd/winbindd_getsidaliases.c
355 winbindd/winbindd_getuserdomgroups.c
356 winbindd/winbindd_getgroups.c
357 winbindd/winbindd_show_sequence.c
358 winbindd/winbindd_getgrgid.c
359 winbindd/winbindd_getgrnam.c
360 winbindd/winbindd_getusersids.c
361 winbindd/winbindd_lookuprids.c
362 winbindd/winbindd_setpwent.c
363 winbindd/winbindd_getpwent.c
364 winbindd/winbindd_endpwent.c
365 winbindd/winbindd_setgrent.c
366 winbindd/winbindd_getgrent.c
367 winbindd/winbindd_endgrent.c
368 winbindd/winbindd_dsgetdcname.c
369 winbindd/winbindd_getdcname.c
370 winbindd/winbindd_list_users.c
371 winbindd/winbindd_list_groups.c
372 winbindd/winbindd_check_machine_acct.c
373 winbindd/winbindd_change_machine_acct.c
374 winbindd/winbindd_ping_dc.c
375 winbindd/winbindd_pam_auth.c
376 winbindd/winbindd_pam_logoff.c
377 winbindd/winbindd_pam_chauthtok.c
378 winbindd/winbindd_pam_auth_crap.c
379 winbindd/winbindd_pam_chng_pswd_auth_crap.c
380 auth/auth_util.c
381 auth/user_util.c
382 auth/check_samsec.c
383 auth/server_info.c
384 auth/server_info_sam.c
385 auth/user_info.c
386 auth/user_util.c
387 lib/wb_reqtrans.c'''
389 WINBINDD_SRC = '''${WINBINDD_SRC1}
390 ${TDB_VALIDATE_SRC}'''
392 MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
394 SMBD_SRC_MAIN = '''smbd/server.c smbd/server_exit.c'''
396 BUILDOPT_SRC = '''smbd/build_options.c'''
398 SMBD_SRC_SRV = '''smbd/server_reload.c smbd/files.c smbd/connection.c
399 smbd/utmp.c smbd/session.c
400 smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
401 smbd/share_access.c smbd/fileio.c
402 smbd/ipc.c smbd/lanman.c smbd/negprot.c
403 smbd/message.c smbd/nttrans.c smbd/pipes.c
404 smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
405 smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
406 smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
407 smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
408 smbd/posix_acls.c lib/sysacls.c
409 smbd/process.c smbd/service.c smbd/error.c
410 printing/printspoolss.c
411 lib/sysquotas.c lib/sysquotas_linux.c
412 lib/sysquotas_xfs.c lib/sysquotas_4A.c
413 lib/sysquotas_nfs.c
414 smbd/fake_file.c
415 smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
416 smbd/aio.c smbd/statvfs.c
417 smbd/dmapi.c smbd/signing.c
418 smbd/file_access.c
419 smbd/dnsregister.c smbd/globals.c
420 smbd/smb2_server.c
421 smbd/smb2_signing.c
422 smbd/smb2_glue.c
423 smbd/smb2_negprot.c
424 smbd/smb2_sesssetup.c
425 smbd/smb2_tcon.c
426 smbd/smb2_create.c
427 smbd/smb2_close.c
428 smbd/smb2_flush.c
429 smbd/smb2_read.c
430 smbd/smb2_write.c
431 smbd/smb2_lock.c
432 smbd/smb2_ioctl.c
433 smbd/smb2_keepalive.c
434 smbd/smb2_find.c
435 smbd/smb2_notify.c
436 smbd/smb2_getinfo.c
437 smbd/smb2_setinfo.c
438 smbd/smb2_break.c
439 ${MANGLE_SRC}'''
441 SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
442 ${OPLOCK_SRC} ${NOTIFY_SRC}
443 ${BUILDOPT_SRC}'''
445 PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
446 printing/print_cups.c printing/print_generic.c
447 printing/lpq_parse.c printing/load.c printing/print_standard.c
448 printing/print_iprint.c printing/printer_list.c'''
450 PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
451 PRINTBACKEND_SRC = '''printing/printing.c
452 printing/nt_printing.c
453 printing/nt_printing_tdb.c
454 printing/nt_printing_migrate.c
455 printing/nt_printing_ads.c'''
457 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
459 NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
460 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
461 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
462 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
463 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
464 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
465 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
466 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
467 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
468 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
469 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
470 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
472 NMBD_SRC = '${NMBD_SRC1}'
474 SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
475 web/swat.c web/neg_lang.c'''
477 SWAT_SRC = '''${SWAT_SRC1}'''
479 STATUS_SRC = '''utils/status.c utils/status_profile.c'''
481 SMBCONTROL_SRC = '''utils/smbcontrol.c'''
483 SMBTREE_SRC = '''utils/smbtree.c'''
485 TESTPARM_SRC = 'utils/testparm.c'
487 SMBTA_UTIL_SRC = '''utils/smbta-util.c'''
489 TEST_LP_LOAD_SRC = '''param/test_lp_load.c'''
491 PASSWD_UTIL_SRC = 'utils/passwd_util.c'
493 SMBPASSWD_SRC = '''utils/smbpasswd.c'''
495 PDBEDIT_SRC = '''utils/pdbedit.c'''
497 SMBGET_SRC = '''utils/smbget.c'''
499 RPCCLIENT_SRC1 = '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
500 rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
501 rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
502 rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
503 rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
504 rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
505 rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
506 rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
507 rpcclient/cmd_winreg.c'''
509 RPCCLIENT_SRC = '''${RPCCLIENT_SRC1}'''
511 PAM_WINBIND_SRC = '../nsswitch/pam_winbind.c'
513 LIBSMBCLIENT_THREAD_SRC = '''libsmb/libsmb_thread_impl.c
514 libsmb/libsmb_thread_posix.c'''
516 LIBSMBCLIENT_SRC0 = '''libsmb/libsmb_cache.c
517 libsmb/libsmb_compat.c
518 libsmb/libsmb_context.c
519 libsmb/libsmb_dir.c
520 libsmb/libsmb_file.c
521 libsmb/libsmb_misc.c
522 libsmb/libsmb_path.c
523 libsmb/libsmb_printjob.c
524 libsmb/libsmb_server.c
525 libsmb/libsmb_stat.c
526 libsmb/libsmb_xattr.c
527 libsmb/libsmb_setget.c'''
529 LIBSMBCLIENT_SRC1 = '''${LIBSMBCLIENT_SRC0}'''
531 LIBSMBCLIENT_SRC = '${LIBSMBCLIENT_SRC1}'
533 LIBSMBSHAREMODES_SRC0 = 'libsmb/smb_share_modes.c'
535 LIBSMBSHAREMODES_SRC = '${LIBSMBSHAREMODES_SRC0}'
537 LIBNETAPI_SRC0 = '''lib/netapi/netapi.c
538 lib/netapi/cm.c
539 lib/netapi/libnetapi.c
540 lib/netapi/joindomain.c
541 lib/netapi/serverinfo.c
542 lib/netapi/getdc.c
543 lib/netapi/user.c
544 lib/netapi/group.c
545 lib/netapi/localgroup.c
546 lib/netapi/samr.c
547 lib/netapi/sid.c
548 lib/netapi/share.c
549 lib/netapi/file.c
550 lib/netapi/shutdown.c
551 lib/netapi/netlogon.c'''
553 LIBNETAPI_SRC = '''${LIBNETAPI_SRC0}'''
555 # FIXME: bigballofmud
557 CLIENT_SRC1 = '''client/client.c client/clitar.c
558 client/dnsbrowse.c'''
560 CLIENT_SRC = '''${CLIENT_SRC1}'''
562 LIB_SMBCONF_SRC = 'lib/smbconf/smbconf_init.c lib/smbconf/smbconf_reg.c'
564 SMBCONFTORT_SRC0 = 'lib/smbconf/testsuite.c'
566 SMBCONFTORT_SRC = '''${SMBCONFTORT_SRC0}'''
568 LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c'
571 LIBNET_DSSYNC_SRC = '''libnet/libnet_dssync.c
572 libnet/libnet_dssync_keytab.c'''
574 LIBNET_SAMSYNC_SRC = '''libnet/libnet_samsync.c
575 libnet/libnet_samsync_ldif.c
576 libnet/libnet_samsync_passdb.c
577 libnet/libnet_samsync_display.c
578 libnet/libnet_samsync_keytab.c'''
580 NET_SRC1 = '''utils/net.c utils/net_ads.c utils/net_help.c
581 utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
582 utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
583 utils/net_cache.c utils/net_groupmap.c utils/net_idmap.c
584 utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
585 utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
586 utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
587 utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
588 utils/net_dns.c utils/net_ads_gpo.c
589 utils/net_conf.c utils/net_join.c utils/net_user.c
590 utils/net_group.c utils/net_file.c utils/net_registry.c
591 utils/net_dom.c utils/net_share.c
592 utils/net_g_lock.c
593 utils/net_serverid.c
594 utils/net_eventlog.c
595 utils/net_printing.c
596 registry/reg_parse.c registry/reg_format.c
597 registry/reg_parse_internal.c registry/reg_import.c
598 lib/cbuf.c lib/srprs.c'''
600 NET_SRC2 = 'utils/net_registry_util.c utils/net_help_common.c'
602 NET_SRC = '''${NET_SRC1}
603 ${NET_SRC2}'''
605 CUPS_SRC = '''client/smbspool.c'''
607 NMBLOOKUP_SRC = '''utils/nmblookup.c'''
609 SMBTORTURE_SRC1 = '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
610 torture/denytest.c torture/mangle_test.c
611 torture/nbench.c
612 torture/test_async_echo.c
613 torture/test_posix_append.c
614 torture/test_smbsock_any_connect.c'''
616 SMBTORTURE_SRC = '''${SMBTORTURE_SRC1}
617 torture/wbc_async.c
618 lib/wb_reqtrans.c'''
620 MASKTEST_SRC = '''torture/masktest.c'''
622 MSGTEST_SRC = '''torture/msgtest.c'''
624 LOCKTEST_SRC = '''torture/locktest.c'''
626 NSSTEST_SRC = '''../nsswitch/nsstest.c ${LIBSAMBAUTIL_SRC}'''
628 PDBTEST_SRC = '''torture/pdbtest.c'''
630 VFSTEST_SRC = '''torture/cmd_vfs.c torture/vfstest.c'''
632 SMBICONV_SRC = '''torture/smbiconv.c'''
634 LOG2PCAP_SRC = '''utils/log2pcaphex.c'''
636 LOCKTEST2_SRC = '''torture/locktest2.c'''
638 SMBCACLS_SRC = '''utils/smbcacls.c'''
640 SMBCQUOTAS_SRC = '''utils/smbcquotas.c'''
642 EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
644 EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}'''
646 SHARESEC_SRC0 = 'utils/sharesec.c'
647 SHARESEC_SRC = '''${SHARESEC_SRC0}'''
649 DEBUG2HTML_SRC = '''utils/debug2html.c utils/debugparse.c'''
651 SMBFILTER_SRC = '''utils/smbfilter.c'''
653 WINBIND_WINS_NSS_SRC = '''../nsswitch/wins.c'''
655 WBINFO_SRC = '''../nsswitch/wbinfo.c'''
657 NTLM_AUTH_SRC1 = '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
659 NTLM_AUTH_SRC = '''${NTLM_AUTH_SRC1}
660 libsmb/clikrb5.c libads/kerberos.c'''
663 VLP_SRC = '''printing/tests/vlp.c'''
665 RPC_OPEN_TCP_SRC = 'torture/rpc_open_tcp.c'
667 DBWRAP_TOOL_SRC = 'utils/dbwrap_tool.c'
669 DBWRAP_TORTURE_SRC = 'utils/dbwrap_torture.c'
671 SPLIT_TOKENS_SRC = 'utils/split_tokens.c'
673 LIBS='ICONV'
675 bld.SAMBA_GENERATOR('build_options',
676 source='include/config.h script/mkbuildoptions-waf.awk',
677 target='smbd/build_options.c',
678 rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
680 t = bld.SAMBA_GENERATOR('build_env.h',
681 source='script/build_env.sh',
682 target='include/build_env.h',
683 rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
684 # todo: work out what is really wanted here
685 t.env.SRCDIR = bld.path.abspath()
686 t.env.BUILDDIR = bld.path.abspath()
689 bld.SETUP_BUILD_GROUPS()
691 samba_version.load_version(bld.env)
693 bld.SAMBA_MKVERSION('include/version.h')
695 bld.RECURSE('../lib/replace')
696 print "SBINDIR=%s" % bld.env.SBINDIR
697 bld.RECURSE('build')
699 ######################## SUBSYSTEMS #################################
701 bld.SAMBA_SUBSYSTEM('winbind-client',
702 source=WBCOMMON_SRC,
703 deps='replace',
704 cflags='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR)
706 bld.SAMBA_LIBRARY('netapi',
707 source=LIBNETAPI_SRC,
708 public_deps='''talloc tdb cap wbclient LIB_NONSMBD LIBSMB KRBCLIENT
709 PASSDB SMBLDAP GROUPDB PARAM_WITHOUT_REG DYNCONFIG
710 LIBMSRPC_GEN LIBMSRPC LIBADS LIBNET DCUTIL NDR_LIBNETAPI
711 RPC_CLIENT_SCHANNEL LIB_SMBCONF REG_SMBCONF TOKEN_UTIL
712 LIBCLI_SAMR LIBCLI_LSA LIBRPCCLI_NETLOGON
713 RPCCLI_SRVSVC RPC_NDR_WKSSVC RPC_NDR_INITSHUTDOWN
714 INIT_NETLOGON INIT_SAMR''',
715 public_headers='lib/netapi/netapi.h',
716 private_library=True,
717 vars=locals())
719 bld.SAMBA_LIBRARY('smbclient',
720 source=LIBSMBCLIENT_SRC,
721 public_deps='''talloc tdb wbclient cap PARAM LIB_NONSMBD LIBSMB KRBCLIENT PASSDB SMBLDAP GROUPDB
722 LIBMSRPC_GEN LIBMSRPC LIBCLI_LSA RPCCLI_SRVSVC''',
723 public_headers='include/libsmbclient.h',
724 private_library=True,
725 vars=locals())
727 bld.SAMBA_LIBRARY('smbsharemodes',
728 source=LIBSMBSHAREMODES_SRC,
729 public_deps='''talloc tdb''',
730 public_headers='include/smb_share_modes.h',
731 private_library=True,
732 vars=locals())
734 bld.SAMBA_LIBRARY('nss_winbind',
735 source='../nsswitch/winbind_nss_linux.c',
736 deps='winbind-client',
737 realname='libnss_winbind.so.2',
738 vnum='2')
740 bld.SAMBA_LIBRARY('nss_wins',
741 source=WINBIND_WINS_NSS_SRC,
742 deps='''winbind-client PARAM LIBSMB LIB_NONSMBD LIBTSOCKET KRBCLIENT
743 cap wbclient''',
744 realname='libnss_wins.so.2',
745 vnum='2')
747 if bld.CONFIG_SET('WITH_PAM_MODULES'):
748 bld.SAMBA_LIBRARY('pamwinbind',
749 source=PAM_WINBIND_SRC,
750 deps='intl talloc wbclient winbind-client LIBINIPARSER pam',
751 cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
752 realname='pam_winbind.so')
754 if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
755 bld.SAMBA_LIBRARY('winbind_krb5_locator',
756 source='../nsswitch/winbind_krb5_locator.c',
757 deps='wbclient krb5',
758 realname='winbind_krb5_locator.so')
760 bld.SAMBA_SUBSYSTEM('LIBMSRPC',
761 source='${LIBMSRPC_SRC}',
762 deps='''ndr NDR_SECURITY NDR_DCERPC NDR_SCHANNEL
763 RPC_NDR_EPMAPPER COMMON_SCHANNELDB LIBCLI_AUTH''',
764 vars=locals())
766 bld.SAMBA_SUBSYSTEM('LIBMSRPC_GEN',
767 source='',
768 deps='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
769 vars=locals())
771 bld.SAMBA_SUBSYSTEM('LIBGPO',
772 source='${LIBGPO_SRC}',
773 deps='gpext',
774 vars=locals())
776 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
777 source='../lib/util/asn1.c',
778 deps='talloc',
779 local_include=False)
781 bld.SAMBA_SUBSYSTEM('AVAHI',
782 source=AVAHI_SRC,
783 deps='avahi-common avahi-client',
784 enabled=bld.env.with_avahi)
786 bld.SAMBA_SUBSYSTEM('GROUPDB',
787 source=GROUPDB_SRC)
789 bld.SAMBA_SUBSYSTEM('TLDAP',
790 source=TLDAP_SRC,
791 deps='ASN1_UTIL LIBTSOCKET')
793 bld.SAMBA_SUBSYSTEM('PASSDB',
794 source=PASSDB_SRC,
795 deps='''GROUPDB TLDAP SECRETS SMBLDAP pdb''',
796 vars=locals())
798 bld.SAMBA_SUBSYSTEM('PARAM_UTIL',
799 source=PARAM_UTIL_SRC)
801 bld.SAMBA_SUBSYSTEM('PARAM_WITHOUT_REG',
802 source=PARAM_WITHOUT_REG_SRC,
803 deps='''PARAM_UTIL''',
804 vars=locals())
806 bld.SAMBA_SUBSYSTEM('PARAM',
807 source='',
808 deps='PARAM_WITHOUT_REG DYNCONFIG LIB_SMBCONF',
809 vars=locals())
811 bld.SAMBA_SUBSYSTEM('REGFIO',
812 source=REGFIO_SRC,
813 vars=locals())
815 bld.SAMBA_SUBSYSTEM('REG_API_REGF',
816 source=REG_API_REGF_SRC,
817 vars=locals())
819 bld.SAMBA_SUBSYSTEM('REG_BASE',
820 source=REG_BASE_SRC,
821 vars=locals())
823 bld.SAMBA_SUBSYSTEM('REG_SMBCONF',
824 source=REG_SMBCONF_SRC,
825 deps='REG_BASE',
826 vars=locals())
828 bld.SAMBA_SUBSYSTEM('REG_FULL',
829 source=REG_FULL_SRC,
830 deps='REG_SMBCONF REG_EVENTLOG',
831 vars=locals())
833 bld.SAMBA_SUBSYSTEM('REG_EVENTLOG',
834 source=REG_EVENTLOG_SRC,
835 vars=locals())
837 bld.SAMBA_SUBSYSTEM('POPT_SAMBA',
838 source=POPT_LIB_SRC,
839 vars=locals())
841 bld.SAMBA_SUBSYSTEM('KRBCLIENT',
842 source=KRBCLIENT_SRC,
843 deps='krb5 k5crypto com_err gssapi gssapi_krb5',
844 vars=locals())
846 bld.SAMBA_SUBSYSTEM('LIBS',
847 source=LIB_SRC,
848 deps='LIBCRYPTO ndr security NDR_SECURITY charset NDR_MESSAGING LIBASYNC_REQ tdb-wrap samba-util CHARSET UTIL_TDB SAMBA_VERSION',
849 vars=locals())
851 bld.SAMBA_SUBSYSTEM('LIB_NONSMBD',
852 source=LIB_NONSMBD_SRC,
853 deps='LIBS',
854 vars=locals())
856 bld.SAMBA_SUBSYSTEM('LIBSMB_ERR',
857 source=LIBSMB_ERR_SRC,
858 deps='errors SECRETS ldap lber MSRPC_PARSE LIBCLI_AUTH',
859 vars=locals())
861 bld.SAMBA_SUBSYSTEM('LIBSAMBA',
862 source=LIBSAMBA_SRC,
863 deps='LIBSMB_ERR NDR_NTLMSSP ntlm_check',
864 vars=locals())
866 bld.SAMBA_SUBSYSTEM('LIBSMB',
867 source=LIBSMB_SRC,
868 deps='LIBSAMBA CLDAP LIBNMB LIBNBT LIBDRSUAPI SPNEGO_PARSE',
869 vars=locals())
871 bld.SAMBA_SUBSYSTEM('LIBDRSUAPI',
872 source=DRSUAPI_SRC,
873 deps='z LZXPRESS NDR_DRSUAPI NDR_DRSBLOBS',
874 vars=locals())
876 bld.SAMBA_SUBSYSTEM('CLDAP',
877 source=CLDAP_SRC,
878 deps='LIBCLI_LDAP_MESSAGE LIBCLI_LDAP_NDR',
879 vars=locals())
881 bld.SAMBA_SUBSYSTEM('SECRETS',
882 source=SECRETS_SRC,
883 deps='NDR_SECRETS',
884 vars=locals())
886 bld.SAMBA_SUBSYSTEM('SMBLDAP',
887 source=SMBLDAP_SRC,
888 deps='ldap lber',
889 vars=locals())
891 bld.SAMBA_SUBSYSTEM('LIBADS',
892 source=LIBADS_SRC,
893 deps='LIBCLI_LDAP_NDR',
894 vars=locals())
896 bld.SAMBA_SUBSYSTEM('LIBADS_SERVER',
897 source=LIBADS_SERVER_SRC,
898 deps='NDR_KRB5PAC',
899 vars=locals())
901 bld.SAMBA_SUBSYSTEM('LIBADS_PRINTER',
902 source=LIBADS_PRINTER_SRC,
903 vars=locals())
905 bld.SAMBA_SUBSYSTEM('LIBAFS',
906 source=AFS_SRC,
907 vars=locals())
909 bld.SAMBA_SUBSYSTEM('LIBAFS_SETTOKEN',
910 source=AFS_SETTOKEN_SRC,
911 vars=locals())
913 bld.SAMBA_SUBSYSTEM('LIB_SMBCONF',
914 source=LIB_SMBCONF_SRC,
915 deps='LIBSMBCONF REG_BASE REG_SMBCONF',
916 vars=locals())
918 bld.SAMBA_SUBSYSTEM('SMBD_BASE',
919 source=SMBD_SRC_BASE,
920 deps='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
921 DYNCONFIG wbclient crypt nsl cups cap resolv z PASSDB
922 PARAM_WITHOUT_REG LIBS LIBSMB POPT_SAMBA KRBCLIENT AVAHI
923 LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER LIBADS_PRINTER
924 vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
925 PRINTING PRINTBACKEND NDR_XATTR NDR_NOTIFY REGFIO
926 LIB_SMBCONF REG_FULL FNAME_UTIL
927 LIBCLI_SAMR LIBCLI_LSA LIBRPCCLI_NETLOGON LIBCLI_SPOOLSS
928 RPCCLI_SRVSVC NAMED_PIPE_AUTH_TSTREAM INIT_NETLOGON INIT_SAMR
929 LIBCLI_SMB_COMMON RPC_SERVER
930 ''',
931 vars=locals())
933 bld.SAMBA_SUBSYSTEM('LOCKING',
934 source='${LOCKING_SRC}',
935 deps='''tdb talloc''',
936 vars=locals())
938 bld.SAMBA_SUBSYSTEM('PROFILE',
939 source='${PROFILE_SRC}',
940 vars=locals())
942 bld.SAMBA_SUBSYSTEM('PRINTBASE',
943 source=PRINTBASE_SRC,
944 vars=locals())
946 bld.SAMBA_SUBSYSTEM('PRINTBACKEND',
947 source=PRINTBACKEND_SRC,
948 deps='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
949 vars=locals())
951 bld.SAMBA_SUBSYSTEM('PRINTING',
952 source=PRINTING_SRC,
953 vars=locals())
955 bld.SAMBA_SUBSYSTEM('PASSWD_UTIL',
956 source=PASSWD_UTIL_SRC,
957 vars=locals())
959 bld.SAMBA_SUBSYSTEM('FNAME_UTIL',
960 source=FNAME_UTIL_SRC,
961 vars=locals())
963 bld.SAMBA_SUBSYSTEM('UTIL_TDB',
964 source='../lib/util/util_tdb.c',
965 local_include=False,
966 public_deps='tdb talloc'
969 bld.SAMBA_SUBSYSTEM('LIBNET',
970 source=LIBNET_SRC,
971 deps='NDR_LIBNET_JOIN',
972 vars=locals())
974 bld.SAMBA_SUBSYSTEM('LIBNET_DSSYNC',
975 source=LIBNET_DSSYNC_SRC,
976 deps='LIBNET LIBCLI_DRSUAPI',
977 vars=locals())
979 bld.SAMBA_SUBSYSTEM('LIBNET_SAMSYNC',
980 source=LIBNET_SAMSYNC_SRC,
981 deps='LIBNET LIBCLI_SAMSYNC',
982 vars=locals())
984 bld.SAMBA_SUBSYSTEM('LIBEVENTLOG',
985 source=LIB_EVENTLOG_SRC,
986 deps='NDR_EVENTLOG',
987 vars=locals())
989 bld.SAMBA_SUBSYSTEM('LIBNMB',
990 source=LIBNMB_SRC,
991 vars=locals())
993 bld.SAMBA_SUBSYSTEM('LIBNBT',
994 source='',
995 deps='NDR_SVCCTL NDR_NBT NDR_NBT_BUF LIBCLI_NETLOGON LIBCLI_NDR_NETLOGON',
996 vars=locals())
998 bld.SAMBA_SUBSYSTEM('SERVICES',
999 source=SERVICES_SRC,
1000 vars=locals())
1002 bld.SAMBA_SUBSYSTEM('PLAINTEXT_AUTH',
1003 source=PLAINTEXT_AUTH_SRC,
1004 deps='pam',
1005 vars=locals())
1007 bld.SAMBA_SUBSYSTEM('PASSCHANGE',
1008 source=PASSCHANGE_SRC,
1009 deps='LIBCLI_SAMR',
1010 vars=locals())
1012 bld.SAMBA_SUBSYSTEM('SAMBA_VERSION',
1013 source=VERSION_SRC,
1014 vars=locals())
1016 bld.SAMBA_SUBSYSTEM('SLCACHE',
1017 source=SLCACHE_SRC,
1018 vars=locals())
1020 bld.SAMBA_SUBSYSTEM('SPNEGO_PARSE',
1021 source='../libcli/auth/spnego_parse.c',
1022 vars=locals())
1024 bld.SAMBA_SUBSYSTEM('DCUTIL',
1025 source=DCUTIL_SRC,
1026 vars=locals())
1028 bld.SAMBA_SUBSYSTEM('ndr',
1029 source=LIBNDR_SRC,
1030 vars=locals())
1032 bld.SAMBA_SUBSYSTEM('tdb-wrap',
1033 source='lib/util_tdb.c',
1034 vars=locals())
1036 bld.SAMBA_SUBSYSTEM('CHARSET',
1037 source='''lib/util_str.c lib/util_unistr.c lib/charcnv.c lib/iconv.c''',
1038 public_deps='iconv',
1039 deps='DYNCONFIG')
1041 bld.SAMBA_SUBSYSTEM('samba-util',
1042 source=UTIL_SRC,
1043 deps='talloc CHARSET LIBCRYPTO',
1044 vars=locals())
1045 #FIXME
1046 bld.SAMBA_SUBSYSTEM('ndr-standard',
1047 source='',
1048 deps='''
1049 NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
1050 NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
1051 NDR_ECHO security NDR_DNS
1052 ''',
1053 vars=locals())
1055 #FIXME
1056 bld.SAMBA_SUBSYSTEM('dcerpc', '')
1058 bld.SAMBA_SUBSYSTEM('ldb',
1059 source='lib/ldb_compat.c')
1061 bld.SAMBA_SUBSYSTEM('LZXPRESS',
1062 deps='replace',
1063 source='../lib/compression/lzxpress.c')
1065 bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
1066 source='''../librpc/gen_ndr/ndr_security.c ../librpc/ndr/ndr_sec_helper.c''',
1067 deps='ndr',
1068 vars=locals())
1070 bld.SAMBA_SUBSYSTEM('NDR_DCERPC',
1071 source='../librpc/gen_ndr/ndr_dcerpc.c',
1072 vars=locals())
1074 bld.SAMBA_SUBSYSTEM('errors',
1075 source='../libcli/util/doserr.c libsmb/nterr.c')
1077 bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
1078 source='../libcli/nbt/nbtname.c',
1079 deps='talloc',
1080 autoproto='nbtname.h')
1082 bld.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
1083 source='../librpc/gen_ndr/cli_winreg.c',
1084 public_deps='RPC_NDR_WINREG')
1086 bld.SAMBA_SUBSYSTEM('RPCCLI_ECHO',
1087 source='../librpc/gen_ndr/cli_echo.c',
1088 public_deps='RPC_NDR_ECHO')
1090 bld.SAMBA_SUBSYSTEM('RPCCLI_SAMR',
1091 source='../librpc/gen_ndr/cli_samr.c',
1092 public_deps='RPC_NDR_SAMR')
1094 bld.SAMBA_SUBSYSTEM('RPCCLI_LSA',
1095 source='../librpc/gen_ndr/cli_lsa.c',
1096 public_deps='RPC_NDR_LSA')
1098 bld.SAMBA_SUBSYSTEM('RPCCLI_NETLOGON',
1099 source='../librpc/gen_ndr/cli_netlogon.c',
1100 public_deps='RPC_NDR_NETLOGON')
1102 bld.SAMBA_SUBSYSTEM('RPCCLI_SRVSVC',
1103 source='../librpc/gen_ndr/cli_srvsvc.c',
1104 public_deps='RPC_NDR_SRVSVC')
1106 bld.SAMBA_SUBSYSTEM('RPCCLI_SVCCTL',
1107 source='../librpc/gen_ndr/cli_svcctl.c',
1108 public_deps='RPC_NDR_SVCCTL')
1110 bld.SAMBA_SUBSYSTEM('RPCCLI_SPOOLSS',
1111 source='../librpc/gen_ndr/cli_spoolss.c',
1112 public_deps='RPC_NDR_SPOOLSS')
1114 bld.SAMBA_SUBSYSTEM('LIBCLI_SAMR',
1115 source=LIBCLI_SAMR_SRC,
1116 deps='RPCCLI_SAMR')
1118 bld.SAMBA_SUBSYSTEM('LIBCLI_LSA',
1119 source=LIBCLI_LSA_SRC,
1120 deps='RPCCLI_LSA INIT_LSA')
1122 bld.SAMBA_SUBSYSTEM('LIBRPCCLI_NETLOGON',
1123 source=LIBRPCCLI_NETLOGON_SRC,
1124 deps='RPCCLI_NETLOGON')
1126 bld.SAMBA_SUBSYSTEM('LIBCLI_SPOOLSS',
1127 source=LIBCLI_SPOOLSS_SRC,
1128 deps='RPCCLI_SPOOLSS')
1130 bld.SAMBA_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
1131 source=RPC_CLIENT_SCHANNEL_SRC,
1132 vars=locals())
1134 bld.SAMBA_SUBSYSTEM('INIT_LSA',
1135 source='rpc_client/init_lsa.c')
1137 bld.SAMBA_SUBSYSTEM('INIT_NETLOGON',
1138 source='rpc_client/init_netlogon.c')
1140 bld.SAMBA_SUBSYSTEM('INIT_SAMR',
1141 source='rpc_client/init_samr.c')
1143 ########################## BINARIES #################################
1145 bld.SAMBA_BINARY('smbd/smbd',
1146 source='${SMBD_SRC_MAIN}',
1147 deps='''SMBD_BASE''',
1148 install_path='${SBINDIR}',
1149 vars=locals())
1151 bld.SAMBA_BINARY('nmbd/nmbd',
1152 source=NMBD_SRC,
1153 deps='''talloc tdb tevent z cap resolv wbclient dl
1154 PASSDB PARAM ldap LIB_NONSMBD LIBSMB
1155 POPT_SAMBA KRBCLIENT NDR_SAMR NDR_LSA''',
1156 install_path='${SBINDIR}',
1157 vars=locals())
1159 bld.SAMBA_BINARY('winbindd/winbindd',
1160 source=WINBINDD_SRC,
1161 deps='''talloc tdb tevent cap dl z
1162 wbclient PASSDB ldap resolv PARAM LIB_NONSMBD LIBSMB
1163 POPT_SAMBA KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBADS LIBADS_SERVER
1164 SRV_NDR_WBINT RPC_NDR_WBINT LIBAFS
1165 LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
1166 TOKEN_UTIL
1167 LIBCLI_SAMR LIBCLI_LSA LIBRPCCLI_NETLOGON
1168 RPC_NDR_DSSETUP NAMED_PIPE_AUTH_TSTREAM INIT_NETLOGON
1169 RPC_NCACN_NP RPC_PIPE_REGISTER RPC_SAMR RPC_LSARPC
1170 ''',
1171 enabled=bld.env.build_winbind,
1172 install_path='${SBINDIR}',
1173 vars=locals())
1175 bld.SAMBA_BINARY('web/swat',
1176 source=SWAT_SRC,
1177 deps='''talloc tevent cap LIBS LIBSMB wbclient PARAM
1178 LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT cups
1179 LIBMSRPC_GEN LIBMSRPC LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING FNAME_UTIL
1180 LIBCLI_SAMR INIT_LSA PASSCHANGE''',
1181 enabled=bld.env.build_swat,
1182 install_path='${SBINDIR}',
1183 vars=locals())
1185 bld.SAMBA_BINARY('rpcclient/rpcclient',
1186 source=RPCCLIENT_SRC,
1187 deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1188 PARAM_WITHOUT_REG wbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC
1189 LIBADS SMBREADLINE DCUTIL RPCCLI_WINREG RPCCLI_ECHO
1190 RPC_CLIENT_SCHANNEL
1191 LIBCLI_SAMR LIBCLI_LSA LIBRPCCLI_NETLOGON LIBCLI_SPOOLSS
1192 RPCCLI_SRVSVC RPC_NDR_WKSSVC RPC_NDR_DSSETUP RPC_NDR_DFS
1193 RPC_NDR_DRSUAPI RPC_NDR_NTSVCS RPC_NDR_EVENTLOG INIT_NETLOGON
1194 INIT_SAMR
1195 ''',
1196 vars=locals())
1198 bld.SAMBA_BINARY('client/smbclient',
1199 source=CLIENT_SRC,
1200 deps='''talloc tdb cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1201 PARAM_WITHOUT_REG wbclient PARAM KRBCLIENT LIBMSRPC_GEN
1202 LIBMSRPC SMBREADLINE smbclient RPCCLI_SRVSVC INIT_LSA''',
1203 vars=locals())
1205 bld.SAMBA_BINARY('net',
1206 source=NET_SRC,
1207 deps='''talloc tdb netapi addns cap resolv POPT_SAMBA PASSDB LIBSMB LIB_NONSMBD
1208 PARAM_WITHOUT_REG wbclient PARAM KRBCLIENT LIBMSRPC_GEN LIBMSRPC LIBGPO LIBADS LIBADS_SERVER LIBADS_PRINTER
1209 LOCALE_DIR LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
1210 LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
1211 REGFIO NDR_NTPRINTING RPCCLI_WINREG
1212 RPC_CLIENT_SCHANNEL TOKEN_UTIL
1213 LIBCLI_SAMR LIBCLI_LSA LIBRPCCLI_NETLOGON LIBCLI_SPOOLSS
1214 RPCCLI_SRVSVC RPC_NDR_WKSSVC RPCCLI_SVCCTL RPC_NDR_DSSETUP
1215 RPC_NDR_INITSHUTDOWN RPC_NDR_DRSUAPI INIT_NETLOGON INIT_SAMR
1216 ''',
1217 vars=locals())
1219 bld.SAMBA_BINARY('profiles',
1220 source=PROFILES_SRC,
1221 deps='''talloc tdb cap tevent POPT_SAMBA PARAM LIBS LIBSMB_ERR LIB_NONSMBD REGFIO''',
1222 vars=locals())
1224 bld.SAMBA_BINARY('smbspool',
1225 source=CUPS_SRC,
1226 deps='''talloc tdb tevent resolv cap wbclient POPT_SAMBA PARAM LIBSMB LIB_NONSMBD LIBS
1227 KRBCLIENT ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1228 vars=locals())
1230 bld.SAMBA_BINARY('testparm',
1231 source=TESTPARM_SRC,
1232 deps='''talloc tevent ldap cap
1233 wbclient ASN1_UTIL LIBTSOCKET PASSDB PARAM LIB_NONSMBD
1234 LIBSMB_ERR POPT_SAMBA''',
1235 vars=locals())
1237 bld.SAMBA_BINARY('smbta-util',
1238 source=SMBTA_UTIL_SRC,
1239 deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1240 LIBSMB_ERR''',
1241 vars=locals())
1243 bld.SAMBA_BINARY('smbstatus',
1244 source=STATUS_SRC,
1245 deps='''talloc tdb tevent cap PARAM POPT_SAMBA LIB_NONSMBD
1246 LIBSMB_ERR LOCKING PROFILE FNAME_UTIL''',
1247 vars=locals())
1249 bld.SAMBA_BINARY('smbcontrol',
1250 source=SMBCONTROL_SRC,
1251 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA PRINTBASE''',
1252 vars=locals())
1254 bld.SAMBA_BINARY('smbtree',
1255 source=SMBTREE_SRC,
1256 deps='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD
1257 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PROFILE
1258 RPCCLI_SRVSVC''',
1259 vars=locals())
1261 bld.SAMBA_BINARY('smbpasswd',
1262 source=SMBPASSWD_SRC,
1263 deps='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD
1264 LIBSMB LIBSMB_ERR POPT_SAMBA KRBCLIENT PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC PASSWD_UTIL
1265 LIBCLI_SAMR INIT_LSA PASSCHANGE''',
1266 vars=locals())
1268 bld.SAMBA_BINARY('pdbedit',
1269 source=PDBEDIT_SRC,
1270 deps='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD
1271 LIBSAMBA LIBSMB_ERR POPT_SAMBA PASSDB SMBLDAP GROUPDB
1272 PASSWD_UTIL LIBCLI_LDAP_NDR''',
1273 vars=locals())
1275 bld.SAMBA_BINARY('smbget',
1276 source=SMBGET_SRC,
1277 deps='''talloc tdb smbclient POPT_SAMBA''',
1278 vars=locals())
1280 bld.SAMBA_BINARY('nmblookup',
1281 source=NMBLOOKUP_SRC,
1282 deps='''talloc tdb tevent cap resolv PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR LIBNMB''',
1283 vars=locals())
1285 bld.SAMBA_BINARY('smbtorture',
1286 source=SMBTORTURE_SRC,
1287 deps='''talloc tdb tevent cap resolv wbclient PARAM LIBSMB KRBCLIENT TLDAP
1288 LIB_NONSMBD POPT_SAMBA ASN1_UTIL LIBTSOCKET NDR_LSA LIBMSRPC LIBMSRPC_GEN RPCCLI_ECHO''',
1289 vars=locals())
1291 bld.SAMBA_BINARY('smbconftort',
1292 source=SMBCONFTORT_SRC,
1293 deps='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1294 vars=locals())
1296 bld.SAMBA_BINARY('masktest',
1297 source=MASKTEST_SRC,
1298 deps='''talloc tdb cap resolv wbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1299 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA''',
1300 vars=locals())
1302 bld.SAMBA_BINARY('msgtest',
1303 source=MSGTEST_SRC,
1304 deps='''talloc tdb tevent cap resolv PARAM LIBSMB_ERR LIB_NONSMBD''',
1305 vars=locals())
1307 bld.SAMBA_BINARY('smbcacls',
1308 source=SMBCACLS_SRC,
1309 deps='''talloc tdb cap resolv wbclient PARAM LIBSMB KRBCLIENT
1310 LIB_NONSMBD PASSDB GROUPDB POPT_SAMBA SMBLDAP LIBMSRPC_GEN
1311 LIBMSRPC LIBCLI_LSA''',
1312 vars=locals())
1314 bld.SAMBA_BINARY('smbcquotas',
1315 source=SMBCQUOTAS_SRC,
1316 deps='''talloc tdb cap resolv wbclient PARAM LIB_NONSMBD LIBSMB KRBCLIENT
1317 POPT_SAMBA PASSDB SMBLDAP GROUPDB LIBMSRPC_GEN LIBMSRPC
1318 LIBCLI_LSA''',
1319 vars=locals())
1321 bld.SAMBA_BINARY('eventlogadm',
1322 source=EVTLOGADM_SRC,
1323 deps='''talloc tevent cap POPT_SAMBA LIBS PARAM
1324 LIB_NONSMBD LIBSMB_ERR PASSDB wbclient LIBEVENTLOG REG_EVENTLOG''',
1325 vars=locals())
1327 bld.SAMBA_BINARY('sharesec',
1328 source=SHARESEC_SRC,
1329 deps='''talloc tdb tevent cap resolv wbclient PARAM LIB_NONSMBD LIBSMB_ERR POPT_SAMBA''',
1330 vars=locals())
1332 bld.SAMBA_BINARY('locktest',
1333 source=LOCKTEST_SRC,
1334 deps='''talloc tdb tevent cap resolv wbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1335 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING FNAME_UTIL''',
1336 vars=locals())
1338 bld.SAMBA_BINARY('nsstest',
1339 source=NSSTEST_SRC,
1340 deps='dl',
1341 vars=locals())
1343 bld.SAMBA_BINARY('pdbtest',
1344 source=PDBTEST_SRC,
1345 deps='''talloc tdb cap resolv wbclient PARAM LIBSMB KRBCLIENT LIB_NONSMBD PASSDB GROUPDB
1346 SMBLDAP POPT_SAMBA NDR_SAMR NDR_LSA''',
1347 vars=locals())
1349 bld.SAMBA_BINARY('vfstest',
1350 source=VFSTEST_SRC,
1351 deps='''SMBD_BASE SMBREADLINE''',
1352 vars=locals())
1354 bld.SAMBA_BINARY('smbiconv',
1355 source=SMBICONV_SRC,
1356 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD POPT_SAMBA LIBSMB_ERR''',
1357 vars=locals())
1359 bld.SAMBA_BINARY('log2pcap',
1360 source=LOG2PCAP_SRC,
1361 deps='''talloc popt''',
1362 vars=locals())
1364 bld.SAMBA_BINARY('locktest2',
1365 source=LOCKTEST2_SRC,
1366 deps='''talloc tdb tevent cap resolv wbclient PARAM KRBCLIENT LIBSMB LIB_NONSMBD
1367 ASN1_UTIL LIBTSOCKET NDR_SAMR NDR_LSA LOCKING FNAME_UTIL''',
1368 vars=locals())
1370 bld.SAMBA_BINARY('debug2html',
1371 source=DEBUG2HTML_SRC,
1372 deps='''talloc popt''',
1373 vars=locals())
1375 bld.SAMBA_BINARY('smbfilter',
1376 source=SMBFILTER_SRC,
1377 deps='''talloc tevent cap resolv wbclient PARAM LIBSMB LIB_NONSMBD KRBCLIENT ASN1_UTIL LIBTSOCKET
1378 NDR_SAMR NDR_LSA''',
1379 vars=locals())
1381 bld.SAMBA_BINARY('versiontest',
1382 source='lib/version_test.c',
1383 deps='SAMBA_VERSION',
1384 vars=locals())
1386 bld.SAMBA_BINARY('wbinfo',
1387 source=WBINFO_SRC,
1388 deps='''talloc wbclient tevent cap
1389 ASN1_UTIL LIBTSOCKET PASSDB ldap PARAM LIB_NONSMBD
1390 LIBSAMBA POPT_SAMBA LIBAFS_SETTOKEN''',
1391 vars=locals())
1393 bld.SAMBA_BINARY('ntlm_auth',
1394 source=NTLM_AUTH_SRC,
1395 deps='''tdb talloc cap resolv krb5 k5crypto com_err wbclient PARAM LIB_NONSMBD
1396 LIBS LIBSAMBA POPT_SAMBA ASN1_UTIL LIBTSOCKET
1397 PASSDB GROUPDB SMBLDAP winbind-client LIBINIPARSER LIBADS_SERVER
1398 NDR_SAMR NDR_LSA NDR_NETLOGON LIBCLI_LDAP_NDR LIBNMB SLCACHE SPNEGO_PARSE''',
1399 vars=locals())
1401 bld.SAMBA_BINARY('timelimit',
1402 source='script/tests/timelimit.c',
1403 vars=locals())
1405 bld.SAMBA_BINARY('rpc_open_tcp',
1406 source=RPC_OPEN_TCP_SRC,
1407 deps='''talloc tdb tevent resolv cap wbclient KRBCLIENT PARAM LIBS LIBSMB LIB_NONSMBD
1408 LIBSMB_ERR ASN1_UTIL LIBTSOCKET LIBMSRPC_GEN LIBMSRPC''',
1409 vars=locals())
1411 bld.SAMBA_BINARY('test_lp_load',
1412 source=TEST_LP_LOAD_SRC,
1413 deps='''talloc tdb tevent cap wbclient PARAM LIB_NONSMBD POPT_SAMBA LIBSAMBA''',
1414 vars=locals())
1416 bld.SAMBA_BINARY('dbwrap_tool',
1417 source=DBWRAP_TOOL_SRC,
1418 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR''',
1419 vars=locals())
1421 bld.SAMBA_BINARY('dbwrap_torture',
1422 source=DBWRAP_TORTURE_SRC,
1423 deps='''talloc tdb tevent cap PARAM LIB_NONSMBD LIBSMB_ERR
1424 POPT_SAMBA''',
1425 vars=locals())
1427 bld.SAMBA_BINARY('split_tokens',
1428 source=SPLIT_TOKENS_SRC,
1429 deps='''talloc tdb tevent cap wbclient PARAM LIB_NONSMBD POPT_SAMBA
1430 LIBSAMBA''',
1431 vars=locals())
1433 bld.SAMBA_BINARY('vlp',
1434 source=VLP_SRC,
1435 deps='''talloc tdb PARAM_UTIL UTIL_TDB''',
1436 vars=locals())
1438 swat_files=recursive_dirlist('../swat', '../swat', '*')
1439 bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
1441 ########################## INCLUDES #################################
1443 bld.RECURSE('../lib/addns')
1444 bld.RECURSE('../lib/async_req')
1445 bld.RECURSE('../libcli/auth')
1446 bld.RECURSE('../libcli/drsuapi')
1447 bld.RECURSE('../libcli/ldap')
1448 bld.RECURSE('../libcli/named_pipe_auth')
1449 bld.RECURSE('../libcli/netlogon')
1450 bld.RECURSE('../libcli/samsync')
1451 bld.RECURSE('../libcli/security')
1452 bld.RECURSE('../libcli/smb')
1453 bld.RECURSE('../libcli/smbreadline')
1454 bld.RECURSE('../lib/crypto')
1455 bld.RECURSE('../lib/iniparser/src')
1456 bld.RECURSE('../lib/nss_wrapper')
1457 bld.RECURSE('../lib/popt')
1458 bld.RECURSE('../librpc')
1459 bld.RECURSE('../lib/smbconf')
1460 bld.RECURSE('../lib/socket_wrapper')
1461 bld.RECURSE('../lib/talloc')
1462 bld.RECURSE('../lib/tdb')
1463 bld.RECURSE('../lib/tevent')
1464 bld.RECURSE('../lib/tsocket')
1465 bld.RECURSE('../lib/zlib')
1466 bld.RECURSE('../nsswitch/libwbclient')
1467 bld.RECURSE('auth')
1468 bld.RECURSE('libgpo/gpext')
1469 bld.RECURSE('librpc')
1470 bld.RECURSE('librpc/idl')
1471 bld.RECURSE('modules')
1472 bld.RECURSE('pam_smbpass')
1473 bld.RECURSE('passdb')
1474 bld.RECURSE('rpc_server')
1475 bld.RECURSE('winbindd')
1477 bld.ENFORCE_GROUP_ORDERING()
1478 bld.CHECK_PROJECT_RULES()