2010-03-28 09:48:49 +11:00
#!/usr/bin/env python
2010-03-23 18:28:03 -06:00
from samba_utils import *
2011-02-09 15:56:20 +11:00
import samba_version, samba3
2010-03-23 18:28:03 -06:00
2010-03-25 06:58:35 -06:00
LIBS='ICONV'
2010-03-23 18:28:03 -06:00
2011-09-01 12:45:38 +10:00
config_h = "../include/config.h"
2011-02-21 11:09:56 +11:00
2011-09-07 17:22:22 +10:00
bld.SAMBA_BLDOPTIONS('smbd/build_options.c')
2010-03-23 18:28:03 -06:00
2010-04-07 07:34:12 -06: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()
2010-03-23 18:28:03 -06:00
bld.SETUP_BUILD_GROUPS()
2010-04-18 09:30:59 +02:00
######################## SUBSYSTEMS #################################
2011-02-09 15:56:20 +11:00
bld.SAMBA3_LIBRARY('netapi',
2013-09-23 01:58:47 +02:00
source='''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''',
2012-01-24 17:44:32 +01:00
public_deps='''
talloc
2012-01-30 10:53:18 +01:00
util_cmdline
2012-01-24 17:44:32 +01:00
msrpc3
ads
NDR_LIBNETAPI
LIBNET
RPC_CLIENT_SCHANNEL
libcli_netlogon3
LIBCLI_SAMR
INIT_SAMR
2012-09-07 15:18:39 +02:00
auth
2012-01-24 17:44:32 +01:00
''',
2011-02-09 15:56:20 +11:00
public_headers='../source3/lib/netapi/netapi.h',
2012-05-28 12:50:05 +10:00
pc_files='libnet/netapi.pc',
2013-09-23 01:58:47 +02:00
vnum='0')
2010-05-11 10:30:25 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_LIBRARY('smbsharemodes',
2013-09-23 09:39:10 +02:00
source='libsmb/smb_share_modes.c',
2011-06-20 18:40:25 +09:30
public_deps='''talloc tdb_compat''',
2012-06-29 12:09:06 +09:30
deps='''ccan-hash''',
2010-09-24 21:46:39 -07:00
public_headers='include/smb_share_modes.h',
2012-05-28 12:50:34 +10:00
pc_files='libsmb/smbsharemodes.pc',
2013-09-23 09:39:10 +02:00
vnum='0')
2010-09-23 00:27:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_LIBRARY('nss_wins',
2013-09-23 10:01:07 +02:00
source='../nsswitch/wins.c',
2012-01-18 11:17:16 +01:00
deps='''param libsmb LIBTSOCKET''',
2010-12-14 22:18:43 +01:00
realname='libnss_wins.so.2',
2012-10-17 18:17:27 +02:00
soname='libnss_wins.so',
2010-12-14 22:18:43 +01:00
vnum='2')
2012-01-03 00:52:06 +01:00
bld.SAMBA3_LIBRARY('gse',
source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
2012-04-21 17:26:18 -04:00
deps='krb5samba gensec param KRBCLIENT secrets3',
2012-01-03 00:52:06 +01:00
private_library=True)
2011-05-14 21:54:57 +02:00
bld.SAMBA3_LIBRARY('msrpc3',
2013-09-23 08:33:08 +02:00
source='''rpc_client/cli_pipe.c
rpc_client/rpc_transport_np.c
rpc_client/rpc_transport_sock.c
rpc_client/rpc_transport_tstream.c
librpc/rpc/dcerpc_helpers.c''',
2011-05-16 21:18:25 +10:00
deps='''ndr ndr-standard
2011-05-13 11:49:49 +02:00
RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
2012-01-03 00:52:06 +01:00
LIBTSOCKET gse dcerpc-binding
2013-09-18 10:58:16 +02:00
libsmb
ndr-table''',
2011-05-14 21:54:57 +02:00
private_library=True)
2010-09-23 11:14:00 -07:00
2011-11-02 10:45:33 +01:00
bld.SAMBA3_LIBRARY('gpo',
2013-09-23 08:00:16 +02:00
source='''../libgpo/gpo_ldap.c
../libgpo/gpo_ini.c
../libgpo/gpo_util.c
../libgpo/gpo_fetch.c
libgpo/gpo_filesync.c
../libgpo/gpo_sec.c
libgpo/gpo_reg.c''',
2012-09-07 15:18:39 +02:00
deps='talloc ads TOKEN_UTIL gpext auth',
2011-08-31 18:19:13 +02:00
private_library=True)
2010-09-26 20:25:15 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('AVAHI',
2013-09-23 07:38:45 +02:00
source='lib/avahi.c smbd/avahi_register.c',
2010-06-02 11:19:36 +02:00
deps='avahi-common avahi-client',
2010-05-28 15:56:32 +02:00
enabled=bld.env.with_avahi)
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('GROUPDB',
2013-09-23 08:57:08 +02:00
source='groupdb/mapping.c groupdb/mapping_tdb.c',
2011-06-20 18:40:25 +09:30
deps='tdb_compat')
2010-04-18 09:30:59 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('TLDAP',
2013-09-23 08:30:14 +02:00
source='''lib/tldap.c
lib/tldap_util.c
lib/util_tsock.c''',
2011-04-06 14:28:28 +10:00
deps='asn1util LIBTSOCKET')
2010-04-18 09:30:59 +02:00
2012-09-10 14:34:09 +03:00
# libpdb.so should not expose internal symbols that are only usable
# to the statically linked modules that are merged into libpdb.
# Note that we always filter these symbols out in libpdb, even
# when modules are not linked statically. In the latter case
# symbols will not be present in the libpdb anyway so no hurt is
# done to the version script.
static_pdb_match = ['tdbsam', 'smbpasswd', 'wbc_sam']
2012-08-30 19:09:14 +03:00
private_pdb_match = []
2012-09-10 14:34:09 +03:00
# AD DC module when linked statically will pull in few source4/winbind
# dependencies which are not used outside AD DC module
static_pdb_match.append('samba_dsdb')
private_pdb_match.append('!idmap_init')
private_pdb_match.append('!idmap_sids_to_xids')
private_pdb_match.append('!idmap_xids_to_sids')
# ldap module is actually three modules merged together: ldapsam, ipa, and nds
static_pdb_match = static_pdb_match + ['ldap', 'ipa', 'nds']
2012-09-13 20:29:25 +03:00
ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_domain_info',
'!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
'!dominfo_attr_list', '!get_attr_key2string',
'!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
'!get_attr_list']
2012-09-10 14:34:09 +03:00
private_pdb_match.append('!pdb_nds_*')
private_pdb_match.append('!pdb_init_ldapsam')
2013-04-03 16:01:34 +03:00
private_pdb_match.append('!pdb_ldapsam_init*')
2012-09-10 14:34:09 +03:00
private_pdb_match = private_pdb_match + ldapsam_pdb_match
2012-08-30 19:09:14 +03:00
private_pdb_match = private_pdb_match + map(lambda x: '!pdb_%s_init' % x, static_pdb_match)
2011-07-28 14:41:56 +10:00
bld.SAMBA3_LIBRARY('pdb',
2013-09-23 08:54:58 +02:00
source='''passdb/pdb_get_set.c
passdb/passdb.c
lib/util_wellknown.c
lib/util_builtin.c
passdb/pdb_compat.c
lib/util_sid_passdb.c
lib/util_unixsids.c
passdb/lookup_sid.c
passdb/login_cache.c
passdb/account_pol.c
lib/privileges.c
lib/util_nscd.c
lib/winbind_util.c
passdb/pdb_util.c
passdb/pdb_interface.c
passdb/pdb_secrets.c
passdb/pdb_unixid.c''',
2012-01-26 15:27:54 -05:00
deps='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping',
2012-08-30 19:09:14 +03:00
private_library=False,
pc_files=[],
public_headers_install=True,
2011-09-27 18:23:39 +02:00
public_headers='''
2013-09-23 08:54:58 +02:00
include/passdb.h
passdb/machine_sid.h
passdb/lookup_sid.h''',
2013-01-15 15:35:09 +01:00
abi_match=private_pdb_match,
2012-08-30 19:09:14 +03:00
abi_directory='passdb/ABI',
2013-09-23 08:54:58 +02:00
vnum='0')
2010-04-18 09:30:59 +02:00
2012-09-13 20:29:25 +03:00
bld.SAMBA3_LIBRARY('smbldaphelper',
2012-09-13 15:40:31 +03:00
source='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
2012-09-13 20:29:25 +03:00
deps='smbldap secrets3',
allow_undefined_symbols=True,
2012-09-21 22:27:24 -07:00
enabled=bld.CONFIG_SET('HAVE_LDAP'),
2012-09-13 20:29:25 +03:00
private_library=True)
2012-09-13 15:40:31 +03:00
2012-01-27 10:40:29 +01:00
bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
2013-09-23 07:39:57 +02:00
source='lib/server_mutex.c',
deps='talloc')
2012-01-27 10:40:29 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('PARAM_UTIL',
2013-09-23 07:55:52 +02:00
source='param/util.c',
deps='talloc')
2010-11-30 16:25:37 +01:00
2011-09-01 12:45:38 +10:00
bld.SAMBA3_SUBSYSTEM('LOADPARM_CTX',
source='param/loadparm_ctx.c',
2013-09-23 10:11:18 +02:00
deps='''talloc s3_param_h param''')
2011-06-01 23:22:24 +10:00
2011-07-01 14:36:25 +10:00
bld.SAMBA_GENERATOR('param/param_global_h',
2012-05-28 17:30:44 +10:00
source= '../script/mkparamdefs.pl param/loadparm.c ../lib/param/param_functions.c',
2011-07-01 14:36:25 +10:00
target='param/param_global.h',
2012-05-28 17:30:44 +10:00
rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
2011-07-01 14:36:25 +10:00
2011-05-30 16:55:30 +10:00
bld.SAMBA3_SUBSYSTEM('param',
2013-09-23 07:57:22 +02:00
source='''param/loadparm.c
lib/sharesec.c
lib/ldap_debug_handler.c
lib/util_names.c''',
2012-03-14 22:28:38 +11:00
deps='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local_h param/param_global_h cups''')
2010-04-22 23:33:38 +02:00
2011-09-01 12:45:38 +10:00
bld.SAMBA3_PYTHON('pys3param',
source='param/pyparam.c',
deps='param',
public_deps='samba-hostconfig pytalloc-util talloc',
realname='samba/samba3/param.so')
2011-08-12 15:48:03 +10:00
2011-05-25 15:01:04 +10:00
bld.SAMBA3_SUBSYSTEM('param_service',
source='param/service.c',
2012-01-18 12:19:15 +01:00
deps = 'USER_UTIL param PRINTING')
2011-05-25 15:01:04 +10:00
2013-09-23 07:49:33 +02:00
# this includes only the low level parse code, not stuff
# that requires knowledge of security contexts
bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS',
source='registry/reg_parse_prs.c')
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('REGFIO',
2013-09-23 07:49:33 +02:00
source='registry/regfio.c',
deps='samba-util REG_PARSE_PRS')
2010-09-27 03:31:19 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
2013-09-23 08:41:53 +02:00
source='registry/reg_api_regf.c',
deps='samba-util')
2010-09-27 03:31:19 +02:00
2011-04-12 10:59:20 +02:00
bld.SAMBA3_LIBRARY('smbregistry',
2013-09-23 08:38:04 +02:00
source='''registry/reg_api.c
registry/reg_dispatcher.c
registry/reg_cachehook.c
registry/reg_objects.c
registry/reg_util_internal.c
lib/util_nttoken.c
registry/reg_backend_db.c
registry/reg_parse_internal.c
lib/cbuf.c
lib/srprs.c
registry/reg_init_basic.c''',
2012-05-03 18:26:35 +02:00
deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
2012-08-10 11:37:28 +02:00
replace util_reg samba-util samba-security
2012-03-24 16:42:47 +01:00
errors3 dbwrap samba3-util''',
2011-06-24 11:47:45 +10:00
allow_undefined_symbols=True,
2011-05-30 16:55:30 +10:00
private_library=True)
2010-10-20 02:17:41 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
2013-09-23 08:38:45 +02:00
source='''registry/reg_backend_smbconf.c
registry/reg_init_smbconf.c
registry/reg_util_token.c
registry/reg_api_util.c''',
deps='smbregistry')
2010-10-20 02:17:41 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('REG_FULL',
2013-09-23 08:40:46 +02:00
source='''registry/reg_backend_printing.c
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
registry/reg_init_full.c
registry/reg_perfcount.c''',
deps='REG_SMBCONF tdb-wrap3')
2010-10-20 02:17:41 +02:00
2011-06-28 17:58:25 +02:00
bld.SAMBA3_LIBRARY('popt_samba3',
2013-09-23 07:54:19 +02:00
source='lib/popt_common.c',
2011-06-28 18:00:45 +02:00
deps='popt samba-util util_cmdline',
2011-05-16 21:20:36 +10:00
private_library=True)
2010-04-30 14:33:49 +02:00
2011-06-28 18:00:45 +02:00
bld.SAMBA3_LIBRARY('util_cmdline',
2011-06-23 17:33:04 +10:00
source='lib/util_cmdline.c',
2012-01-30 10:53:18 +01:00
deps='secrets3',
2011-06-23 17:33:04 +10:00
private_library=True)
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
2013-09-23 07:58:32 +02:00
source='libads/kerberos.c libads/ads_status.c',
public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
2010-04-30 14:43:57 +02:00
2012-01-12 13:39:17 +01:00
bld.SAMBA3_SUBSYSTEM('samba3util',
2013-09-23 07:51:12 +02:00
source='''lib/system.c
lib/sendfile.c
lib/recvfile.c
lib/time.c
lib/util_sid.c
lib/util_file.c
lib/util.c
lib/util_sock.c
lib/util_transfer_file.c
lib/sock_exec.c''',
deps='ndr samba-security NDR_SECURITY samba-util util_tdb ccan-hash')
2012-01-12 13:39:17 +01:00
2013-09-23 07:34:48 +02:00
bld.SAMBA3_SUBSYSTEM('TDB_LIB',
source='''lib/dbwrap/dbwrap_open.c
lib/dbwrap/dbwrap_ctdb.c
lib/dbwrap/dbwrap_watch.c
lib/g_lock.c''',
deps='dbwrap')
2011-05-30 16:55:30 +10:00
bld.SAMBA3_SUBSYSTEM('samba3core',
2013-09-23 07:37:45 +02:00
source='''lib/messages.c
lib/messages_local.c
lib/messages_ctdbd.c
lib/ctdb_packet.c
lib/ctdbd_conn.c
lib/ctdb_conn.c
lib/msg_channel.c
lib/id_cache.c
lib/talloc_dict.c
lib/serverid.c
lib/addrchange.c
../lib/util/debug_s3.c
lib/dumpcore.c
lib/interface.c
lib/username.c
lib/access.c lib/smbrun.c
lib/wins_srv.c
lib/substitute.c
lib/substitute_generic.c
lib/ms_fnmatch.c
lib/tallocmsg.c
lib/dmallocmsg.c
intl/lang_tdb.c
lib/gencache.c
lib/events.c
lib/server_contexts.c
lib/server_prefork.c
lib/server_prefork_util.c
lib/ldap_escape.c
lib/fncall.c
libads/krb5_errs.c
lib/system_smbd.c
lib/audit.c
lib/tevent_wait.c
lib/idmap_cache.c
lib/util_ea.c''',
2012-01-18 14:17:40 +01:00
deps='''
samba3util
LIBTSOCKET
NDR_MESSAGING
LIBASYNC_REQ
UTIL_PW
SAMBA_VERSION
PTHREADPOOL
interfaces
param
dbwrap
2012-03-24 16:42:47 +01:00
samba3-util
2013-09-23 07:34:48 +02:00
errors3
TDB_LIB''')
2010-04-22 23:33:38 +02:00
2011-05-31 13:18:37 +10:00
bld.SAMBA3_LIBRARY('smbd_shim',
2012-02-07 10:46:43 -08:00
source='''lib/smbd_shim.c''',
deps='talloc',
2011-06-24 11:47:45 +10:00
private_library=True)
2010-04-22 23:33:38 +02:00
2011-02-23 16:50:57 +01:00
bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
2013-09-23 08:28:14 +02:00
source='''libsmb/ntlmssp.c
libsmb/ntlmssp_wrap.c''',
deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient')
2010-04-22 23:33:38 +02:00
2012-01-05 17:15:14 +01:00
bld.SAMBA3_SUBSYSTEM('auth_generic',
source='libsmb/auth_generic.c',
2013-09-23 10:11:18 +02:00
deps='LIBNTLMSSP gse gensec')
2012-01-05 17:15:14 +01:00
2011-06-28 18:03:03 +02:00
bld.SAMBA3_LIBRARY('libsmb',
2013-09-23 08:32:01 +02:00
source='''libsmb/clientgen.c
libsmb/cliconnect.c
libsmb/clifile.c
libsmb/clispnego.c
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
libsmb/async_smb.c
libsmb/smb2cli_tcon.c
libsmb/cli_np_tstream.c
libsmb/reparse_symlink.c
libsmb/clisymlink.c
libsmb/smbsock_connect.c
libsmb/cli_smb2_fnum.c''',
2012-01-19 10:12:18 +01:00
deps='''
LIBNTLMSSP
auth_generic
CLDAP
LIBNMB
SPNEGO_PARSE
LIBTSOCKET
KRBCLIENT
cli_smb_common
util_cmdline
tevent''',
2011-05-12 20:12:07 +02:00
private_library=True)
2010-11-30 18:07:21 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('CLDAP',
2011-02-22 09:19:49 +01:00
source='libads/cldap.c',
2013-09-23 10:11:18 +02:00
deps='cli-ldap-common cli_cldap LIBTSOCKET')
2010-04-22 23:33:38 +02:00
2012-01-26 15:27:54 -05:00
# NOTE: The secrets3 library is a low level library used by several subsystems.
# PLEASE DO NOT make it depend on high level libraries like PDB, if you are
# doing that your design is wrong and needs changing. -SSS
bld.SAMBA3_LIBRARY('secrets3',
2013-09-23 08:05:50 +02:00
source='''passdb/secrets.c
passdb/machine_account_secrets.c
passdb/machine_sid.c
passdb/secrets_lsa.c''',
2012-01-26 15:27:54 -05:00
deps='NDR_SECRETS param samba3util dbwrap',
2013-09-23 08:05:50 +02:00
private_library=True)
2010-05-11 17:11:41 +02:00
2011-10-17 17:19:27 +02:00
bld.SAMBA3_LIBRARY('smbldap',
2013-09-23 02:14:15 +02:00
source='lib/smbldap.c',
2011-10-17 17:19:27 +02:00
deps='ldap lber samba-util param',
2012-09-21 22:27:24 -07:00
enabled=bld.CONFIG_SET("HAVE_LDAP"),
2012-09-06 17:43:42 +03:00
private_library=False,
abi_directory='lib/ABI',
abi_match='smbldap_*',
pc_files=[],
vnum='0',
2011-10-17 17:19:27 +02:00
public_headers='include/smbldap.h include/smb_ldap.h')
2010-05-12 22:43:18 +02:00
2011-02-21 14:45:37 +11:00
bld.SAMBA3_LIBRARY('ads',
2013-09-23 08:01:39 +02:00
source='''libads/ldap.c
libads/sasl.c
libads/sasl_wrapping.c
libads/krb5_setpw.c
libads/kerberos_util.c
libads/ldap_user.c
libads/ads_struct.c
libads/kerberos_keytab.c
libads/disp_sec.c
libads/ldap_utils.c
libads/ldap_schema.c
libads/util.c
libads/ndr.c''',
2012-04-21 17:26:18 -04:00
deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
2013-09-23 08:01:39 +02:00
private_library=True)
2010-09-23 06:56:36 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
2013-09-23 08:02:52 +02:00
source='libads/authdata.c',
deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
2010-09-23 07:01:52 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
2013-09-23 08:03:56 +02:00
source='libads/ldap_printer.c',
deps='samba-util krb5samba')
2010-09-23 07:05:11 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN',
2013-09-23 02:18:11 +02:00
source='lib/afs_settoken.c',
deps='samba-util')
2010-09-24 12:13:27 -07:00
2013-09-23 02:38:15 +02:00
bld.SAMBA3_SUBSYSTEM('LIBAFS',
source='lib/afs.c',
deps='samba-util LIBAFS_SETTOKEN')
2011-04-12 11:02:07 +02:00
bld.SAMBA3_LIBRARY('smbconf',
2013-09-23 09:40:28 +02:00
source='''lib/smbconf/smbconf_init.c
lib/smbconf/smbconf_reg.c''',
2012-01-18 14:24:31 +01:00
deps='''
CHARSET3
LIBSMBCONF
REG_SMBCONF
SAMBA_VERSION
cap
charset
cli_smb_common
errors3
param
samba-util
smbregistry
talloc
util_reg''',
2011-04-12 11:02:07 +02:00
public_headers='../lib/smbconf/smbconf.h',
2011-08-21 02:09:14 +02:00
pc_files=[],
2011-04-12 11:02:07 +02:00
vnum='0')
2010-10-20 01:54:12 +02:00
2011-05-25 14:58:24 +10:00
bld.SAMBA3_LIBRARY('smbd_conn',
source='smbd/conn.c',
2012-03-24 16:42:47 +01:00
deps='samba3-util samba-util',
2011-05-25 14:58:24 +10:00
private_library=True)
2011-02-21 14:45:37 +11:00
bld.SAMBA3_LIBRARY('smbd_base',
2013-09-23 09:06:25 +02:00
source='''
smbd/server_reload.c
smbd/files.c
smbd/connection.c
smbd/utmp.c
smbd/session.c
smbd/dfree.c
smbd/dir.c
smbd/password.c
smbd/conn_msg.c
smbd/conn_idle.c
smbd/share_access.c
smbd/fileio.c
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
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
smbd/posix_acls.c
lib/sysacls.c
smbd/process.c
smbd/service.c
smbd/error.c
printing/printspoolss.c
printing/spoolssd.c
lib/sysquotas.c
lib/sysquotas_linux.c
lib/sysquotas_xfs.c
lib/sysquotas_4A.c
lib/sysquotas_4B.c
lib/sysquotas_nfs.c
lib/background.c
lib/sessionid_tdb.c
lib/conn_tdb.c
smbd/fake_file.c
smbd/quotas.c
smbd/ntquotas.c
smbd/msdfs.c
smbd/aio.c smbd/statvfs.c
smbd/dmapi.c
smbd/signing.c
smbd/file_access.c
smbd/dnsregister.c smbd/globals.c
smbd/smb2_server.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_ioctl_dfs.c
smbd/smb2_ioctl_filesys.c
smbd/smb2_ioctl_named_pipe.c
smbd/smb2_ioctl_network_fs.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
smbd/smbXsrv_version.c
smbd/smbXsrv_session.c
smbd/smbXsrv_tcon.c
smbd/smbXsrv_open.c
smbd/server_exit.c
smbd/durable.c
smbd/scavenger.c
smbd/mangle.c
smbd/mangle_hash.c
smbd/mangle_hash2.c
smbd/oplock.c
smbd/oplock_irix.c
smbd/oplock_linux.c
smbd/notify.c
smbd/notify_inotify.c
smbd/notify_internal.c
smbd/build_options.c''',
deps='''
talloc
tevent
pdb
libsmb
msrpc3
vfs
vfs_default
vfs_posixacl
popt_samba3
samba3core
smbd_conn
param_service
AVAHI
PRINTBASE
PROFILE
LOCKING
LIBADS_SERVER
LIBAFS
RPC_SERVER
NDR_SMBXSRV
LIBASYS
ccan-hash
NDR_SMB_ACL
netapi
NDR_IOCTL
''' + bld.env['dmapi_lib'],
private_library=True)
2010-09-23 06:45:56 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LOCKING',
2013-09-23 08:47:20 +02:00
source='''locking/locking.c
locking/brlock.c
locking/posix.c
locking/share_mode_lock.c''',
2012-01-23 18:41:35 +01:00
deps='''
tdb_compat
talloc
NDR_OPEN_FILES
2013-09-23 08:47:20 +02:00
FNAME_UTIL''')
2010-09-24 11:43:40 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('PROFILE',
2013-09-23 08:58:00 +02:00
source='profile/profile.c',
deps='samba-util')
2010-09-24 12:27:57 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('PRINTBASE',
2013-09-23 09:16:28 +02:00
source='''printing/notify.c printing/printing_db.c''',
deps='samba-util tdb_compat')
2010-09-27 03:39:41 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
2013-09-23 09:17:18 +02:00
source='''printing/printing.c
printing/nt_printing.c
printing/nt_printing_tdb.c
printing/nt_printing_migrate_internal.c
printing/nt_printing_ads.c
printing/queue_process.c''',
deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate')
2010-09-27 03:39:41 +02:00
2011-07-01 14:57:32 +02:00
bld.SAMBA3_LIBRARY('printing_migrate',
2011-07-04 19:47:29 +02:00
source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
2011-07-25 21:23:31 +02:00
deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
2011-07-01 14:57:32 +02:00
private_library=True)
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('PRINTING',
2013-09-23 09:14:07 +02:00
source='''printing/pcap.c
printing/print_svid.c
printing/print_aix.c
printing/print_cups.c
printing/print_generic.c
printing/lpq_parse.c
printing/load.c
printing/print_standard.c
printing/print_iprint.c
printing/printer_list.c''',
deps='NDR_PRINTCAP tdb_compat cups')
2010-09-27 03:39:41 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
2013-09-23 09:24:28 +02:00
source='utils/passwd_util.c',
deps='samba-util')
2010-09-24 16:13:55 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
2013-09-23 09:07:16 +02:00
source='lib/filename_util.c',
deps='samba-util')
2010-11-30 14:29:31 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBNET',
2013-09-23 09:42:22 +02:00
source='libnet/libnet_join.c',
deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
2010-09-24 16:45:41 -07:00
2011-11-02 12:04:46 +01:00
bld.SAMBA3_LIBRARY('net_keytab',
source='libnet/libnet_keytab.c',
2012-04-21 17:26:18 -04:00
deps='krb5samba ads',
2011-11-02 12:04:46 +01:00
private_library=True)
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
2013-09-23 09:43:33 +02:00
source='''libnet/libnet_dssync.c
libnet/libnet_dssync_passdb.c
libnet/libnet_dssync_keytab.c''',
deps='LIBNET RPC_NDR_DRSUAPI')
2010-09-24 16:45:41 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
2013-09-23 09:44:25 +02:00
source='''libnet/libnet_samsync.c
libnet/libnet_samsync_ldif.c
libnet/libnet_samsync_passdb.c
libnet/libnet_samsync_display.c
libnet/libnet_samsync_keytab.c''',
deps='LIBNET LIBCLI_SAMSYNC')
2010-09-24 16:45:41 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
2013-09-23 08:44:17 +02:00
source='lib/eventlog/eventlog.c',
deps='NDR_EVENTLOG tdb_compat')
2010-09-24 17:06:16 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBNMB',
2013-09-23 08:24:04 +02:00
source='''libsmb/unexpected.c
libsmb/namecache.c
libsmb/nmblib.c
libsmb/namequery.c
libsmb/conncache.c
libads/sitename_cache.c''',
deps='addns lmhosts resolv')
2010-11-30 14:56:26 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('SERVICES',
2013-09-23 08:43:28 +02:00
source='''services/svc_spoolss.c
services/svc_rcinit.c
services/svc_winreg_glue.c
services/svc_netlogon.c
services/svc_winreg.c
services/svc_wins.c''',
deps='samba-util')
2010-09-27 03:47:15 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
2013-09-23 09:08:29 +02:00
source='''auth/pampass.c auth/pass_check.c''',
deps='pam PAM_ERRORS')
2010-09-26 19:44:53 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
2013-09-23 07:40:42 +02:00
source='libsmb/passchange.c',
2012-01-23 18:42:18 +01:00
deps='''LIBCLI_SAMR
INIT_LSA
2012-05-21 12:45:12 +03:00
msrpc3
2013-09-23 07:40:42 +02:00
krb5samba''')
2011-01-04 13:05:51 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
2013-09-23 02:15:16 +02:00
source='lib/version.c',
deps='samba-util')
2011-01-04 13:11:35 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('SLCACHE',
2013-09-23 09:09:47 +02:00
source='libsmb/samlogon_cache.c',
deps='samba-util tdb_compat')
2010-09-26 19:44:53 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('DCUTIL',
2013-09-23 09:11:10 +02:00
source='''libsmb/namequery_dc.c
libsmb/trustdom_cache.c
libsmb/dsgetdcname.c''',
deps='ads msrpc3 libcli_lsa3')
2010-09-26 19:44:53 +02:00
2011-11-02 13:06:45 +01:00
bld.SAMBA3_LIBRARY('trusts_util',
source='libsmb/trusts_util.c',
2012-01-26 15:27:54 -05:00
deps='libcli_netlogon3 msrpc3 pdb',
2011-11-02 13:06:45 +01:00
private_library=True)
2011-02-21 10:12:48 +11:00
bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
2010-12-14 13:27:24 +01:00
source='lib/util_tdb.c',
2013-09-23 10:11:18 +02:00
deps='talloc samba3-util')
2010-12-14 13:50:30 +01:00
2012-03-24 16:42:47 +01:00
bld.SAMBA3_LIBRARY('samba3-util',
2012-07-23 14:51:39 +09:30
source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/memcache.c lib/namearray.c lib/file_id.c''',
2011-07-22 18:33:31 +02:00
deps='samba-util charset',
2011-06-24 11:47:45 +10:00
private_library=True)
2011-05-30 17:42:06 +10:00
2012-04-16 15:49:13 +10:00
bld.SAMBA_LIBRARY('xattr_tdb',
source='lib/xattr_tdb.c',
deps='NDR_XATTR dbwrap samba3-util',
private_library=True)
2011-05-30 16:55:30 +10:00
bld.SAMBA3_LIBRARY('CHARSET3',
source='''lib/charcnv.c lib/fstring.c''',
2011-07-22 18:33:31 +02:00
public_deps='ICONV_WRAPPER charset',
2012-03-24 16:42:47 +01:00
deps='samba-util samba3-util',
2011-06-24 11:47:45 +10:00
private_library=True)
2010-12-14 16:47:35 +01:00
2011-02-21 10:14:13 +11:00
bld.SAMBA3_SUBSYSTEM('errors3',
2011-06-17 14:40:07 +10:00
source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
2012-02-01 21:50:31 +01:00
deps='errors')
2010-09-21 01:24:13 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
2013-09-23 07:43:49 +02:00
source='rpc_client/cli_samr.c',
2011-01-18 14:41:22 +01:00
deps='RPC_NDR_SAMR')
2010-11-30 16:43:34 +01:00
2011-06-28 18:15:23 +02:00
bld.SAMBA3_LIBRARY('libcli_lsa3',
2013-09-23 07:43:06 +02:00
source='rpc_client/cli_lsarpc.c',
2012-01-23 14:46:31 +01:00
deps='RPC_NDR_LSA INIT_LSA',
2011-06-24 11:47:45 +10:00
private_library=True)
2010-11-30 17:09:34 +01:00
2011-11-02 16:58:53 +01:00
bld.SAMBA3_LIBRARY('libcli_netlogon3',
2013-09-23 07:44:58 +02:00
source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
2011-11-02 16:58:53 +01:00
deps='RPC_NDR_NETLOGON INIT_NETLOGON cliauth param',
private_library=True)
2010-11-30 17:27:37 +01:00
2011-07-25 21:23:31 +02:00
bld.SAMBA3_LIBRARY('cli_spoolss',
2013-09-23 07:42:14 +02:00
source='''rpc_client/cli_spoolss.c
rpc_client/init_spoolss.c''',
2012-01-26 15:27:54 -05:00
deps='RPC_NDR_SPOOLSS param secrets3',
2011-07-05 11:29:37 +02:00
private_library=True)
2010-11-30 17:50:32 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
2011-07-08 17:17:17 +02:00
source='rpc_client/cli_winreg.c',
deps='RPC_NDR_WINREG')
bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
source='rpc_client/cli_winreg_int.c',
deps='LIBCLI_WINREG RPC_NCACN_NP')
2011-02-03 12:25:24 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
2013-09-23 08:45:21 +02:00
source='rpc_client/cli_pipe_schannel.c',
deps='samba-util krb5samba')
2010-10-08 13:17:21 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('INIT_LSA',
2011-05-20 08:12:08 +00:00
source='rpc_client/init_lsa.c',
2011-06-20 20:36:46 +10:00
deps='samba-util')
2010-10-08 13:17:21 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
2011-05-20 08:12:08 +00:00
source='rpc_client/init_netlogon.c',
2011-06-20 20:36:46 +10:00
deps='samba-util')
2010-11-30 22:37:37 +01:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
2011-05-20 08:12:08 +00:00
source='rpc_client/init_samr.c',
2011-06-20 20:36:46 +10:00
deps='samba-util')
2010-11-30 22:41:41 +01:00
2010-04-18 09:30:59 +02:00
########################## BINARIES #################################
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbd/smbd',
2013-09-23 09:12:21 +02:00
source='smbd/server.c',
2011-08-15 13:25:37 +02:00
deps='smbd_base EPMD LSASD',
2013-09-23 09:12:21 +02:00
install_path='${SBINDIR}')
2010-03-23 18:28:03 -06:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('nmbd/nmbd',
2013-09-23 02:08:49 +02:00
source='''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''',
2012-01-23 14:46:45 +01:00
deps='''
talloc
tevent
param
libsmb
popt_samba3
PROFILE''',
2013-09-23 02:08:49 +02:00
install_path='${SBINDIR}')
2010-04-11 22:05:50 +02:00
2013-09-23 02:50:19 +02:00
bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
source='lib/tdb_validate.c',
deps='samba-util')
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('winbindd/winbindd',
2013-09-23 02:55:56 +02:00
source='''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_byip.c
winbindd/winbindd_wins_byname.c
winbindd/winbindd_msrpc.c
winbindd/winbindd_rpc.c
winbindd/winbindd_reconnect.c
winbindd/winbindd_ads.c
winbindd/winbindd_samr.c
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
winbindd/wb_lookupsids.c
winbindd/wb_lookupname.c
winbindd/wb_uid2sid.c
winbindd/wb_gid2sid.c
winbindd/wb_sids2xids.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
winbindd/winbindd_lookupsids.c
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
winbindd/winbindd_sids_to_xids.c
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
winbindd/winbindd_pam_auth.c
winbindd/winbindd_pam_logoff.c
winbindd/winbindd_pam_chauthtok.c
winbindd/winbindd_pam_auth_crap.c
winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
2012-01-23 15:14:20 +01:00
deps='''
talloc
tevent
pdb
popt_samba3
idmap
2012-01-24 19:03:12 +01:00
ads
msrpc3
2012-01-23 15:14:20 +01:00
nss_info
2012-01-24 19:03:12 +01:00
LIBAFS
LIBADS_SERVER
2012-01-23 15:14:20 +01:00
LIBCLI_SAMR
2012-01-24 19:03:12 +01:00
SLCACHE
2012-01-23 15:14:20 +01:00
RPC_NDR_DSSETUP
2012-01-24 19:03:12 +01:00
RPC_NDR_WBINT
SRV_NDR_WBINT
2012-01-23 15:14:20 +01:00
RPC_SAMR
RPC_LSARPC
2012-01-24 19:03:12 +01:00
RPC_NCACN_NP
RPC_PIPE_REGISTER
2012-01-23 15:14:20 +01:00
WB_REQTRANS
2013-09-23 02:50:19 +02:00
TDB_VALIDATE
2010-09-23 16:29:06 -07:00
''',
2010-05-20 22:58:59 +02:00
enabled=bld.env.build_winbind,
2013-09-23 02:55:56 +02:00
install_path='${SBINDIR}')
2010-04-18 09:30:59 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('rpcclient/rpcclient',
2013-09-23 09:36:10 +02:00
source='''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
rpcclient/cmd_winreg.c
rpcclient/cmd_fss.c''',
2012-01-23 18:56:04 +01:00
deps='''
talloc
popt_samba3
pdb
libsmb
param
ndr-standard
msrpc3
SMBREADLINE
trusts_util
RPC_NDR_WINREG
RPC_NDR_ECHO
RPC_CLIENT_SCHANNEL
DCUTIL
LIBCLI_SAMR
libcli_lsa3
libcli_netlogon3
cli_spoolss
RPC_NDR_SRVSVC
RPC_NDR_WKSSVC
RPC_NDR_DSSETUP
RPC_NDR_DFS
RPC_NDR_DRSUAPI
RPC_NDR_NTSVCS
RPC_NDR_EVENTLOG
2010-11-30 22:41:41 +01:00
INIT_SAMR
2013-09-23 09:36:10 +02:00
RPC_NDR_FSRVP
''')
2010-09-23 00:13:34 -07:00
2012-05-30 13:10:57 +02:00
bld.SAMBA3_BINARY('client/smbclient',
2013-09-23 02:00:56 +02:00
source='''client/client.c
client/clitar.c
client/dnsbrowse.c''',
2012-01-24 11:28:28 +01:00
deps='''
talloc
popt_samba3
param
ndr-standard
SMBREADLINE
2012-04-16 17:07:05 +02:00
libsmb
msrpc3
2012-01-24 11:28:28 +01:00
RPC_NDR_SRVSVC
2012-04-16 17:07:05 +02:00
cli_smb_common''')
2010-05-26 14:09:39 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('net',
2013-09-23 09:47:36 +02:00
source='''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_time.c
utils/net_lookup.c
utils/net_cache.c
utils/net_groupmap.c
utils/net_idmap.c
utils/net_idmap_check.c
utils/interact.c
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
utils/net_dns.c
utils/net_ads_gpo.c
utils/net_conf.c
2013-09-24 06:38:09 +02:00
utils/net_conf_util.c
2013-09-23 09:47:36 +02:00
utils/net_join.c
utils/net_user.c
utils/net_group.c
utils/net_file.c
utils/net_registry.c
utils/net_registry_check.c
utils/net_dom.c
utils/net_share.c
utils/net_g_lock.c
utils/net_serverid.c
utils/net_eventlog.c
utils/net_printing.c
utils/net_rpc_trust.c
utils/net_rpc_conf.c
registry/reg_parse.c
registry/reg_format.c
registry/reg_import.c
utils/net_registry_util.c
utils/net_help_common.c''',
2012-01-24 11:52:20 +01:00
deps='''
talloc
netapi
addns
2013-08-01 23:00:21 +02:00
samba_intl
2012-01-24 11:52:20 +01:00
popt_samba3
pdb
libsmb
param
KRBCLIENT
ndr-standard
msrpc3
gpo
ads
2012-09-07 15:18:39 +02:00
smbd_base
2012-01-24 11:52:20 +01:00
LIBADS_SERVER
LIBADS_PRINTER
SMBREADLINE
PASSWD_UTIL
LIBNET
LIBNET_DSSYNC
LIBNET_SAMSYNC
LIBEVENTLOG
REGFIO
NDR_NTPRINTING
RPC_NDR_WINREG
RPC_CLIENT_SCHANNEL
LIBCLI_SAMR
libcli_lsa3
libcli_netlogon3
cli_spoolss
RPC_NDR_SRVSVC
RPC_NDR_SVCCTL
RPC_NDR_DSSETUP
RPC_NDR_INITSHUTDOWN
printing_migrate
2013-09-10 01:19:52 +02:00
trusts_util
IDMAP_AUTORID_TDB''')
2010-08-12 15:42:16 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('profiles',
2013-09-23 08:58:56 +02:00
source='utils/profiles.c',
2012-01-24 12:35:58 +01:00
deps='''
talloc
popt_samba3
param
2013-09-23 08:58:56 +02:00
REGFIO''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbspool',
2013-09-23 09:48:26 +02:00
source='client/smbspool.c',
2012-01-24 12:51:31 +01:00
deps='''
talloc
popt_samba3
param
libsmb
2013-09-23 09:48:26 +02:00
samba3core''')
2010-04-11 23:01:29 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('testparm',
2013-09-23 09:21:53 +02:00
source='utils/testparm.c',
2012-01-24 12:54:28 +01:00
deps='''
talloc
param
2013-09-23 09:21:53 +02:00
popt_samba3''')
2010-04-18 09:30:59 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbta-util',
2013-09-23 09:22:56 +02:00
source='utils/smbta-util.c',
2012-01-24 13:01:12 +01:00
deps='''
talloc
2012-01-26 15:27:54 -05:00
secrets3
2013-09-23 09:22:56 +02:00
param''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbstatus',
2013-09-23 09:18:48 +02:00
source='''utils/status.c
utils/status_profile.c
smbd/notify_internal.c''',
2012-01-24 13:16:55 +01:00
deps='''
talloc
param
popt_samba3
2012-09-07 15:18:39 +02:00
smbd_base
2012-01-24 13:16:55 +01:00
LOCKING
2013-09-23 09:18:48 +02:00
PROFILE''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbcontrol',
2013-09-23 09:19:31 +02:00
source='utils/smbcontrol.c',
2012-01-24 13:46:11 +01:00
deps='''
talloc
param
popt_samba3
2013-09-23 09:19:31 +02:00
PRINTBASE''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbtree',
2013-09-23 09:20:54 +02:00
source='utils/smbtree.c',
2012-01-24 13:46:22 +01:00
deps='''
talloc
param
libsmb
msrpc3
popt_samba3
PROFILE
2013-09-23 09:20:54 +02:00
RPC_NDR_SRVSVC''')
2010-09-23 00:13:34 -07:00
2011-02-21 15:05:54 +11:00
bld.SAMBA3_BINARY('smbpasswd',
2013-09-23 09:32:05 +02:00
source='utils/smbpasswd.c',
2012-01-24 14:20:03 +01:00
deps='''
talloc
param
pdb
PASSWD_UTIL
2013-09-23 09:32:05 +02:00
PASSCHANGE''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('pdbedit',
2013-09-23 09:32:58 +02:00
source='utils/pdbedit.c',
2012-01-24 14:26:38 +01:00
deps='''
talloc
param
popt_samba3
pdb
2013-09-23 09:32:58 +02:00
PASSWD_UTIL''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbget',
2013-09-23 09:33:57 +02:00
source='utils/smbget.c',
2012-01-24 14:28:48 +01:00
deps='''
talloc
2012-01-30 10:53:18 +01:00
popt_samba3
2013-09-23 09:33:57 +02:00
smbclient''')
2010-09-23 00:13:34 -07:00
2012-05-30 13:09:57 +02:00
bld.SAMBA3_BINARY('nmblookup',
2013-09-23 09:49:10 +02:00
source='utils/nmblookup.c',
2012-01-24 15:38:56 +01:00
deps='''
talloc
param
popt_samba3
2013-09-23 09:49:10 +02:00
LIBNMB''')
2010-09-23 00:13:34 -07:00
2011-02-21 11:12:22 +11:00
bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
2013-09-23 09:50:57 +02:00
source='''torture/torture.c
torture/nbio.c
torture/scanner.c
torture/utable.c
torture/denytest.c
torture/mangle_test.c
torture/nbench.c
torture/test_async_echo.c
torture/test_addrchange.c
torture/test_posix_append.c
torture/test_nttrans_create.c
torture/test_nttrans_fsctl.c
torture/test_case_insensitive.c
torture/test_notify_online.c
torture/test_chain3.c
torture/test_smb2.c
torture/test_authinfo_structs.c
torture/test_smbsock_any_connect.c
torture/test_cleanup.c
torture/test_ctdbconn.c
torture/test_msg.c
torture/test_notify.c
lib/tevent_barrier.c
torture/test_dbwrap_watch.c
torture/test_idmap_tdb_common.c
torture/test_dbwrap_ctdb.c
torture/test_buffersize.c
torture/t_strappend.c
torture/wbc_async.c''',
2012-01-24 15:39:11 +01:00
deps='''
talloc
param
libsmb
msrpc3
TLDAP
RPC_NDR_ECHO
WB_REQTRANS
2012-06-28 00:51:45 +02:00
LOCKING
2013-09-23 09:50:57 +02:00
NDR_OPEN_FILES
idmap
2012-01-24 15:39:11 +01:00
''',
2013-09-23 09:50:57 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbconftort',
2013-09-23 09:41:22 +02:00
source='lib/smbconf/testsuite.c',
2012-01-24 15:41:07 +01:00
deps='''
talloc
param
popt_samba3''',
2013-09-23 09:41:22 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-22 14:33:10 +01:00
bld.SAMBA3_BINARY('replacetort',
source='../lib/replace/test/main.c',
deps='replace replace-test',
install=False)
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('msgtest',
2013-09-23 09:51:54 +02:00
source='torture/msgtest.c',
2012-01-24 15:55:05 +01:00
deps='''
talloc
param''',
2013-09-23 09:51:54 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbcacls',
2013-09-23 09:55:56 +02:00
source='utils/smbcacls.c',
2012-01-24 15:57:15 +01:00
deps='''
talloc
popt_samba3
msrpc3
2012-05-21 12:45:12 +03:00
libcli_lsa3
2013-09-23 09:55:56 +02:00
krb5samba''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbcquotas',
2013-09-23 09:56:53 +02:00
source='utils/smbcquotas.c',
2012-01-24 16:03:02 +01:00
deps='''
talloc
popt_samba3
libsmb
msrpc3
2013-09-23 09:56:53 +02:00
libcli_lsa3''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('eventlogadm',
2013-09-23 09:57:41 +02:00
source='utils/eventlogadm.c',
2012-01-24 16:06:01 +01:00
deps='''
talloc
param
2013-09-23 09:57:41 +02:00
LIBEVENTLOG''')
2010-04-30 19:45:06 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('sharesec',
2013-09-23 09:58:30 +02:00
source='utils/sharesec.c',
2012-01-24 16:08:59 +01:00
deps='''
talloc
2013-09-23 09:58:30 +02:00
popt_samba3''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('pdbtest',
2013-09-23 09:52:44 +02:00
source='torture/pdbtest.c',
2012-01-24 16:15:32 +01:00
deps='''
talloc
pdb
2012-08-08 15:22:03 +10:00
popt_samba3
AUTH_COMMON
auth''',
2013-09-23 09:52:44 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('vfstest',
2013-09-23 09:53:43 +02:00
source='''torture/cmd_vfs.c
torture/vfstest.c
torture/vfstest_chain.c''',
2012-01-24 16:23:11 +01:00
deps='''
vfs
popt_samba3
SMBREADLINE''',
2013-09-23 09:53:43 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('log2pcap',
2013-09-23 09:54:28 +02:00
source='utils/log2pcaphex.c',
2010-09-23 00:13:34 -07:00
deps='''talloc popt''',
2013-09-23 09:54:28 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('locktest2',
2013-09-23 09:55:14 +02:00
source='torture/locktest2.c',
2012-01-24 16:26:23 +01:00
deps='''
talloc
param
libsmb
LOCKING''',
2013-09-23 09:55:14 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('debug2html',
2013-09-23 09:59:38 +02:00
source='''utils/debug2html.c utils/debugparse.c''',
2010-09-23 00:13:34 -07:00
deps='''talloc popt''',
2013-09-23 09:59:38 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('smbfilter',
2013-09-23 10:00:21 +02:00
source='utils/smbfilter.c',
2012-01-24 16:29:34 +01:00
deps='''
talloc
param
LIBNMB''',
2013-09-23 10:00:21 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('versiontest',
2011-01-04 13:11:35 +01:00
source='lib/version_test.c',
2012-01-24 16:30:51 +01:00
deps='''
SAMBA_VERSION
param''',
2013-09-23 10:11:18 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2012-11-21 15:34:43 +11:00
bld.SAMBA3_BINARY('ntlm_auth',
2013-09-23 10:02:11 +02:00
source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
2012-01-24 16:39:01 +01:00
deps='''
talloc
2012-04-21 17:26:18 -04:00
krb5samba
2012-05-09 15:33:04 +02:00
iniparser
2012-01-24 16:39:01 +01:00
libsmb
popt_samba3
2013-09-23 10:02:11 +02:00
LIBNTLMSSP gse gensec''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('timelimit',
2010-09-23 00:13:34 -07:00
source='script/tests/timelimit.c',
2013-09-23 10:11:18 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('rpc_open_tcp',
2013-09-23 10:04:04 +02:00
source='torture/rpc_open_tcp.c',
2012-01-24 16:46:55 +01:00
deps='''
talloc
msrpc3''',
2013-09-23 10:04:04 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('test_lp_load',
2013-09-23 09:23:47 +02:00
source='param/test_lp_load.c',
2012-01-24 16:49:17 +01:00
deps='''
talloc
param
popt_samba3''',
2013-09-23 09:23:47 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('dbwrap_tool',
2013-09-23 10:04:53 +02:00
source='utils/dbwrap_tool.c',
2012-01-24 16:51:39 +01:00
deps='''
talloc
2013-09-23 10:04:53 +02:00
popt_samba3''')
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('dbwrap_torture',
2013-09-23 10:05:43 +02:00
source='utils/dbwrap_torture.c',
2012-01-24 16:54:02 +01:00
deps='''
talloc
popt_samba3''',
2013-09-23 10:05:43 +02:00
install=False)
2010-09-23 00:13:34 -07:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('split_tokens',
2013-09-23 10:06:38 +02:00
source='utils/split_tokens.c',
2012-01-24 16:58:03 +01:00
deps='''
talloc
popt_samba3''',
2013-09-23 10:06:38 +02:00
install=False)
2010-09-19 22:35:26 +02:00
2011-02-09 15:56:20 +11:00
bld.SAMBA3_BINARY('vlp',
2013-09-23 10:03:08 +02:00
source='printing/tests/vlp.c',
2012-01-24 17:01:08 +01:00
deps='''
talloc
param''',
2013-09-23 10:03:08 +02:00
install=False)
2010-09-29 08:48:49 +02:00
2012-05-07 16:24:03 +10:00
bld.SAMBA3_PYTHON('pysmbd',
source='smbd/pysmbd.c',
2012-08-02 13:35:24 +10:00
deps='smbd_base pyrpc_util',
2012-05-07 16:24:03 +10:00
realname='samba/samba3/smbd.so'
)
2012-08-02 23:21:27 +02:00
bld.SAMBA3_PYTHON('pylibsmb',
source='libsmb/pylibsmb.c',
deps='smbclient samba-credentials',
realname='samba/samba3/libsmb_samba_internal.so'
)
2013-07-19 16:08:39 +02:00
bld.SAMBA3_BINARY('samba-regedit',
2012-07-27 03:37:22 -07:00
source="""utils/regedit.c utils/regedit_samba3.c
utils/regedit_wrap.c utils/regedit_treeview.c
2012-08-06 19:06:15 -07:00
utils/regedit_valuelist.c utils/regedit_dialog.c
utils/regedit_hexedit.c""",
2012-08-06 12:29:11 -07:00
deps='ncurses menu panel form registry param popt_samba3 smbregistry',
2013-09-23 10:11:18 +02:00
enabled=bld.env.build_regedit)
2012-07-06 03:08:17 -07:00
2010-04-18 06:43:01 -06:00
########################## INCLUDES #################################
2010-04-18 09:30:59 +02:00
2010-09-26 19:43:43 +02:00
bld.RECURSE('auth')
2010-09-26 20:30:36 +02:00
bld.RECURSE('libgpo/gpext')
2011-04-27 13:16:59 +02:00
bld.RECURSE('lib/pthreadpool')
2012-06-21 12:51:12 +02:00
bld.RECURSE('lib/asys')
2011-01-07 12:08:54 +01:00
bld.RECURSE('librpc')
bld.RECURSE('librpc/idl')
2012-04-16 17:05:35 +02:00
bld.RECURSE('libsmb')
2011-01-07 12:08:54 +01:00
bld.RECURSE('modules')
2010-09-28 08:54:39 +02:00
bld.RECURSE('pam_smbpass')
2011-01-07 12:08:54 +01:00
bld.RECURSE('passdb')
2010-09-28 18:55:55 +02:00
bld.RECURSE('rpc_server')
2013-05-26 21:05:12 +10:00
bld.RECURSE('script')
2011-01-07 12:08:54 +01:00
bld.RECURSE('winbindd')
2011-10-17 15:54:17 +02:00
bld.RECURSE('../examples/auth')
2011-10-19 13:56:42 +02:00
bld.RECURSE('../examples/libsmbclient')
2011-10-17 16:08:50 +02:00
bld.RECURSE('../examples/pdb')
2011-10-11 19:20:05 +02:00
bld.RECURSE('../examples/VFS')
2011-10-20 13:41:30 +11:00
bld.RECURSE('lib/netapi/tests')
2011-10-21 09:02:23 +11:00
bld.RECURSE('lib/netapi/examples')
2011-02-24 11:23:53 +11:00
2010-03-23 18:28:03 -06:00
bld.ENFORCE_GROUP_ORDERING()
bld.CHECK_PROJECT_RULES()
2011-02-23 10:08:12 +11:00