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