2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2010-03-24 03:28:03 +03:00
from samba_utils import *
2011-02-09 07:56:20 +03:00
import samba_version, samba3
2010-03-24 03:28:03 +03:00
2011-03-08 05:01:21 +03:00
# enable building of public headers in the build tree
bld.env.build_public_headers = 'include/public'
# these are includes which appear in public headers, but with #ifdef conditional
# compilation, so they are safe
bld.env.public_headers_skip = ['lib/ldb_compat.h']
2011-03-08 08:44:17 +03:00
# s3 public headers refer to non-public headers
bld.env.public_headers_allow_broken = True
2011-01-04 14:56:29 +03:00
TDB_LIB_SRC = '''
2010-04-18 11:30:59 +04:00
lib/dbwrap.c lib/dbwrap_tdb.c
lib/dbwrap_ctdb.c
lib/g_lock.c
lib/dbwrap_rbt.c'''
2010-03-24 03:28:03 +03:00
TDB_VALIDATE_SRC = '''lib/tdb_validate.c'''
2011-02-11 14:07:39 +03:00
SMBLDAP_SRC = '''lib/smbldap.c lib/smbldap_util.c'''
2010-03-24 03:28:03 +03:00
VERSION_SRC = '''lib/version.c'''
AFS_SRC = 'lib/afs.c'
AFS_SETTOKEN_SRC = 'lib/afs_settoken.c'
2010-05-28 17:56:32 +04:00
AVAHI_SRC = 'lib/avahi.c smbd/avahi_register.c'
2010-03-24 03:28:03 +03:00
SERVER_MUTEX_SRC = 'lib/server_mutex.c'
PASSCHANGE_SRC = '''libsmb/passchange.c'''
2010-10-27 18:31:05 +04:00
COMPRESSION_SRC = '../lib/compression/mszip.c'
2010-03-24 03:28:03 +03:00
2010-11-30 21:05:36 +03:00
DRSUAPI_SRC = '''${COMPRESSION_SRC}'''
2010-03-24 03:28:03 +03:00
2011-01-25 04:01:56 +03:00
LIBNDR_SRC = '''librpc/ndr/util.c'''
2010-03-24 03:28:03 +03:00
2010-11-30 19:50:32 +03:00
LIBCLI_SPOOLSS_SRC = '''rpc_client/cli_spoolss.c
2010-08-12 19:19:24 +04:00
rpc_client/init_spoolss.c'''
2010-12-01 00:34:54 +03:00
LIBCLI_LSA_SRC = '''rpc_client/cli_lsarpc.c'''
2010-08-12 21:06:57 +04:00
2010-11-30 18:43:34 +03:00
LIBCLI_SAMR_SRC = 'rpc_client/cli_samr.c'
2010-08-13 14:27:20 +04:00
2011-01-11 17:08:41 +03:00
LIBRPCCLI_NETLOGON_SRC = 'rpc_client/cli_netlogon.c rpc_client/util_netlogon.c'
2010-08-26 01:14:33 +04:00
2011-02-03 14:25:24 +03:00
LIBCLI_WINREG_SRC = '''rpc_client/cli_winreg.c
rpc_client/cli_winreg_int.c'''
2010-03-24 03:28:03 +03:00
# this includes only the low level parse code, not stuff
# that requires knowledge of security contexts
2010-07-16 04:07:51 +04:00
REG_PARSE_PRS_SRC = '''registry/reg_parse_prs.c'''
2010-03-24 03:28:03 +03:00
2011-02-23 19:00:39 +03:00
LIB_SRC = '''
2010-10-05 19:01:14 +04:00
lib/messages.c lib/messages_local.c
2010-04-18 11:30:59 +04:00
lib/messages_ctdbd.c lib/packet.c lib/ctdbd_conn.c
lib/interfaces.c lib/memcache.c
lib/talloc_dict.c
2010-07-05 19:38:16 +04:00
lib/util_sconn.c
2010-04-18 11:30:59 +04:00
lib/serverid.c
2010-12-14 15:14:00 +03:00
lib/util_transfer_file.c
2011-02-01 21:22:04 +03:00
lib/addrchange.c
2010-04-18 11:30:59 +04:00
${TDB_LIB_SRC}
2011-03-22 08:17:39 +03:00
../lib/util/debug_s3.c
lib/dumpcore.c
2010-04-18 11:30:59 +04:00
lib/interface.c lib/pidfile.c
lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c
lib/username.c
2010-10-20 19:16:23 +04:00
lib/access.c lib/smbrun.c
2011-02-24 05:01:27 +03:00
lib/bitmap.c lib/dprintf.c
2010-04-18 11:30:59 +04:00
lib/wins_srv.c
2011-03-22 07:30:43 +03:00
lib/util_sid.c
2010-12-14 18:47:35 +03:00
lib/util_file.c
2011-04-02 03:00:52 +04:00
lib/util.c lib/util_cmdline.c lib/util_names.c
2010-09-23 04:15:15 +04:00
lib/util_sock.c lib/sock_exec.c lib/util_sec.c
2010-04-18 11:30:59 +04:00
lib/substitute.c lib/dbwrap_util.c
2011-02-09 00:37:09 +03:00
lib/ms_fnmatch.c
2010-04-18 11:30:59 +04:00
lib/tallocmsg.c lib/dmallocmsg.c
libsmb/clisigning.c libsmb/smb_signing.c
2011-02-08 12:45:39 +03:00
intl/lang_tdb.c
2010-04-18 11:30:59 +04:00
lib/conn_tdb.c lib/adt_tree.c lib/gencache.c
lib/sessionid_tdb.c
2011-02-23 19:00:39 +03:00
lib/module.c lib/events.c
2010-06-15 13:43:30 +04:00
lib/server_contexts.c
2010-09-26 22:07:03 +04:00
lib/ldap_escape.c
2011-04-27 15:16:59 +04:00
lib/secdesc.c
2010-04-18 11:30:59 +04:00
lib/fncall.c
2010-09-23 18:58:33 +04:00
libads/krb5_errs.c lib/system_smbd.c lib/audit.c
2010-10-20 00:52:14 +04:00
lib/file_id.c lib/idmap_cache.c'''
2010-03-24 03:28:03 +03:00
LIB_DUMMY_SRC = '''lib/dummysmbd.c lib/dummyroot.c'''
2010-04-23 01:33:38 +04:00
LIB_NONSMBD_SRC = '''${LIB_DUMMY_SRC}'''
2010-03-24 03:28:03 +03:00
POPT_LIB_SRC = '''lib/popt_common.c'''
2010-11-30 18:25:37 +03:00
PARAM_UTIL_SRC = '''param/util.c'''
PARAM_WITHOUT_REG_SRC = '''param/loadparm.c param/loadparm_server_role.c
2010-06-01 17:37:40 +04:00
lib/sharesec.c lib/ldap_debug_handler.c'''
2010-03-24 03:28:03 +03:00
2011-02-17 02:49:11 +03:00
KRBCLIENT_SRC = '''libads/kerberos.c libads/ads_status.c libsmb/clikrb5.c'''
2010-03-24 03:28:03 +03:00
LIBGPO_SRC0 = '''../libgpo/gpo_ldap.c ../libgpo/gpo_ini.c ../libgpo/gpo_util.c
2010-04-18 11:30:59 +04:00
../libgpo/gpo_fetch.c libgpo/gpo_filesync.c ../libgpo/gpo_sec.c
2010-09-26 22:30:36 +04:00
libgpo/gpo_reg.c'''
2010-03-24 03:28:03 +03:00
LIBGPO_SRC = '''${LIBGPO_SRC0}'''
2010-08-12 19:04:12 +04:00
LIBADS_SRC = '''libads/ldap.c
2010-04-18 11:30:59 +04:00
libads/sasl.c libads/sasl_wrapping.c
2010-07-02 02:32:52 +04:00
libads/krb5_setpw.c
libads/kerberos_util.c
libads/ldap_user.c
2010-04-18 11:30:59 +04:00
libads/ads_struct.c libads/kerberos_keytab.c
2010-08-19 17:24:20 +04:00
libads/disp_sec.c libads/ldap_utils.c
2010-04-18 11:30:59 +04:00
libads/ldap_schema.c libads/util.c libads/ndr.c'''
2010-03-24 03:28:03 +03:00
2010-10-05 19:01:14 +04:00
LIBADS_SERVER_SRC = '''libads/kerberos_verify.c libads/authdata.c'''
2010-03-24 03:28:03 +03:00
2010-09-23 04:15:15 +04:00
LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
2010-10-05 19:01:14 +04:00
passdb/machine_sid.c'''
2010-09-23 04:15:15 +04:00
2010-03-24 03:28:03 +03:00
LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
2011-02-24 03:33:09 +03:00
libsmb/namequery.c libsmb/conncache.c
2010-04-18 11:30:59 +04:00
libads/dns.c libads/sitename_cache.c'''
2010-03-24 03:28:03 +03:00
2011-02-23 18:50:57 +03:00
LIBNTLMSSP_SRC = '''
2010-04-18 11:30:59 +04:00
libsmb/ntlmssp.c
2011-02-24 02:28:43 +03:00
libsmb/ntlmssp_wrap.c'''
2010-03-24 03:28:03 +03:00
TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c
2011-02-17 02:49:11 +03:00
libsmb/clispnego.c
2010-04-18 11:30:59 +04:00
libsmb/clirap.c libsmb/clierror.c libsmb/climessage.c
libsmb/clireadwrite.c libsmb/clilist.c libsmb/cliprint.c
libsmb/clitrans.c libsmb/clisecdesc.c libsmb/clidgram.c
libsmb/clistr.c libsmb/cliquota.c libsmb/clifsinfo.c libsmb/clidfs.c
libsmb/clioplock.c libsmb/clirap2.c
2010-12-22 16:50:58 +03:00
libsmb/smb_seal.c libsmb/async_smb.c
2011-01-03 18:53:00 +03:00
libsmb/cli_np_tstream.c
libsmb/smbsock_connect.c'''
2010-03-24 03:28:03 +03:00
2010-08-13 14:27:20 +04:00
LIBMSRPC_SRC = '''
2010-08-26 02:13:00 +04:00
rpc_client/cli_pipe.c
2010-09-23 22:05:56 +04:00
librpc/crypto/gse_krb5.c
librpc/crypto/gse.c
librpc/crypto/cli_spnego.c
2010-09-23 04:15:15 +04:00
librpc/rpc/rpc_common.c
2010-08-26 02:13:00 +04:00
rpc_client/rpc_transport_np.c
rpc_client/rpc_transport_sock.c
2010-09-15 16:31:39 +04:00
rpc_client/rpc_transport_tstream.c
2010-08-26 02:13:00 +04:00
librpc/rpc/dcerpc_helpers.c
2011-02-24 03:55:45 +03:00
'''
2010-03-24 03:28:03 +03:00
#
# registry-related objects
#
REG_INIT_BASIC_SRC = '''registry/reg_init_basic.c'''
REG_INIT_SMBCONF_SRC = '''registry/reg_init_smbconf.c'''
REG_INIT_FULL_SRC = '''registry/reg_init_full.c'''
2010-09-15 10:22:37 +04:00
REGFIO_SRC = '''registry/regfio.c ${REG_PARSE_PRS_SRC}'''
2010-03-24 03:28:03 +03:00
2010-09-20 05:10:43 +04:00
REG_API_REGF_SRC = '''registry/reg_api_regf.c'''
2010-03-24 03:28:03 +03:00
REGSRCS_SRC = '''registry/reg_objects.c'''
REG_BACKENDS_BASE_SRC = '''registry/reg_backend_db.c'''
REG_BACKENDS_SMBCONF_SRC = '''registry/reg_backend_smbconf.c'''
REG_BACKENDS_EXTRA_SRC = '''registry/reg_backend_printing.c
2010-04-18 11:30:59 +04:00
registry/reg_backend_shares.c
registry/reg_backend_netlogon_params.c
registry/reg_backend_prod_options.c
registry/reg_backend_tcpip_params.c
registry/reg_backend_hkpt_params.c
registry/reg_backend_current_version.c
registry/reg_backend_perflib.c'''
2010-03-24 03:28:03 +03:00
REG_BASE_SRC = '''registry/reg_api.c
2010-04-18 11:30:59 +04:00
registry/reg_dispatcher.c
registry/reg_cachehook.c
${REGSRCS_SRC}
2010-05-25 19:28:05 +04:00
registry/reg_util_internal.c
2010-04-18 11:30:59 +04:00
lib/util_nttoken.c
${REG_BACKENDS_BASE_SRC}
${REG_INIT_BASIC_SRC}'''
2010-03-24 03:28:03 +03:00
2010-10-20 04:17:41 +04:00
REG_SMBCONF_SRC = '''
2010-04-18 11:30:59 +04:00
${REG_BACKENDS_SMBCONF_SRC}
2010-05-25 19:28:05 +04:00
${REG_INIT_SMBCONF_SRC}
2010-09-21 00:40:55 +04:00
registry/reg_util_token.c
registry/reg_api_util.c'''
2010-03-24 03:28:03 +03:00
2010-10-20 04:17:41 +04:00
REG_FULL_SRC = '''
2010-04-18 11:30:59 +04:00
${REG_BACKENDS_EXTRA_SRC}
${REG_INIT_FULL_SRC}
2010-09-27 10:10:58 +04:00
registry/reg_perfcount.c'''
2010-03-24 03:28:03 +03:00
2010-09-27 05:47:15 +04:00
SERVICES_SRC = '''services/svc_spoolss.c
services/svc_rcinit.c
2011-02-03 14:25:24 +03:00
services/svc_winreg_glue.c
2010-09-27 05:47:15 +04:00
services/svc_netlogon.c
services/svc_winreg.c
services/svc_wins.c'''
2010-03-24 03:28:03 +03:00
LIB_EVENTLOG_SRC = '''lib/eventlog/eventlog.c'''
2010-08-17 02:46:25 +04:00
RPC_CLIENT_SCHANNEL_SRC = '''rpc_client/cli_pipe_schannel.c'''
2010-03-24 03:28:03 +03:00
LOCKING_SRC = '''locking/locking.c locking/brlock.c locking/posix.c'''
PRIVILEGES_SRC = '''lib/privileges.c'''
PASSDB_GET_SET_SRC = '''passdb/pdb_get_set.c'''
2010-10-12 02:26:03 +04:00
PASSDB_SRC = '''${PASSDB_GET_SET_SRC} passdb/passdb.c
2011-03-23 16:57:08 +03:00
lib/util_wellknown.c lib/util_builtin.c passdb/pdb_compat.c
2011-03-23 01:23:17 +03:00
lib/util_unixsids.c passdb/lookup_sid.c
2010-09-26 21:51:40 +04:00
passdb/login_cache.c
2010-05-12 14:32:30 +04:00
passdb/account_pol.c ${PRIVILEGES_SRC}
2011-03-24 15:16:20 +03:00
lib/util_nscd.c lib/winbind_util.c ${SERVER_MUTEX_SRC}
passdb/pdb_util.c'''
2010-04-12 01:01:29 +04:00
#FIXME: lib/winbind_util.c probably is not part of PASSDB_SRC
2010-03-24 03:28:03 +03:00
GROUPDB_SRC = '''groupdb/mapping.c groupdb/mapping_tdb.c'''
PROFILE_SRC = '''profile/profile.c'''
2010-09-27 05:31:19 +04:00
PROFILES_SRC = '''utils/profiles.c'''
2010-03-24 03:28:03 +03:00
OPLOCK_SRC = '''smbd/oplock.c smbd/oplock_irix.c smbd/oplock_linux.c
2010-04-18 11:30:59 +04:00
smbd/oplock_onefs.c'''
2010-03-24 03:28:03 +03:00
2010-11-30 20:01:13 +03:00
NOTIFY_SRC = '''smbd/notify.c smbd/notify_inotify.c smbd/notify_internal.c'''
2010-03-24 03:28:03 +03:00
2011-03-22 23:45:44 +03:00
FNAME_UTIL_SRC = '''lib/filename_util.c'''
2010-03-24 03:28:03 +03:00
PLAINTEXT_AUTH_SRC = '''auth/pampass.c auth/pass_check.c'''
SLCACHE_SRC = '''libsmb/samlogon_cache.c'''
DCUTIL_SRC = '''libsmb/namequery_dc.c libsmb/trustdom_cache.c libsmb/trusts_util.c libsmb/dsgetdcname.c'''
2010-04-18 11:30:59 +04:00
WINBINDD_SRC1 = '''winbindd/winbindd.c
winbindd/winbindd_group.c
winbindd/winbindd_util.c
winbindd/winbindd_cache.c
winbindd/winbindd_pam.c
winbindd/winbindd_misc.c
winbindd/winbindd_cm.c
winbindd/winbindd_wins.c
2010-06-16 19:43:57 +04:00
winbindd/winbindd_msrpc.c
2010-06-16 23:15:54 +04:00
winbindd/winbindd_rpc.c
2010-04-18 11:30:59 +04:00
winbindd/winbindd_reconnect.c
winbindd/winbindd_ads.c
2010-06-07 12:18:01 +04:00
winbindd/winbindd_samr.c
2010-04-18 11:30:59 +04:00
winbindd/winbindd_dual.c
winbindd/winbindd_dual_ndr.c
winbindd/winbindd_dual_srv.c
winbindd/winbindd_async.c
winbindd/winbindd_creds.c
winbindd/winbindd_cred_cache.c
winbindd/winbindd_ccache_access.c
winbindd/winbindd_domain.c
winbindd/winbindd_idmap.c
winbindd/winbindd_locator.c
winbindd/winbindd_ndr.c
winbindd/wb_ping.c
winbindd/wb_lookupsid.c
2011-04-14 01:49:49 +04:00
winbindd/wb_lookupsids.c
2010-04-18 11:30:59 +04:00
winbindd/wb_lookupname.c
winbindd/wb_sid2uid.c
winbindd/wb_sid2gid.c
winbindd/wb_uid2sid.c
winbindd/wb_gid2sid.c
winbindd/wb_queryuser.c
winbindd/wb_lookupuseraliases.c
winbindd/wb_lookupusergroups.c
winbindd/wb_getpwsid.c
winbindd/wb_gettoken.c
winbindd/wb_seqnum.c
winbindd/wb_seqnums.c
winbindd/wb_group_members.c
winbindd/wb_getgrsid.c
winbindd/wb_query_user_list.c
winbindd/wb_fill_pwent.c
winbindd/wb_next_pwent.c
winbindd/wb_next_grent.c
winbindd/wb_dsgetdcname.c
winbindd/winbindd_lookupsid.c
2011-04-14 01:49:49 +04:00
winbindd/winbindd_lookupsids.c
2010-04-18 11:30:59 +04:00
winbindd/winbindd_lookupname.c
winbindd/winbindd_sid_to_uid.c
winbindd/winbindd_sid_to_gid.c
winbindd/winbindd_uid_to_sid.c
winbindd/winbindd_gid_to_sid.c
2011-04-14 01:49:49 +04:00
winbindd/winbindd_sids_to_xids.c
2010-04-18 11:30:59 +04:00
winbindd/winbindd_allocate_uid.c
winbindd/winbindd_allocate_gid.c
winbindd/winbindd_getpwsid.c
winbindd/winbindd_getpwnam.c
winbindd/winbindd_getpwuid.c
winbindd/winbindd_getsidaliases.c
winbindd/winbindd_getuserdomgroups.c
winbindd/winbindd_getgroups.c
winbindd/winbindd_show_sequence.c
winbindd/winbindd_getgrgid.c
winbindd/winbindd_getgrnam.c
winbindd/winbindd_getusersids.c
winbindd/winbindd_lookuprids.c
winbindd/winbindd_setpwent.c
winbindd/winbindd_getpwent.c
winbindd/winbindd_endpwent.c
winbindd/winbindd_setgrent.c
winbindd/winbindd_getgrent.c
winbindd/winbindd_endgrent.c
winbindd/winbindd_dsgetdcname.c
winbindd/winbindd_getdcname.c
winbindd/winbindd_list_users.c
winbindd/winbindd_list_groups.c
winbindd/winbindd_check_machine_acct.c
winbindd/winbindd_change_machine_acct.c
winbindd/winbindd_ping_dc.c
2010-04-21 13:08:37 +04:00
winbindd/winbindd_pam_auth.c
winbindd/winbindd_pam_logoff.c
winbindd/winbindd_pam_chauthtok.c
winbindd/winbindd_pam_auth_crap.c
2011-02-23 02:31:35 +03:00
winbindd/winbindd_pam_chng_pswd_auth_crap.c'''
2010-04-18 11:30:59 +04:00
WINBINDD_SRC = '''${WINBINDD_SRC1}
2010-12-20 16:29:34 +03:00
${TDB_VALIDATE_SRC}'''
2010-03-24 03:28:03 +03:00
MANGLE_SRC = '''smbd/mangle.c smbd/mangle_hash.c smbd/mangle_hash2.c'''
2011-02-28 17:36:11 +03:00
SMBD_SRC_MAIN = '''smbd/server.c smbd/server_exit.c smbd/msg_idmap.c'''
2010-03-24 03:28:03 +03:00
BUILDOPT_SRC = '''smbd/build_options.c'''
2010-05-31 01:27:08 +04:00
SMBD_SRC_SRV = '''smbd/server_reload.c smbd/files.c smbd/connection.c
2010-06-08 12:56:41 +04:00
smbd/utmp.c smbd/session.c
2010-03-24 03:28:03 +03:00
smbd/dfree.c smbd/dir.c smbd/password.c smbd/conn.c
2010-04-18 11:30:59 +04:00
smbd/share_access.c smbd/fileio.c
2010-03-24 03:28:03 +03:00
smbd/ipc.c smbd/lanman.c smbd/negprot.c
smbd/message.c smbd/nttrans.c smbd/pipes.c
smbd/reply.c smbd/sesssetup.c smbd/trans2.c smbd/uid.c
2010-04-18 11:30:59 +04:00
smbd/dosmode.c smbd/filename.c smbd/open.c smbd/close.c
smbd/blocking.c smbd/sec_ctx.c smbd/srvstr.c
smbd/vfs.c smbd/perfcount.c smbd/statcache.c smbd/seal.c
2010-03-24 03:28:03 +03:00
smbd/posix_acls.c lib/sysacls.c
2010-04-18 11:30:59 +04:00
smbd/process.c smbd/service.c smbd/error.c
2011-03-28 18:42:21 +04:00
printing/printspoolss.c printing/spoolssd.c
2010-04-29 02:55:20 +04:00
lib/sysquotas.c lib/sysquotas_linux.c
2010-04-18 11:30:59 +04:00
lib/sysquotas_xfs.c lib/sysquotas_4A.c
2010-09-23 04:15:15 +04:00
lib/sysquotas_nfs.c
2010-07-02 01:15:13 +04:00
smbd/fake_file.c
2010-09-24 23:13:27 +04:00
smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c
smbd/aio.c smbd/statvfs.c
2010-04-18 11:30:59 +04:00
smbd/dmapi.c smbd/signing.c
smbd/file_access.c
smbd/dnsregister.c smbd/globals.c
smbd/smb2_server.c
smbd/smb2_signing.c
smbd/smb2_glue.c
smbd/smb2_negprot.c
smbd/smb2_sesssetup.c
smbd/smb2_tcon.c
smbd/smb2_create.c
smbd/smb2_close.c
smbd/smb2_flush.c
smbd/smb2_read.c
smbd/smb2_write.c
smbd/smb2_lock.c
smbd/smb2_ioctl.c
smbd/smb2_keepalive.c
smbd/smb2_find.c
smbd/smb2_notify.c
smbd/smb2_getinfo.c
smbd/smb2_setinfo.c
smbd/smb2_break.c
2010-09-24 03:29:06 +04:00
${MANGLE_SRC}'''
2010-03-24 03:28:03 +03:00
2010-04-23 01:33:38 +04:00
SMBD_SRC_BASE = '''${SMBD_SRC_SRV}
2010-11-30 16:29:31 +03:00
${OPLOCK_SRC} ${NOTIFY_SRC}
2010-12-01 00:41:41 +03:00
${BUILDOPT_SRC}'''
2010-03-24 03:28:03 +03:00
PRINTING_SRC = '''printing/pcap.c printing/print_svid.c printing/print_aix.c
printing/print_cups.c printing/print_generic.c
2010-05-20 12:24:37 +04:00
printing/lpq_parse.c printing/load.c printing/print_standard.c
2010-09-15 16:31:39 +04:00
printing/print_iprint.c printing/printer_list.c'''
2010-03-24 03:28:03 +03:00
PRINTBASE_SRC = '''printing/notify.c printing/printing_db.c'''
2010-08-04 17:31:08 +04:00
PRINTBACKEND_SRC = '''printing/printing.c
printing/nt_printing.c
printing/nt_printing_tdb.c
printing/nt_printing_migrate.c
2010-09-27 05:39:41 +04:00
printing/nt_printing_ads.c'''
2010-03-24 03:28:03 +03:00
SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
2010-04-12 00:05:50 +04:00
NMBD_SRC1 = '''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c'''
2010-09-24 23:27:57 +04:00
NMBD_SRC = '${NMBD_SRC1}'
2010-04-12 00:05:50 +04:00
2010-04-30 16:18:20 +04:00
SWAT_SRC1 = '''web/cgi.c web/diagnose.c web/startstop.c web/statuspage.c
web/swat.c web/neg_lang.c'''
2011-01-04 15:05:51 +03:00
SWAT_SRC = '''${SWAT_SRC1}'''
2010-04-30 16:18:20 +04:00
2010-11-30 16:29:31 +03:00
STATUS_SRC = '''utils/status.c utils/status_profile.c'''
2010-09-23 04:15:15 +04:00
2010-09-27 05:39:41 +04:00
SMBCONTROL_SRC = '''utils/smbcontrol.c'''
2010-09-23 04:15:15 +04:00
2010-11-30 19:15:43 +03:00
SMBTREE_SRC = '''utils/smbtree.c'''
2010-04-18 11:30:59 +04:00
2010-04-30 16:33:49 +04:00
TESTPARM_SRC = 'utils/testparm.c'
2010-04-12 01:01:29 +04:00
2010-11-30 16:29:31 +03:00
SMBTA_UTIL_SRC = '''utils/smbta-util.c'''
2010-04-30 21:45:06 +04:00
2010-09-23 11:13:34 +04:00
TEST_LP_LOAD_SRC = '''param/test_lp_load.c'''
2010-04-30 21:45:06 +04:00
2010-09-23 04:15:15 +04:00
PASSWD_UTIL_SRC = 'utils/passwd_util.c'
2010-05-26 16:09:39 +04:00
2011-01-04 15:05:51 +03:00
SMBPASSWD_SRC = '''utils/smbpasswd.c'''
2010-05-26 16:09:39 +04:00
2010-09-26 23:58:58 +04:00
PDBEDIT_SRC = '''utils/pdbedit.c'''
2010-09-23 04:15:15 +04:00
2010-09-23 11:13:34 +04:00
SMBGET_SRC = '''utils/smbget.c'''
2010-09-23 04:15:15 +04:00
2010-08-12 17:42:16 +04:00
RPCCLIENT_SRC1 = '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
rpcclient/cmd_samr.c rpcclient/cmd_spoolss.c
rpcclient/cmd_netlogon.c rpcclient/cmd_srvsvc.c
rpcclient/cmd_dfs.c rpcclient/cmd_epmapper.c
rpcclient/cmd_dssetup.c rpcclient/cmd_echo.c
rpcclient/cmd_shutdown.c rpcclient/cmd_test.c
rpcclient/cmd_wkssvc.c rpcclient/cmd_ntsvcs.c
rpcclient/cmd_drsuapi.c rpcclient/cmd_eventlog.c
2010-09-25 09:14:22 +04:00
rpcclient/cmd_winreg.c'''
2010-08-12 17:42:16 +04:00
2010-12-01 00:41:41 +03:00
RPCCLIENT_SRC = '''${RPCCLIENT_SRC1}'''
2010-05-26 16:09:39 +04:00
2010-09-23 04:15:15 +04:00
LIBSMBCLIENT_THREAD_SRC = '''libsmb/libsmb_thread_impl.c
libsmb/libsmb_thread_posix.c'''
LIBSMBCLIENT_SRC0 = '''libsmb/libsmb_cache.c
libsmb/libsmb_compat.c
libsmb/libsmb_context.c
libsmb/libsmb_dir.c
libsmb/libsmb_file.c
libsmb/libsmb_misc.c
libsmb/libsmb_path.c
libsmb/libsmb_printjob.c
libsmb/libsmb_server.c
libsmb/libsmb_stat.c
libsmb/libsmb_xattr.c
libsmb/libsmb_setget.c'''
2010-11-30 19:15:43 +03:00
LIBSMBCLIENT_SRC1 = '''${LIBSMBCLIENT_SRC0}'''
2010-09-23 04:15:15 +04:00
LIBSMBCLIENT_SRC = '${LIBSMBCLIENT_SRC1}'
2010-09-23 11:27:34 +04:00
LIBSMBSHAREMODES_SRC0 = 'libsmb/smb_share_modes.c'
LIBSMBSHAREMODES_SRC = '${LIBSMBSHAREMODES_SRC0}'
2010-09-23 11:48:16 +04:00
LIBNETAPI_SRC0 = '''lib/netapi/netapi.c
lib/netapi/cm.c
lib/netapi/libnetapi.c
lib/netapi/joindomain.c
lib/netapi/serverinfo.c
lib/netapi/getdc.c
lib/netapi/user.c
lib/netapi/group.c
lib/netapi/localgroup.c
lib/netapi/samr.c
lib/netapi/sid.c
lib/netapi/share.c
lib/netapi/file.c
lib/netapi/shutdown.c
lib/netapi/netlogon.c'''
2010-12-01 00:41:41 +03:00
LIBNETAPI_SRC = '''${LIBNETAPI_SRC0}'''
2010-09-23 04:15:15 +04:00
# FIXME: bigballofmud
CLIENT_SRC1 = '''client/client.c client/clitar.c
2010-09-23 22:14:00 +04:00
client/dnsbrowse.c'''
2010-09-23 04:15:15 +04:00
2010-12-01 00:34:54 +03:00
CLIENT_SRC = '''${CLIENT_SRC1}'''
2010-09-23 04:15:15 +04:00
2011-01-07 13:41:15 +03:00
LIB_SMBCONF_SRC = 'lib/smbconf/smbconf_init.c lib/smbconf/smbconf_reg.c'
2010-09-23 04:15:15 +04:00
SMBCONFTORT_SRC0 = 'lib/smbconf/testsuite.c'
2010-09-23 11:13:34 +04:00
SMBCONFTORT_SRC = '''${SMBCONFTORT_SRC0}'''
2010-09-23 04:15:15 +04:00
2010-09-25 03:45:41 +04:00
LIBNET_SRC = 'libnet/libnet_join.c libnet/libnet_keytab.c'
2010-09-23 04:15:15 +04:00
2010-09-20 00:35:26 +04:00
LIBNET_DSSYNC_SRC = '''libnet/libnet_dssync.c
2011-02-02 19:01:08 +03:00
libnet/libnet_dssync_passdb.c
2010-12-14 19:33:49 +03:00
libnet/libnet_dssync_keytab.c'''
2010-09-20 00:35:26 +04:00
LIBNET_SAMSYNC_SRC = '''libnet/libnet_samsync.c
libnet/libnet_samsync_ldif.c
libnet/libnet_samsync_passdb.c
libnet/libnet_samsync_display.c
2010-12-14 19:45:33 +03:00
libnet/libnet_samsync_keytab.c'''
2010-09-20 00:35:26 +04:00
NET_SRC1 = '''utils/net.c utils/net_ads.c utils/net_help.c
utils/net_rap.c utils/net_rpc.c utils/net_rpc_samsync.c
utils/net_rpc_join.c utils/net_time.c utils/net_lookup.c
2011-01-28 12:55:58 +03:00
utils/net_cache.c utils/net_groupmap.c
utils/net_idmap.c utils/net_idmap_check.c
2010-09-20 00:35:26 +04:00
utils/net_status.c utils/net_rpc_printer.c utils/net_rpc_rights.c
utils/net_rpc_service.c utils/net_rpc_registry.c utils/net_usershare.c
utils/netlookup.c utils/net_sam.c utils/net_rpc_shell.c
utils/net_util.c utils/net_rpc_sh_acct.c utils/net_rpc_audit.c
2010-09-25 03:13:55 +04:00
utils/net_dns.c utils/net_ads_gpo.c
2010-09-20 00:35:26 +04:00
utils/net_conf.c utils/net_join.c utils/net_user.c
utils/net_group.c utils/net_file.c utils/net_registry.c
2010-11-30 18:16:22 +03:00
utils/net_dom.c utils/net_share.c
2010-09-20 00:35:26 +04:00
utils/net_g_lock.c
utils/net_serverid.c
utils/net_eventlog.c
utils/net_printing.c
2011-03-24 14:10:13 +03:00
utils/net_rpc_trust.c
2010-09-22 22:28:45 +04:00
registry/reg_parse.c registry/reg_format.c
registry/reg_parse_internal.c registry/reg_import.c
lib/cbuf.c lib/srprs.c'''
2010-09-20 00:35:26 +04:00
NET_SRC2 = 'utils/net_registry_util.c utils/net_help_common.c'
NET_SRC = '''${NET_SRC1}
2010-09-27 05:31:19 +04:00
${NET_SRC2}'''
2010-09-20 00:35:26 +04:00
2010-09-23 18:58:33 +04:00
CUPS_SRC = '''client/smbspool.c'''
2010-09-23 04:15:15 +04:00
2010-11-30 16:56:26 +03:00
NMBLOOKUP_SRC = '''utils/nmblookup.c'''
2010-09-23 04:15:15 +04:00
SMBTORTURE_SRC1 = '''torture/torture.c torture/nbio.c torture/scanner.c torture/utable.c
torture/denytest.c torture/mangle_test.c
torture/nbench.c
2010-10-12 02:46:53 +04:00
torture/test_async_echo.c
2011-02-01 21:22:04 +03:00
torture/test_addrchange.c
2011-01-03 18:53:00 +03:00
torture/test_posix_append.c
2011-04-03 16:36:53 +04:00
torture/test_case_insensitive.c
2011-01-03 18:53:00 +03:00
torture/test_smbsock_any_connect.c'''
2010-09-23 04:15:15 +04:00
2010-11-30 20:40:30 +03:00
SMBTORTURE_SRC = '''${SMBTORTURE_SRC1}
2011-02-17 02:43:05 +03:00
torture/wbc_async.c'''
2010-09-23 04:15:15 +04:00
2010-09-23 18:58:33 +04:00
MASKTEST_SRC = '''torture/masktest.c'''
2010-09-23 04:15:15 +04:00
2010-09-23 18:58:33 +04:00
MSGTEST_SRC = '''torture/msgtest.c'''
2010-09-23 04:15:15 +04:00
2010-11-30 16:29:31 +03:00
LOCKTEST_SRC = '''torture/locktest.c'''
2010-09-23 04:15:15 +04:00
2010-09-23 18:58:33 +04:00
PDBTEST_SRC = '''torture/pdbtest.c'''
2010-09-23 04:15:15 +04:00
2010-09-24 23:42:05 +04:00
VFSTEST_SRC = '''torture/cmd_vfs.c torture/vfstest.c'''
2010-09-23 04:15:15 +04:00
2010-09-23 11:13:34 +04:00
SMBICONV_SRC = '''torture/smbiconv.c'''
2010-09-23 04:15:15 +04:00
LOG2PCAP_SRC = '''utils/log2pcaphex.c'''
2010-11-30 16:29:31 +03:00
LOCKTEST2_SRC = '''torture/locktest2.c'''
2010-09-23 04:15:15 +04:00
2010-11-30 19:09:34 +03:00
SMBCACLS_SRC = '''utils/smbcacls.c'''
2010-09-23 04:15:15 +04:00
2010-11-30 19:09:34 +03:00
SMBCQUOTAS_SRC = '''utils/smbcquotas.c'''
2010-09-23 04:15:15 +04:00
EVTLOGADM_SRC0 = 'utils/eventlogadm.c'
2010-11-30 17:12:52 +03:00
EVTLOGADM_SRC = '''${EVTLOGADM_SRC0}'''
2010-09-23 04:15:15 +04:00
SHARESEC_SRC0 = 'utils/sharesec.c'
2010-09-23 11:13:34 +04:00
SHARESEC_SRC = '''${SHARESEC_SRC0}'''
2010-09-23 04:15:15 +04:00
DEBUG2HTML_SRC = '''utils/debug2html.c utils/debugparse.c'''
2010-09-23 18:58:33 +04:00
SMBFILTER_SRC = '''utils/smbfilter.c'''
2010-09-23 04:15:15 +04:00
2010-12-15 00:18:43 +03:00
WINBIND_WINS_NSS_SRC = '''../nsswitch/wins.c'''
2010-09-23 04:15:15 +04:00
2010-09-24 23:13:27 +04:00
WBINFO_SRC = '''../nsswitch/wbinfo.c'''
2010-09-23 04:15:15 +04:00
NTLM_AUTH_SRC1 = '''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c'''
2011-02-17 02:49:11 +03:00
NTLM_AUTH_SRC = '''${NTLM_AUTH_SRC1}'''
2010-09-23 04:15:15 +04:00
2011-01-04 14:56:29 +03:00
VLP_SRC = '''printing/tests/vlp.c'''
2010-09-23 04:15:15 +04:00
2010-09-23 22:14:00 +04:00
RPC_OPEN_TCP_SRC = 'torture/rpc_open_tcp.c'
2010-09-23 04:15:15 +04:00
DBWRAP_TOOL_SRC = 'utils/dbwrap_tool.c'
DBWRAP_TORTURE_SRC = 'utils/dbwrap_torture.c'
SPLIT_TOKENS_SRC = 'utils/split_tokens.c'
2010-03-25 15:58:35 +03:00
LIBS='ICONV'
2010-03-24 03:28:03 +03:00
2011-02-21 03:09:56 +03:00
if bld.env.toplevel_build:
config_h = "../include/config.h"
else:
config_h = "include/config.h"
2010-03-24 03:28:03 +03:00
bld.SAMBA_GENERATOR('build_options',
2011-02-21 03:09:56 +03:00
source= config_h + ' script/mkbuildoptions-waf.awk',
2010-03-24 03:28:03 +03:00
target='smbd/build_options.c',
rule='${AWK} -f ${SRC[1].abspath(env)} > ${TGT} < ${SRC[0].abspath(env)}')
2010-04-07 17:34:12 +04:00
t = bld.SAMBA_GENERATOR('build_env.h',
source='script/build_env.sh',
target='include/build_env.h',
rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
# todo: work out what is really wanted here
t.env.SRCDIR = bld.path.abspath()
t.env.BUILDDIR = bld.path.abspath()
2011-03-15 13:32:03 +03:00
if not bld.env.toplevel_build:
bld.SAMBA_GENERATOR('smbtorture4',
source='',
target='',
rule='cd ../; make -f Makefile-smbtorture4 bin/smbtorture4',
always=True)
2010-04-07 17:34:12 +04:00
2010-03-24 03:28:03 +03:00
bld.SETUP_BUILD_GROUPS()
2011-02-21 03:10:35 +03:00
if not bld.env.toplevel_build:
# when using a toplevel build, these are already supplied
samba_version.load_version(bld.env)
bld.SAMBA_MKVERSION('include/version.h')
bld.RECURSE('../lib/replace')
bld.RECURSE('build')
2011-02-21 03:12:22 +03:00
bld.env.suffix3 = ''
2010-12-08 06:58:12 +03:00
2010-03-24 03:28:03 +03:00
2010-04-18 11:30:59 +04:00
######################## SUBSYSTEMS #################################
2011-02-09 07:56:20 +03:00
bld.SAMBA3_LIBRARY('netapi',
2010-09-23 11:48:16 +04:00
source=LIBNETAPI_SRC,
2010-12-07 14:04:11 +03:00
public_deps='''talloc tdb cap wbclient LIB_NONSMBD LIBSMB KRBCLIENT
2011-04-13 09:26:30 +04:00
passdb SMBLDAP PARAM_WITHOUT_REG samba-util
2011-02-21 06:45:37 +03:00
LIBMSRPC_GEN msrpc3 ads LIBNET DCUTIL NDR_LIBNETAPI
2011-01-07 13:41:15 +03:00
RPC_CLIENT_SCHANNEL LIB_SMBCONF REG_SMBCONF TOKEN_UTIL
2011-02-09 07:56:20 +03:00
LIBCLI_SAMR LIBCLI_LSA3 LIBRPCCLI_NETLOGON
2011-01-12 15:25:42 +03:00
RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_INITSHUTDOWN
2010-12-01 00:41:41 +03:00
INIT_NETLOGON INIT_SAMR''',
2011-02-09 07:56:20 +03:00
public_headers='../source3/lib/netapi/netapi.h',
2011-01-28 20:31:41 +03:00
vnum='0',
2010-09-23 11:48:16 +04:00
vars=locals())
2010-05-11 12:30:25 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_LIBRARY('libsmb/smbclient',
2010-09-23 11:13:34 +04:00
source=LIBSMBCLIENT_SRC,
2011-02-23 18:19:48 +03:00
public_deps='''talloc tdb wbclient cap param LIB_NONSMBD LIBSMB KRBCLIENT passdb SMBLDAP
2011-02-21 06:45:37 +03:00
LIBMSRPC_GEN msrpc3 LIBCLI_LSA3 RPC_NDR_SRVSVC''',
2010-09-25 08:46:39 +04:00
public_headers='include/libsmbclient.h',
2011-01-28 20:31:41 +03:00
vnum='0',
2010-09-23 11:13:34 +04:00
vars=locals())
2010-09-23 01:22:09 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_LIBRARY('smbsharemodes',
2010-09-23 11:27:34 +04:00
source=LIBSMBSHAREMODES_SRC,
public_deps='''talloc tdb''',
2010-09-25 08:46:39 +04:00
public_headers='include/smb_share_modes.h',
2011-01-28 20:31:41 +03:00
vnum='0',
2010-09-23 11:27:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_LIBRARY('nss_wins',
2010-12-15 00:18:43 +03:00
source=WINBIND_WINS_NSS_SRC,
2011-02-21 06:45:37 +03:00
deps='''winbind-client param LIBSMB LIB_NONSMBD LIBTSOCKET KRBCLIENT
2010-12-15 00:18:43 +03:00
cap wbclient''',
realname='libnss_wins.so.2',
vnum='2')
2011-02-21 06:45:37 +03:00
bld.SAMBA3_SUBSYSTEM('msrpc3',
2010-09-23 22:14:00 +04:00
source='${LIBMSRPC_SRC}',
2011-02-17 08:19:45 +03:00
deps='''ndr ndr-util NDR_SECURITY NDR_DCERPC NDR_SCHANNEL
2011-02-24 02:36:55 +03:00
RPC_NDR_EPMAPPER COMMON_SCHANNEL LIBCLI_AUTH
2011-04-28 10:23:53 +04:00
LIBTSOCKET KRB5_WRAP rpccommon''',
2010-09-23 22:14:00 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBMSRPC_GEN',
2010-10-25 10:07:46 +04:00
source='',
2010-10-27 03:38:50 +04:00
deps='''ndr-standard NDR_DSSETUP NDR_SPOOLSS''',
2010-09-23 13:14:23 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBGPO',
2010-09-26 22:25:15 +04:00
source='${LIBGPO_SRC}',
2010-10-07 23:28:04 +04:00
deps='gpext',
2010-09-26 22:25:15 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('AVAHI',
2010-05-28 17:56:32 +04:00
source=AVAHI_SRC,
2010-06-02 13:19:36 +04:00
deps='avahi-common avahi-client',
2010-05-28 17:56:32 +04:00
enabled=bld.env.with_avahi)
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('GROUPDB',
2010-05-11 17:24:13 +04:00
source=GROUPDB_SRC)
2010-04-18 11:30:59 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('TLDAP',
2010-04-18 11:30:59 +04:00
source=TLDAP_SRC,
2011-04-06 08:28:28 +04:00
deps='asn1util LIBTSOCKET')
2010-04-18 11:30:59 +04:00
2011-02-21 06:45:37 +03:00
bld.SAMBA3_LIBRARY('passdb',
source=PASSDB_SRC,
2011-04-27 05:48:53 +04:00
deps='SECRETS3 SMBLDAP GROUPDB pdb wbclient LIBCLI_AUTH flag_mapping',
2011-02-21 06:45:37 +03:00
private_library=True,
vars=locals())
2010-04-18 11:30:59 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PARAM_UTIL',
2010-11-30 18:25:37 +03:00
source=PARAM_UTIL_SRC)
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PARAM_WITHOUT_REG',
2010-11-30 18:25:37 +03:00
source=PARAM_WITHOUT_REG_SRC,
deps='''PARAM_UTIL''',
vars=locals())
2010-04-23 01:33:38 +04:00
2011-02-21 06:45:37 +03:00
bld.SAMBA3_LIBRARY('param',
source='',
2011-04-13 09:26:30 +04:00
deps='PARAM_WITHOUT_REG samba-util LIB_SMBCONF',
2011-02-21 06:45:37 +03:00
private_library=True,
vars=locals())
2010-04-23 01:33:38 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('REGFIO',
2010-09-27 05:31:19 +04:00
source=REGFIO_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
2010-09-27 05:31:19 +04:00
source=REG_API_REGF_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('REG_BASE',
2010-10-20 04:17:41 +04:00
source=REG_BASE_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
2010-10-20 04:17:41 +04:00
source=REG_SMBCONF_SRC,
deps='REG_BASE',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('REG_FULL',
2010-10-20 04:17:41 +04:00
source=REG_FULL_SRC,
2011-02-03 14:25:24 +03:00
deps='REG_SMBCONF',
2010-10-20 04:17:41 +04:00
vars=locals())
2011-02-21 02:09:21 +03:00
bld.SAMBA3_SUBSYSTEM('POPT_SAMBA3',
source=POPT_LIB_SRC,
deps='popt',
vars=locals())
2010-04-30 16:33:49 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
2010-04-30 16:43:57 +04:00
source=KRBCLIENT_SRC,
2011-04-28 10:23:53 +04:00
public_deps='KRB5_WRAP k5crypto',
2010-04-30 16:43:57 +04:00
vars=locals())
2011-02-21 06:45:37 +03:00
bld.SAMBA3_LIBRARY('samba3core',
source=LIB_SRC,
2011-04-28 10:23:53 +04:00
deps='LIBCRYPTO ndr ndr-util security NDR_SECURITY charset NDR_MESSAGING LIBASYNC_REQ tdb-wrap3 CHARSET3 UTIL_TDB UTIL_PW SAMBA_VERSION KRB5_WRAP flag_mapping util_reg passdb PTHREADPOOL',
2011-02-21 06:45:37 +03:00
private_library=True,
vars=locals())
2010-04-23 01:33:38 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIB_NONSMBD',
2010-04-23 01:33:38 +04:00
source=LIB_NONSMBD_SRC,
2011-02-21 06:45:37 +03:00
deps='samba3core',
2010-04-23 01:33:38 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBSMB_ERR',
2011-02-24 03:55:45 +03:00
source='',
2011-04-27 05:48:53 +04:00
deps='errors3 passdb ldap lber MSRPC_PARSE LIBCLI_AUTH rpccommon',
2010-04-23 01:33:38 +04:00
vars=locals())
2011-02-23 18:50:57 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
source=LIBNTLMSSP_SRC,
2011-02-24 02:28:43 +03:00
deps='LIBSMB_ERR NDR_NTLMSSP NTLMSSP_COMMON',
2010-04-23 01:33:38 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBSMB',
2010-04-23 01:33:38 +04:00
source=LIBSMB_SRC,
2011-02-23 18:50:57 +03:00
deps='LIBNTLMSSP CLDAP LIBNMB LIBNBT LIBDRSUAPI SPNEGO_PARSE LIBTSOCKET KRBCLIENT',
2010-11-30 20:07:21 +03:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBDRSUAPI',
2010-11-30 20:07:21 +03:00
source=DRSUAPI_SRC,
2010-11-30 23:50:56 +03:00
deps='z LZXPRESS NDR_DRSUAPI NDR_DRSBLOBS',
2010-09-26 23:58:58 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('CLDAP',
2011-02-22 11:19:49 +03:00
source='libads/cldap.c',
2011-04-08 05:16:45 +04:00
deps='cli-ldap-common LIBCLI_CLDAP LIBTSOCKET',
2010-04-23 01:33:38 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('SECRETS3',
2010-05-11 19:11:41 +04:00
source=SECRETS_SRC,
2010-10-05 19:01:14 +04:00
deps='NDR_SECRETS',
2010-05-11 19:11:41 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('SMBLDAP',
2010-05-13 00:43:18 +04:00
source=SMBLDAP_SRC,
deps='ldap lber',
2011-02-11 14:07:39 +03:00
vars=locals(),
enabled=bld.env.HAVE_LDAP)
2010-05-13 00:43:18 +04:00
2011-02-21 06:45:37 +03:00
bld.SAMBA3_LIBRARY('ads',
source=LIBADS_SRC,
2011-04-28 10:23:53 +04:00
deps='cli-ldap-common KRB5_WRAP ldap lber',
2011-02-21 06:45:37 +03:00
private_library=True,
2011-04-15 14:37:55 +04:00
vars=locals())
2010-09-23 17:56:36 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
2010-09-23 18:01:52 +04:00
source=LIBADS_SERVER_SRC,
2011-04-28 10:23:53 +04:00
deps='ndr-krb5pac KRB5_WRAP',
2010-09-23 18:01:52 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
2010-09-23 18:05:11 +04:00
source=LIBADS_PRINTER_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBAFS',
2010-09-24 23:13:27 +04:00
source=AFS_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN',
2010-09-24 23:13:27 +04:00
source=AFS_SETTOKEN_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIB_SMBCONF',
2011-01-07 13:41:15 +03:00
source=LIB_SMBCONF_SRC,
deps='LIBSMBCONF REG_BASE REG_SMBCONF',
2010-10-20 03:54:12 +04:00
vars=locals())
2011-02-21 06:45:37 +03:00
bld.SAMBA3_LIBRARY('smbd_base',
2010-09-23 17:45:56 +04:00
source=SMBD_SRC_BASE,
deps='''tdb tevent dl krb5 ldap gssapi gssapi_krb5
2011-04-15 17:36:58 +04:00
samba-util wbclient crypt nsl cups cap z passdb
2011-02-21 06:45:37 +03:00
PARAM_WITHOUT_REG samba3core LIBSMB POPT_SAMBA3 KRBCLIENT AVAHI
LIBMSRPC_GEN msrpc3 ads LIBADS_SERVER LIBADS_PRINTER
2010-09-28 20:55:55 +04:00
vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
2011-02-09 07:56:20 +03:00
PRINTING PRINTBACKEND NDR_XATTR NDR_NOTIFY3 REGFIO
2011-01-07 13:41:15 +03:00
LIB_SMBCONF REG_FULL FNAME_UTIL
2011-02-09 07:56:20 +03:00
LIBCLI_SAMR LIBCLI_LSA3 LIBRPCCLI_NETLOGON LIBCLI_SPOOLSS
2011-04-06 08:29:34 +04:00
RPC_NDR_SRVSVC npa_tstream INIT_NETLOGON INIT_SAMR
2010-12-15 02:33:21 +03:00
LIBCLI_SMB_COMMON RPC_SERVER
2010-09-28 20:55:55 +04:00
''',
2011-02-21 06:45:37 +03:00
private_library=True,
2010-09-23 17:45:56 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LOCKING',
2010-09-24 22:43:40 +04:00
source='${LOCKING_SRC}',
deps='''tdb talloc''',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PROFILE',
2010-09-24 23:27:57 +04:00
source='${PROFILE_SRC}',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PRINTBASE',
2010-09-27 05:39:41 +04:00
source=PRINTBASE_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
2010-09-27 05:39:41 +04:00
source=PRINTBACKEND_SRC,
deps='PRINTBASE NDR_NTPRINTING LIBADS_PRINTER',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PRINTING',
2010-09-27 05:39:41 +04:00
source=PRINTING_SRC,
2011-03-08 18:36:03 +03:00
deps='NDR_PRINTCAP',
2010-09-27 05:39:41 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
2010-09-25 03:13:55 +04:00
source=PASSWD_UTIL_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
2010-11-30 16:29:31 +03:00
source=FNAME_UTIL_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNET',
2010-09-25 03:45:41 +04:00
source=LIBNET_SRC,
2011-04-28 10:23:53 +04:00
deps='NDR_LIBNET_JOIN KRB5_WRAP',
2010-09-25 03:45:41 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
2010-09-25 03:45:41 +04:00
source=LIBNET_DSSYNC_SRC,
2010-12-14 19:33:49 +03:00
deps='LIBNET LIBCLI_DRSUAPI',
2010-09-25 03:45:41 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
2010-09-25 03:45:41 +04:00
source=LIBNET_SAMSYNC_SRC,
2010-12-14 19:45:33 +03:00
deps='LIBNET LIBCLI_SAMSYNC',
2010-09-25 03:45:41 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
2010-09-25 04:06:16 +04:00
source=LIB_EVENTLOG_SRC,
deps='NDR_EVENTLOG',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNMB',
2011-02-24 03:33:09 +03:00
source=LIBNMB_SRC,
2011-04-15 17:36:58 +04:00
deps='lmhosts resolv',
2011-02-24 03:33:09 +03:00
vars=locals())
2010-11-30 16:56:26 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNBT',
2011-01-07 14:01:42 +03:00
source='',
deps='NDR_SVCCTL NDR_NBT NDR_NBT_BUF LIBCLI_NETLOGON LIBCLI_NDR_NETLOGON',
2010-11-30 20:56:26 +03:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('SERVICES',
2010-09-27 05:47:15 +04:00
source=SERVICES_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
2010-09-26 21:44:53 +04:00
source=PLAINTEXT_AUTH_SRC,
2011-02-08 12:45:39 +03:00
deps='pam PAM_ERRORS',
2010-09-26 21:44:53 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
2011-01-04 15:05:51 +03:00
source=PASSCHANGE_SRC,
deps='LIBCLI_SAMR',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
2011-01-04 15:11:35 +03:00
source=VERSION_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('SLCACHE',
2010-09-26 21:44:53 +04:00
source=SLCACHE_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('DCUTIL',
2010-09-26 21:44:53 +04:00
source=DCUTIL_SRC,
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('ndr-util',
2010-09-21 12:24:13 +04:00
source=LIBNDR_SRC,
vars=locals())
2011-02-21 02:12:48 +03:00
bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
2010-12-14 15:27:24 +03:00
source='lib/util_tdb.c',
vars=locals())
2010-12-14 15:50:30 +03:00
2011-02-21 03:14:13 +03:00
bld.SAMBA3_SUBSYSTEM('CHARSET3',
2011-04-12 08:49:41 +04:00
source='''lib/util_str.c lib/charcnv.c lib/fstring.c''',
2011-02-18 02:24:58 +03:00
public_deps='ICONV_WRAPPER CODEPOINTS',
2011-04-13 09:26:30 +04:00
deps='samba-util')
2010-12-14 18:47:35 +03:00
2011-02-21 03:16:43 +03:00
bld.SAMBA3_SUBSYSTEM('ldb3',
2010-12-15 00:09:44 +03:00
source='lib/ldb_compat.c')
2011-02-21 02:14:13 +03:00
bld.SAMBA3_SUBSYSTEM('errors3',
2011-02-09 07:56:20 +03:00
source='../libcli/util/doserr.c libsmb/nterr.c libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c')
2010-09-21 12:24:13 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
2010-11-30 18:43:34 +03:00
source=LIBCLI_SAMR_SRC,
2011-01-18 16:41:22 +03:00
deps='RPC_NDR_SAMR')
2010-11-30 18:43:34 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBCLI_LSA3',
2010-11-30 19:09:34 +03:00
source=LIBCLI_LSA_SRC,
2011-01-18 20:07:04 +03:00
deps='RPC_NDR_LSA INIT_LSA')
2010-11-30 19:09:34 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBRPCCLI_NETLOGON',
2011-01-07 14:19:00 +03:00
source=LIBRPCCLI_NETLOGON_SRC,
2011-01-12 14:12:22 +03:00
deps='RPC_NDR_NETLOGON')
2010-11-30 19:27:37 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBCLI_SPOOLSS',
2010-11-30 19:50:32 +03:00
source=LIBCLI_SPOOLSS_SRC,
2011-01-19 01:16:42 +03:00
deps='RPC_NDR_SPOOLSS')
2010-11-30 19:50:32 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
2011-02-03 14:25:24 +03:00
source=LIBCLI_WINREG_SRC,
deps='RPC_NDR_WINREG')
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
2010-10-24 03:05:50 +04:00
source=RPC_CLIENT_SCHANNEL_SRC,
vars=locals())
2010-10-08 15:17:21 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('INIT_LSA',
2010-12-01 00:34:54 +03:00
source='rpc_client/init_lsa.c')
2010-10-08 15:17:21 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
2010-12-01 00:37:37 +03:00
source='rpc_client/init_netlogon.c')
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
2010-12-01 00:41:41 +03:00
source='rpc_client/init_samr.c')
2010-04-18 11:30:59 +04:00
########################## BINARIES #################################
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbd/smbd',
2010-09-23 17:45:56 +04:00
source='${SMBD_SRC_MAIN}',
2011-03-05 03:26:55 +03:00
deps='smbd_base EPMD',
2010-04-18 16:42:49 +04:00
install_path='${SBINDIR}',
2010-03-25 01:25:29 +03:00
vars=locals())
2010-03-24 03:28:03 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('nmbd/nmbd',
2010-04-12 00:05:50 +04:00
source=NMBD_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent z cap wbclient dl
2011-02-21 06:45:37 +03:00
passdb param ldap LIB_NONSMBD LIBSMB
2011-04-14 02:17:29 +04:00
POPT_SAMBA3 KRBCLIENT NDR_SAMR NDR_LSA PROFILE''',
2010-04-18 16:42:49 +04:00
install_path='${SBINDIR}',
2010-04-12 00:05:50 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('winbindd/winbindd',
2010-04-18 11:30:59 +04:00
source=WINBINDD_SRC,
2010-10-30 04:37:42 +04:00
deps='''talloc tdb tevent cap dl z
2011-04-15 17:36:58 +04:00
wbclient passdb ldap param LIB_NONSMBD LIBSMB
2011-02-21 06:45:37 +03:00
POPT_SAMBA3 KRBCLIENT LIBMSRPC_GEN msrpc3 ads LIBADS_SERVER
2011-04-14 01:49:49 +04:00
SRV_NDR_WBINT RPC_NDR_WBINT NDR_WBINT LIBAFS
2010-10-07 23:28:04 +04:00
LIBAFS_SETTOKEN PROFILE SLCACHE DCUTIL idmap nss_info
2010-11-30 18:16:22 +03:00
TOKEN_UTIL
2011-02-09 07:56:20 +03:00
LIBCLI_SAMR LIBCLI_LSA3 LIBRPCCLI_NETLOGON
2011-04-06 08:29:34 +04:00
RPC_NDR_DSSETUP npa_tstream INIT_NETLOGON
2010-12-15 02:33:21 +03:00
RPC_NCACN_NP RPC_PIPE_REGISTER RPC_SAMR RPC_LSARPC
2011-02-23 02:31:35 +03:00
PAM_ERRORS WB_REQTRANS AUTH_COMMON
2010-09-24 03:29:06 +04:00
''',
2010-05-21 00:58:59 +04:00
enabled=bld.env.build_winbind,
2010-04-18 16:42:49 +04:00
install_path='${SBINDIR}',
2010-04-18 11:30:59 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('web/swat',
2010-04-30 16:18:20 +04:00
source=SWAT_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tevent cap samba3core LIBSMB wbclient param
2011-04-15 17:36:58 +04:00
LIB_NONSMBD passdb POPT_SAMBA3 KRBCLIENT cups
2011-02-21 06:45:37 +03:00
LIBMSRPC_GEN msrpc3 LOCKING PLAINTEXT_AUTH PRINTBASE PRINTING FNAME_UTIL
2011-01-04 15:05:51 +03:00
LIBCLI_SAMR INIT_LSA PASSCHANGE''',
2010-05-21 01:05:21 +04:00
enabled=bld.env.build_swat,
2010-04-30 16:18:20 +04:00
install_path='${SBINDIR}',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('rpcclient/rpcclient',
2010-09-23 11:13:34 +04:00
source=RPCCLIENT_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb cap POPT_SAMBA3 passdb LIBSMB LIB_NONSMBD
2011-02-21 06:45:37 +03:00
PARAM_WITHOUT_REG wbclient param KRBCLIENT LIBMSRPC_GEN msrpc3
ads SMBREADLINE DCUTIL RPC_NDR_WINREG RPC_NDR_ECHO
2010-11-30 18:43:34 +03:00
RPC_CLIENT_SCHANNEL
2011-02-09 07:56:20 +03:00
LIBCLI_SAMR LIBCLI_LSA3 LIBRPCCLI_NETLOGON LIBCLI_SPOOLSS
2011-01-12 15:25:42 +03:00
RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_DSSETUP RPC_NDR_DFS
2011-01-11 20:04:04 +03:00
RPC_NDR_DRSUAPI RPC_NDR_NTSVCS RPC_NDR_EVENTLOG INIT_NETLOGON
2010-12-01 00:41:41 +03:00
INIT_SAMR
2010-11-30 19:15:43 +03:00
''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-21 07:23:08 +03:00
bld.SAMBA3_BINARY('client/smbclient' + bld.env.suffix3,
2010-05-26 16:09:39 +04:00
source=CLIENT_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb cap POPT_SAMBA3 passdb LIBSMB LIB_NONSMBD
2011-02-21 06:45:37 +03:00
PARAM_WITHOUT_REG wbclient param KRBCLIENT LIBMSRPC_GEN
msrpc3 SMBREADLINE libsmb/smbclient RPC_NDR_SRVSVC INIT_LSA''',
2010-05-26 16:09:39 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('net',
2010-09-23 11:13:34 +04:00
source=NET_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb netapi addns cap intl POPT_SAMBA3 passdb LIBSMB LIB_NONSMBD
2011-02-21 06:45:37 +03:00
PARAM_WITHOUT_REG wbclient param KRBCLIENT LIBMSRPC_GEN msrpc3 LIBGPO ads LIBADS_SERVER LIBADS_PRINTER
2011-04-13 09:13:45 +04:00
LIBAFS LIBAFS_SETTOKEN SMBREADLINE PASSWD_UTIL LIBNET
2010-10-20 00:52:14 +04:00
LIBNET_DSSYNC LIBNET_SAMSYNC LIBEVENTLOG DCUTIL
2011-01-13 00:55:34 +03:00
REGFIO NDR_NTPRINTING RPC_NDR_WINREG
2010-11-30 18:43:34 +03:00
RPC_CLIENT_SCHANNEL TOKEN_UTIL
2011-02-09 07:56:20 +03:00
LIBCLI_SAMR LIBCLI_LSA3 LIBRPCCLI_NETLOGON LIBCLI_SPOOLSS
2011-01-12 15:25:42 +03:00
RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_SVCCTL RPC_NDR_DSSETUP
2011-01-11 20:04:04 +03:00
RPC_NDR_INITSHUTDOWN RPC_NDR_DRSUAPI INIT_NETLOGON INIT_SAMR
2010-11-30 19:15:43 +03:00
''',
2010-08-12 17:42:16 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('profiles',
2010-09-23 11:13:34 +04:00
source=PROFILES_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tdb cap tevent POPT_SAMBA3 param samba3core LIBSMB_ERR LIB_NONSMBD REGFIO''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbspool',
2010-09-23 11:13:34 +04:00
source=CUPS_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient POPT_SAMBA3 param LIBSMB LIB_NONSMBD samba3core
2011-04-06 08:28:28 +04:00
KRBCLIENT asn1util LIBTSOCKET NDR_SAMR NDR_LSA''',
2010-04-12 01:01:29 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('testparm',
2010-04-18 11:30:59 +04:00
source=TESTPARM_SRC,
2010-10-24 02:19:49 +04:00
deps='''talloc tevent ldap cap
2011-04-06 08:28:28 +04:00
wbclient asn1util LIBTSOCKET passdb param LIB_NONSMBD
2011-02-21 02:09:21 +03:00
LIBSMB_ERR POPT_SAMBA3''',
2010-04-18 11:30:59 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbta-util',
2010-09-23 11:13:34 +04:00
source=SMBTA_UTIL_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tdb tevent cap param POPT_SAMBA3 LIB_NONSMBD
2010-09-23 11:13:34 +04:00
LIBSMB_ERR''',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbstatus',
2010-09-23 11:13:34 +04:00
source=STATUS_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tdb tevent cap param POPT_SAMBA3 LIB_NONSMBD
2010-11-30 16:29:31 +03:00
LIBSMB_ERR LOCKING PROFILE FNAME_UTIL''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbcontrol',
2010-09-23 11:13:34 +04:00
source=SMBCONTROL_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tdb tevent cap param LIB_NONSMBD LIBSMB_ERR POPT_SAMBA3 PRINTBASE''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbtree',
2010-09-23 11:13:34 +04:00
source=SMBTREE_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient param LIB_NONSMBD
2011-02-23 18:19:48 +03:00
LIBSMB LIBSMB_ERR POPT_SAMBA3 KRBCLIENT passdb SMBLDAP LIBMSRPC_GEN msrpc3 PROFILE
2011-01-12 15:25:42 +03:00
RPC_NDR_SRVSVC''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-21 07:05:54 +03:00
bld.SAMBA3_BINARY('smbpasswd',
2010-09-23 11:13:34 +04:00
source=SMBPASSWD_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient param LIB_NONSMBD
2011-02-23 18:19:48 +03:00
LIBSMB LIBSMB_ERR POPT_SAMBA3 KRBCLIENT passdb SMBLDAP LIBMSRPC_GEN msrpc3 PASSWD_UTIL
2011-01-04 15:05:51 +03:00
LIBCLI_SAMR INIT_LSA PASSCHANGE''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('pdbedit',
2010-09-23 11:13:34 +04:00
source=PDBEDIT_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient param LIB_NONSMBD
2011-02-23 18:50:57 +03:00
LIBNTLMSSP LIBSMB_ERR POPT_SAMBA3 passdb SMBLDAP
2011-04-08 05:16:45 +04:00
PASSWD_UTIL cli-ldap-common''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbget',
2010-09-23 11:13:34 +04:00
source=SMBGET_SRC,
2011-02-21 02:09:21 +03:00
deps='''talloc tdb libsmb/smbclient POPT_SAMBA3''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-21 03:12:22 +03:00
bld.SAMBA3_BINARY('nmblookup' + bld.env.suffix3,
2010-09-23 11:13:34 +04:00
source=NMBLOOKUP_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap param LIB_NONSMBD POPT_SAMBA3 LIBSMB_ERR LIBNMB''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-21 03:12:22 +03:00
bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
2010-09-23 11:13:34 +04:00
source=SMBTORTURE_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient param LIBSMB KRBCLIENT TLDAP
2011-04-06 08:28:28 +04:00
LIB_NONSMBD POPT_SAMBA3 asn1util LIBTSOCKET NDR_LSA msrpc3 LIBMSRPC_GEN RPC_NDR_ECHO WB_REQTRANS''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbconftort',
2010-09-23 11:13:34 +04:00
source=SMBCONFTORT_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient param LIB_NONSMBD LIBSMB_ERR POPT_SAMBA3''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-22 16:33:10 +03:00
bld.SAMBA3_BINARY('replacetort',
source='../lib/replace/test/main.c',
deps='replace replace-test',
install=False)
2011-02-21 03:12:22 +03:00
bld.SAMBA3_BINARY('masktest' + bld.env.suffix3,
2010-09-23 11:13:34 +04:00
source=MASKTEST_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb cap wbclient param LIB_NONSMBD LIBSMB KRBCLIENT
2011-04-06 08:28:28 +04:00
asn1util LIBTSOCKET NDR_SAMR NDR_LSA''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('msgtest',
2010-09-23 11:13:34 +04:00
source=MSGTEST_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap param LIBSMB_ERR LIB_NONSMBD''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbcacls',
2010-09-23 11:13:34 +04:00
source=SMBCACLS_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb cap wbclient param LIBSMB KRBCLIENT
2011-02-23 18:19:48 +03:00
LIB_NONSMBD passdb POPT_SAMBA3 SMBLDAP LIBMSRPC_GEN
2011-02-21 06:45:37 +03:00
msrpc3 LIBCLI_LSA3''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbcquotas',
2010-09-23 11:13:34 +04:00
source=SMBCQUOTAS_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb cap wbclient param LIB_NONSMBD LIBSMB KRBCLIENT
2011-02-23 18:19:48 +03:00
POPT_SAMBA3 passdb SMBLDAP LIBMSRPC_GEN msrpc3
2011-02-09 07:56:20 +03:00
LIBCLI_LSA3''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('eventlogadm',
2010-04-30 21:45:06 +04:00
source=EVTLOGADM_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tevent cap POPT_SAMBA3 samba3core param
LIB_NONSMBD LIBSMB_ERR passdb wbclient LIBEVENTLOG''',
2010-04-30 21:45:06 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('sharesec',
2010-09-23 11:13:34 +04:00
source=SHARESEC_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient param LIB_NONSMBD LIBSMB_ERR POPT_SAMBA3''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-21 03:12:22 +03:00
bld.SAMBA3_BINARY('locktest' + bld.env.suffix3,
2010-09-23 11:13:34 +04:00
source=LOCKTEST_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient param KRBCLIENT LIBSMB LIB_NONSMBD
2011-04-06 08:28:28 +04:00
asn1util LIBTSOCKET NDR_SAMR NDR_LSA LOCKING FNAME_UTIL''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('pdbtest',
2010-09-23 11:13:34 +04:00
source=PDBTEST_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb cap wbclient param LIBSMB KRBCLIENT LIB_NONSMBD passdb
2011-02-21 02:09:21 +03:00
SMBLDAP POPT_SAMBA3 NDR_SAMR NDR_LSA''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('vfstest',
2010-09-23 11:13:34 +04:00
source=VFSTEST_SRC,
2011-02-21 06:45:37 +03:00
deps='smbd_base SMBREADLINE',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbiconv',
2010-09-23 11:13:34 +04:00
source=SMBICONV_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tdb tevent cap param LIB_NONSMBD POPT_SAMBA3 LIBSMB_ERR''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('log2pcap',
2010-09-23 11:13:34 +04:00
source=LOG2PCAP_SRC,
deps='''talloc popt''',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('locktest2',
2010-09-23 11:13:34 +04:00
source=LOCKTEST2_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient param KRBCLIENT LIBSMB LIB_NONSMBD
2011-04-06 08:28:28 +04:00
asn1util LIBTSOCKET NDR_SAMR NDR_LSA LOCKING FNAME_UTIL''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('debug2html',
2010-09-25 10:50:23 +04:00
source=DEBUG2HTML_SRC,
2010-09-23 11:13:34 +04:00
deps='''talloc popt''',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbfilter',
2010-09-23 11:13:34 +04:00
source=SMBFILTER_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tevent cap wbclient param LIBSMB LIB_NONSMBD KRBCLIENT asn1util LIBTSOCKET
2010-09-25 04:18:03 +04:00
NDR_SAMR NDR_LSA''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('versiontest',
2011-01-04 15:11:35 +03:00
source='lib/version_test.c',
deps='SAMBA_VERSION',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-21 03:12:22 +03:00
bld.SAMBA3_BINARY('wbinfo' + bld.env.suffix3,
2010-09-23 11:13:34 +04:00
source=WBINFO_SRC,
2010-12-07 14:04:11 +03:00
deps='''talloc wbclient tevent cap
2011-04-06 08:28:28 +04:00
asn1util LIBTSOCKET passdb ldap param LIB_NONSMBD
2011-02-23 18:50:57 +03:00
LIBNTLMSSP POPT_SAMBA3 LIBAFS_SETTOKEN''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-21 03:12:22 +03:00
bld.SAMBA3_BINARY('ntlm_auth' + bld.env.suffix3,
2010-09-23 11:13:34 +04:00
source=NTLM_AUTH_SRC,
2011-04-28 10:23:53 +04:00
deps='''tdb talloc cap KRB5_WRAP k5crypto wbclient param LIB_NONSMBD
2011-04-06 08:28:28 +04:00
samba3core LIBNTLMSSP POPT_SAMBA3 asn1util LIBTSOCKET
2011-02-23 18:19:48 +03:00
passdb SMBLDAP winbind-client LIBINIPARSER LIBADS_SERVER
2011-04-08 05:16:45 +04:00
NDR_SAMR NDR_LSA NDR_NETLOGON cli-ldap-common LIBNMB SLCACHE SPNEGO_PARSE KRBCLIENT''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('timelimit',
2010-09-23 11:13:34 +04:00
source='script/tests/timelimit.c',
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('rpc_open_tcp',
2010-09-23 11:13:34 +04:00
source=RPC_OPEN_TCP_SRC,
2011-04-15 17:36:58 +04:00
deps='''talloc tdb tevent cap wbclient KRBCLIENT param samba3core LIBSMB LIB_NONSMBD
2011-04-06 08:28:28 +04:00
LIBSMB_ERR asn1util LIBTSOCKET LIBMSRPC_GEN msrpc3''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('test_lp_load',
2010-09-23 11:13:34 +04:00
source=TEST_LP_LOAD_SRC,
2011-02-23 18:50:57 +03:00
deps='''talloc tdb tevent cap wbclient param LIB_NONSMBD POPT_SAMBA3 LIBNTLMSSP''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('dbwrap_tool',
2010-09-23 11:13:34 +04:00
source=DBWRAP_TOOL_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tdb tevent cap param LIB_NONSMBD LIBSMB_ERR''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('dbwrap_torture',
2010-09-23 11:13:34 +04:00
source=DBWRAP_TORTURE_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tdb tevent cap param LIB_NONSMBD LIBSMB_ERR
2011-02-21 02:09:21 +03:00
POPT_SAMBA3''',
2010-09-23 11:13:34 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('split_tokens',
2010-09-23 11:13:34 +04:00
source=SPLIT_TOKENS_SRC,
2011-02-21 06:45:37 +03:00
deps='''talloc tdb tevent cap wbclient param LIB_NONSMBD POPT_SAMBA3
2011-02-23 18:50:57 +03:00
LIBNTLMSSP''',
2010-09-20 00:35:26 +04:00
vars=locals())
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('vlp',
2010-09-29 10:48:49 +04:00
source=VLP_SRC,
2011-02-18 08:04:30 +03:00
deps='''talloc tdb PARAM_UTIL UTIL_TDB''',
2010-09-29 10:48:49 +04:00
vars=locals())
2011-02-21 03:14:49 +03:00
swat_dir = os.path.join(bld.curdir, '../swat')
swat_files = recursive_dirlist(swat_dir, swat_dir, '*')
2010-04-18 16:43:01 +04:00
bld.INSTALL_FILES('${SWATDIR}', swat_files, base_name='../swat')
2011-02-21 02:09:21 +03:00
# additional compatibility rules.
# these rules allow us to have a common set of waf rules for toplevel and source3
# builds. Effectively these are build rule aliases
if not bld.env.toplevel_build:
bld.SAMBA3_SUBSYSTEM('POPT_SAMBA', source='', deps='POPT_SAMBA3')
2011-02-21 02:12:48 +03:00
bld.SAMBA3_SUBSYSTEM('tdb-wrap', source='', deps='tdb-wrap3')
2011-02-21 02:14:13 +03:00
bld.SAMBA3_SUBSYSTEM('errors', source='', deps='errors3')
2011-04-13 09:26:30 +04:00
bld.SAMBA3_SUBSYSTEM('samba-util', source='', deps='DYNCONFIG')
2011-02-21 03:14:13 +03:00
bld.SAMBA3_SUBSYSTEM('CHARSET', source='', deps='CHARSET3')
2011-02-21 03:16:43 +03:00
bld.SAMBA3_SUBSYSTEM('ldb', source='', deps='ldb3')
bld.SAMBA3_SUBSYSTEM('dcerpc', '', deps='UTIL_TEVENT')
2011-02-22 11:19:49 +03:00
bld.SAMBA3_SUBSYSTEM('cli-ldap', '', deps='UTIL_TEVENT')
2011-02-21 02:09:21 +03:00
2010-04-18 16:43:01 +04:00
########################## INCLUDES #################################
2010-04-18 11:30:59 +04:00
2011-02-16 08:30:56 +03:00
bld.RECURSE('../lib/util/charset')
2011-02-10 14:48:46 +03:00
bld.RECURSE('../auth')
2011-04-16 09:41:50 +04:00
bld.RECURSE('../auth/kerberos')
2011-01-06 16:53:04 +03:00
bld.RECURSE('../lib/addns')
2011-01-07 14:08:54 +03:00
bld.RECURSE('../lib/async_req')
2010-12-14 16:03:22 +03:00
bld.RECURSE('../libcli/auth')
2010-12-14 19:33:49 +03:00
bld.RECURSE('../libcli/drsuapi')
2011-01-07 14:08:54 +03:00
bld.RECURSE('../libcli/ldap')
2011-02-22 11:19:49 +03:00
bld.RECURSE('../libcli/cldap')
2010-12-14 19:36:06 +03:00
bld.RECURSE('../libcli/named_pipe_auth')
2011-01-07 14:01:42 +03:00
bld.RECURSE('../libcli/netlogon')
2011-01-07 14:08:54 +03:00
bld.RECURSE('../libcli/samsync')
bld.RECURSE('../libcli/security')
2010-12-14 19:47:46 +03:00
bld.RECURSE('../libcli/smb')
2011-01-07 14:08:54 +03:00
bld.RECURSE('../libcli/smbreadline')
2011-02-21 02:14:54 +03:00
bld.RECURSE('../libcli/nbt')
2011-02-24 05:01:27 +03:00
bld.RECURSE('../libcli/registry')
2011-01-07 14:08:54 +03:00
bld.RECURSE('../lib/crypto')
bld.RECURSE('../lib/iniparser/src')
bld.RECURSE('../lib/nss_wrapper')
bld.RECURSE('../lib/popt')
bld.RECURSE('../librpc')
bld.RECURSE('../lib/smbconf')
bld.RECURSE('../lib/socket_wrapper')
2011-02-18 08:04:30 +03:00
bld.RECURSE('../lib/uid_wrapper')
2011-01-07 14:08:54 +03:00
bld.RECURSE('../lib/talloc')
bld.RECURSE('../lib/tdb')
2011-02-18 08:04:30 +03:00
bld.RECURSE('../lib/util')
2011-01-07 14:08:54 +03:00
bld.RECURSE('../lib/tevent')
bld.RECURSE('../lib/tsocket')
bld.RECURSE('../lib/zlib')
2011-02-24 03:23:53 +03:00
bld.RECURSE('../libds/common')
2011-02-17 02:11:18 +03:00
bld.RECURSE('../nsswitch')
2010-12-15 12:21:16 +03:00
bld.RECURSE('../nsswitch/libwbclient')
2010-09-26 21:43:43 +04:00
bld.RECURSE('auth')
2010-09-26 22:30:36 +04:00
bld.RECURSE('libgpo/gpext')
2011-04-27 15:16:59 +04:00
bld.RECURSE('lib/pthreadpool')
2011-01-07 14:08:54 +03:00
bld.RECURSE('librpc')
bld.RECURSE('librpc/idl')
bld.RECURSE('modules')
2010-09-28 10:54:39 +04:00
bld.RECURSE('pam_smbpass')
2011-01-07 14:08:54 +03:00
bld.RECURSE('passdb')
2010-09-28 20:55:55 +04:00
bld.RECURSE('rpc_server')
2011-01-07 14:08:54 +03:00
bld.RECURSE('winbindd')
2010-03-24 03:28:03 +03:00
2011-02-24 03:23:53 +03:00
2010-03-24 03:28:03 +03:00
bld.ENFORCE_GROUP_ORDERING()
bld.CHECK_PROJECT_RULES()
2011-02-23 02:08:12 +03:00
bld.SYMBOL_CHECK()