2002-08-17 18:15:33 +04:00
#########################################################################
1998-07-29 07:08:05 +04:00
# Makefile.in for Samba - rewritten for autoconf support
# Copyright Andrew Tridgell 1992-1998
2001-11-14 04:23:59 +03:00
# Copyright (C) 2001 by Martin Pool <mbp@samba.org>
2003-03-20 14:16:14 +03:00
# Copyright Andrew Bartlett 2002
2003-08-28 18:57:23 +04:00
# Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
2003-04-15 16:02:24 +04:00
# Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
2006-02-24 03:30:09 +03:00
# Copyright (C) 2006 Lars Mueller <lars@samba.org>
2007-09-30 03:54:32 +04:00
# Copyright (C) 2007 James Peach <jpeach@samba.org>
2008-03-07 16:24:53 +03:00
# Copyright (C) 2008 Michael Adam <obnox@samba.org>
1998-07-29 07:08:05 +04:00
###########################################################################
prefix = @prefix@
exec_prefix = @exec_prefix@
2007-04-04 07:54:30 +04:00
sysconfdir = @sysconfdir@
localstatedir = @localstatedir@
2006-08-25 00:52:43 +04:00
datarootdir = @datarootdir@
1998-07-29 07:08:05 +04:00
2006-03-21 18:33:14 +03:00
selftest_prefix = @selftest_prefix@
2008-11-12 05:46:21 +03:00
selftest_shrdir = @selftest_shrdir@
2007-10-11 00:34:30 +04:00
smbtorture4_path = @smbtorture4_path@
2009-02-03 02:08:24 +03:00
smbtorture4_option = @smbtorture4_option@
2009-01-26 01:38:44 +03:00
selftest_custom_conf = @selftest_custom_conf@
2006-03-21 18:33:14 +03:00
2008-03-05 16:16:46 +03:00
LIBS = @LIBS@
1998-07-29 07:08:05 +04:00
CC = @CC@
2001-07-14 06:52:41 +04:00
SHLD = @SHLD@
2008-01-06 01:09:25 +03:00
LIB_PATH_VAR = @LIB_PATH_VAR@
2007-06-14 07:38:43 +04:00
2007-07-03 23:55:02 +04:00
## Dynamic shared libraries build settings
2008-07-09 11:05:50 +04:00
DSO_EXPORTS_CMD = -Wl,--version-script,$( srcdir) /exports/` basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/' `
2007-07-03 23:55:02 +04:00
DSO_EXPORTS = @DSO_EXPORTS@
2007-07-04 04:41:58 +04:00
SHLD_DSO = $( SHLD) $( LDSHFLAGS) $( DSO_EXPORTS) -o $@
2007-07-03 23:55:02 +04:00
2007-09-30 03:54:32 +04:00
# The MODULE_EXPORTS variable contains the platform-specific linker flags
# needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
MODULE_EXPORTS = @MODULE_EXPORTS@
2007-06-14 07:38:43 +04:00
# Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
2009-06-26 18:45:25 +04:00
# (GCC) warnings. This is done automatically for --enable-developer,
2008-07-04 00:45:07 +04:00
# --enable-picky-developer and --enable-krb5developer.
2007-06-14 07:38:43 +04:00
DEVELOPER_CFLAGS = @DEVELOPER_CFLAGS@
1998-07-29 07:08:05 +04:00
CFLAGS = @CFLAGS@
2010-05-23 02:00:41 +04:00
CPP = @CPP@
2006-05-17 04:04:09 +04:00
CPPFLAGS = -DHAVE_CONFIG_H @CPPFLAGS@
2010-06-04 02:55:10 +04:00
PICFLAG = @PICFLAG@
2007-06-14 07:38:43 +04:00
2002-12-01 06:06:18 +03:00
EXEEXT = @EXEEXT@
2003-10-03 04:06:46 +04:00
AR = @AR@
2010-06-04 02:55:10 +04:00
LDSHFLAGS = $( PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
LDSHFLAGS_MODULES = $( PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
2008-03-07 19:33:26 +03:00
LDFLAGS = @PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
2007-04-20 20:07:16 +04:00
2010-06-04 02:55:10 +04:00
WINBIND_NSS_LDSHFLAGS = $( PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
1998-07-29 07:08:05 +04:00
AWK = @AWK@
2002-02-22 05:47:53 +03:00
DYNEXP = @DYNEXP@
2003-04-16 18:45:11 +04:00
PERL = @PERL@
2010-08-15 15:17:36 +04:00
PYTHON = @PYTHON@
2009-06-07 21:05:23 +04:00
LIBDL = @LIBDL@
1998-07-29 07:08:05 +04:00
2006-09-25 16:59:31 +04:00
PIDL_ARGS = @PIDL_ARGS@
2001-04-13 23:12:06 +04:00
TERMLDFLAGS = @TERMLDFLAGS@
TERMLIBS = @TERMLIBS@
2003-09-08 06:48:06 +04:00
PRINT_LIBS = @PRINT_LIBS@
2008-10-15 03:04:13 +04:00
ZLIB_LIBS = @ZLIB_LIBS@
2003-09-08 06:48:06 +04:00
AUTH_LIBS = @AUTH_LIBS@
ACL_LIBS = @ACL_LIBS@
PASSDB_LIBS = @PASSDB_LIBS@
2003-05-29 23:08:40 +04:00
IDMAP_LIBS = @IDMAP_LIBS@
2003-04-16 18:45:11 +04:00
KRB5LIBS = @KRB5_LIBS@
2003-09-08 06:48:06 +04:00
LDAP_LIBS = @LDAP_LIBS@
2006-03-13 18:13:35 +03:00
NSCD_LIBS = @NSCD_LIBS@
2006-08-24 19:43:32 +04:00
UUID_LIBS = @UUID_LIBS@
2009-10-04 03:40:34 +04:00
LIBWBCLIENT = @LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
2009-04-01 03:37:07 +04:00
LIBWBCLIENT_LIBS = @LIBWBCLIENT_LIBS@
2010-01-29 17:23:29 +03:00
PTHREAD_LDFLAGS = @PTHREAD_LDFLAGS@
2010-02-04 12:35:45 +03:00
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
2007-10-13 09:16:22 +04:00
DNSSD_LIBS = @DNSSD_LIBS@
2009-03-20 16:53:10 +03:00
AVAHI_LIBS = @AVAHI_LIBS@
2008-07-14 19:58:53 +04:00
POPT_LIBS = @POPTLIBS@
2009-10-04 03:20:38 +04:00
LIBTALLOC = @LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
2008-07-14 20:00:50 +04:00
LIBTALLOC_LIBS = @LIBTALLOC_LIBS@
2009-10-30 21:54:52 +03:00
LIBREPLACE_LIBS = @LIBREPLACE_LIBS@
2009-10-04 03:30:43 +04:00
LIBTDB = @LIBTDB_STATIC@ @LIBTDB_SHARED@
2008-07-14 20:02:08 +04:00
LIBTDB_LIBS = @LIBTDB_LIBS@
2010-08-13 16:53:22 +04:00
TDB_DEPS = @TDB_DEPS@
2009-10-04 03:33:12 +04:00
LIBNETAPI = @LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
2008-07-14 20:06:05 +04:00
LIBNETAPI_LIBS = @LIBNETAPI_LIBS@
2009-04-01 03:56:02 +04:00
LIBSMBCLIENT_LIBS = @LIBSMBCLIENT_LIBS@
LIBSMBSHAREMODES_LIBS = @LIBSMBSHAREMODES_LIBS@
2001-04-13 23:12:06 +04:00
2009-06-19 22:31:33 +04:00
TALLOCTORT = @TALLOCTORT@
2009-06-19 21:45:58 +04:00
TDBBACKUP = @TDBBACKUP@
TDBTOOL = @TDBTOOL@
TDBDUMP = @TDBDUMP@
TDBTORTURE = @TDBTORTURE@
1998-07-29 07:08:05 +04:00
INSTALLCMD = @INSTALL@
2005-12-06 00:02:23 +03:00
INSTALLLIBCMD_SH = @INSTALLLIBCMD_SH@
INSTALLLIBCMD_A = @INSTALLLIBCMD_A@
2006-02-24 03:30:09 +03:00
UNINSTALLLIBCMD_SH = @UNINSTALLLIBCMD_SH@
UNINSTALLLIBCMD_A = @UNINSTALLLIBCMD_A@
1998-07-29 07:08:05 +04:00
VPATH = @srcdir@
2003-05-27 06:35:53 +04:00
srcdir = @abs_srcdir@
builddir = @abs_builddir@
2001-11-14 04:23:59 +03:00
# XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
# will search for a POSIX-compliant shell, and that might not be
# /bin/sh on some platforms. I guess it's not a big problem -- mbp
2009-03-14 23:08:09 +03:00
SHELL = /bin/sh
DESTDIR = /
2001-11-14 04:23:59 +03:00
2001-11-19 05:49:53 +03:00
# See the autoconf manual "Installation Directory Variables" for a
2003-09-08 06:48:06 +04:00
# discussion of the subtle use of these variables.
2001-11-19 05:49:53 +03:00
1998-11-20 02:42:57 +03:00
BASEDIR = @prefix@
1998-11-18 01:06:59 +03:00
BINDIR = @bindir@
2001-07-04 10:31:15 +04:00
# sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
SBINDIR = @sbindir@
2006-02-27 17:10:14 +03:00
ROOTSBINDIR = @rootsbindir@
1998-11-18 01:06:59 +03:00
LIBDIR = @libdir@
2008-08-15 02:36:49 +04:00
MODULESDIR = @modulesdir@
2007-12-21 20:57:34 +03:00
INCLUDEDIR = @includedir@
2006-03-22 00:54:53 +03:00
PAMMODULESDIR = @pammodulesdir@
2008-08-15 02:36:49 +04:00
VFSLIBDIR = $( MODULESDIR) /vfs
2009-02-09 10:10:34 +03:00
PERFCOUNTLIBDIR = $( MODULESDIR) /perfcount
2008-08-15 02:36:49 +04:00
PDBLIBDIR = $( MODULESDIR) /pdb
RPCLIBDIR = $( MODULESDIR) /rpc
IDMAPLIBDIR = $( MODULESDIR) /idmap
NSSINFOLIBDIR = $( MODULESDIR) /nss_info
CHARSETLIBDIR = $( MODULESDIR) /charset
AUTHLIBDIR = $( MODULESDIR) /auth
CONFIGLIBDIR = $( MODULESDIR) /config
GPEXTLIBDIR = $( MODULESDIR) /gpext
2002-11-27 02:18:35 +03:00
CONFIGDIR = @configdir@
2006-11-30 09:26:11 +03:00
VARDIR = @localstatedir@
1998-11-18 01:06:59 +03:00
MANDIR = @mandir@
2004-01-11 01:05:38 +03:00
DATADIR = @datadir@
1998-07-29 07:08:05 +04:00
2007-05-26 17:24:56 +04:00
# The permissions to give the executables and other data
2007-05-26 17:30:45 +04:00
INSTALLPERMS_BIN = 0755
2007-05-26 17:24:56 +04:00
INSTALLPERMS_DATA = 0644
1998-07-29 07:08:05 +04:00
# set these to where to find various files
# These can be overridden by command line switches (see smbd(8))
# or in smb.conf (see smb.conf(5))
2002-08-17 18:15:33 +04:00
LOGFILEBASE = @logfilebase@
2002-11-27 02:18:35 +03:00
CONFIGFILE = $( CONFIGDIR) /smb.conf
LMHOSTSFILE = $( CONFIGDIR) /lmhosts
2008-09-22 21:24:59 +04:00
NCALRPCDIR = @ncalrpcdir@
2002-11-27 02:18:35 +03:00
1999-12-13 16:27:58 +03:00
# This is where smbpasswd et al go
PRIVATEDIR = @privatedir@
SMB_PASSWD_FILE = $( PRIVATEDIR) /smbpasswd
2000-11-21 08:55:16 +03:00
PRIVATE_DIR = $( PRIVATEDIR)
1998-07-29 07:08:05 +04:00
# This is where SWAT images and help files go
1999-12-13 16:27:58 +03:00
SWATDIR = @swatdir@
1998-07-29 07:08:05 +04:00
2008-10-30 12:53:52 +03:00
# This is where locale(mo) files go
LOCALEDIR = @localedir@
1998-07-29 07:08:05 +04:00
# the directory where lock files go
1999-12-13 16:27:58 +03:00
LOCKDIR = @lockdir@
1998-07-29 07:08:05 +04:00
2009-01-08 22:18:13 +03:00
# FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
2007-11-01 20:00:10 +03:00
CACHEDIR = @cachedir@
STATEDIR = @statedir@
# Where to look for (and install) codepage databases.
CODEPAGEDIR = @codepagedir@
2002-10-01 17:10:57 +04:00
# the directory where pid files go
2002-07-15 14:35:28 +04:00
PIDDIR = @piddir@
2001-09-24 19:55:09 +04:00
2009-03-31 10:50:16 +04:00
FLAGS = -I. \
-I$( srcdir) \
@FLAGS1@ \
@SAMBA_CPPFLAGS@ \
$( CPPFLAGS) \
$( ISA) \
-I$( srcdir) /lib \
-I.. \
-I../source4 \
-D_SAMBA_BUILD_= 3
1999-12-13 16:27:58 +03:00
2007-05-15 09:25:10 +04:00
PATH_FLAGS = -DSMB_PASSWD_FILE= \" $( SMB_PASSWD_FILE) \" \
-DPRIVATE_DIR= \" $( PRIVATE_DIR) \" \
-DCONFIGFILE= \" $( CONFIGFILE) \" \
-DSBINDIR= \" $( SBINDIR) \" \
-DBINDIR= \" $( BINDIR) \" \
-DLMHOSTSFILE= \" $( LMHOSTSFILE) \" \
-DSWATDIR= \" $( SWATDIR) \" \
-DLOCKDIR= \" $( LOCKDIR) \" \
-DPIDDIR= \" $( PIDDIR) \" \
-DLIBDIR= \" $( LIBDIR) \" \
2008-08-15 02:36:49 +04:00
-DMODULESDIR= \" $( MODULESDIR) \" \
2007-05-22 02:17:13 +04:00
-DLOGFILEBASE= \" $( LOGFILEBASE) \" \
2007-05-15 09:25:10 +04:00
-DSHLIBEXT= \" @SHLIBEXT@\" \
2008-09-22 21:24:59 +04:00
-DNCALRPCDIR= \" $( NCALRPCDIR) \" \
2007-11-01 20:00:10 +03:00
-DCONFIGDIR= \" $( CONFIGDIR) \" \
-DCODEPAGEDIR= \" $( CODEPAGEDIR) \" \
-DCACHEDIR= \" $( CACHEDIR) \" \
2008-10-30 12:53:52 +03:00
-DSTATEDIR= \" $( STATEDIR) \" \
-DLOCALEDIR= \" $( LOCALEDIR) \"
2001-11-19 05:49:53 +03:00
2002-12-01 06:06:18 +03:00
# Note that all executable programs now provide for an optional executable suffix.
2002-11-29 04:17:00 +03:00
2008-09-05 16:01:45 +04:00
SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
2002-11-29 04:17:00 +03:00
2002-12-01 06:06:18 +03:00
BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
2010-02-02 02:14:28 +03:00
bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
bin/smbta-util@EXEEXT@
2009-06-19 21:45:58 +04:00
BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $( TDBBACKUP) \
bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $( TDBDUMP) \
$( TDBTOOL)
2002-12-01 06:06:18 +03:00
BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
2008-12-26 23:41:29 +03:00
bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
2010-02-02 02:14:28 +03:00
bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
2002-12-01 06:06:18 +03:00
TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
2006-07-11 22:01:26 +04:00
bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
2009-06-19 22:31:33 +04:00
bin/pdbtest@EXEEXT@ $( TALLOCTORT) bin/replacetort@EXEEXT@ \
2009-06-19 21:45:58 +04:00
$( TDBTORTURE) \
2008-10-19 15:35:37 +04:00
bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
2002-11-29 04:17:00 +03:00
2008-02-28 17:49:57 +03:00
BIN_PROGS = @EXTRA_BIN_PROGS@ \
2010-05-06 12:41:43 +04:00
$( BIN_PROGS1) $( BIN_PROGS2) $( BIN_PROGS3)
2002-11-29 04:17:00 +03:00
2006-10-02 15:35:41 +04:00
EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
2009-06-19 22:31:33 +04:00
$( TALLOCTORT) bin/replacetort@EXEEXT@ \
2008-12-26 23:41:29 +03:00
bin/log2pcap@EXEEXT@ \
2009-05-15 17:41:26 +04:00
bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
2009-11-21 02:48:40 +03:00
bin/dbwrap_tool@EXEEXT@ \
bin/dbwrap_torture@EXEEXT@
2003-04-02 10:26:01 +04:00
2006-03-13 19:10:26 +03:00
PAM_MODULES = @PAM_MODULES@
2007-04-17 14:07:12 +04:00
NSS_MODULES = @NSS_MODULES@
2007-04-03 17:30:43 +04:00
2003-04-29 19:27:06 +04:00
SCRIPTS = $( srcdir) /script/smbtar $( builddir) /script/findsmb
1998-07-29 07:08:05 +04:00
2003-04-16 18:45:11 +04:00
VFS_MODULES = @VFS_MODULES@
2009-02-09 10:10:34 +03:00
PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
2003-04-15 20:01:14 +04:00
PDB_MODULES = @PDB_MODULES@
2003-04-15 20:55:21 +04:00
RPC_MODULES = @RPC_MODULES@
2003-05-29 23:08:40 +04:00
IDMAP_MODULES = @IDMAP_MODULES@
2003-04-16 17:09:00 +04:00
CHARSET_MODULES = @CHARSET_MODULES@
2003-04-16 18:45:11 +04:00
AUTH_MODULES = @AUTH_MODULES@
2007-01-24 04:48:08 +03:00
NSS_INFO_MODULES = @NSS_INFO_MODULES@
2008-02-29 19:06:22 +03:00
GPEXT_MODULES = @GPEXT_MODULES@
2007-01-24 04:48:08 +03:00
MODULES = $( VFS_MODULES) $( PDB_MODULES) $( RPC_MODULES) $( IDMAP_MODULES) \
2008-02-29 19:06:22 +03:00
$( CHARSET_MODULES) $( AUTH_MODULES) $( NSS_INFO_MODULES) \
2009-02-09 10:10:34 +03:00
$( GPEXT_MODULES) $( PERFCOUNT_MODULES)
2002-11-18 19:22:04 +03:00
2008-11-10 17:13:15 +03:00
EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
1998-07-29 07:08:05 +04:00
######################################################################
1998-08-09 17:25:34 +04:00
# object file lists
1998-07-29 07:08:05 +04:00
######################################################################
2008-10-12 18:53:17 +04:00
TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
2008-03-19 21:40:10 +03:00
lib/dbwrap.o lib/dbwrap_tdb.o \
2008-08-07 10:20:05 +04:00
lib/dbwrap_ctdb.o \
2009-10-25 18:12:12 +03:00
lib/g_lock.o \
2009-04-01 02:37:47 +04:00
lib/dbwrap_rbt.o
2000-04-29 08:05:38 +04:00
2009-01-28 10:52:53 +03:00
TDB_VALIDATE_OBJ = lib/tdb_validate.o
2005-07-04 20:39:11 +04:00
SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
2003-06-05 06:34:30 +04:00
2004-05-10 23:57:54 +04:00
VERSION_OBJ = lib/version.o
2008-12-16 11:30:16 +03:00
WBCOMMON_OBJ = ../nsswitch/wb_common.o
2004-05-10 23:57:54 +04:00
AFS_OBJ = lib/afs.o
AFS_SETTOKEN_OBJ = lib/afs_settoken.o
2009-03-20 16:55:05 +03:00
AVAHI_OBJ = @AVAHI_OBJ@
2004-05-10 23:57:54 +04:00
SERVER_MUTEX_OBJ = lib/server_mutex.o
PASSCHANGE_OBJ = libsmb/passchange.o
2008-10-17 23:15:00 +04:00
LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
2008-10-15 01:46:34 +04:00
../librpc/ndr/ndr_compression.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_drsuapi.o \
2008-10-19 01:54:49 +04:00
../librpc/ndr/ndr_drsblobs.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_drsblobs.o
2008-05-24 01:56:21 +04:00
2008-10-15 03:04:13 +04:00
ZLIB_OBJ = @ZLIB_OBJS@
2008-10-15 01:49:13 +04:00
COMPRESSION_OBJ = ../lib/compression/mszip.o \
2008-10-15 03:04:13 +04:00
../lib/compression/lzxpress.o \
$( ZLIB_OBJ)
2008-05-24 01:56:21 +04:00
DRSUAPI_OBJ = $( LIBNDR_DRSUAPI_OBJ) \
$( COMPRESSION_OBJ)
2007-02-27 21:52:38 +03:00
2010-05-06 13:49:10 +04:00
LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
2009-08-12 22:22:58 +04:00
../librpc/ndr/ndr_ntlmssp.o
2008-10-13 17:20:10 +04:00
LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
2008-10-13 18:09:48 +04:00
../librpc/ndr/ndr.o \
2008-10-13 17:22:27 +04:00
../librpc/ndr/ndr_misc.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_misc.o \
librpc/gen_ndr/ndr_security.o \
2008-11-07 23:31:04 +03:00
../librpc/ndr/ndr_sec_helper.o \
2010-05-20 15:57:22 +04:00
../librpc/ndr/ndr_string.o \
2008-10-13 17:23:35 +04:00
../librpc/ndr/uuid.o \
2009-03-21 02:10:14 +03:00
librpc/ndr/util.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_dcerpc.o
2007-02-27 21:52:38 +03:00
2010-05-06 13:49:10 +04:00
LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
librpc/gen_ndr/ndr_lsa.o
2008-07-07 23:44:13 +04:00
2010-06-03 12:25:32 +04:00
LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
2008-11-06 18:47:38 +03:00
../librpc/ndr/ndr_netlogon.o
2008-07-07 23:44:13 +04:00
2010-07-07 15:40:48 +04:00
LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
../librpc/ndr/ndr_schannel.o
2010-06-03 12:25:32 +04:00
LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
2008-11-14 23:43:57 +03:00
../librpc/ndr/ndr_spoolss_buf.o
2010-07-07 15:40:48 +04:00
LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
../librpc/ndr/ndr_ntprinting.o \
2010-07-07 14:36:33 +04:00
LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
librpc/ndr/ndr_preg.o
2010-07-17 01:25:12 +04:00
LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
../librpc/ndr/ndr_xattr.o
2010-08-12 19:19:59 +04:00
LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/cli_spoolss.o \
librpc/gen_ndr/ndr_spoolss_c.o \
rpc_client/cli_spoolss.o \
rpc_client/init_spoolss.o
2010-08-12 19:28:48 +04:00
LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/cli_eventlog.o \
librpc/gen_ndr/ndr_eventlog_c.o
2010-08-12 19:35:24 +04:00
LIBCLI_WINREG_OBJ = librpc/gen_ndr/cli_winreg.o \
librpc/gen_ndr/ndr_winreg_c.o
2010-08-12 19:40:18 +04:00
LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/cli_ntsvcs.o \
librpc/gen_ndr/ndr_ntsvcs_c.o
2010-08-12 19:45:54 +04:00
LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/cli_drsuapi.o \
librpc/gen_ndr/ndr_drsuapi_c.o
2010-05-06 13:49:10 +04:00
LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
2008-07-07 23:44:13 +04:00
$( LIBNDR_GEN_OBJ0) \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_dfs.o \
librpc/gen_ndr/ndr_echo.o \
librpc/gen_ndr/ndr_winreg.o \
librpc/gen_ndr/ndr_initshutdown.o \
librpc/gen_ndr/ndr_srvsvc.o \
librpc/gen_ndr/ndr_eventlog.o \
2010-06-03 12:25:32 +04:00
$( LIBNDR_NETLOGON_OBJ) \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_dssetup.o \
2008-12-16 18:02:05 +03:00
librpc/gen_ndr/ndr_notify.o \
2010-07-17 01:25:12 +04:00
$( LIBNDR_XATTR_OBJ) \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_epmapper.o \
librpc/gen_ndr/ndr_named_pipe_auth.o \
librpc/gen_ndr/ndr_ntsvcs.o \
2010-06-03 12:25:32 +04:00
$( LIBNDR_SPOOLSS_OBJ)
2004-05-10 23:57:54 +04:00
2006-12-16 03:25:34 +03:00
# this includes only the low level parse code, not stuff
# that requires knowledge of security contexts
2010-07-16 01:45:29 +04:00
REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
2006-12-16 03:25:34 +03:00
2010-08-13 18:01:56 +04:00
RPC_PARSE_OBJ = rpc_client/init_netlogon.o \
2008-12-08 15:39:53 +03:00
rpc_client/init_lsa.o
2006-12-16 03:25:34 +03:00
2006-10-02 15:35:41 +04:00
LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
2007-10-18 18:46:16 +04:00
NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
2006-10-02 15:35:41 +04:00
2009-04-01 02:37:47 +04:00
LIBSAMBAUTIL_OBJ = \
2008-01-14 16:57:30 +03:00
$( LIBREPLACE_OBJ) \
$( SOCKET_WRAPPER_OBJ) \
$( NSS_WRAPPER_OBJ)
2007-05-22 02:17:13 +04:00
2008-10-17 14:48:19 +04:00
UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
../lib/util/xfile.o ../lib/util/util_strlist.o \
../lib/util/util_file.o ../lib/util/data_blob.o \
2008-10-19 16:03:20 +04:00
../lib/util/util.o ../lib/util/fsusage.o \
2008-10-23 20:46:35 +04:00
../lib/util/params.o ../lib/util/talloc_stack.o \
2009-02-21 02:10:21 +03:00
../lib/util/genrand.o ../lib/util/util_net.o \
2009-02-22 21:47:54 +03:00
../lib/util/become_daemon.o ../lib/util/system.o \
2009-04-11 01:45:45 +04:00
../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
2009-06-10 23:22:33 +04:00
../lib/util/smb_threads.o ../lib/util/util_id.o \
2009-10-30 00:58:34 +03:00
../lib/util/blocking.o ../lib/util/rfc1738.o
2008-10-17 14:48:19 +04:00
CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
2009-05-23 00:58:39 +04:00
../lib/crypto/md4.o \
2009-09-16 01:52:20 +04:00
../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
2008-10-17 14:48:19 +04:00
LIB_OBJ = $( LIBSAMBAUTIL_OBJ) $( UTIL_OBJ) $( CRYPTO_OBJ) \
2008-05-24 03:51:07 +04:00
lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
2008-10-23 19:27:30 +04:00
lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
2008-10-17 14:48:19 +04:00
lib/interfaces.o lib/memcache.o \
2009-08-16 12:44:06 +04:00
lib/talloc_dict.o \
s3: Fix a long-standing problem with recycled PIDs
When a samba server process dies hard, it has no chance to clean up its entries
in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb.
For locking.tdb and brlock.tdb Samba is robust by checking every time we read
an entry from the database if the corresponding process still exists. If it
does not exist anymore, the entry is deleted. This is not 100% failsafe though:
On systems with a limited PID space there is a non-zero chance that between the
smbd's death and the fresh access, the PID is recycled by another long-running
process. This renders all files that had been locked by the killed smbd
potentially unusable until the new process also dies.
This patch is supposed to fix the problem the following way: Every process ID
in every database is augmented by a random 64-bit number that is stored in a
serverid.tdb. Whenever we need to check if a process still exists we know its
PID and the 64-bit number. We look up the PID in serverid.tdb and compare the
64-bit number. If it's the same, the process still is a valid smbd holding the
lock. If it is different, a new smbd has taken over.
I believe this is safe against an smbd that has died hard and the PID has been
taken over by a non-samba process. This process would not have registered
itself with a fresh 64-bit number in serverid.tdb, so the old one still exists
in serverid.tdb. We protect against this case by the parent smbd taking care of
deregistering PIDs from serverid.tdb and the fact that serverid.tdb is
CLEAR_IF_FIRST.
CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not
work when all smbds are restarted. For this, "net serverid wipe" has to be run
before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up
sessionid.tdb and connections.tdb.
While there, this also cleans up overloading connections.tdb with all the
process entries just for messaging_send_all().
Volker
2010-03-02 19:02:01 +03:00
lib/serverid.o \
2010-07-04 20:02:36 +04:00
lib/util_sconn.o \
2009-04-09 01:03:59 +04:00
lib/util_transfer_file.o ../lib/async_req/async_sock.o \
2008-09-09 21:03:49 +04:00
$( TDB_LIB_OBJ) \
2008-05-24 03:51:07 +04:00
$( VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
2008-10-17 14:48:19 +04:00
lib/interface.o lib/pidfile.o \
lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
2008-10-23 20:46:35 +04:00
lib/username.o \
2009-06-12 17:20:48 +04:00
../libds/common/flag_mapping.o \
2006-02-13 20:08:25 +03:00
lib/util_pw.o lib/access.o lib/smbrun.o \
2008-10-17 14:48:19 +04:00
lib/bitmap.o lib/dprintf.o $( UTIL_REG_OBJ) \
lib/wins_srv.o \
2003-03-19 00:21:21 +03:00
lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
2009-04-06 16:56:13 +04:00
lib/util_unistr.o lib/util_file.o \
2010-05-17 10:25:26 +04:00
lib/util.o lib/util_names.o \
lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
2008-10-17 14:48:19 +04:00
lib/substitute.o lib/dbwrap_util.o \
2007-05-29 23:09:38 +04:00
lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
2009-03-09 10:42:05 +03:00
lib/tallocmsg.o lib/dmallocmsg.o \
libsmb/clisigning.o libsmb/smb_signing.o \
2009-03-02 07:04:07 +03:00
lib/iconv.o lib/pam_errors.o intl/lang_tdb.o \
2009-03-02 00:24:34 +03:00
lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
2010-03-01 18:18:23 +03:00
lib/sessionid_tdb.o \
2009-01-04 21:27:31 +03:00
lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
2010-06-10 19:54:00 +04:00
lib/server_contexts.o \
2009-01-04 21:27:31 +03:00
lib/ldap_escape.o @CHARSET_STATIC@ \
2009-03-01 19:59:30 +03:00
lib/secdesc.o lib/util_seaccess.o ../libcli/security/secace.o \
2010-03-01 00:15:23 +03:00
../libcli/security/sddl.o \
2009-04-23 19:23:13 +04:00
../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
2009-04-25 22:02:24 +04:00
lib/fncall.o \
2007-05-29 13:30:34 +04:00
libads/krb5_errs.o lib/system_smbd.o lib/audit.o $( LIBNDR_OBJ) \
2009-02-01 18:08:45 +03:00
lib/file_id.o lib/idmap_cache.o \
2009-04-21 16:27:25 +04:00
../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o
2002-08-17 18:15:33 +04:00
2005-08-26 10:12:52 +04:00
LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
LIB_NONSMBD_OBJ = $( LIB_OBJ) $( LIB_DUMMY_OBJ)
2004-02-12 08:24:02 +03:00
2001-04-13 23:12:06 +04:00
READLINE_OBJ = lib/readline.o
1998-11-29 23:16:20 +03:00
2003-08-26 23:48:16 +04:00
# Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
# Be sure to include them into your application
2007-04-06 20:42:37 +04:00
POPT_LIB_OBJ = lib/popt_common.o
2002-11-09 20:08:58 +03:00
2010-05-18 16:10:13 +04:00
PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
2008-03-17 19:29:44 +03:00
PARAM_REG_ADD_OBJ = $( REG_SMBCONF_OBJ) $( LIBSMBCONF_OBJ) $( PRIVILEGES_BASIC_OBJ)
2007-06-16 01:38:10 +04:00
PARAM_OBJ = $( PARAM_WITHOUT_REG_OBJ) $( PARAM_REG_ADD_OBJ)
1998-07-29 07:08:05 +04:00
2007-04-06 20:42:37 +04:00
KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
2003-02-24 06:07:34 +03:00
2008-07-07 20:28:53 +04:00
LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
libaddns/dnsgss.o libaddns/dnsmarshall.o
2009-04-01 02:37:47 +04:00
LIBADDNS_OBJ = $( LIBADDNS_OBJ0) $( SOCKET_WRAPPER_OBJ)
2008-07-07 20:28:53 +04:00
2009-03-01 04:13:21 +03:00
GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
2008-02-29 18:03:23 +03:00
2009-04-20 18:51:33 +04:00
LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
2009-03-01 04:53:42 +03:00
../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
2008-02-29 18:03:23 +03:00
libgpo/gpo_reg.o \
$( GPEXT_OBJ)
2008-04-04 15:07:01 +04:00
LIBGPO_OBJ = $( LIBGPO_OBJ0)
2006-09-29 01:33:54 +04:00
2010-08-12 19:08:08 +04:00
LIBADS_OBJ = libads/ldap.o \
2007-07-16 18:35:33 +04:00
libads/sasl.o libads/sasl_wrapping.o \
2010-07-02 02:32:52 +04:00
libads/krb5_setpw.o \
libads/kerberos_util.o \
libads/ldap_user.o \
2004-06-22 04:48:59 +04:00
libads/ads_struct.o libads/kerberos_keytab.o \
2010-08-17 14:40:38 +04:00
libads/disp_sec.o libads/ldap_utils.o \
2008-05-07 23:31:59 +04:00
libads/ldap_schema.o libads/util.o libads/ndr.o
2002-07-15 14:35:28 +04:00
2008-02-16 19:06:23 +03:00
LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
2008-10-15 01:52:20 +04:00
../librpc/ndr/ndr_krb5pac.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_krb5pac.o
2002-07-15 14:35:28 +04:00
2010-08-12 19:08:08 +04:00
LIBADS_PRINTER_OBJ = libads/ldap_printer.o
2010-05-17 07:39:42 +04:00
SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
2009-10-28 18:42:44 +03:00
librpc/gen_ndr/ndr_secrets.o
2001-11-20 11:54:15 +03:00
2008-09-23 10:34:22 +04:00
LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
2008-09-24 00:21:52 +04:00
../libcli/netlogon.o \
../libcli/ndr_netlogon.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_nbt.o \
librpc/gen_ndr/ndr_svcctl.o \
2009-01-09 18:20:09 +03:00
../librpc/ndr/ndr_svcctl.o
2008-04-21 12:55:23 +04:00
2003-02-24 06:07:34 +03:00
LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
2010-02-23 19:11:37 +03:00
libsmb/namequery.o ../libcli/nbt/lmhosts.o libsmb/conncache.o \
libads/dns.o libads/sitename_cache.o
2003-02-24 06:07:34 +03:00
2009-02-01 19:17:37 +03:00
NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
2008-11-01 19:28:16 +03:00
DOSERR_OBJ = ../libcli/util/doserr.o
2008-04-11 18:32:48 +04:00
ERRORMAP_OBJ = libsmb/errormap.o
2008-10-30 01:21:06 +03:00
DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
2008-04-11 18:32:48 +04:00
2009-03-16 13:27:58 +03:00
LIBSMB_ERR_OBJ0 = $( NTERR_OBJ) $( DOSERR_OBJ) $( ERRORMAP_OBJ) $( DCE_RPC_ERR_OBJ)
2008-04-11 23:51:41 +04:00
2009-04-06 16:56:13 +04:00
LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
2009-03-16 13:27:58 +03:00
LIBSMB_ERR_OBJ = $( LIBSMB_ERR_OBJ0) $( LIBSMB_ERR_OBJ1) \
2010-07-16 01:45:29 +04:00
$( REG_PARSE_PRS_OBJ) \
2008-04-12 00:13:39 +04:00
$( SECRETS_OBJ)
2008-04-11 18:32:48 +04:00
LIBSMB_OBJ0 = \
2009-03-16 13:27:58 +03:00
../libcli/auth/ntlm_check.o \
2008-04-11 23:51:41 +04:00
libsmb/ntlmssp.o \
2010-07-19 21:36:33 +04:00
libsmb/ntlmssp_wrap.o \
2010-05-25 14:58:52 +04:00
../libcli/auth/ntlmssp.o \
../libcli/auth/ntlmssp_sign.o \
2009-08-12 22:22:58 +04:00
$( LIBNDR_NTLMSSP_OBJ) \
2010-08-06 12:16:32 +04:00
../libcli/auth/ntlmssp_ndr.o \
../libcli/auth/ntlmssp_server.o
2003-02-24 06:07:34 +03:00
2008-04-11 18:32:48 +04:00
LIBSAMBA_OBJ = $( LIBSMB_OBJ0) \
2008-04-12 00:13:39 +04:00
$( LIBSMB_ERR_OBJ)
2008-04-11 18:32:48 +04:00
2009-02-24 16:23:12 +03:00
LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o
2009-02-24 20:27:45 +03:00
LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
../lib/tsocket/tsocket_helpers.o \
2009-04-03 19:29:12 +04:00
../lib/tsocket/tsocket_bsd.o
2009-02-24 20:27:45 +03:00
CLDAP_OBJ = libads/cldap.o \
2010-05-06 12:41:43 +04:00
../libcli/cldap/cldap.o lib/ldb_compat.o \
2009-02-24 20:27:45 +03:00
../lib/util/idtree.o \
$( LIBCLI_LDAP_MESSAGE_OBJ) $( LIBCLI_LDAP_NDR_OBJ) $( LIBTSOCKET_OBJ)
2008-05-07 23:31:59 +04:00
2009-06-27 22:03:55 +04:00
TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
2009-06-06 14:30:57 +04:00
2009-08-26 00:45:15 +04:00
SCHANNEL_OBJ = ../libcli/auth/credentials.o \
2009-09-16 02:26:17 +04:00
../libcli/auth/schannel_sign.o \
2009-08-25 23:16:27 +04:00
../libcli/auth/schannel_state_tdb.o \
2010-07-07 15:40:48 +04:00
$( LIBNDR_SCHANNEL_OBJ)
2009-08-26 18:48:00 +04:00
2001-10-12 08:49:42 +04:00
LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
2009-10-15 16:13:26 +04:00
libsmb/clikrb5.o libsmb/clispnego.o \
../libcli/auth/spnego_parse.o \
../lib/util/asn1.o \
2000-04-25 18:04:06 +04:00
libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
2001-01-03 08:19:21 +03:00
libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
2006-02-04 01:19:41 +03:00
libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
2008-04-11 18:32:48 +04:00
libsmb/clioplock.o libsmb/clirap2.o \
libsmb/smb_seal.o libsmb/async_smb.o \
2008-04-11 23:59:39 +04:00
$( LIBSAMBA_OBJ) \
$( LIBNMB_OBJ) \
2008-05-07 23:31:59 +04:00
$( LIBNBT_OBJ) \
2008-05-24 03:25:30 +04:00
$( CLDAP_OBJ) \
$( DRSUAPI_OBJ)
2000-12-13 16:10:22 +03:00
2009-08-26 18:48:00 +04:00
RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o \
$( SCHANNEL_OBJ)
2006-12-16 03:25:34 +03:00
2002-08-17 18:15:33 +04:00
LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
2009-10-01 03:30:45 +04:00
$( RPC_CLIENT_OBJ1) \
$( RPC_CLIENT_OBJ) \
2008-04-15 19:55:44 +04:00
rpc_client/init_samr.o \
2008-10-12 21:05:46 +04:00
../librpc/rpc/binding.o
2006-09-06 22:32:20 +04:00
2010-08-06 14:20:07 +04:00
DCERPC_CLIENT_GEN_OBJ = \
librpc/gen_ndr/ndr_lsa_c.o \
librpc/gen_ndr/ndr_dfs_c.o \
librpc/gen_ndr/ndr_echo_c.o \
librpc/gen_ndr/ndr_srvsvc_c.o \
librpc/gen_ndr/ndr_svcctl_c.o \
librpc/gen_ndr/ndr_initshutdown_c.o \
librpc/gen_ndr/ndr_wkssvc_c.o \
librpc/gen_ndr/ndr_netlogon_c.o \
librpc/gen_ndr/ndr_samr_c.o \
librpc/gen_ndr/ndr_dssetup_c.o \
2010-08-12 19:45:54 +04:00
librpc/gen_ndr/ndr_epmapper_c.o
2010-08-06 14:20:07 +04:00
2010-05-06 13:49:10 +04:00
LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
librpc/gen_ndr/cli_dfs.o \
librpc/gen_ndr/cli_echo.o \
librpc/gen_ndr/cli_srvsvc.o \
librpc/gen_ndr/cli_svcctl.o \
librpc/gen_ndr/cli_initshutdown.o \
librpc/gen_ndr/cli_wkssvc.o \
librpc/gen_ndr/cli_netlogon.o \
librpc/gen_ndr/cli_samr.o \
librpc/gen_ndr/cli_dssetup.o \
librpc/gen_ndr/cli_epmapper.o \
2010-08-06 14:20:07 +04:00
$( DCERPC_CLIENT_GEN_OBJ) \
2009-04-02 00:37:38 +04:00
../librpc/rpc/dcerpc_util.o \
2010-08-06 13:30:51 +04:00
../librpc/rpc/binding_handle.o \
2010-07-14 20:18:49 +04:00
librpc/rpc/dcerpc_helpers.o \
2010-08-12 16:46:24 +04:00
$( LIBNDR_GEN_OBJ)
2002-07-15 14:35:28 +04:00
2008-01-21 01:48:28 +03:00
#
# registry-related objects
#
2010-04-27 18:38:40 +04:00
UTIL_REG_OBJ = ../libcli/registry/util_reg.o
2010-05-25 02:08:15 +04:00
2008-03-22 04:29:02 +03:00
REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
2008-01-21 02:40:10 +03:00
REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
2008-02-19 13:01:00 +03:00
REG_INIT_FULL_OBJ = registry/reg_init_full.o
2008-01-21 01:48:28 +03:00
REGFIO_OBJ = registry/regfio.o
2002-09-25 19:19:00 +04:00
REGOBJS_OBJ = registry/reg_objects.o
2004-05-10 23:57:54 +04:00
2008-02-19 13:01:00 +03:00
REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
registry/reg_backend_shares.o \
registry/reg_backend_netlogon_params.o \
registry/reg_backend_prod_options.o \
registry/reg_backend_tcpip_params.o \
registry/reg_backend_hkpt_params.o \
registry/reg_backend_current_version.o \
registry/reg_backend_perflib.o
REG_BASE_OBJ = registry/reg_api.o \
2008-01-21 02:34:06 +03:00
registry/reg_dispatcher.o \
2008-02-19 13:01:00 +03:00
registry/reg_cachehook.o \
2008-02-19 03:22:32 +03:00
$( REGFIO_OBJ) \
2008-02-19 13:01:00 +03:00
$( REGOBJS_OBJ) \
2010-05-25 02:04:13 +04:00
registry/reg_util_internal.o \
2008-02-19 13:01:00 +03:00
lib/util_nttoken.o \
2008-04-04 15:07:01 +04:00
$( REG_BACKENDS_BASE_OBJ) \
$( REG_INIT_BASIC_OBJ)
2008-02-19 13:01:00 +03:00
REG_SMBCONF_OBJ = $( REG_BASE_OBJ) \
2010-05-25 01:27:57 +04:00
registry/reg_util_token.o \
2008-02-19 13:01:00 +03:00
$( REG_BACKENDS_SMBCONF_OBJ) \
$( REG_INIT_SMBCONF_OBJ)
REG_FULL_OBJ = $( REG_SMBCONF_OBJ) \
$( REG_BACKENDS_EXTRA_OBJ) \
$( REG_INIT_FULL_OBJ) \
registry/reg_eventlog.o \
registry/reg_perfcount.o \
2009-10-01 04:09:33 +04:00
librpc/gen_ndr/ndr_perfcount.o \
2008-02-19 13:01:00 +03:00
registry/reg_util_legacy.o
2008-01-21 01:48:28 +03:00
2009-04-08 16:29:04 +04:00
LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
2008-01-21 01:48:28 +03:00
2010-05-06 13:49:10 +04:00
RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o librpc/gen_ndr/srv_lsa.o
2003-02-14 03:48:28 +03:00
2008-02-16 15:42:12 +03:00
RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/srv_netlogon.o
2003-02-14 03:48:28 +03:00
2008-02-12 16:26:10 +03:00
RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
2008-01-30 14:53:09 +03:00
rpc_server/srv_samr_util.o \
2010-05-18 14:06:23 +04:00
rpc_server/srv_samr_chgpasswd.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/srv_samr.o
2003-02-14 03:48:28 +03:00
2010-05-06 13:49:10 +04:00
RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
2003-02-14 03:48:28 +03:00
2007-06-14 17:12:32 +04:00
RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/srv_winreg.o
2007-10-11 00:34:30 +04:00
2010-05-06 13:49:10 +04:00
RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
2003-08-15 01:14:28 +04:00
2008-03-21 06:12:52 +03:00
RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/srv_srvsvc.o
2003-02-14 03:48:28 +03:00
2010-05-06 13:49:10 +04:00
RPC_WKS_OBJ = librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
2003-02-14 03:48:28 +03:00
2009-01-09 18:25:47 +03:00
RPC_SVCCTL_OBJ = rpc_server/srv_svcctl_nt.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/srv_svcctl.o \
2005-09-30 21:13:37 +04:00
services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
2005-10-06 21:48:03 +04:00
services/svc_netlogon.o services/svc_winreg.o \
services/svc_wins.o
2005-09-30 21:13:37 +04:00
2008-11-19 16:37:47 +03:00
RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs_nt.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/srv_ntsvcs.o
2005-03-24 02:26:33 +03:00
2010-05-06 13:49:10 +04:00
RPC_DFS_OBJ = librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
2004-05-10 23:57:54 +04:00
2009-03-18 02:45:35 +03:00
RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss_nt.o \
2010-03-15 14:24:40 +03:00
rpc_server/srv_spoolss_util.o \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/srv_spoolss.o
2003-02-14 03:48:28 +03:00
2009-02-04 23:49:06 +03:00
RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog_nt.o \
2010-05-06 13:49:10 +04:00
$( LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
2005-03-24 02:26:33 +03:00
2010-04-27 17:08:02 +04:00
NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o
2010-06-04 00:04:08 +04:00
RPC_NCACN_NP_INTERNAL = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np_internal.o \
2010-06-07 00:33:28 +04:00
rpc_server/rpc_handles.o
2010-06-04 00:04:08 +04:00
RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
$( RPC_NCACN_NP_INTERNAL)
2003-02-14 03:48:28 +03:00
2010-05-06 13:49:10 +04:00
RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
2003-04-16 16:13:07 +04:00
2010-08-12 19:19:59 +04:00
RPC_SERVER_OBJ = @RPC_STATIC@ $( RPC_PIPE_OBJ) $( NPA_TSTREAM_OBJ) \
2010-08-12 19:35:24 +04:00
$( LIBCLI_SPOOLSS_OBJ) \
$( LIBCLI_WINREG_OBJ)
1999-12-13 16:27:58 +03:00
2010-07-29 01:06:51 +04:00
RPC_CLIENT_OBJ = rpc_client/cli_pipe.o \
librpc/rpc/dcerpc_gssapi.o \
librpc/rpc/dcerpc_spnego.o \
2010-07-23 22:47:36 +04:00
librpc/rpc/rpc_common.o \
2010-07-17 23:00:24 +04:00
rpc_client/rpc_transport_np.o \
2010-08-12 16:39:42 +04:00
rpc_client/rpc_transport_sock.o
1998-07-29 07:08:05 +04:00
2004-07-16 14:02:20 +04:00
LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
1998-07-29 07:08:05 +04:00
2008-02-19 03:22:32 +03:00
PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
PRIVILEGES_OBJ = lib/privileges.o
2002-07-15 14:35:28 +04:00
PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
PASSDB_OBJ = $( PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
2005-12-03 21:34:13 +03:00
passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
2006-02-04 01:19:41 +03:00
passdb/util_unixsids.o passdb/lookup_sid.o \
2006-02-04 12:36:10 +03:00
passdb/login_cache.o @PDB_STATIC@ \
2010-05-06 19:17:37 +04:00
passdb/account_pol.o $( PRIVILEGES_OBJ) \
2009-03-19 01:44:13 +03:00
lib/util_nscd.o lib/winbind_util.o $( SERVER_MUTEX_OBJ)
2002-09-25 19:19:00 +04:00
2003-08-26 23:48:16 +04:00
DEVEL_HELP_WEIRD_OBJ = modules/weird.o
2003-10-17 18:43:09 +04:00
CP850_OBJ = modules/CP850.o
CP437_OBJ = modules/CP437.o
2003-11-26 23:58:53 +03:00
CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
2002-11-09 20:08:58 +03:00
2010-02-26 23:16:23 +03:00
GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
2001-03-23 03:50:31 +03:00
1999-04-01 09:22:58 +04:00
PROFILE_OBJ = profile/profile.o
2005-08-26 10:12:52 +04:00
PROFILES_OBJ = utils/profiles.o \
2010-01-04 00:28:33 +03:00
$( LIBSMB_ERR_OBJ) \
2008-04-11 18:37:06 +04:00
$( PARAM_OBJ) \
2008-04-11 18:32:48 +04:00
$( LIB_OBJ) $( LIB_DUMMY_OBJ) \
2008-04-11 23:59:39 +04:00
$( POPT_LIB_OBJ)
1999-04-01 09:22:58 +04:00
2009-02-21 00:25:17 +03:00
OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
smbd/oplock_onefs.o
2000-06-10 17:35:20 +04:00
2007-02-01 17:31:10 +03:00
NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
totally rewrote the async signal, notification and oplock notification
handling in Samba. This was needed due to several limitations and
races in the previous code - as a side effect the new code is much
cleaner :)
in summary:
- changed sys_select() to avoid a signal/select race condition. It is a
rare race but once we have signals doing notification and oplocks it
is important.
- changed our main processing loop to take advantage of the new
sys_select semantics
- split the notify code into implementaion dependent and general
parts. Added the following structure that defines an implementation:
struct cnotify_fns {
void * (*register_notify)(connection_struct *conn, char *path, uint32 flags);
BOOL (*check_notify)(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *data, time_t t);
void (*remove_notify)(void *data);
};
then I wrote two implementations, one using hash/poll (like our old
code) and the other using the new Linux kernel change notify. It
should be easy to add other change notify implementations by creating
a sructure of the above type.
- fixed a bug in change notify where we were returning the wrong error
code.
- rewrote the core change notify code to be much simpler
- moved to real-time signals for leases and change notify
Amazingly, it all seems to work. I was very surprised!
(This used to be commit 44766c39e0027c762bee8b33b12c621c109a3267)
2000-06-12 19:53:31 +04:00
2009-07-11 02:35:08 +04:00
FNAME_UTIL_OBJ = smbd/filename_util.o
2006-07-11 22:01:26 +04:00
VFS_DEFAULT_OBJ = modules/vfs_default.o
2003-04-16 18:45:11 +04:00
VFS_AUDIT_OBJ = modules/vfs_audit.o
VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
2004-04-29 16:11:59 +04:00
VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
2003-04-24 14:36:23 +04:00
VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
2003-04-16 18:45:11 +04:00
VFS_RECYCLE_OBJ = modules/vfs_recycle.o
VFS_NETATALK_OBJ = modules/vfs_netatalk.o
2003-07-29 22:07:13 +04:00
VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
2003-08-12 08:35:47 +04:00
VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
2003-08-28 00:04:23 +04:00
VFS_CAP_OBJ = modules/vfs_cap.o
2004-03-27 01:26:33 +03:00
VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
2004-04-22 19:30:42 +04:00
VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
2008-01-16 12:28:28 +03:00
VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
2004-05-02 16:13:16 +04:00
VFS_AFSACL_OBJ = modules/vfs_afsacl.o
2008-01-19 14:54:46 +03:00
VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
2006-07-21 19:51:34 +04:00
VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
2006-09-18 06:27:48 +04:00
VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
2006-07-21 19:51:34 +04:00
VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
2007-05-15 03:55:11 +04:00
VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
2006-07-21 19:51:34 +04:00
VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
2005-03-18 16:13:38 +03:00
VFS_CATIA_OBJ = modules/vfs_catia.o
2008-01-20 01:33:11 +03:00
VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
2008-01-20 01:36:34 +03:00
VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
2006-07-11 22:01:26 +04:00
VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
VFS_COMMIT_OBJ = modules/vfs_commit.o
2006-12-08 21:56:01 +03:00
VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
2007-02-01 17:31:10 +03:00
VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
2007-04-06 23:09:53 +04:00
VFS_READAHEAD_OBJ = modules/vfs_readahead.o
2008-01-16 12:28:28 +03:00
VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
2007-08-10 13:05:18 +04:00
VFS_FILEID_OBJ = modules/vfs_fileid.o
2008-02-21 18:14:08 +03:00
VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
2009-03-10 20:02:21 +03:00
VFS_PREOPEN_OBJ = modules/vfs_preopen.o
2007-10-23 14:43:27 +04:00
VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
2009-07-27 23:09:40 +04:00
VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
2008-09-25 03:01:00 +04:00
VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
2008-12-09 03:57:58 +03:00
VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
2009-02-28 01:47:47 +03:00
modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
2009-02-18 07:39:03 +03:00
VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
2009-02-09 10:12:02 +03:00
PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
2009-02-12 09:28:20 +03:00
PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
2009-03-22 13:06:52 +03:00
VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
2010-01-11 23:53:37 +03:00
VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
2010-03-08 19:53:18 +03:00
VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
2010-01-05 12:42:38 +03:00
VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
2003-04-16 18:45:11 +04:00
2001-11-26 04:37:01 +03:00
PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
2001-09-19 10:01:35 +04:00
2005-11-10 23:28:23 +03:00
SLCACHE_OBJ = libsmb/samlogon_cache.o
2007-08-28 19:01:23 +04:00
DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
2003-07-01 07:49:41 +04:00
2003-04-16 16:13:07 +04:00
AUTH_BUILTIN_OBJ = auth/auth_builtin.o
AUTH_DOMAIN_OBJ = auth/auth_domain.o
2010-04-12 00:32:36 +04:00
AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
2003-04-16 16:13:07 +04:00
AUTH_SERVER_OBJ = auth/auth_server.o
AUTH_UNIX_OBJ = auth/auth_unix.o
AUTH_WINBIND_OBJ = auth/auth_winbind.o
2009-02-24 10:21:13 +03:00
AUTH_WBC_OBJ = auth/auth_wbc.o
2005-09-15 03:58:14 +04:00
AUTH_SCRIPT_OBJ = auth/auth_script.o
2008-09-22 21:29:05 +04:00
AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
2003-04-16 16:13:07 +04:00
2007-04-09 14:38:55 +04:00
AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
2010-04-12 00:37:08 +04:00
auth/server_info.o \
2010-04-12 00:41:59 +04:00
auth/server_info_sam.o \
2010-04-11 17:25:06 +04:00
auth/user_info.o \
2010-06-02 21:39:18 +04:00
auth/user_util.o \
2007-04-09 14:38:55 +04:00
auth/auth_compat.o auth/auth_ntlmssp.o \
2005-11-10 23:28:23 +03:00
$( PLAINTEXT_AUTH_OBJ) $( SLCACHE_OBJ) $( DCUTIL_OBJ)
2001-10-06 05:42:20 +04:00
2007-09-08 00:57:01 +04:00
MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
This is my 'Authentication Rewrite' version 1.01, mostly as submitted to
samba-technical a few weeks ago.
The idea here is to standardize the checking of user names and passwords,
thereby ensuring that all authtentications pass the same standards. The
interface currently implemented in as
nt_status = check_password(user_info, server_info)
where user_info contains (mostly) the authentication data, and server_info
contains things like the user-id they got, and their resolved user name.
The current ugliness with the way the structures are created will be killed
the next revision, when they will be created and malloced by creator functions.
This patch also includes the first implementation of NTLMv2 in HEAD, but which
needs some more testing. We also add a hack to allow plaintext passwords to be
compared with smbpasswd, not the system password database.
Finally, this patch probably reintroduces the PAM accounts bug we had in
2.2.0, I'll fix that once this hits the tree. (I've just finished testing
it on a wide variety of platforms, so I want to get this patch in).
(This used to be commit b30b6202f31d339b48d51c0d38174cafd1cfcd42)
2001-08-03 17:09:23 +04:00
2010-05-13 01:48:04 +04:00
SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
2002-09-25 19:19:00 +04:00
2003-05-23 05:59:43 +04:00
BUILDOPT_OBJ = smbd/build_options.o
2010-05-27 09:18:58 +04:00
SMBD_OBJ_SRV = smbd/server_reload.o \
smbd/files.o smbd/connection.o \
2010-06-02 21:39:18 +04:00
smbd/utmp.o smbd/session.o \
2006-02-04 01:19:41 +03:00
smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
smbd/share_access.o smbd/fileio.o \
2002-09-25 19:19:00 +04:00
smbd/ipc.o smbd/lanman.o smbd/negprot.o \
smbd/message.o smbd/nttrans.o smbd/pipes.o \
smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
2003-03-22 16:47:42 +03:00
smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
2009-02-09 10:10:34 +03:00
smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
2009-03-19 01:44:13 +03:00
smbd/posix_acls.o lib/sysacls.o \
2002-09-25 19:19:00 +04:00
smbd/process.o smbd/service.o smbd/error.o \
2010-05-07 15:45:25 +04:00
printing/printspoolss.o \
2010-04-29 02:55:20 +04:00
lib/sysquotas.o lib/sysquotas_linux.o \
2004-01-06 21:13:32 +03:00
lib/sysquotas_xfs.o lib/sysquotas_4A.o \
2010-08-06 12:21:09 +04:00
lib/sysquotas_nfs.o \
2010-06-30 14:10:55 +04:00
smbd/fake_file.o \
2004-05-10 23:57:54 +04:00
smbd/quotas.o smbd/ntquotas.o $( AFS_OBJ) smbd/msdfs.o \
2006-01-06 13:27:12 +03:00
$( AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
2009-03-09 11:47:59 +03:00
smbd/dmapi.o smbd/signing.o \
2007-10-26 21:50:55 +04:00
smbd/file_access.o \
2009-01-08 14:03:45 +03:00
smbd/dnsregister.o smbd/globals.o \
2009-06-05 19:32:58 +04:00
smbd/smb2_server.o \
smbd/smb2_signing.o \
smbd/smb2_glue.o \
smbd/smb2_negprot.o \
smbd/smb2_sesssetup.o \
smbd/smb2_tcon.o \
2009-05-28 02:07:26 +04:00
smbd/smb2_create.o \
2009-06-02 15:42:28 +04:00
smbd/smb2_close.o \
2009-06-02 14:06:34 +04:00
smbd/smb2_flush.o \
2009-06-02 14:38:37 +04:00
smbd/smb2_read.o \
2009-05-28 03:28:34 +04:00
smbd/smb2_write.o \
2009-07-02 21:26:05 +04:00
smbd/smb2_lock.o \
2009-06-05 19:32:58 +04:00
smbd/smb2_ioctl.o \
smbd/smb2_keepalive.o \
2009-07-02 14:28:58 +04:00
smbd/smb2_find.o \
2009-06-30 00:31:13 +04:00
smbd/smb2_notify.o \
2009-07-02 12:17:30 +04:00
smbd/smb2_getinfo.o \
2009-07-02 13:40:07 +04:00
smbd/smb2_setinfo.o \
2009-07-02 13:56:23 +04:00
smbd/smb2_break.o \
2009-08-12 22:39:11 +04:00
../libcli/smb/smb2_create_blob.o \
2007-04-24 02:17:06 +04:00
$( MANGLE_OBJ) @VFS_STATIC@
2002-09-25 19:19:00 +04:00
2007-06-16 01:38:10 +04:00
SMBD_OBJ_BASE = $( PARAM_WITHOUT_REG_OBJ) $( SMBD_OBJ_SRV) $( LIBSMB_OBJ) \
2008-04-11 23:59:39 +04:00
$( RPC_SERVER_OBJ) $( RPC_PARSE_OBJ) \
2002-09-25 19:19:00 +04:00
$( LOCKING_OBJ) $( PASSDB_OBJ) $( PRINTING_OBJ) $( PROFILE_OBJ) \
2003-05-12 05:20:17 +04:00
$( LIB_OBJ) $( PRINTBACKEND_OBJ) $( OPLOCK_OBJ) \
2009-07-11 02:35:08 +04:00
$( NOTIFY_OBJ) $( FNAME_UTIL_OBJ) $( GROUPDB_OBJ) $( AUTH_OBJ) \
2009-03-20 16:55:05 +03:00
$( LIBMSRPC_OBJ) $( LIBMSRPC_GEN_OBJ) $( AVAHI_OBJ) \
2010-08-12 19:08:08 +04:00
$( LIBADS_OBJ) $( KRBCLIENT_OBJ) $( LIBADS_SERVER_OBJ) $( LIBADS_PRINTER_OBJ) \
2008-02-19 13:01:00 +03:00
$( REG_FULL_OBJ) $( POPT_LIB_OBJ) $( BUILDOPT_OBJ) \
2010-05-06 12:41:43 +04:00
$( SMBLDAP_OBJ) $( LIBNET_OBJ) \
2008-03-17 19:29:44 +03:00
$( LIBSMBCONF_OBJ) \
2008-02-19 03:22:32 +03:00
$( PRIVILEGES_BASIC_OBJ)
2001-12-05 14:00:26 +03:00
2005-01-05 19:20:35 +03:00
PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
2004-02-12 08:24:02 +03:00
printing/print_cups.o printing/print_generic.o \
2005-09-21 03:28:22 +04:00
printing/lpq_parse.o printing/load.o \
2010-05-13 22:23:23 +04:00
printing/print_iprint.o printing/print_standard.o
2002-04-11 06:20:56 +04:00
2004-05-10 23:57:54 +04:00
PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
2010-08-04 17:31:08 +04:00
PRINTBACKEND_OBJ = printing/printing.o \
printing/nt_printing.o \
printing/nt_printing_tdb.o \
printing/nt_printing_migrate.o \
printing/nt_printing_ads.o \
librpc/gen_ndr/ndr_ntprinting.o \
../librpc/ndr/ndr_ntprinting.o \
2010-06-15 15:37:44 +04:00
$( PRINTBASE_OBJ)
1999-12-12 23:03:42 +03:00
2003-04-16 16:13:07 +04:00
SMBD_OBJ = $( SMBD_OBJ_BASE) $( SMBD_OBJ_MAIN)
2007-12-21 20:57:34 +03:00
1998-08-09 18:08:42 +04:00
NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
s3: Fix a long-standing problem with recycled PIDs
When a samba server process dies hard, it has no chance to clean up its entries
in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb.
For locking.tdb and brlock.tdb Samba is robust by checking every time we read
an entry from the database if the corresponding process still exists. If it
does not exist anymore, the entry is deleted. This is not 100% failsafe though:
On systems with a limited PID space there is a non-zero chance that between the
smbd's death and the fresh access, the PID is recycled by another long-running
process. This renders all files that had been locked by the killed smbd
potentially unusable until the new process also dies.
This patch is supposed to fix the problem the following way: Every process ID
in every database is augmented by a random 64-bit number that is stored in a
serverid.tdb. Whenever we need to check if a process still exists we know its
PID and the 64-bit number. We look up the PID in serverid.tdb and compare the
64-bit number. If it's the same, the process still is a valid smbd holding the
lock. If it is different, a new smbd has taken over.
I believe this is safe against an smbd that has died hard and the PID has been
taken over by a non-samba process. This process would not have registered
itself with a fresh 64-bit number in serverid.tdb, so the old one still exists
in serverid.tdb. We protect against this case by the parent smbd taking care of
deregistering PIDs from serverid.tdb and the fact that serverid.tdb is
CLEAR_IF_FIRST.
CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not
work when all smbds are restarted. For this, "net serverid wipe" has to be run
before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up
sessionid.tdb and connections.tdb.
While there, this also cleans up overloading connections.tdb with all the
process entries just for messaging_send_all().
Volker
2010-03-02 19:02:01 +03:00
nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
1998-08-09 18:08:42 +04:00
2010-05-06 12:41:43 +04:00
NMBD_OBJ = $( NMBD_OBJ1) $( PARAM_OBJ) $( LIBSMB_OBJ) $( KRBCLIENT_OBJ) \
2008-04-30 02:58:49 +04:00
$( PROFILE_OBJ) $( LIB_NONSMBD_OBJ) $( POPT_LIB_OBJ) \
2008-07-07 23:44:13 +04:00
$( LIBNDR_GEN_OBJ0)
1998-08-09 18:08:42 +04:00
2002-07-15 14:35:28 +04:00
SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
2007-04-06 20:42:37 +04:00
web/swat.o web/neg_lang.o
2002-07-15 14:35:28 +04:00
2009-01-06 00:47:34 +03:00
SWAT_OBJ = $( SWAT_OBJ1) $( PARAM_OBJ) $( PRINTING_OBJ) $( PRINTBASE_OBJ) $( LIBSMB_OBJ) \
2009-04-01 03:34:01 +04:00
$( LOCKING_OBJ) $( PASSDB_OBJ) $( KRBCLIENT_OBJ) \
2005-01-18 21:28:34 +03:00
$( LIB_NONSMBD_OBJ) $( GROUPDB_OBJ) $( PLAINTEXT_AUTH_OBJ) \
2006-09-06 22:32:20 +04:00
$( POPT_LIB_OBJ) $( SMBLDAP_OBJ) $( RPC_PARSE_OBJ) $( LIBMSRPC_GEN_OBJ) $( LIBMSRPC_OBJ) \
2010-05-06 12:41:43 +04:00
$( PASSCHANGE_OBJ) $( FNAME_UTIL_OBJ)
1998-08-09 18:37:32 +04:00
2006-07-11 22:01:26 +04:00
STATUS_OBJ = utils/status.o utils/status_profile.o \
$( LOCKING_OBJ) $( PARAM_OBJ) \
2005-01-18 21:28:34 +03:00
$( PROFILE_OBJ) $( LIB_NONSMBD_OBJ) $( POPT_LIB_OBJ) \
2010-01-04 00:28:33 +03:00
$( LIBSMB_ERR_OBJ) $( FNAME_UTIL_OBJ)
1998-08-10 05:25:32 +04:00
2010-01-03 15:55:54 +03:00
SMBCONTROL_OBJ = utils/smbcontrol.o $( PARAM_OBJ) $( LIB_NONSMBD_OBJ) \
$( LIBSMB_ERR_OBJ) $( POPT_LIB_OBJ) $( PRINTBASE_OBJ)
2000-09-11 11:02:43 +04:00
2004-02-12 08:24:02 +03:00
SMBTREE_OBJ = utils/smbtree.o $( PARAM_OBJ) \
2005-01-18 21:28:34 +03:00
$( PROFILE_OBJ) $( LIB_NONSMBD_OBJ) $( LIBSMB_OBJ) \
2008-04-11 23:59:39 +04:00
$( KRBCLIENT_OBJ) $( POPT_LIB_OBJ) \
2010-08-13 18:01:56 +04:00
$( RPC_CLIENT_OBJ) ../librpc/rpc/binding.o $( RPC_PARSE_OBJ) \
2006-12-16 03:25:34 +03:00
$( RPC_CLIENT_OBJ1) \
2010-05-06 12:41:43 +04:00
$( PASSDB_OBJ) $( SMBLDAP_OBJ) $( GROUPDB_OBJ) \
2007-06-14 15:29:35 +04:00
$( LIBMSRPC_GEN_OBJ)
2001-07-25 05:41:45 +04:00
1998-08-10 06:01:18 +04:00
TESTPARM_OBJ = utils/testparm.o \
2005-01-18 21:28:34 +03:00
$( PARAM_OBJ) $( LIB_NONSMBD_OBJ) $( POPT_LIB_OBJ) \
2010-01-04 00:28:33 +03:00
$( LIBSMB_ERR_OBJ)
1998-08-09 18:58:51 +04:00
2010-02-02 02:14:28 +03:00
SMBTA_UTIL_OBJ = utils/smbta-util.o $( PARAM_OBJ) $( POPT_LIB_OBJ) \
$( LOCKING_OBJ) $( PROFILE_OBJ) $( LIB_NONSMBD_OBJ) \
$( LIBSMB_ERR_OBJ) $( FNAME_UTIL_OBJ)
2008-09-28 00:08:02 +04:00
TEST_LP_LOAD_OBJ = param/test_lp_load.o \
$( PARAM_OBJ) $( LIB_NONSMBD_OBJ) \
$( POPT_LIB_OBJ) $( LIBSAMBA_OBJ)
2006-12-16 03:25:34 +03:00
PASSWD_UTIL_OBJ = utils/passwd_util.o
SMBPASSWD_OBJ = utils/smbpasswd.o $( PASSWD_UTIL_OBJ) $( PASSCHANGE_OBJ) \
2009-04-01 03:34:01 +04:00
$( PARAM_OBJ) $( LIBSMB_OBJ) $( PASSDB_OBJ) \
2006-02-16 23:22:54 +03:00
$( GROUPDB_OBJ) $( LIB_NONSMBD_OBJ) $( KRBCLIENT_OBJ) \
2007-12-21 20:57:34 +03:00
$( POPT_LIB_OBJ) $( SMBLDAP_OBJ) $( RPC_PARSE_OBJ) \
2010-05-06 12:41:43 +04:00
$( LIBMSRPC_GEN_OBJ) $( LIBMSRPC_OBJ)
2006-02-16 23:22:54 +03:00
2009-04-01 03:34:01 +04:00
PDBEDIT_OBJ = utils/pdbedit.o $( PASSWD_UTIL_OBJ) $( PARAM_OBJ) $( PASSDB_OBJ) \
2009-06-27 20:14:25 +04:00
$( LIBSAMBA_OBJ) $( LIBTSOCKET_OBJ) \
2008-04-11 18:32:48 +04:00
$( LIB_NONSMBD_OBJ) $( GROUPDB_OBJ) \
2010-05-06 12:41:43 +04:00
$( POPT_LIB_OBJ) $( SMBLDAP_OBJ) ../lib/util/asn1.o
2000-11-14 02:03:34 +03:00
2009-04-01 03:34:01 +04:00
SMBGET_OBJ = utils/smbget.o $( POPT_LIB_OBJ) $( LIBSMBCLIENT_OBJ1)
2004-01-07 03:43:52 +03:00
2009-03-25 23:29:13 +03:00
DISPLAY_SEC_OBJ = ../libcli/security/display_sec.o
2006-12-16 03:25:34 +03:00
2001-01-12 02:11:16 +03:00
RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
2001-05-24 04:20:32 +04:00
rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
2001-06-06 11:35:08 +04:00
rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
2009-01-06 21:09:57 +03:00
rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
2008-01-29 19:49:38 +03:00
rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
2006-03-07 18:17:01 +03:00
rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
2008-02-18 01:16:56 +03:00
rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
2009-01-08 21:13:22 +03:00
rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
2008-02-18 01:16:56 +03:00
$( DISPLAY_SEC_OBJ)
2000-07-07 10:24:16 +04:00
RPCCLIENT_OBJ = $( RPCCLIENT_OBJ1) \
2005-01-18 21:28:34 +03:00
$( PARAM_OBJ) $( LIBSMB_OBJ) $( LIB_NONSMBD_OBJ) \
2009-04-01 03:34:01 +04:00
$( RPC_PARSE_OBJ) $( PASSDB_OBJ) $( LIBMSRPC_GEN_OBJ) $( LIBMSRPC_OBJ) \
2003-02-24 06:07:34 +03:00
$( READLINE_OBJ) $( GROUPDB_OBJ) $( KRBCLIENT_OBJ) \
2008-04-11 23:59:39 +04:00
$( LIBADS_OBJ) $( POPT_LIB_OBJ) \
2010-08-12 19:19:59 +04:00
$( SMBLDAP_OBJ) $( DCUTIL_OBJ) \
2010-08-12 19:28:48 +04:00
$( LIBCLI_SPOOLSS_OBJ) \
2010-08-12 19:40:18 +04:00
$( LIBCLI_EVENTLOG_OBJ) \
2010-08-12 19:45:54 +04:00
$( LIBCLI_NTSVCS_OBJ) \
$( LIBCLI_DRSUAPI_OBJ)
1998-09-26 01:01:52 +04:00
2010-03-01 00:21:09 +03:00
PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $( WBCOMMON_OBJ) \
2009-04-01 02:37:47 +04:00
$( LIBREPLACE_OBJ) @BUILD_INIPARSER@
2006-02-04 01:19:41 +03:00
2010-01-29 17:23:29 +03:00
LIBSMBCLIENT_THREAD_OBJ = \
libsmb/libsmb_thread_impl.o \
libsmb/libsmb_thread_posix.o
2008-07-08 18:55:52 +04:00
LIBSMBCLIENT_OBJ0 = \
libsmb/libsmb_cache.o \
libsmb/libsmb_compat.o \
libsmb/libsmb_context.o \
libsmb/libsmb_dir.o \
libsmb/libsmb_file.o \
libsmb/libsmb_misc.o \
libsmb/libsmb_path.o \
libsmb/libsmb_printjob.o \
libsmb/libsmb_server.o \
libsmb/libsmb_stat.o \
libsmb/libsmb_xattr.o \
2010-01-29 17:23:29 +03:00
libsmb/libsmb_setget.o
2008-07-08 18:55:52 +04:00
LIBSMBCLIENT_OBJ1 = $( LIBSMBCLIENT_OBJ0) \
$( PARAM_OBJ) $( LIB_NONSMBD_OBJ) \
$( LIBSMB_OBJ) $( KRBCLIENT_OBJ) \
$( LIBMSRPC_OBJ) $( LIBMSRPC_GEN_OBJ) $( RPC_PARSE_OBJ) \
2010-05-06 12:41:43 +04:00
$( PASSDB_OBJ) $( SMBLDAP_OBJ) $( GROUPDB_OBJ)
2008-07-08 18:55:52 +04:00
2009-04-01 03:34:01 +04:00
LIBSMBCLIENT_OBJ = $( LIBSMBCLIENT_OBJ1)
2008-07-08 18:55:52 +04:00
2002-11-29 04:17:00 +03:00
# This shared library is intended for linking with unit test programs
# to test Samba internals. It's called libbigballofmud.so to
# discourage casual usage.
LIBBIGBALLOFMUD_MAJOR = 0
2008-04-11 23:59:39 +04:00
LIBBIGBALLOFMUD_OBJ = $( PARAM_OBJ) $( LIB_NONSMBD_OBJ) \
2009-04-01 03:34:01 +04:00
$( LIBSMB_OBJ) $( LIBMSRPC_OBJ) $( LIBMSRPC_GEN_OBJ) $( RPC_PARSE_OBJ) $( PASSDB_OBJ) \
2010-05-06 12:41:43 +04:00
$( GROUPDB_OBJ) $( KRBCLIENT_OBJ) $( SMBLDAP_OBJ)
2002-11-29 04:17:00 +03:00
2009-01-23 00:04:55 +03:00
CLIENT_OBJ1 = client/client.o client/clitar.o $( RPC_CLIENT_OBJ) \
2008-10-12 21:36:12 +04:00
../librpc/rpc/binding.o \
2007-12-18 09:09:09 +03:00
client/dnsbrowse.o \
2006-12-16 03:25:34 +03:00
$( RPC_CLIENT_OBJ1) \
2010-08-13 18:01:56 +04:00
$( RPC_PARSE_OBJ)
2001-12-05 14:00:26 +03:00
2005-01-18 21:28:34 +03:00
CLIENT_OBJ = $( CLIENT_OBJ1) $( PARAM_OBJ) $( LIBSMB_OBJ) \
2006-09-22 03:57:32 +04:00
$( LIB_NONSMBD_OBJ) $( KRBCLIENT_OBJ) $( LIBMSRPC_GEN_OBJ) \
2008-04-11 23:59:39 +04:00
$( READLINE_OBJ) $( POPT_LIB_OBJ) \
2010-05-06 12:41:43 +04:00
$( PASSDB_OBJ) $( SMBLDAP_OBJ) $( GROUPDB_OBJ) \
2008-05-20 20:08:41 +04:00
$( DISPLAY_SEC_OBJ)
2001-10-19 21:00:11 +04:00
2009-01-21 20:10:23 +03:00
LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
../lib/smbconf/smbconf_util.o \
../lib/smbconf/smbconf_txt.o \
2008-04-07 17:01:44 +04:00
lib/smbconf/smbconf_reg.o \
2008-04-13 19:13:16 +04:00
lib/smbconf/smbconf_init.o
2007-11-30 20:49:21 +03:00
2008-04-08 13:02:17 +04:00
SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
SMBCONFTORT_OBJ = $( SMBCONFTORT_OBJ0) \
$( LIB_NONSMBD_OBJ) \
$( PARAM_OBJ) \
2008-04-12 00:22:12 +04:00
$( LIBSMB_ERR_OBJ) \
2008-04-08 14:07:35 +04:00
$( POPT_LIB_OBJ)
2008-04-08 13:02:17 +04:00
2008-03-17 19:29:44 +03:00
LIBNET_OBJ = libnet/libnet_join.o \
2008-06-26 23:48:41 +04:00
libnet/libnet_keytab.o \
2009-04-23 19:09:55 +04:00
librpc/gen_ndr/ndr_libnet_join.o
LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
libnet/libnet_dssync_keytab.o \
../libcli/drsuapi/repl_decrypt.o
LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
libnet/libnet_samsync_ldif.o \
libnet/libnet_samsync_passdb.o \
libnet/libnet_samsync_display.o \
libnet/libnet_samsync_keytab.o \
../libcli/samsync/decrypt.o
2007-12-11 23:21:17 +03:00
2008-02-28 21:54:35 +03:00
NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
2007-06-14 15:29:35 +04:00
utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
$( PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
2008-05-13 14:51:09 +04:00
utils/net_conf.o utils/net_join.o utils/net_user.o \
2008-05-13 15:52:58 +04:00
utils/net_group.o utils/net_file.o utils/net_registry.o \
2009-09-29 15:11:20 +04:00
auth/token_util.o utils/net_dom.o utils/net_share.o \
2009-10-25 18:12:12 +03:00
utils/net_g_lock.o \
s3: Fix a long-standing problem with recycled PIDs
When a samba server process dies hard, it has no chance to clean up its entries
in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb.
For locking.tdb and brlock.tdb Samba is robust by checking every time we read
an entry from the database if the corresponding process still exists. If it
does not exist anymore, the entry is deleted. This is not 100% failsafe though:
On systems with a limited PID space there is a non-zero chance that between the
smbd's death and the fresh access, the PID is recycled by another long-running
process. This renders all files that had been locked by the killed smbd
potentially unusable until the new process also dies.
This patch is supposed to fix the problem the following way: Every process ID
in every database is augmented by a random 64-bit number that is stored in a
serverid.tdb. Whenever we need to check if a process still exists we know its
PID and the 64-bit number. We look up the PID in serverid.tdb and compare the
64-bit number. If it's the same, the process still is a valid smbd holding the
lock. If it is different, a new smbd has taken over.
I believe this is safe against an smbd that has died hard and the PID has been
taken over by a non-samba process. This process would not have registered
itself with a fresh 64-bit number in serverid.tdb, so the old one still exists
in serverid.tdb. We protect against this case by the parent smbd taking care of
deregistering PIDs from serverid.tdb and the fact that serverid.tdb is
CLEAR_IF_FIRST.
CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not
work when all smbds are restarted. For this, "net serverid wipe" has to be run
before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up
sessionid.tdb and connections.tdb.
While there, this also cleans up overloading connections.tdb with all the
process entries just for messaging_send_all().
Volker
2010-03-02 19:02:01 +03:00
utils/net_serverid.o \
2010-05-13 02:05:40 +04:00
utils/net_eventlog.o \
utils/net_printing.o \
2010-07-07 14:36:33 +04:00
$( LIBNDR_NTPRINTING_OBJ) \
2010-08-12 19:19:59 +04:00
$( LIBNDR_PREG_OBJ) \
2010-08-12 19:35:24 +04:00
$( LIBCLI_SPOOLSS_OBJ) \
2010-08-12 19:45:54 +04:00
$( LIBCLI_WINREG_OBJ) \
$( LIBCLI_DRSUAPI_OBJ)
2007-06-14 15:29:35 +04:00
2008-04-09 20:54:20 +04:00
# these are not processed by make proto
2008-05-12 16:38:21 +04:00
NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
2008-04-09 20:54:20 +04:00
NET_OBJ = $( NET_OBJ1) \
2008-05-14 11:01:53 +04:00
$( NET_OBJ2) @FAKE_KASERVER_OBJ@\
2008-04-11 23:59:39 +04:00
$( PARAM_WITHOUT_REG_OBJ) $( LIBSMB_OBJ) \
2008-02-11 20:36:45 +03:00
$( RPC_PARSE_OBJ) $( PASSDB_OBJ) $( GROUPDB_OBJ) \
2006-09-06 22:32:20 +04:00
$( KRBCLIENT_OBJ) $( LIB_NONSMBD_OBJ) $( LIBADDNS_OBJ0) \
2006-12-12 17:52:13 +03:00
$( LIBMSRPC_OBJ) $( LIBMSRPC_GEN_OBJ) \
2010-08-12 19:08:08 +04:00
$( LIBADS_OBJ) $( LIBADS_SERVER_OBJ) $( LIBADS_PRINTER_OBJ) $( POPT_LIB_OBJ) \
2009-03-19 01:44:13 +03:00
$( SMBLDAP_OBJ) $( DCUTIL_OBJ) \
2008-02-15 17:31:31 +03:00
$( AFS_OBJ) $( AFS_SETTOKEN_OBJ) $( READLINE_OBJ) \
2010-05-06 12:41:43 +04:00
$( LIBGPO_OBJ) @BUILD_INIPARSER@ $( DISPLAY_SEC_OBJ) \
2009-04-23 19:09:55 +04:00
$( REG_SMBCONF_OBJ) \
$( LIBNET_OBJ) $( LIBNET_DSSYNC_OBJ) $( LIBNET_SAMSYNC_OBJ) \
2008-03-17 19:29:44 +03:00
$( LIBSMBCONF_OBJ) \
2009-04-01 02:37:47 +04:00
$( PRIVILEGES_BASIC_OBJ) \
2009-07-29 22:07:47 +04:00
$( LIB_EVENTLOG_OBJ) localedir.o
2002-07-15 14:35:28 +04:00
2010-05-06 12:41:43 +04:00
CUPS_OBJ = client/smbspool.o $( PARAM_OBJ) $( LIBSMB_OBJ) \
2008-04-30 02:58:49 +04:00
$( LIB_NONSMBD_OBJ) $( KRBCLIENT_OBJ) $( POPT_LIB_OBJ) \
2008-07-07 23:44:13 +04:00
$( LIBNDR_GEN_OBJ0)
1999-12-13 16:27:58 +03:00
2008-04-11 18:37:06 +04:00
NMBLOOKUP_OBJ = utils/nmblookup.o $( PARAM_OBJ) $( LIBNMB_OBJ) \
2010-01-04 00:28:33 +03:00
$( LIB_NONSMBD_OBJ) $( POPT_LIB_OBJ) $( LIBSMB_ERR_OBJ)
1999-12-01 05:15:14 +03:00
2002-07-15 14:35:28 +04:00
SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
2009-11-29 18:05:36 +03:00
torture/denytest.o torture/mangle_test.o \
2010-07-23 22:08:58 +04:00
torture/nbench.o \
2009-11-29 18:05:36 +03:00
torture/test_posix_append.o
2002-07-15 14:35:28 +04:00
2009-06-19 15:06:02 +04:00
SMBTORTURE_OBJ = $( SMBTORTURE_OBJ1) $( PARAM_OBJ) $( TLDAP_OBJ) \
2010-05-06 12:41:43 +04:00
$( LIBSMB_OBJ) $( KRBCLIENT_OBJ) $( LIB_NONSMBD_OBJ) \
2009-04-16 16:53:36 +04:00
@LIBWBCLIENT_STATIC@ \
2010-04-04 17:15:00 +04:00
../nsswitch/libwbclient/wbc_async.o \
../nsswitch/libwbclient/wb_reqtrans.o \
2008-07-07 23:44:13 +04:00
$( LIBNDR_GEN_OBJ0)
1998-08-10 06:01:18 +04:00
2010-05-06 12:41:43 +04:00
MASKTEST_OBJ = torture/masktest.o $( PARAM_OBJ) $( LIBSMB_OBJ) $( KRBCLIENT_OBJ) \
2008-04-30 18:02:23 +04:00
$( LIB_NONSMBD_OBJ) \
2008-11-23 01:25:14 +03:00
$( LIBNDR_GEN_OBJ0)
2000-05-03 17:54:28 +04:00
2010-05-06 12:41:43 +04:00
MSGTEST_OBJ = torture/msgtest.o $( PARAM_OBJ) $( LIBSMB_ERR_OBJ) \
2008-04-30 18:02:23 +04:00
$( LIB_NONSMBD_OBJ) \
2008-07-07 23:44:13 +04:00
$( LIBNDR_GEN_OBJ0)
2000-11-17 00:38:24 +03:00
2003-04-16 18:45:11 +04:00
LOCKTEST_OBJ = torture/locktest.o $( PARAM_OBJ) $( LOCKING_OBJ) $( KRBCLIENT_OBJ) \
2010-05-06 12:41:43 +04:00
$( LIBSMB_OBJ) $( LIB_NONSMBD_OBJ) \
2009-07-11 02:35:08 +04:00
$( LIBNDR_GEN_OBJ0) $( FNAME_UTIL_OBJ)
1999-04-17 18:06:57 +04:00
2009-06-25 20:18:50 +04:00
NSSTEST_OBJ = torture/nsstest.o $( LIBSAMBAUTIL_OBJ)
2000-06-05 17:53:56 +04:00
2006-07-11 22:01:26 +04:00
PDBTEST_OBJ = torture/pdbtest.o $( PARAM_OBJ) $( LIBSMB_OBJ) $( KRBCLIENT_OBJ) \
2009-04-01 03:34:01 +04:00
$( LIB_NONSMBD_OBJ) $( PASSDB_OBJ) $( GROUPDB_OBJ) \
2010-05-06 12:41:43 +04:00
$( SMBLDAP_OBJ) $( POPT_LIB_OBJ) \
2008-07-07 23:44:13 +04:00
$( LIBNDR_GEN_OBJ0)
2006-07-11 22:01:26 +04:00
2002-09-25 19:19:00 +04:00
VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $( SMBD_OBJ_BASE) $( READLINE_OBJ)
2010-01-04 00:28:33 +03:00
SMBICONV_OBJ = $( PARAM_OBJ) torture/smbiconv.o $( LIB_NONSMBD_OBJ) $( POPT_LIB_OBJ) $( LIBSMB_ERR_OBJ)
2003-04-28 00:47:15 +04:00
2003-08-15 04:04:20 +04:00
LOG2PCAP_OBJ = utils/log2pcaphex.o
2010-05-06 12:41:43 +04:00
LOCKTEST2_OBJ = torture/locktest2.o $( PARAM_OBJ) $( LOCKING_OBJ) $( LIBSMB_OBJ) \
2008-04-30 18:02:23 +04:00
$( KRBCLIENT_OBJ) $( LIB_NONSMBD_OBJ) \
2009-07-11 02:35:08 +04:00
$( LIBNDR_GEN_OBJ0) $( FNAME_UTIL_OBJ)
2001-06-19 06:02:19 +04:00
2004-02-12 08:24:02 +03:00
SMBCACLS_OBJ = utils/smbcacls.o $( PARAM_OBJ) $( LIBSMB_OBJ) \
2007-12-21 20:57:34 +03:00
$( KRBCLIENT_OBJ) $( LIB_NONSMBD_OBJ) $( RPC_PARSE_OBJ) \
2009-04-01 03:34:01 +04:00
$( PASSDB_OBJ) $( GROUPDB_OBJ) $( LIBMSRPC_OBJ) $( LIBMSRPC_GEN_OBJ) \
2010-08-13 15:33:40 +04:00
$( POPT_LIB_OBJ) $( SMBLDAP_OBJ)
2000-12-03 05:15:58 +03:00
2004-02-12 08:24:02 +03:00
SMBCQUOTAS_OBJ = utils/smbcquotas.o $( LIBSMB_OBJ) $( KRBCLIENT_OBJ) \
2003-04-16 18:45:11 +04:00
$( PARAM_OBJ) \
2005-03-24 02:26:33 +03:00
$( LIB_NONSMBD_OBJ) $( RPC_PARSE_OBJ) \
2008-04-11 23:59:39 +04:00
$( LIBMSRPC_OBJ) $( LIBMSRPC_GEN_OBJ) $( POPT_LIB_OBJ) \
2010-05-06 12:41:43 +04:00
$( PASSDB_OBJ) $( SMBLDAP_OBJ) $( GROUPDB_OBJ)
2003-04-15 23:51:17 +04:00
2007-04-06 20:42:37 +04:00
EVTLOGADM_OBJ0 = utils/eventlogadm.o
2005-10-17 19:53:12 +04:00
2008-02-19 03:22:32 +03:00
EVTLOGADM_OBJ = $( EVTLOGADM_OBJ0) $( PARAM_OBJ) $( LIB_NONSMBD_OBJ) \
2010-01-04 00:28:33 +03:00
$( LIBSMB_ERR_OBJ) \
2009-01-23 17:00:17 +03:00
registry/reg_eventlog.o $( LIB_EVENTLOG_OBJ) \
2010-05-06 13:49:10 +04:00
librpc/gen_ndr/ndr_eventlog.o \
librpc/gen_ndr/ndr_lsa.o
2005-10-14 20:07:00 +04:00
2007-04-06 20:42:37 +04:00
SHARESEC_OBJ0 = utils/sharesec.o
2008-02-19 03:22:32 +03:00
SHARESEC_OBJ = $( SHARESEC_OBJ0) $( PARAM_OBJ) $( LIB_NONSMBD_OBJ) \
2010-01-04 00:28:33 +03:00
$( LIBSMB_ERR_OBJ) \
2008-04-11 23:59:39 +04:00
$( POPT_LIB_OBJ)
2006-07-11 22:01:26 +04:00
2008-09-22 02:21:26 +04:00
TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
2010-01-04 00:28:33 +03:00
$( PARAM_OBJ) $( LIB_NONSMBD_OBJ) $( LIBSMB_ERR_OBJ)
2000-12-03 05:15:58 +03:00
2008-09-17 20:53:46 +04:00
REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
@libreplacedir@/test/getifaddrs.o \
@libreplacedir@/test/os2_delete.o \
@libreplacedir@/test/strptime.o \
2008-09-22 01:46:10 +04:00
@libreplacedir@/test/main.o \
2009-09-08 07:31:01 +04:00
$( LIBREPLACE_OBJ) $( SOCKET_WRAPPER_OBJ)
2006-10-02 15:35:41 +04:00
2005-12-07 02:31:33 +03:00
DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1999-12-13 16:27:58 +03:00
2010-05-06 12:41:43 +04:00
SMBFILTER_OBJ = utils/smbfilter.o $( PARAM_OBJ) $( LIBSMB_OBJ) \
2008-04-30 18:02:23 +04:00
$( LIB_NONSMBD_OBJ) $( KRBCLIENT_OBJ) \
2008-07-07 23:44:13 +04:00
$( LIBNDR_GEN_OBJ0)
1998-10-23 02:19:08 +04:00
2008-12-16 11:30:16 +03:00
WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $( PARAM_OBJ) \
2010-01-10 15:35:37 +03:00
$( LIB_NONSMBD_OBJ) $( LIBSMB_ERR_OBJ) $( LIBNMB_OBJ)
1998-07-29 07:08:05 +04:00
2001-04-25 01:13:48 +04:00
PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
2009-10-21 00:09:42 +04:00
pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
2009-04-01 03:34:01 +04:00
PAM_SMBPASS_OBJ = $( PAM_SMBPASS_OBJ_0) $( PARAM_OBJ) $( LIB_NONSMBD_OBJ) $( PASSDB_OBJ) $( GROUPDB_OBJ) \
2008-04-11 23:59:39 +04:00
$( SMBLDAP_OBJ) $( LIBSAMBA_OBJ) \
2010-05-06 12:41:43 +04:00
$( LIBTSOCKET_OBJ)
2001-04-25 01:13:48 +04:00
2010-06-23 14:12:37 +04:00
IDMAP_RW_OBJ = winbindd/idmap_rw.o
IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $( IDMAP_RW_OBJ) @IDMAP_STATIC@
2003-07-08 00:11:53 +04:00
2007-09-14 16:03:58 +04:00
NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
2007-01-24 04:48:08 +03:00
2008-09-16 00:51:44 +04:00
IDMAP_HASH_OBJ = \
winbindd/idmap_hash/idmap_hash.o \
winbindd/idmap_hash/mapfile.o
2008-09-19 21:27:15 +04:00
IDMAP_ADEX_OBJ = \
winbindd/idmap_adex/idmap_adex.o \
winbindd/idmap_adex/cell_util.o \
winbindd/idmap_adex/likewise_cell.o \
winbindd/idmap_adex/provider_unified.o \
winbindd/idmap_adex/gc_util.o \
winbindd/idmap_adex/domain_util.o
2000-05-09 15:41:38 +04:00
WINBINDD_OBJ1 = \
2007-09-14 16:03:58 +04:00
winbindd/winbindd.o \
winbindd/winbindd_group.o \
winbindd/winbindd_util.o \
winbindd/winbindd_cache.o \
winbindd/winbindd_pam.o \
winbindd/winbindd_misc.o \
2007-10-11 00:34:30 +04:00
winbindd/winbindd_cm.o \
winbindd/winbindd_wins.o \
2010-06-16 23:15:54 +04:00
winbindd/winbindd_msrpc.o \
winbindd/winbindd_rpc.o \
2007-09-14 16:03:58 +04:00
winbindd/winbindd_reconnect.o \
2007-10-11 00:34:30 +04:00
winbindd/winbindd_ads.o \
2010-06-07 12:18:01 +04:00
winbindd/winbindd_samr.o \
2007-10-11 00:34:30 +04:00
winbindd/winbindd_dual.o \
2009-07-28 23:06:11 +04:00
winbindd/winbindd_dual_ndr.o \
winbindd/winbindd_dual_srv.o \
librpc/gen_ndr/cli_wbint.o \
2010-08-06 14:20:07 +04:00
librpc/gen_ndr/ndr_wbint_c.o \
2009-07-28 23:06:11 +04:00
librpc/gen_ndr/srv_wbint.o \
librpc/gen_ndr/ndr_wbint.o \
2007-09-14 16:03:58 +04:00
winbindd/winbindd_async.o \
winbindd/winbindd_creds.o \
winbindd/winbindd_cred_cache.o \
winbindd/winbindd_ccache_access.o \
2007-12-13 14:27:57 +03:00
winbindd/winbindd_domain.o \
2007-10-08 15:11:46 +04:00
winbindd/winbindd_idmap.o \
2007-10-08 15:15:28 +04:00
winbindd/winbindd_locator.o \
2008-01-24 18:10:18 +03:00
winbindd/winbindd_ndr.o \
2009-05-16 14:00:34 +04:00
winbindd/wb_ping.o \
2009-08-04 01:44:46 +04:00
winbindd/wb_lookupsid.o \
2009-08-04 15:22:34 +04:00
winbindd/wb_lookupname.o \
2009-08-04 21:28:59 +04:00
winbindd/wb_sid2uid.o \
2009-08-04 21:38:52 +04:00
winbindd/wb_sid2gid.o \
2009-08-04 21:52:39 +04:00
winbindd/wb_uid2sid.o \
2009-08-04 22:19:03 +04:00
winbindd/wb_gid2sid.o \
2009-08-04 23:23:13 +04:00
winbindd/wb_queryuser.o \
2009-08-04 23:54:05 +04:00
winbindd/wb_lookupuseraliases.o \
2009-08-05 00:07:01 +04:00
winbindd/wb_lookupusergroups.o \
2009-08-04 23:32:11 +04:00
winbindd/wb_getpwsid.o \
2009-08-05 00:22:42 +04:00
winbindd/wb_gettoken.o \
2009-08-15 13:16:28 +04:00
winbindd/wb_seqnum.o \
2009-08-15 13:21:16 +04:00
winbindd/wb_seqnums.o \
2009-08-16 12:58:43 +04:00
winbindd/wb_group_members.o \
2009-08-16 13:25:31 +04:00
winbindd/wb_getgrsid.o \
2009-08-18 00:40:19 +04:00
winbindd/wb_query_user_list.o \
2009-08-18 00:44:55 +04:00
winbindd/wb_fill_pwent.o \
2009-08-18 00:50:39 +04:00
winbindd/wb_next_pwent.o \
2009-08-27 23:53:15 +04:00
winbindd/wb_next_grent.o \
2009-08-26 13:33:16 +04:00
winbindd/wb_dsgetdcname.o \
2009-08-04 14:57:13 +04:00
winbindd/winbindd_lookupsid.o \
2009-08-04 15:29:03 +04:00
winbindd/winbindd_lookupname.o \
2009-08-04 21:33:56 +04:00
winbindd/winbindd_sid_to_uid.o \
2009-08-04 21:42:22 +04:00
winbindd/winbindd_sid_to_gid.o \
2009-08-04 22:07:44 +04:00
winbindd/winbindd_uid_to_sid.o \
2009-08-04 22:22:17 +04:00
winbindd/winbindd_gid_to_sid.o \
2009-08-30 11:41:43 +04:00
winbindd/winbindd_allocate_uid.o \
2009-08-30 11:46:34 +04:00
winbindd/winbindd_allocate_gid.o \
2009-08-04 23:35:24 +04:00
winbindd/winbindd_getpwsid.o \
2009-08-04 23:37:54 +04:00
winbindd/winbindd_getpwnam.o \
2009-08-04 23:41:40 +04:00
winbindd/winbindd_getpwuid.o \
2009-08-04 23:58:45 +04:00
winbindd/winbindd_getsidaliases.o \
2009-08-05 00:20:18 +04:00
winbindd/winbindd_getuserdomgroups.o \
2009-08-05 00:26:07 +04:00
winbindd/winbindd_getgroups.o \
2009-08-15 15:23:57 +04:00
winbindd/winbindd_show_sequence.o \
2009-08-16 14:13:00 +04:00
winbindd/winbindd_getgrgid.o \
2009-08-16 14:23:31 +04:00
winbindd/winbindd_getgrnam.o \
2009-08-27 16:55:41 +04:00
winbindd/winbindd_getusersids.o \
2009-08-27 19:11:24 +04:00
winbindd/winbindd_lookuprids.o \
2009-08-18 01:13:48 +04:00
winbindd/winbindd_setpwent.o \
winbindd/winbindd_getpwent.o \
winbindd/winbindd_endpwent.o \
2009-08-28 01:33:45 +04:00
winbindd/winbindd_setgrent.o \
winbindd/winbindd_getgrent.o \
winbindd/winbindd_endgrent.o \
2009-08-26 01:02:44 +04:00
winbindd/winbindd_dsgetdcname.o \
2009-08-26 14:27:32 +04:00
winbindd/winbindd_getdcname.o \
2009-08-29 18:05:02 +04:00
winbindd/winbindd_list_users.o \
2009-08-29 19:17:47 +04:00
winbindd/winbindd_list_groups.o \
2009-09-06 11:32:34 +04:00
winbindd/winbindd_check_machine_acct.o \
2009-10-06 20:26:33 +04:00
winbindd/winbindd_change_machine_acct.o \
2009-12-21 23:50:43 +03:00
winbindd/winbindd_ping_dc.o \
2010-03-29 19:52:38 +04:00
winbindd/winbindd_pam_auth.o \
2010-03-31 01:02:36 +04:00
winbindd/winbindd_pam_auth_crap.o \
2010-04-01 14:35:14 +04:00
winbindd/winbindd_pam_chauthtok.o \
2010-04-20 13:11:19 +04:00
winbindd/winbindd_pam_chng_pswd_auth_crap.o \
2010-04-01 18:44:16 +04:00
winbindd/winbindd_pam_logoff.o \
2010-05-27 14:06:24 +04:00
auth/auth_util.o \
2008-04-01 16:01:28 +04:00
auth/token_util.o \
2010-06-07 12:18:01 +04:00
auth/user_util.o \
2010-04-11 17:27:49 +04:00
auth/check_samsec.o \
auth/server_info.o \
auth/server_info_sam.o \
auth/user_info.o \
2010-04-16 18:28:05 +04:00
auth/pampass.o \
s3: Fix a long-standing problem with recycled PIDs
When a samba server process dies hard, it has no chance to clean up its entries
in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb.
For locking.tdb and brlock.tdb Samba is robust by checking every time we read
an entry from the database if the corresponding process still exists. If it
does not exist anymore, the entry is deleted. This is not 100% failsafe though:
On systems with a limited PID space there is a non-zero chance that between the
smbd's death and the fresh access, the PID is recycled by another long-running
process. This renders all files that had been locked by the killed smbd
potentially unusable until the new process also dies.
This patch is supposed to fix the problem the following way: Every process ID
in every database is augmented by a random 64-bit number that is stored in a
serverid.tdb. Whenever we need to check if a process still exists we know its
PID and the 64-bit number. We look up the PID in serverid.tdb and compare the
64-bit number. If it's the same, the process still is a valid smbd holding the
lock. If it is different, a new smbd has taken over.
I believe this is safe against an smbd that has died hard and the PID has been
taken over by a non-samba process. This process would not have registered
itself with a fresh 64-bit number in serverid.tdb, so the old one still exists
in serverid.tdb. We protect against this case by the parent smbd taking care of
deregistering PIDs from serverid.tdb and the fact that serverid.tdb is
CLEAR_IF_FIRST.
CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not
work when all smbds are restarted. For this, "net serverid wipe" has to be run
before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up
sessionid.tdb and connections.tdb.
While there, this also cleans up overloading connections.tdb with all the
process entries just for messaging_send_all().
Volker
2010-03-02 19:02:01 +03:00
../nsswitch/libwbclient/wb_reqtrans.o
2000-05-09 15:41:38 +04:00
WINBINDD_OBJ = \
2009-04-01 03:34:01 +04:00
$( WINBINDD_OBJ1) $( PASSDB_OBJ) $( GROUPDB_OBJ) \
2005-01-18 21:28:34 +03:00
$( PARAM_OBJ) $( LIB_NONSMBD_OBJ) \
2006-09-06 22:32:20 +04:00
$( LIBSMB_OBJ) $( LIBMSRPC_OBJ) $( LIBMSRPC_GEN_OBJ) $( RPC_PARSE_OBJ) \
2005-11-10 23:28:23 +03:00
$( PROFILE_OBJ) $( SLCACHE_OBJ) $( SMBLDAP_OBJ) \
2008-04-11 23:59:39 +04:00
$( LIBADS_OBJ) $( KRBCLIENT_OBJ) $( POPT_LIB_OBJ) \
2007-01-24 04:48:08 +03:00
$( DCUTIL_OBJ) $( IDMAP_OBJ) $( NSS_INFO_OBJ) \
2010-06-07 12:18:01 +04:00
$( RPC_NCACN_NP_INTERNAL) $( RPC_SAMR_OBJ) $( RPC_LSA_OBJ) \
2007-10-11 00:34:30 +04:00
$( AFS_OBJ) $( AFS_SETTOKEN_OBJ) \
2010-05-06 12:41:43 +04:00
$( LIBADS_SERVER_OBJ) \
2009-01-28 10:52:53 +03:00
$( TDB_VALIDATE_OBJ)
2000-05-09 15:41:38 +04:00
2008-12-16 11:30:16 +03:00
WBINFO_OBJ = ../nsswitch/wbinfo.o $( LIBSAMBA_OBJ) $( PARAM_OBJ) $( LIB_NONSMBD_OBJ) \
2008-04-11 23:59:39 +04:00
$( POPT_LIB_OBJ) $( AFS_SETTOKEN_OBJ) \
2009-04-01 03:34:01 +04:00
lib/winbind_util.o $( WBCOMMON_OBJ)
2000-07-05 15:24:26 +04:00
2008-01-15 15:56:57 +03:00
WINBIND_NSS_OBJ = $( WBCOMMON_OBJ) $( LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
2000-05-09 15:41:38 +04:00
2008-12-16 11:30:16 +03:00
WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
2008-10-07 20:54:08 +04:00
WINBIND_KRB5_LOCATOR_OBJ = $( WINBIND_KRB5_LOCATOR_OBJ1) $( LIBREPLACE_OBJ)
2007-03-13 19:04:17 +03:00
2008-09-17 19:12:27 +04:00
POPT_OBJ = ../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
../lib/popt/popthelp.o ../lib/popt/poptparse.o
2001-10-23 18:16:22 +04:00
2010-03-01 00:21:09 +03:00
INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
../lib/iniparser_build/strlib.o
2006-04-11 18:40:53 +04:00
2008-02-14 15:29:44 +03:00
TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $( LIBREPLACE_OBJ) \
2009-04-01 02:37:47 +04:00
$( SOCKET_WRAPPER_OBJ)
2002-03-07 21:58:33 +03:00
2009-04-01 02:37:47 +04:00
TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $( LIBREPLACE_OBJ) \
2007-01-24 22:53:58 +03:00
$( SOCKET_WRAPPER_OBJ)
2004-10-29 02:58:21 +04:00
2009-04-01 02:37:47 +04:00
TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $( LIBREPLACE_OBJ) \
2007-01-24 22:53:58 +03:00
$( SOCKET_WRAPPER_OBJ)
2003-11-05 20:38:15 +03:00
2009-06-19 21:27:02 +04:00
TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $( LIBREPLACE_OBJ) \
2007-03-26 14:57:48 +04:00
$( SOCKET_WRAPPER_OBJ)
2007-04-06 20:42:37 +04:00
NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
2004-05-10 23:57:54 +04:00
2004-04-12 18:19:48 +04:00
NTLM_AUTH_OBJ = ${ NTLM_AUTH_OBJ1 } $( LIBSAMBA_OBJ) $( POPT_LIB_OBJ) \
2009-09-17 02:21:01 +04:00
../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o libads/kerberos.o \
2009-03-19 01:44:13 +03:00
$( LIBADS_SERVER_OBJ) \
2009-06-27 22:03:55 +04:00
$( PASSDB_OBJ) $( LIBTSOCKET_OBJ) $( GROUPDB_OBJ) \
2008-04-11 18:32:48 +04:00
$( SMBLDAP_OBJ) $( LIBNMB_OBJ) \
2010-05-06 12:41:43 +04:00
$( WBCOMMON_OBJ) \
2010-06-03 12:25:32 +04:00
$( LIBNDR_GEN_OBJ0) $( LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
2008-02-11 20:36:45 +03:00
2003-01-28 15:07:02 +03:00
2009-06-25 19:43:28 +04:00
VLP_OBJ = printing/tests/vlp.o \
../lib/util/util_tdb.o \
$( LIBSAMBAUTIL_OBJ) \
param/util.o
2007-12-11 00:30:24 +03:00
2008-05-22 13:08:47 +04:00
RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
$( LIBSMB_OBJ) \
$( PARAM_OBJ) \
$( PASSDB_OBJ) \
2010-05-06 12:41:43 +04:00
$( SMBLDAP_OBJ) $( GROUPDB_OBJ) \
2008-05-22 13:08:47 +04:00
$( LIB_NONSMBD_OBJ) \
$( KRBCLIENT_OBJ) \
2010-08-13 18:01:56 +04:00
$( RPC_PARSE_OBJ) \
2008-05-22 13:08:47 +04:00
$( RPC_CLIENT_OBJ1) \
2010-07-17 23:00:24 +04:00
librpc/rpc/rpc_common.o \
2008-05-22 13:08:47 +04:00
rpc_client/cli_pipe.o \
2010-07-23 22:47:36 +04:00
librpc/rpc/dcerpc_gssapi.o \
2010-07-29 01:06:51 +04:00
librpc/rpc/dcerpc_spnego.o \
2008-10-12 21:36:12 +04:00
../librpc/rpc/binding.o \
2008-05-22 13:08:47 +04:00
$( LIBMSRPC_GEN_OBJ)
2009-05-15 13:58:17 +04:00
DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
$( PARAM_OBJ) \
$( LIB_NONSMBD_OBJ) \
2010-01-04 00:28:33 +03:00
$( LIBSMB_ERR_OBJ)
2008-05-22 13:08:47 +04:00
2009-11-21 02:48:40 +03:00
DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
$( PARAM_OBJ) \
$( LIB_NONSMBD_OBJ) \
2010-01-04 00:28:33 +03:00
$( LIBSMB_ERR_OBJ) \
2009-11-21 02:48:40 +03:00
$( POPT_LIB_OBJ)
2009-12-01 02:53:03 +03:00
SPLIT_TOKENS_OBJ = utils/split_tokens.o \
$( PARAM_OBJ) \
$( LIB_NONSMBD_OBJ) \
$( POPT_LIB_OBJ) \
$( LIBSAMBA_OBJ)
1998-07-29 07:08:05 +04:00
######################################################################
# now the rules...
######################################################################
2010-03-08 17:06:40 +03:00
all :: SHOWFLAGS basics libs $( SBIN_PROGS ) $( BIN_PROGS ) \
$( MODULES) $( NSS_MODULES) $( PAM_MODULES) \
2008-11-10 17:13:15 +03:00
$( EXTRA_ALL_TARGETS)
2006-03-13 19:10:26 +03:00
2010-05-05 18:12:59 +04:00
basics :: samba 3-idl
2008-10-21 20:49:43 +04:00
2008-05-18 20:39:48 +04:00
nss_modules :: $( NSS_MODULES )
2007-04-03 17:30:43 +04:00
2008-05-18 20:39:48 +04:00
pam_modules :: $( PAM_MODULES )
2006-03-13 19:10:26 +03:00
2008-05-18 20:39:48 +04:00
pam_smbpass : SHOWFLAGS bin /pam_smbpass .@SHLIBEXT @
2008-02-29 19:06:22 +03:00
2008-05-18 20:39:48 +04:00
pam_winbind : SHOWFLAGS bin /pam_winbind .@SHLIBEXT @
1998-07-29 07:08:05 +04:00
2008-09-27 02:36:45 +04:00
gpext_modules :: $( GPEXT_MODULES )
2010-05-13 21:30:46 +04:00
torture :: SHOWFLAGS basics $( TORTURE_PROGS ) @SMBTORTURE 4@
2001-06-19 06:06:12 +04:00
2002-12-01 06:06:18 +03:00
smbtorture : SHOWFLAGS bin /smbtorture @EXEEXT @
1998-10-08 10:19:29 +04:00
2002-12-01 06:06:18 +03:00
masktest : SHOWFLAGS bin /masktest @EXEEXT @
1999-12-13 16:27:58 +03:00
2002-12-01 06:06:18 +03:00
msgtest : SHOWFLAGS bin /msgtest @EXEEXT @
2000-11-17 00:38:24 +03:00
2002-12-01 06:06:18 +03:00
locktest : SHOWFLAGS bin /locktest @EXEEXT @
2000-05-03 17:54:28 +04:00
2002-12-01 06:06:18 +03:00
smbcacls : SHOWFLAGS bin /smbcacls @EXEEXT @
2000-12-03 05:15:58 +03:00
2003-04-15 23:51:17 +04:00
smbcquotas : SHOWFLAGS bin /smbcquotas @EXEEXT @
2002-12-01 06:06:18 +03:00
locktest2 : SHOWFLAGS bin /locktest 2@EXEEXT @
2000-06-05 17:53:56 +04:00
2002-12-01 06:06:18 +03:00
debug2html : SHOWFLAGS bin /debug 2html @EXEEXT @
1999-04-17 18:06:57 +04:00
2002-12-01 06:06:18 +03:00
smbfilter : SHOWFLAGS bin /smbfilter @EXEEXT @
1999-04-17 18:06:57 +04:00
2005-10-14 22:38:03 +04:00
eventlogadm : SHOWFLAGS bin /eventlogadm @EXEEXT @
2005-10-14 20:07:00 +04:00
2006-07-11 22:01:26 +04:00
sharesec : SHOWFLAGS bin /sharesec @EXEEXT @
2009-06-19 22:31:33 +04:00
talloctort : SHOWFLAGS $( TALLOCTORT )
2001-12-19 07:46:35 +03:00
2006-10-02 15:35:41 +04:00
replacetort : SHOWFLAGS bin /replacetort @EXEEXT @
2008-04-08 13:02:17 +04:00
smbconftort : SHOWFLAGS bin /smbconftort @EXEEXT @
2006-06-08 22:41:15 +04:00
timelimit : SHOWFLAGS bin /timelimit @EXEEXT @
2003-06-16 07:28:27 +04:00
nsswitch : SHOWFLAGS bin /winbindd @EXEEXT @ bin /wbinfo @EXEEXT @ @WINBIND_NSS @ \
2008-01-10 12:55:20 +03:00
@WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
2001-05-17 10:08:49 +04:00
2003-06-16 07:28:27 +04:00
wins : SHOWFLAGS @WINBIND_WINS_NSS @
2002-03-12 07:18:51 +03:00
2008-05-18 20:39:48 +04:00
modules :: SHOWFLAGS $( MODULES )
2002-11-18 19:22:04 +03:00
2010-02-04 12:35:45 +03:00
2006-09-07 02:08:06 +04:00
#####################################################################
## Perl IDL Compiler
2010-07-07 15:44:42 +04:00
IDL_FILES = librpc/idl/messaging.idl \
librpc/idl/libnetapi.idl \
librpc/idl/notify.idl \
librpc/idl/wbint.idl \
librpc/idl/perfcount.idl \
librpc/idl/secrets.idl \
2010-07-07 04:45:01 +04:00
librpc/idl/libnet_join.idl \
librpc/idl/preg.idl
2010-07-07 15:44:42 +04:00
2008-09-15 16:30:15 +04:00
samba3-idl ::
2010-05-06 13:49:10 +04:00
@PIDL_OUTPUTDIR= "librpc/gen_ndr" PIDL_ARGS = " $( PIDL_ARGS) " CPP = " $( CPP) " PIDL = "../pidl/pidl" \
2008-12-16 20:56:21 +03:00
srcdir = " $( srcdir) " ../librpc/build_idl.sh ../librpc/idl/*.idl
2008-12-16 17:42:47 +03:00
@PIDL_OUTPUTDIR= "librpc/gen_ndr" PIDL_ARGS = " $( PIDL_ARGS) " CPP = " $( CPP) " PIDL = "../pidl/pidl" \
2010-07-07 15:44:42 +04:00
srcdir = " $( srcdir) " $( srcdir) /script/build_idl.sh $( IDL_FILES)
2008-10-20 15:19:39 +04:00
2010-07-05 17:24:55 +04:00
idl_full ::
@PIDL_OUTPUTDIR= "librpc/gen_ndr" PIDL_ARGS = " $( PIDL_ARGS) " CPP = " $( CPP) " PIDL = "../pidl/pidl" \
srcdir = " $( srcdir) " ../librpc/build_idl.sh --full ../librpc/idl/*.idl
@PIDL_OUTPUTDIR= "librpc/gen_ndr" PIDL_ARGS = " $( PIDL_ARGS) " CPP = " $( CPP) " PIDL = "../pidl/pidl" \
2010-07-07 15:44:42 +04:00
srcdir = " $( srcdir) " $( srcdir) /script/build_idl.sh --full $( IDL_FILES)
2010-07-05 17:24:55 +04:00
2006-09-07 02:08:06 +04:00
#####################################################################
2008-05-18 20:39:48 +04:00
everything :: all libtalloc libsmbclient libnetapi debug 2html smbfilter talloctort replacetort smbconftort modules torture \
2003-08-29 05:25:17 +04:00
$( EVERYTHING_PROGS)
2002-11-22 22:03:28 +03:00
1998-07-29 07:08:05 +04:00
.SUFFIXES :
2006-10-05 13:15:37 +04:00
.SUFFIXES : .c .o .lo
1998-07-29 07:08:05 +04:00
2009-03-23 19:47:26 +03:00
.PHONY : showflags SHOWFLAGS
showflags : SHOWFLAGS
2008-05-18 20:39:48 +04:00
SHOWFLAGS ::
2008-09-15 16:30:15 +04:00
@echo " Using CFLAGS = $( CFLAGS) "
2006-10-05 13:15:37 +04:00
@echo " PICFLAG = $( PICFLAG) "
@echo " LIBS = $( LIBS) "
@echo " LDFLAGS = $( LDFLAGS) "
@echo " DYNEXP = $( DYNEXP) "
@echo " LDSHFLAGS = $( LDSHFLAGS) "
@echo " SHLIBEXT = @SHLIBEXT@"
@echo " SONAMEFLAG = @SONAMEFLAG@"
1998-08-11 06:13:01 +04:00
2009-03-31 10:50:57 +04:00
# "showcflags" target for debuggin how CFLAGS are composed:
.PHONY : showcflags SHOWCFLAGS
showcflags : SHOWCFLAGS
SHOWCFLAGS ::
@echo " CFLAGS = $( CFLAGS) "
@echo " FLAGS = $( FLAGS) "
@echo ""
@echo "FLAGS1 = @FLAGS1@"
@echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
@echo " CPPFLAGS = $( CPPFLAGS) "
@echo " ISA = $( ISA) "
1998-10-05 04:43:48 +04:00
MAKEDIR = || exec false; \
if test -d " $$ dir " ; then :; else \
echo mkdir " $$ dir " ; \
mkdir -p " $$ dir " >/dev/null 2>& 1 || \
test -d " $$ dir " || \
mkdir " $$ dir " || \
exec false; fi || exec false
2007-05-15 09:25:10 +04:00
# Run a static checker.
2010-05-29 04:06:56 +04:00
CHECK_CC = $( CC_CHECKER) $( CFLAGS) $( PICFLAG) -c $< -o $@
2007-05-15 09:25:10 +04:00
# Compile a source file.
2010-05-29 04:06:56 +04:00
COMPILE_CC = $( CC) $( CFLAGS) $( PICFLAG) -c $< -o $@
2007-05-15 09:25:10 +04:00
# Compile a source file with the installation paths defined.
2010-05-29 04:06:56 +04:00
COMPILE_CC_PATH = $( CC) $( PATH_FLAGS) $( CFLAGS) $( PICFLAG) -c $< -o $@
2007-04-22 07:17:31 +04:00
COMPILE = $( COMPILE_CC)
2001-09-06 14:37:21 +04:00
.c.o :
1998-10-05 06:56:31 +04:00
@if ( : >> $@ || : > $@ ) >/dev/null 2>& 1; then rm -f $@ ; else \
1998-10-05 04:43:48 +04:00
dir = ` echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,' ` $( MAKEDIR) ; fi
2006-04-03 18:57:48 +04:00
@if test -n " $( CC_CHECKER) " ; then \
echo " Checking $* .c with ' $( CC_CHECKER) ' " ; \
2007-04-22 07:17:31 +04:00
$( CHECK_CC) ; \
2006-04-03 18:57:48 +04:00
fi
1998-07-29 07:08:05 +04:00
@echo Compiling $* .c
2007-04-22 07:17:31 +04:00
@$( COMPILE) && exit 0; \
2006-09-19 03:16:39 +04:00
echo "The following command failed:" 1>& 2; \
2008-09-15 16:30:15 +04:00
echo " $( subst " ,\", $( COMPILE_CC) ) " 1>& 2; \
2007-04-22 07:17:31 +04:00
$( COMPILE_CC) >/dev/null 2>& 1
1999-12-13 16:27:58 +03:00
@ B R O K E N _ C C @ - m v ` e c h o $@ | s e d 's%^.*/%%g' ` $@
2000-03-14 02:20:01 +03:00
2007-04-20 22:12:07 +04:00
PRECOMPILED_HEADER = $( builddir) /include/includes.h.gch
2003-11-12 04:01:47 +03:00
# this adds support for precompiled headers. To use it, install a snapshot
2007-04-06 20:42:37 +04:00
# of gcc-3.4 and run 'make pch' before you do the main build.
2008-05-21 20:04:47 +04:00
pch ::
2007-04-20 22:12:07 +04:00
rm -f $( PRECOMPILED_HEADER)
2007-04-22 07:17:31 +04:00
$( MAKE) $( PRECOMPILED_HEADER)
$(PRECOMPILED_HEADER) : $( srcdir ) /include /includes .h
$( COMPILE)
2003-11-12 04:01:47 +03:00
2010-05-05 18:12:59 +04:00
BINARY_PREREQS = bin/.dummy
2007-06-01 20:06:40 +04:00
2001-11-19 05:49:53 +03:00
# These dependencies are only approximately correct: we want to make
# sure Samba's paths are updated if ./configure is re-run. Really it
# would be nice if "make prefix=/opt/samba all" also rebuilt things,
# but since we also require "make install prefix=/opt/samba" *not* to
# rebuild it's a bit hard.
dynconfig.o : dynconfig .c Makefile
@echo Compiling $* .c
2007-05-15 09:25:10 +04:00
@$( COMPILE_CC_PATH) && exit 0; \
2006-09-19 04:56:02 +04:00
echo "The following command failed:" 1>& 2; \
2007-05-15 09:25:10 +04:00
echo " $( COMPILE_CC_PATH) " 1>& 2; \
$( COMPILE_CC_PATH) >/dev/null 2>& 1
2001-11-19 05:49:53 +03:00
2010-03-01 00:21:09 +03:00
../nsswitch/pam_winbind.o : ../nsswitch /pam_winbind .c Makefile
@echo Compiling $* .c
@$( COMPILE_CC_PATH) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC_PATH) " 1>& 2; \
$( COMPILE_CC_PATH) >/dev/null 2>& 1
2010-05-29 04:06:56 +04:00
### Start section of object files that require PTHREAD_CFLAGS
../nsswitch/wins.o : ../nsswitch /wins .c
@echo Compiling $* .c
@$( COMPILE) $( PTHREAD_CFLAGS) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC) $( PTHREAD_CFLAGS) " 1>& 2; \
$( COMPILE_CC) $( PTHREAD_CFLAGS) >/dev/null 2>& 1
../nsswitch/winbind_nss_linux.o : ../nsswitch /winbind_nss_linux .c
@echo Compiling $* .c
@$( COMPILE_CC) $( PTHREAD_CFLAGS) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC) $( PTHREAD_CFLAGS) " 1>& 2; \
$( COMPILE_CC) $( PTHREAD_CFLAGS) >/dev/null 2>& 1
libsmb/libsmb_thread_impl.o : libsmb /libsmb_thread_impl .c
@echo Compiling $* .c
@$( COMPILE) $( PTHREAD_CFLAGS) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC) $( PTHREAD_CFLAGS) " 1>& 2; \
$( COMPILE_CC) $( PTHREAD_CFLAGS) >/dev/null 2>& 1
libsmb/libsmb_thread_posix.o : libsmb /libsmb_thread_posix .c
@echo Compiling $* .c
@$( COMPILE) $( PTHREAD_CFLAGS) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC) $( PTHREAD_CFLAGS) " 1>& 2; \
$( COMPILE_CC) $( PTHREAD_CFLAGS) >/dev/null 2>& 1
### End section of object files that require PTHREAD_CFLAGS
2008-10-30 12:53:52 +03:00
localedir.o : localedir .c Makefile
@echo Compiling $* .c
@$( COMPILE_CC_PATH) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC_PATH) " 1>& 2; \
$( COMPILE_CC_PATH) >/dev/null 2>& 1
2006-11-02 12:37:52 +03:00
lib/pidfile.o : lib /pidfile .c
@echo Compiling $* .c
2007-05-15 09:25:10 +04:00
@$( COMPILE_CC_PATH) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC_PATH) " 1>& 2; \
$( COMPILE_CC_PATH) >/dev/null 2>& 1
2006-11-02 12:37:52 +03:00
2003-08-20 21:13:38 +04:00
lib/version.o : lib /version .c include /version .h
@echo Compiling $* .c
2007-05-15 09:25:10 +04:00
@$( COMPILE_CC_PATH) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC_PATH) " 1>& 2; \
$( COMPILE_CC_PATH) >/dev/null 2>& 1
2003-08-20 21:13:38 +04:00
2003-04-23 18:19:03 +04:00
smbd/build_options.o : smbd /build_options .c Makefile include /config .h include /build_env .h include /proto .h
@echo Compiling $* .c
2007-05-15 09:25:10 +04:00
@$( COMPILE_CC_PATH) && exit 0; \
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE_CC_PATH) " 1>& 2; \
$( COMPILE_CC_PATH) >/dev/null 2>& 1
2003-04-23 18:19:03 +04:00
smbd/build_options.c : include /config .h .in script /mkbuildoptions .awk
@echo Generating $@
2003-05-23 05:59:43 +04:00
@dir= smbd $( MAKEDIR) && $( AWK) -f $( srcdir) /script/mkbuildoptions.awk > $( builddir) /smbd/build_options.c < $( srcdir) /include/config.h.in
2003-04-23 18:19:03 +04:00
1998-10-05 02:42:05 +04:00
bin/.dummy :
1998-10-05 06:56:31 +04:00
@if ( : >> $@ || : > $@ ) >/dev/null 2>& 1; then :; else \
1998-10-05 04:43:48 +04:00
dir = bin $( MAKEDIR) ; fi
1998-10-05 06:56:31 +04:00
@: >> $@ || : > $@ # what a fancy emoticon!
1998-09-29 09:05:46 +04:00
2009-10-04 03:40:34 +04:00
bin/smbd@EXEEXT@ : $( BINARY_PREREQS ) $( SMBD_OBJ ) $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT ) @BUILD_POPT @
1998-08-09 17:25:34 +04:00
@echo Linking $@
2009-05-16 20:20:02 +04:00
@$( CC) -o $@ $( SMBD_OBJ) $( LDFLAGS) $( LDAP_LIBS) @SMBD_FAM_LIBS@ \
2003-11-02 07:05:47 +03:00
$( KRB5LIBS) $( DYNEXP) $( PRINT_LIBS) $( AUTH_LIBS) \
2009-03-20 16:55:05 +03:00
$( ACL_LIBS) $( PASSDB_LIBS) $( LIBS) $( DNSSD_LIBS) $( AVAHI_LIBS) \
2008-07-14 20:02:08 +04:00
$( POPT_LIBS) @SMBD_LIBS@ $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
1999-12-06 03:44:32 +03:00
2010-01-24 18:47:24 +03:00
bin/nmbd@EXEEXT@ : $( BINARY_PREREQS ) $( NMBD_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1998-08-09 18:08:42 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( NMBD_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
2010-01-24 18:47:24 +03:00
@LIBWBCLIENT_STATIC@ $( LIBWBCLIENT_LIBS) \
2008-07-14 20:02:08 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( POPT_LIBS) \
2008-10-19 13:22:19 +04:00
$( KRB5LIBS) $( LDAP_LIBS) $( ZLIB_LIBS)
1998-08-09 18:08:42 +04:00
2009-10-04 03:40:34 +04:00
bin/swat@EXEEXT@ : $( BINARY_PREREQS ) $( SWAT_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1998-08-09 18:37:32 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SWAT_OBJ) $( LDFLAGS) $( DYNEXP) $( PRINT_LIBS) \
2008-07-14 19:58:53 +04:00
$( AUTH_LIBS) $( LIBS) $( PASSDB_LIBS) $( POPT_LIBS) $( KRB5LIBS) \
2009-04-01 03:37:07 +04:00
$( LDAP_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
1998-08-09 18:08:42 +04:00
2009-10-04 03:40:34 +04:00
bin/rpcclient@EXEEXT@ : $( BINARY_PREREQS ) $( RPCCLIENT_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1998-09-26 01:01:52 +04:00
@echo Linking $@
2009-07-15 19:24:14 +04:00
@$( CC) -o $@ $( LDFLAGS) $( RPCCLIENT_OBJ) \
2008-07-14 19:58:53 +04:00
$( DYNEXP) $( TERMLDFLAGS) $( TERMLIBS) $( LIBS) $( POPT_LIBS) \
2008-07-14 20:02:08 +04:00
$( KRB5LIBS) $( LDAP_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) \
2009-07-15 19:24:14 +04:00
$( LIBWBCLIENT_LIBS) $( ZLIB_LIBS) $( PASSDB_LIBS)
1998-09-26 01:01:52 +04:00
2009-10-04 03:40:34 +04:00
bin/smbclient@EXEEXT@ : $( BINARY_PREREQS ) $( CLIENT_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1998-08-09 18:37:32 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( CLIENT_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 19:58:53 +04:00
$( TERMLDFLAGS) $( TERMLIBS) $( LIBS) $( POPT_LIBS) \
2008-02-14 15:29:44 +03:00
$( KRB5LIBS) $( LDAP_LIBS) $( NSCD_LIBS) $( DNSSD_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
1998-08-09 18:58:51 +04:00
2009-10-04 03:40:34 +04:00
bin/net@EXEEXT@ : $( BINARY_PREREQS ) $( NET_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT ) $( LIBNETAPI )
2001-10-19 21:00:11 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( NET_OBJ) $( DYNEXP) $( LDFLAGS) $( LIBS) \
2008-07-14 19:58:53 +04:00
$( POPT_LIBS) $( KRB5LIBS) $( UUID_LIBS) $( LDAP_LIBS) \
2008-03-05 17:04:28 +03:00
$( PASSDB_LIBS) $( TERMLDFLAGS) $( TERMLIBS) $( NSCD_LIBS) \
2009-10-02 04:28:56 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( LIBNETAPI_LIBS) \
2008-10-19 13:22:19 +04:00
$( ZLIB_LIBS)
2001-10-19 21:00:11 +04:00
2009-10-04 03:30:43 +04:00
bin/profiles@EXEEXT@ : $( BINARY_PREREQS ) $( PROFILES_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
2003-01-06 08:34:18 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( PROFILES_OBJ) $( DYNEXP) $( LDFLAGS) $( LIBS) \
2008-07-14 20:02:08 +04:00
$( LDAP_LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2003-01-06 08:34:18 +03:00
2010-01-24 18:47:24 +03:00
bin/smbspool@EXEEXT@ : $( BINARY_PREREQS ) $( CUPS_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1999-12-13 16:27:58 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( CUPS_OBJ) $( DYNEXP) $( LDFLAGS) $( LIBS) \
2010-01-24 18:47:24 +03:00
@LIBWBCLIENT_STATIC@ $( LIBWBCLIENT_LIBS) \
2008-10-19 13:22:19 +04:00
$( KRB5LIBS) $( LDAP_LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( ZLIB_LIBS)
1999-12-13 16:27:58 +03:00
2009-10-04 03:30:43 +04:00
bin/testparm@EXEEXT@ : $( BINARY_PREREQS ) $( TESTPARM_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
1998-08-09 18:58:51 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( TESTPARM_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
2008-07-14 20:02:08 +04:00
$( LDAP_LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
1998-08-09 18:58:51 +04:00
2010-02-02 02:14:28 +03:00
bin/smbta-util@EXEEXT@ : $( BINARY_PREREQS ) $( SMBTA_UTIL_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
@echo Linking $@
@$( CC) -o $@ $( SMBTA_UTIL_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
$( LDAP_LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2009-10-04 03:30:43 +04:00
bin/smbstatus@EXEEXT@ : $( BINARY_PREREQS ) $( STATUS_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
1998-08-10 05:25:32 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( STATUS_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
2008-07-14 20:02:08 +04:00
$( LDAP_LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
1998-08-10 05:25:32 +04:00
2009-10-04 03:30:43 +04:00
bin/smbcontrol@EXEEXT@ : $( BINARY_PREREQS ) $( SMBCONTROL_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
2000-09-11 11:02:43 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -DUSING_SMBCONTROL -o $@ \
2008-03-05 17:04:28 +03:00
$( SMBCONTROL_OBJ) $( DYNEXP) $( LDFLAGS) \
2008-07-14 19:58:53 +04:00
$( LIBS) $( LDAP_LIBS) @LIBUNWIND_PTRACE@ $( POPT_LIBS) \
2008-07-14 20:02:08 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2000-09-11 11:02:43 +04:00
2009-10-04 03:40:34 +04:00
bin/smbtree@EXEEXT@ : $( BINARY_PREREQS ) $( SMBTREE_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2001-07-25 05:41:45 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SMBTREE_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 19:58:53 +04:00
$( LIBS) $( POPT_LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( NSCD_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
2001-07-25 05:41:45 +04:00
2009-10-04 03:40:34 +04:00
bin/smbpasswd@EXEEXT@ : $( BINARY_PREREQS ) $( SMBPASSWD_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1998-08-10 05:25:32 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SMBPASSWD_OBJ) $( LDFLAGS) $( PASSDB_LIBS) \
2008-07-14 19:58:53 +04:00
$( DYNEXP) $( LIBS) $( POPT_LIBS) $( KRB5LIBS) $( LDAP_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
1998-08-10 05:25:32 +04:00
2009-10-04 03:40:34 +04:00
bin/pdbedit@EXEEXT@ : $( BINARY_PREREQS ) $( PDBEDIT_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2000-11-14 02:03:34 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( PDBEDIT_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
2008-07-14 20:00:50 +04:00
$( POPT_LIBS) $( PASSDB_LIBS) $( LDAP_LIBS) $( LIBTALLOC_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS)
2003-04-16 18:45:11 +04:00
2009-10-04 03:40:34 +04:00
bin/smbget@EXEEXT@ : $( BINARY_PREREQS ) $( SMBGET_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2004-01-07 03:43:52 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SMBGET_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
2008-07-14 19:58:53 +04:00
$( POPT_LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( NSCD_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
2004-01-07 03:43:52 +03:00
2009-10-04 03:30:43 +04:00
bin/nmblookup@EXEEXT@ : $( BINARY_PREREQS ) $( NMBLOOKUP_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
1998-08-10 05:25:32 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( NMBLOOKUP_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
2008-07-14 20:02:08 +04:00
$( POPT_LIBS) $( LDAP_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
1998-08-10 05:25:32 +04:00
2009-10-04 03:40:34 +04:00
bin/smbtorture@EXEEXT@ : $( BINARY_PREREQS ) $( SMBTORTURE_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1998-08-10 06:01:18 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SMBTORTURE_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 20:00:50 +04:00
$( LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTDB_LIBS) $( ZLIB_LIBS) $( LIBWBCLIENT_LIBS)
1998-07-29 07:08:05 +04:00
2009-10-04 03:30:43 +04:00
bin/talloctort@EXEEXT@ : $( BINARY_PREREQS ) $( TALLOCTORT_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
2001-12-19 07:46:35 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( TALLOCTORT_OBJ) $( LDFLAGS) \
2008-07-14 19:58:53 +04:00
$( DYNEXP) $( LIBS) $( LDAP_LIBS) $( POPT_LIBS) \
2008-07-14 20:02:08 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2001-12-19 07:46:35 +03:00
2009-10-04 03:20:38 +04:00
bin/replacetort@EXEEXT@ : $( REPLACETORT_OBJ ) @BUILD_POPT @ $( LIBTALLOC )
2006-10-02 15:35:41 +04:00
@echo Linking $@
2010-05-22 18:48:16 +04:00
@$( CC) -o $@ $( REPLACETORT_OBJ) $( LDFLAGS) \
2008-07-14 20:00:50 +04:00
$( DYNEXP) $( LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS)
2006-10-02 15:35:41 +04:00
2009-10-04 03:30:43 +04:00
bin/smbconftort@EXEEXT@ : $( SMBCONFTORT_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
2008-04-08 13:02:17 +04:00
@echo Linking $@
2010-05-22 18:48:16 +04:00
@$( CC) -o $@ $( SMBCONFTORT_OBJ) $( LDFLAGS) \
2008-07-14 19:58:53 +04:00
$( DYNEXP) $( LIBS) $( LDAP_LIBS) $( POPT_LIBS) \
2008-07-14 20:02:08 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2008-04-08 13:02:17 +04:00
2010-01-24 18:47:24 +03:00
bin/masktest@EXEEXT@ : $( BINARY_PREREQS ) $( MASKTEST_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1998-10-23 02:19:08 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( MASKTEST_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 19:58:53 +04:00
$( LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( POPT_LIBS) \
2010-01-24 18:47:24 +03:00
@LIBWBCLIENT_STATIC@ $( LIBWBCLIENT_LIBS) \
2008-10-19 13:22:19 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( ZLIB_LIBS)
1998-10-23 02:19:08 +04:00
2009-10-04 03:30:43 +04:00
bin/msgtest@EXEEXT@ : $( BINARY_PREREQS ) $( MSGTEST_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
2000-11-17 00:38:24 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( MSGTEST_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 19:58:53 +04:00
$( LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( POPT_LIBS) \
2008-10-19 13:22:19 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( ZLIB_LIBS)
2000-11-17 00:38:24 +03:00
2009-10-04 03:40:34 +04:00
bin/smbcacls@EXEEXT@ : $( BINARY_PREREQS ) $( SMBCACLS_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2000-12-03 05:15:58 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SMBCACLS_OBJ) $( DYNEXP) $( LDFLAGS) \
2008-07-14 19:58:53 +04:00
$( LIBS) $( POPT_LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( NSCD_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
2000-12-03 05:15:58 +03:00
2009-10-04 03:40:34 +04:00
bin/smbcquotas@EXEEXT@ : $( BINARY_PREREQS ) $( SMBCQUOTAS_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2003-04-15 23:51:17 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SMBCQUOTAS_OBJ) $( DYNEXP) $( LDFLAGS) \
2008-07-14 19:58:53 +04:00
$( LIBS) $( POPT_LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( NSCD_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
2003-04-15 23:51:17 +04:00
2009-10-04 03:30:43 +04:00
bin/eventlogadm@EXEEXT@ : $( BINARY_PREREQS ) $( EVTLOGADM_OBJ ) $( LIBTALLOC ) $( LIBTDB )
2005-10-14 20:07:00 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( EVTLOGADM_OBJ) $( DYNEXP) $( LDFLAGS) \
2009-10-03 01:08:11 +04:00
$( LIBS) $( LDAP_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2005-10-14 20:07:00 +04:00
2009-10-04 03:30:43 +04:00
bin/sharesec@EXEEXT@ : $( BINARY_PREREQS ) $( SHARESEC_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
2006-07-11 22:01:26 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SHARESEC_OBJ) $( DYNEXP) $( LDFLAGS) \
2008-07-14 20:02:08 +04:00
$( LIBS) $( LDAP_LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2006-07-11 22:01:26 +04:00
2010-01-24 18:47:24 +03:00
bin/locktest@EXEEXT@ : $( BINARY_PREREQS ) $( LOCKTEST_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2000-05-03 17:54:28 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LOCKTEST_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 19:58:53 +04:00
$( LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( POPT_LIBS) \
2010-01-24 18:47:24 +03:00
@LIBWBCLIENT_STATIC@ $( LIBWBCLIENT_LIBS) \
2008-10-19 13:22:19 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( ZLIB_LIBS)
2000-05-03 17:54:28 +04:00
2009-06-25 20:18:50 +04:00
bin/nsstest@EXEEXT@ : $( BINARY_PREREQS ) $( NSSTEST_OBJ )
2001-12-03 07:09:43 +03:00
@echo Linking $@
2009-06-25 20:18:50 +04:00
@$( CC) -o $@ $( NSSTEST_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS)
2001-12-03 07:09:43 +03:00
2009-10-04 03:40:34 +04:00
bin/pdbtest@EXEEXT@ : $( BINARY_PREREQS ) $( PDBTEST_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2006-07-11 22:01:26 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( PDBTEST_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-03-05 17:04:28 +03:00
$( LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( PASSDB_LIBS) \
2009-04-01 03:37:07 +04:00
$( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
2006-07-11 22:01:26 +04:00
2009-10-04 03:40:34 +04:00
bin/vfstest@EXEEXT@ : $( BINARY_PREREQS ) $( VFSTEST_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2002-09-25 19:19:00 +04:00
@echo Linking $@
2009-03-20 16:55:05 +03:00
@$( CC) -o $@ $( VFSTEST_OBJ) $( LDFLAGS) $( TERMLDFLAGS) $( AVAHI_LIBS) \
2009-02-01 05:22:41 +03:00
$( TERMLIBS) $( DYNEXP) $( PRINT_LIBS) $( AUTH_LIBS) $( DNSSD_LIBS) \
2008-07-14 19:58:53 +04:00
$( ACL_LIBS) $( LIBS) $( POPT_LIBS) $( KRB5LIBS) $( LDAP_LIBS) \
2008-07-14 20:02:08 +04:00
@SMBD_LIBS@ $( NSCD_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBWBCLIENT_LIBS) $( ZLIB_LIBS)
2002-09-25 19:19:00 +04:00
2009-10-04 03:30:43 +04:00
bin/smbiconv@EXEEXT@ : $( BINARY_PREREQS ) $( SMBICONV_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
2003-04-28 00:47:15 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( SMBICONV_OBJ) $( LDFLAGS) $( TERMLDFLAGS) \
2008-07-14 19:58:53 +04:00
$( TERMLIBS) $( DYNEXP) $( LIBS) $( LDAP_LIBS) $( POPT_LIBS) \
2008-07-14 20:02:08 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2003-04-28 00:47:15 +04:00
2009-10-04 03:20:38 +04:00
bin/log2pcap@EXEEXT@ : $( BINARY_PREREQS ) $( LOG 2PCAP_OBJ ) @BUILD_POPT @ $( LIBTALLOC )
2003-08-15 04:04:20 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LOG2PCAP_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 20:00:50 +04:00
$( POPT_LIBS) $( LIBS) $( LIBTALLOC_LIBS)
2003-08-15 04:04:20 +04:00
2010-01-24 18:47:24 +03:00
bin/locktest2@EXEEXT@ : $( BINARY_PREREQS ) $( LOCKTEST 2_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2000-06-05 17:53:56 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LOCKTEST2_OBJ) $( LDFLAGS) $( DYNEXP) \
2010-01-24 18:47:24 +03:00
@LIBWBCLIENT_STATIC@ $( LIBWBCLIENT_LIBS) \
2008-07-14 19:58:53 +04:00
$( LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( POPT_LIBS) \
2008-10-19 13:22:19 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( ZLIB_LIBS)
2000-06-05 17:53:56 +04:00
2009-10-04 03:20:38 +04:00
bin/debug2html@EXEEXT@ : $( BINARY_PREREQS ) $( DEBUG 2HTML_OBJ ) @BUILD_POPT @ $( LIBTALLOC )
1999-12-03 21:16:08 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( DEBUG2HTML_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 20:00:50 +04:00
$( LIBS) $( LIBTALLOC_LIBS)
1999-12-03 21:16:08 +03:00
2010-01-27 00:54:15 +03:00
bin/smbfilter@EXEEXT@ : $( BINARY_PREREQS ) $( SMBFILTER_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
1999-04-17 18:06:57 +04:00
@echo Linking $@
2010-05-26 19:22:24 +04:00
@$( CC) -o $@ $( SMBFILTER_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
2008-07-14 19:58:53 +04:00
$( KRB5LIBS) $( LDAP_LIBS) $( POPT_LIBS) \
2010-01-24 18:47:24 +03:00
@LIBWBCLIENT_STATIC@ $( LIBWBCLIENT_LIBS) \
2008-10-19 13:22:19 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( ZLIB_LIBS)
1999-04-17 18:06:57 +04:00
2009-03-20 01:56:12 +03:00
bin/versiontest : $( BINARY_PREREQS ) lib /version_test .o $( VERSION_OBJ )
@echo Linking $@
@$( CC) $( FLAGS) -o $@ $( VERSION_OBJ) lib/version_test.o
2008-07-06 14:39:24 +04:00
#####################################################################
#
# libraries
#
#####################################################################
2008-05-23 14:04:21 +04:00
MKSYMS_SH = $( srcdir) /script/mksyms.sh
2008-07-06 14:53:21 +04:00
2008-07-06 14:39:24 +04:00
#-------------------------------------------------------------------
#
# libtalloc
#
#-------------------------------------------------------------------
2008-07-06 15:02:40 +04:00
2008-09-05 01:43:58 +04:00
LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2008-07-06 15:02:40 +04:00
LIBTALLOC_OBJ = $( LIBTALLOC_OBJ0) $( LIBREPLACE_OBJ)
LIBTALLOC_SHARED_TARGET = @LIBTALLOC_SHARED_TARGET@
2008-07-07 19:35:08 +04:00
LIBTALLOC_SOVER = @LIBTALLOC_SOVER@
2008-07-06 16:32:36 +04:00
LIBTALLOC_SHARED_TARGET_SONAME = $( LIBTALLOC_SHARED_TARGET) .$( LIBTALLOC_SOVER)
2008-07-06 15:02:40 +04:00
LIBTALLOC_STATIC_TARGET = @LIBTALLOC_STATIC_TARGET@
LIBTALLOC_SYMS = $( srcdir) /exports/libtalloc.@SYMSEXT@
LIBTALLOC_HEADERS = $( srcdir) /@tallocdir@/talloc.h
2008-06-09 10:39:12 +04:00
$(LIBTALLOC_SYMS) : $( LIBTALLOC_HEADERS )
@$( MKSYMS_SH) $( AWK) $@ $( LIBTALLOC_HEADERS)
2008-05-23 14:04:21 +04:00
2008-07-06 04:29:02 +04:00
$(LIBTALLOC_SHARED_TARGET_SONAME) : $( BINARY_PREREQS ) $( LIBTALLOC_OBJ ) $( LIBTALLOC_SYMS )
2008-02-08 03:00:03 +03:00
@echo Linking shared library $@
2009-10-31 12:37:44 +03:00
@$( SHLD_DSO) $( LIBTALLOC_OBJ) $( LIBREPLACE_LIBS) @SONAMEFLAG@` basename $@ `
2008-07-06 04:29:02 +04:00
$(LIBTALLOC_SHARED_TARGET) : $( LIBTALLOC_SHARED_TARGET_SONAME )
2008-07-06 04:32:09 +04:00
@rm -f $@
2009-02-11 13:02:05 +03:00
@ln -f -s ` basename $( LIBTALLOC_SHARED_TARGET_SONAME) ` $@
2008-02-08 03:00:03 +03:00
2008-02-12 17:18:56 +03:00
$(LIBTALLOC_STATIC_TARGET) : $( BINARY_PREREQS ) $( LIBTALLOC_OBJ 0)
2008-02-08 03:00:03 +03:00
@echo Linking non-shared library $@
@-$( AR) -rc $@ $( LIBTALLOC_OBJ0)
2008-07-06 04:52:09 +04:00
libtalloc : $( LIBTALLOC )
2008-07-06 04:48:39 +04:00
cleanlibtalloc ::
-rm -f \
$( LIBTALLOC_SYMS) \
$( LIBTALLOC_STATIC_TARGET) \
$( LIBTALLOC_SHARED_TARGET) \
$( LIBTALLOC_SHARED_TARGET_SONAME)
2008-07-06 04:52:09 +04:00
installlibtalloc :: installdirs libtalloc
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( LIBDIR)
-$( INSTALLLIBCMD_SH) $( LIBTALLOC_SHARED_TARGET_SONAME) $( DESTDIR) $( LIBDIR)
@rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBTALLOC_SHARED_TARGET) `
2008-10-27 15:50:27 +03:00
-if test -r $( LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2009-02-11 13:02:05 +03:00
ln -f -s ` basename $( LIBTALLOC_SHARED_TARGET_SONAME) ` \
2008-07-07 18:16:28 +04:00
$( DESTDIR) $( LIBDIR) /` basename $( LIBTALLOC_SHARED_TARGET) ` ; \
fi
2008-07-06 04:52:09 +04:00
-$( INSTALLLIBCMD_A) $( LIBTALLOC_STATIC_TARGET) $( DESTDIR) $( LIBDIR)
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) ${ prefix } /include
-$( INSTALLCMD) -m $( INSTALLPERMS_DATA) $( LIBTALLOC_HEADERS) $( DESTDIR) ${ prefix } /include
uninstalllibtalloc ::
-rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBTALLOC_SHARED_TARGET) `
-$( UNINSTALLLIBCMD_SH) $( DESTDIR) $( LIBDIR) /` basename $( LIBTALLOC_SHARED_TARGET_SONAME) `
-$( UNINSTALLLIBCMD_A) $( DESTDIR) $( LIBDIR) /` basename $( LIBTALLOC_STATIC_TARGET) `
-rm -f $( DESTDIR) ${ prefix } /include/talloc.h
2008-07-10 17:49:44 +04:00
libs :: libtalloc
2008-07-10 16:15:39 +04:00
installlibs :: @INSTALL_LIBTALLOC @
2008-07-10 17:51:14 +04:00
uninstalllibs :: @UNINSTALL_LIBTALLOC @
2008-07-10 16:58:36 +04:00
cleanlibs :: cleanlibtalloc
2008-07-10 18:25:21 +04:00
shlibs test_shlibs : @LIBTALLOC_SHARED @
2008-07-06 04:48:39 +04:00
2009-04-01 04:02:10 +04:00
showlibtalloc :
@echo ""
@echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
@echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
@echo " LIBTALLOC_LIBS = $( LIBTALLOC_LIBS) "
@echo ""
@echo " LIBTALLOC_SHARED_TARGET = $( LIBTALLOC_SHARED_TARGET) "
@echo " LIBTALLOC_SOVER = $( LIBTALLOC_SOVER) "
@echo " LIBTALLOC_SHARED TARGET_SONAME = $( LIBTALLOC_SHARED_TARGET_SONAME) "
@echo " LIBTALLOC_STATIC_TARGET = $( LIBTALLOC_STATIC_TARGET) "
@echo " LIBTALLOC = $( LIBTALLOC) "
showlibs :: showlibtalloc
2008-07-06 14:51:04 +04:00
#-------------------------------------------------------------------
#
# libtdb
#
#-------------------------------------------------------------------
2008-09-05 01:43:58 +04:00
LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2008-07-06 15:07:54 +04:00
LIBTDB_OBJ = $( LIBTDB_OBJ0) $( LIBREPLACE_OBJ)
LIBTDB_SHARED_TARGET = @LIBTDB_SHARED_TARGET@
2008-07-07 19:35:08 +04:00
LIBTDB_SOVER = @LIBTDB_SOVER@
2008-07-06 16:32:36 +04:00
LIBTDB_SHARED_TARGET_SONAME = $( LIBTDB_SHARED_TARGET) .$( LIBTDB_SOVER)
2008-07-06 15:07:54 +04:00
LIBTDB_STATIC_TARGET = @LIBTDB_STATIC_TARGET@
LIBTDB_SYMS = $( srcdir) /exports/libtdb.@SYMSEXT@
LIBTDB_HEADERS = $( srcdir) /@tdbdir@/include/tdb.h
2008-06-09 10:39:12 +04:00
$(LIBTDB_SYMS) : $( LIBTDB_HEADERS )
@$( MKSYMS_SH) $( AWK) $@ $( LIBTDB_HEADERS)
2008-02-14 16:15:07 +03:00
2008-07-06 16:32:36 +04:00
$(LIBTDB_SHARED_TARGET_SONAME) : $( BINARY_PREREQS ) $( LIBTDB_OBJ ) $( LIBTDB_SYMS )
2008-02-14 15:29:44 +03:00
@echo Linking shared library $@
2010-08-13 16:53:22 +04:00
@$( SHLD_DSO) $( LIBTDB_OBJ) $( LIBREPLACE_LIBS) $( TDB_DEPS) \
2008-07-06 16:32:36 +04:00
@SONAMEFLAG@` basename $@ `
$(LIBTDB_SHARED_TARGET) : $( LIBTDB_SHARED_TARGET_SONAME )
@rm -f $@
2009-02-11 13:02:05 +03:00
@ln -f -s ` basename $( LIBTDB_SHARED_TARGET_SONAME) ` $@
2008-02-14 15:29:44 +03:00
$(LIBTDB_STATIC_TARGET) : $( BINARY_PREREQS ) $( LIBTDB_OBJ 0)
@echo Linking non-shared library $@
@-$( AR) -rc $@ $( LIBTDB_OBJ0)
2008-07-06 22:39:45 +04:00
libtdb : $( LIBTDB )
2008-07-06 16:37:29 +04:00
cleanlibtdb ::
-rm -f \
$( LIBTDB_SYMS) \
$( LIBTDB_STATIC_TARGET) \
$( LIBTDB_SHARED_TARGET) \
$( LIBTDB_SHARED_TARGET_SONAME)
2008-07-06 15:07:54 +04:00
installlibtdb :: installdirs libtdb
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( LIBDIR)
2008-07-06 16:42:30 +04:00
-$( INSTALLLIBCMD_SH) $( LIBTDB_SHARED_TARGET_SONAME) $( DESTDIR) $( LIBDIR)
@rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBTDB_SHARED_TARGET) `
2008-10-27 15:50:27 +03:00
-if test -r $( LIBTDB_SHARED_TARGET_SONAME) ; then \
2009-02-11 13:02:05 +03:00
ln -f -s ` basename $( LIBTDB_SHARED_TARGET_SONAME) ` \
2008-07-06 16:42:30 +04:00
$( DESTDIR) $( LIBDIR) /` basename $( LIBTDB_SHARED_TARGET) ` ; \
fi
2008-07-06 15:07:54 +04:00
-$( INSTALLLIBCMD_A) $( LIBTDB_STATIC_TARGET) $( DESTDIR) $( LIBDIR)
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) ${ prefix } /include
-$( INSTALLCMD) -m $( INSTALLPERMS_DATA) $( LIBTDB_HEADERS) $( DESTDIR) ${ prefix } /include
2008-07-06 16:43:12 +04:00
uninstalllibtdb ::
-rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBTDB_SHARED_TARGET) `
-$( UNINSTALLLIBCMD_SH) $( DESTDIR) $( LIBDIR) /` basename $( LIBTDB_SHARED_TARGET_SONAME) `
-$( UNINSTALLLIBCMD_A) $( DESTDIR) $( LIBDIR) /` basename $( LIBTDB_STATIC_TARGET) `
-rm -f $( DESTDIR) ${ prefix } /include/tdb.h
2008-07-10 17:49:44 +04:00
libs :: libtdb
2008-07-10 16:15:39 +04:00
installlibs :: @INSTALL_LIBTDB @
2008-07-10 17:51:14 +04:00
uninstalllibs :: @UNINSTALL_LIBTDB @
2008-07-10 16:58:36 +04:00
cleanlibs :: cleanlibtdb
2008-07-10 18:25:21 +04:00
shlibs test_shlibs : @LIBTDB_SHARED @
2008-07-06 14:51:04 +04:00
2009-04-01 04:02:10 +04:00
showlibtdb :
@echo ""
@echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
@echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
@echo " LIBTDB_LIBS = $( LIBTDB_LIBS) "
@echo ""
@echo " LIBTDB_SHARED_TARGET = $( LIBTDB_SHARED_TARGET) "
@echo " LIBTDB_SOVER = $( LIBTDB_SOVER) "
@echo " LIBTDB_SHARED TARGET_SONAME = $( LIBTDB_SHARED_TARGET_SONAME) "
@echo " LIBTDB_STATIC_TARGET = $( LIBTDB_STATIC_TARGET) "
@echo " LIBTDB = $( LIBTDB) "
showlibs :: showlibtdb
2008-07-06 14:51:04 +04:00
#-------------------------------------------------------------------
#
# libwbclient
#
#-------------------------------------------------------------------
2008-12-16 11:30:16 +03:00
LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
../nsswitch/libwbclient/wbc_util.o \
../nsswitch/libwbclient/wbc_pwd.o \
../nsswitch/libwbclient/wbc_idmap.o \
../nsswitch/libwbclient/wbc_sid.o \
../nsswitch/libwbclient/wbc_guid.o \
2010-02-13 15:42:56 +03:00
../nsswitch/libwbclient/wbc_pam.o
2008-07-06 22:44:27 +04:00
LIBWBCLIENT_OBJ = $( LIBWBCLIENT_OBJ0) \
$( WBCOMMON_OBJ) \
2009-06-10 23:23:12 +04:00
$( LIBREPLACE_OBJ) \
../lib/util/blocking.o \
2010-04-04 17:15:00 +04:00
$( SOCKET_WRAPPER_OBJ)
2008-07-06 22:44:27 +04:00
LIBWBCLIENT_SHARED_TARGET = @LIBWBCLIENT_SHARED_TARGET@
2008-07-07 19:35:08 +04:00
LIBWBCLIENT_SOVER = @LIBWBCLIENT_SOVER@
2008-07-06 22:48:00 +04:00
LIBWBCLIENT_SHARED_TARGET_SONAME = $( LIBWBCLIENT_SHARED_TARGET) .$( LIBWBCLIENT_SOVER)
2008-07-06 22:44:27 +04:00
LIBWBCLIENT_STATIC_TARGET = @LIBWBCLIENT_STATIC_TARGET@
LIBWBCLIENT_SYMS = $( srcdir) /exports/libwbclient.@SYMSEXT@
2010-04-04 17:15:00 +04:00
LIBWBCLIENT_HEADERS = $( srcdir) /../nsswitch/libwbclient/wbclient.h
2008-07-06 14:53:21 +04:00
2008-06-09 10:39:12 +04:00
$(LIBWBCLIENT_SYMS) : $( LIBWBCLIENT_HEADERS )
@$( MKSYMS_SH) $( AWK) $@ $( LIBWBCLIENT_HEADERS)
2008-05-23 14:45:37 +04:00
2010-04-04 17:15:00 +04:00
$(LIBWBCLIENT_SHARED_TARGET_SONAME) : $( BINARY_PREREQS ) $( LIBWBCLIENT_OBJ ) $( LIBWBCLIENT_SYMS )
2007-12-21 20:57:34 +03:00
@echo Linking shared library $@
2010-04-04 17:15:00 +04:00
@$( SHLD_DSO) $( LIBWBCLIENT_OBJ) $( LIBREPLACE_LIBS) \
2008-07-06 22:48:00 +04:00
@SONAMEFLAG@` basename $@ `
$(LIBWBCLIENT_SHARED_TARGET) : $( LIBWBCLIENT_SHARED_TARGET_SONAME )
@rm -f $@
2009-02-11 13:02:05 +03:00
@ln -f -s ` basename $( LIBWBCLIENT_SHARED_TARGET_SONAME) ` $@
2007-12-21 20:57:34 +03:00
2010-04-04 17:15:00 +04:00
$(LIBWBCLIENT_STATIC_TARGET) : $( BINARY_PREREQS ) $( LIBWBCLIENT_OBJ 0) $( WBCOMMON_OBJ )
2007-12-21 20:57:34 +03:00
@echo Linking non-shared library $@
2010-04-04 17:15:00 +04:00
@-$( AR) -rc $@ $( LIBWBCLIENT_OBJ0) $( WBCOMMON_OBJ)
2006-09-24 06:52:25 +04:00
2008-07-06 22:44:27 +04:00
libwbclient : $( LIBWBCLIENT )
2008-07-06 23:23:11 +04:00
cleanlibwbclient ::
-rm -f \
$( LIBWBCLIENT_SYMS) \
$( LIBWBCLIENT_STATIC_TARGET) \
$( LIBWBCLIENT_SHARED_TARGET) \
$( LIBWBCLIENT_SHARED_TARGET_SONAME)
2008-07-06 22:44:27 +04:00
installlibwbclient :: installdirs libwbclient
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( LIBDIR)
2008-07-06 23:14:17 +04:00
-$( INSTALLLIBCMD_SH) $( LIBWBCLIENT_SHARED_TARGET_SONAME) $( DESTDIR) $( LIBDIR)
@rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBWBCLIENT_SHARED_TARGET) `
2008-10-27 15:50:27 +03:00
-if test -r $( LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2009-02-11 13:02:05 +03:00
ln -f -s ` basename $( LIBWBCLIENT_SHARED_TARGET_SONAME) ` \
2008-07-06 23:14:17 +04:00
$( DESTDIR) $( LIBDIR) /` basename $( LIBWBCLIENT_SHARED_TARGET) ` ; \
fi
2010-01-28 00:40:19 +03:00
-$( INSTALLLIBCMD_A) bin/libwbclient.a $( DESTDIR) $( LIBDIR)
2008-07-06 22:44:27 +04:00
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) ${ prefix } /include
2008-07-06 23:14:17 +04:00
-$( INSTALLCMD) -m $( INSTALLPERMS_DATA) $( LIBWBCLIENT_HEADERS) $( DESTDIR) ${ prefix } /include
2008-07-06 22:44:27 +04:00
2008-07-06 23:20:54 +04:00
uninstalllibwbclient ::
-rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBWBCLIENT_SHARED_TARGET) `
-$( UNINSTALLLIBCMD_SH) $( DESTDIR) $( LIBDIR) /` basename $( LIBWBCLIENT_SHARED_TARGET_SONAME) `
2010-01-28 00:40:19 +03:00
-$( UNINSTALLLIBCMD_A) $( DESTDIR) $( LIBDIR) /` basename $( LIBWBCLIENT_STATIC_TARGET) `
2008-07-06 23:20:54 +04:00
-rm -f $( DESTDIR) ${ prefix } /include/wbclient.h
2008-07-10 17:49:44 +04:00
libs :: libwbclient
2008-07-10 16:15:39 +04:00
installlibs :: @INSTALL_LIBWBCLIENT @
2008-07-10 17:51:14 +04:00
uninstalllibs :: uninstalllibwbclient
2008-07-10 16:58:36 +04:00
cleanlibs :: cleanlibwbclient
2008-07-10 18:25:21 +04:00
shlibs test_shlibs : @LIBWBCLIENT_SHARED @
2008-07-10 16:58:36 +04:00
2009-04-01 04:02:10 +04:00
showlibwbclient :
@echo ""
@echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
@echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
@echo " LIBWBCLIENT_LIBS = $( LIBWBCLIENT_LIBS) "
@echo ""
@echo " LIBWBCLIENT_SHARED_TARGET = $( LIBWBCLIENT_SHARED_TARGET) "
@echo " LIBWBCLIENT_SOVER = $( LIBWBCLIENT_SOVER) "
@echo " LIBWBCLIENT_SHARED TARGET_SONAME = $( LIBWBCLIENT_SHARED_TARGET_SONAME) "
@echo " LIBWBCLIENT_STATIC_TARGET = $( LIBWBCLIENT_STATIC_TARGET) "
@echo " LIBWBCLIENT = $( LIBWBCLIENT) "
showlibs :: showlibwbclient
2008-07-06 22:44:27 +04:00
2008-07-06 14:51:04 +04:00
#-------------------------------------------------------------------
#
# libaddns
#
#-------------------------------------------------------------------
2008-07-07 13:59:10 +04:00
2008-07-07 15:57:34 +04:00
LIBADDNS_SHARED_TARGET = @LIBADDNS_SHARED_TARGET@
2008-07-07 19:35:08 +04:00
LIBADDNS_SOVER = @LIBADDNS_SOVER@
2008-07-07 15:57:34 +04:00
LIBADDNS_SHARED_TARGET_SONAME = $( LIBADDNS_SHARED_TARGET) .$( LIBADDNS_SOVER)
LIBADDNS_STATIC_TARGET = @LIBADDNS_STATIC_TARGET@
2009-04-01 03:58:22 +04:00
LIBADDNS = @LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2008-07-07 15:57:34 +04:00
#LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
LIBADDNS_HEADERS = $( srcdir) /libaddns/addns.h
2008-07-06 14:53:21 +04:00
2009-10-04 03:20:38 +04:00
$(LIBADDNS_SHARED_TARGET_SONAME) : $( BINARY_PREREQS ) $( LIBADDNS_OBJ ) $( LIBTALLOC )
2007-08-29 23:03:20 +04:00
@echo Linking shared library $@
2007-08-28 19:12:11 +04:00
@$( SHLD_DSO) $( LIBADDNS_OBJ) $( LIBS) \
2008-07-14 20:00:50 +04:00
$( KRB5LIBS) $( UUID_LIBS) $( LIBTALLOC_LIBS) \
2008-07-07 15:57:34 +04:00
@SONAMEFLAG@` basename $@ `
$(LIBADDNS_SHARED_TARGET) : $( LIBADDNS_SHARED_TARGET_SONAME )
@rm -f $@
2009-02-11 13:02:05 +03:00
@ln -f -s ` basename $( LIBADDNS_SHARED_TARGET_SONAME) ` $@
2006-08-24 19:43:32 +04:00
2008-07-07 20:30:12 +04:00
$(LIBADDNS_STATIC_TARGET) : $( BINARY_PREREQS ) $( LIBADDNS_OBJ 0)
2007-08-29 23:03:20 +04:00
@echo Linking non-shared library $@
2008-07-07 20:30:12 +04:00
@-$( AR) -rc $@ $( LIBADDNS_OBJ0)
2006-08-24 19:43:32 +04:00
2008-07-07 13:59:10 +04:00
libaddns : $( LIBADDNS )
2008-07-07 16:04:32 +04:00
cleanlibaddns ::
-rm -f \
$( LIBADDNS_SHARED_TARGET) \
$( LIBADDNS_SHARED_TARGET_SONAME) \
$( LIBADDNS_STATIC_TARGET)
2008-07-07 13:59:10 +04:00
installlibaddns :: installdirs libaddns
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( LIBDIR)
2008-07-07 15:57:34 +04:00
-$( INSTALLLIBCMD_SH) $( LIBADDNS_SHARED_TARGET_SONAME) $( DESTDIR) $( LIBDIR)
@rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBADDNS_SHARED_TARGET) `
2008-10-27 15:50:27 +03:00
-if test -r $( LIBADDNS_SHARED_TARGET_SONAME) ; then \
2009-02-11 13:02:05 +03:00
ln -f -s ` basename $( LIBADDNS_SHARED_TARGET_SONAME) ` \
2008-07-07 15:57:34 +04:00
$( DESTDIR) $( LIBDIR) /` basename $( LIBADDNS_SHARED_TARGET) ` ; \
fi
-$( INSTALLLIBCMD_A) $( LIBADDNS_STATIC_TARGET) $( DESTDIR) $( LIBDIR)
2008-07-07 13:59:10 +04:00
uninstalllibaddns ::
2008-07-07 15:57:34 +04:00
-$( UNINSTALLLIBCMD_SH) $( DESTDIR) $( LIBDIR) /` basename $( LIBADDNS_SHARED_TARGET_SONAME) `
-rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBADDNS_SHARED_TARGET) `
-$( UNINSTALLLIBCMD_A) $( DESTDIR) $( LIBDIR) /` basename $( LIBADDNS_STATIC_TARGET) `
2008-07-07 13:59:10 +04:00
2008-07-10 17:49:44 +04:00
libs :: libaddns
2008-07-10 16:15:39 +04:00
installlibs :: @INSTALL_LIBADDNS @
2008-07-10 17:51:14 +04:00
uninstalllibs :: @UNINSTALL_LIBADDNS @
2008-07-10 16:58:36 +04:00
cleanlibs :: cleanlibaddns
2008-07-10 18:25:21 +04:00
shlibs test_shlibs : @LIBADDNS_SHARED @
2008-07-06 14:51:04 +04:00
2009-04-01 04:02:10 +04:00
showlibaddns :
@echo ""
@echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
@echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
@echo " LIBADDNS_LIBS = $( LIBADDNS_LIBS) "
@echo ""
@echo " LIBADDNS_SHARED_TARGET = $( LIBADDNS_SHARED_TARGET) "
@echo " LIBADDNS_SOVER = $( LIBADDNS_SOVER) "
@echo " LIBADDNS_SHARED TARGET_SONAME = $( LIBADDNS_SHARED_TARGET_SONAME) "
@echo " LIBADDNS_STATIC_TARGET = $( LIBADDNS_STATIC_TARGET) "
@echo " LIBADDNS = $( LIBADDNS) "
showlibs :: showlibaddns
2008-07-06 14:51:04 +04:00
#-------------------------------------------------------------------
#
# libnetapi
#
#-------------------------------------------------------------------
2008-08-20 15:22:13 +04:00
LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2008-07-06 22:11:50 +04:00
lib/netapi/cm.o \
librpc/gen_ndr/ndr_libnetapi.o \
lib/netapi/libnetapi.o \
lib/netapi/joindomain.o \
lib/netapi/serverinfo.o \
lib/netapi/getdc.o \
lib/netapi/user.o \
lib/netapi/group.o \
lib/netapi/localgroup.o \
2008-07-16 17:22:04 +04:00
lib/netapi/samr.o \
2008-08-28 03:01:11 +04:00
lib/netapi/sid.o \
2008-09-09 21:21:48 +04:00
lib/netapi/share.o \
2009-05-13 18:27:58 +04:00
lib/netapi/file.o \
2009-10-13 17:47:56 +04:00
lib/netapi/shutdown.o \
lib/netapi/netlogon.o
2008-07-06 22:11:50 +04:00
2008-08-20 15:22:13 +04:00
LIBNETAPI_OBJ = $( LIBNETAPI_OBJ0) $( LIBNET_OBJ) \
2008-07-06 22:11:50 +04:00
$( LIBSMBCONF_OBJ) \
$( REG_SMBCONF_OBJ) \
$( PARAM_WITHOUT_REG_OBJ) $( LIB_NONSMBD_OBJ) \
$( LIBSMB_OBJ) $( KRBCLIENT_OBJ) \
$( LIBMSRPC_OBJ) $( LIBMSRPC_GEN_OBJ) $( RPC_PARSE_OBJ) \
2010-05-06 12:41:43 +04:00
$( PASSDB_OBJ) $( SMBLDAP_OBJ) $( GROUPDB_OBJ) \
2008-08-06 15:56:52 +04:00
$( DCUTIL_OBJ) $( LIBADS_OBJ) $( PRIVILEGES_BASIC_OBJ) \
auth/token_util.o
2008-07-06 22:11:50 +04:00
LIBNETAPI_SHARED_TARGET = @LIBNETAPI_SHARED_TARGET@
2008-07-07 19:35:08 +04:00
LIBNETAPI_SOVER = @LIBNETAPI_SOVER@
2008-07-06 22:25:16 +04:00
LIBNETAPI_SHARED_TARGET_SONAME = $( LIBNETAPI_SHARED_TARGET) .$( LIBNETAPI_SOVER)
2008-07-06 22:11:50 +04:00
LIBNETAPI_STATIC_TARGET = @LIBNETAPI_STATIC_TARGET@
LIBNETAPI_SYMS = $( srcdir) /exports/libnetapi.@SYMSEXT@
LIBNETAPI_HEADERS = $( srcdir) /lib/netapi/netapi.h
2008-07-06 14:53:21 +04:00
2008-06-09 10:39:12 +04:00
$(LIBNETAPI_SYMS) : $( LIBNETAPI_HEADERS )
@$( MKSYMS_SH) $( AWK) $@ $( LIBNETAPI_HEADERS)
2008-05-22 19:15:32 +04:00
2009-10-04 03:40:34 +04:00
$(LIBNETAPI_SHARED_TARGET_SONAME) : $( BINARY_PREREQS ) $( LIBNETAPI_OBJ ) $( LIBNETAPI_SYMS ) $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2007-12-06 21:15:30 +03:00
@echo Linking shared library $@
2008-03-05 17:04:28 +03:00
@$( SHLD_DSO) $( LIBNETAPI_OBJ) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( LIBS) \
2009-07-08 21:12:26 +04:00
$( LDAP_LIBS) $( KRB5LIBS) $( NSCD_LIBS) $( ZLIB_LIBS) \
2008-07-06 22:25:16 +04:00
@SONAMEFLAG@` basename $@ `
$(LIBNETAPI_SHARED_TARGET) : $( LIBNETAPI_SHARED_TARGET_SONAME )
@rm -f $@
2009-02-11 13:02:05 +03:00
@ln -f -s ` basename $( LIBNETAPI_SHARED_TARGET_SONAME) ` $@
2007-12-06 21:15:30 +03:00
2008-08-20 15:22:13 +04:00
$(LIBNETAPI_STATIC_TARGET) : $( BINARY_PREREQS ) $( LIBNETAPI_OBJ 0)
2007-12-06 21:15:30 +03:00
@echo Linking non-shared library $@
2008-08-20 15:22:13 +04:00
@-$( AR) -rc $@ $( LIBNETAPI_OBJ0)
2007-12-06 21:15:30 +03:00
2008-07-06 22:11:50 +04:00
libnetapi : $( LIBNETAPI )
2008-07-06 22:28:43 +04:00
cleanlibnetapi ::
-rm -f \
$( LIBNETAPI_SYMS) \
$( LIBNETAPI_STATIC_TARGET) \
$( LIBNETAPI_SHARED_TARGET) \
$( LIBNETAPI_SHARED_TARGET_SONAME)
2008-07-06 22:11:50 +04:00
installlibnetapi :: installdirs libnetapi
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( LIBDIR)
2008-07-06 22:35:13 +04:00
-$( INSTALLLIBCMD_SH) $( LIBNETAPI_SHARED_TARGET_SONAME) $( DESTDIR) $( LIBDIR)
@rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBNETAPI_SHARED_TARGET) `
2008-10-27 15:50:27 +03:00
-if test -r $( LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2009-02-11 13:02:05 +03:00
ln -f -s ` basename $( LIBNETAPI_SHARED_TARGET_SONAME) ` \
2008-07-06 22:35:13 +04:00
$( DESTDIR) $( LIBDIR) /` basename $( LIBNETAPI_SHARED_TARGET) ` ; \
fi
2008-07-06 22:11:50 +04:00
-$( INSTALLLIBCMD_A) $( LIBNETAPI_STATIC_TARGET) $( DESTDIR) $( LIBDIR)
2008-07-06 22:35:13 +04:00
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) ${ prefix } /include
2008-07-06 22:11:50 +04:00
-$( INSTALLCMD) -m $( INSTALLPERMS_DATA) $( srcdir) /lib/netapi/netapi.h $( DESTDIR) ${ prefix } /include
2008-07-06 22:38:03 +04:00
uninstalllibnetapi ::
-rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBNETAPI_SHARED_TARGET) `
-$( UNINSTALLLIBCMD_SH) $( DESTDIR) $( LIBDIR) /` basename $( LIBNETAPI_SHARED_TARGET_SONAME) `
-$( UNINSTALLLIBCMD_A) $( DESTDIR) $( LIBDIR) /` basename $( LIBNETAPI_STATIC_TARGET) `
-rm -f $( DESTDIR) ${ prefix } /include/netapi.h
2008-07-10 17:49:44 +04:00
libs :: libnetapi
2008-07-10 16:15:39 +04:00
installlibs :: @INSTALL_LIBNETAPI @
2008-07-10 17:51:14 +04:00
uninstalllibs :: @UNINSTALL_LIBNETAPI @
2008-07-10 16:58:36 +04:00
cleanlibs :: cleanlibnetapi
2008-07-10 18:25:21 +04:00
shlibs test_shlibs : @LIBNETAPI_SHARED @
2008-07-06 22:11:50 +04:00
2009-04-01 04:02:10 +04:00
showlibnetapi :
@echo ""
@echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
@echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
@echo " LIBNETAPI_LIBS = $( LIBNETAPI_LIBS) "
@echo ""
@echo " LIBNETAPI_SHARED_TARGET = $( LIBNETAPI_SHARED_TARGET) "
@echo " LIBNETAPI_SOVER = $( LIBNETAPI_SOVER) "
@echo " LIBNETAPI_SHARED TARGET_SONAME = $( LIBNETAPI_SHARED_TARGET_SONAME) "
@echo " LIBNETAPI_STATIC_TARGET = $( LIBNETAPI_STATIC_TARGET) "
@echo " LIBNETAPI = $( LIBNETAPI) "
showlibs :: showlibnetapi
2008-07-06 14:51:04 +04:00
#-------------------------------------------------------------------
#
# libsmbclient
#
#-------------------------------------------------------------------
2008-07-07 02:02:50 +04:00
LIBSMBCLIENT_SHARED_TARGET = @LIBSMBCLIENT_SHARED_TARGET@
2008-07-07 19:35:08 +04:00
LIBSMBCLIENT_SOVER = @LIBSMBCLIENT_SOVER@
2008-07-07 02:02:50 +04:00
LIBSMBCLIENT_SHARED_TARGET_SONAME = $( LIBSMBCLIENT_SHARED_TARGET) .$( LIBSMBCLIENT_SOVER)
LIBSMBCLIENT_STATIC_TARGET = @LIBSMBCLIENT_STATIC_TARGET@
2009-04-01 03:58:22 +04:00
LIBSMBCLIENT = @LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2008-08-20 17:06:02 +04:00
LIBSMBCLIENT_SYMS = $( srcdir) /exports/libsmbclient.@SYMSEXT@
2008-07-07 02:02:50 +04:00
LIBSMBCLIENT_HEADERS = $( srcdir) /include/libsmbclient.h
2008-07-06 14:53:21 +04:00
2008-08-20 17:06:02 +04:00
$(LIBSMBCLIENT_SYMS) : $( LIBSMBCLIENT_HEADERS )
@$( MKSYMS_SH) $( AWK) $@ $( LIBSMBCLIENT_HEADERS)
2010-01-29 17:23:29 +03:00
$(LIBSMBCLIENT_SHARED_TARGET_SONAME) : $( BINARY_PREREQS ) $( LIBSMBCLIENT_OBJ ) $( LIBSMBCLIENT_THREAD_OBJ ) $( LIBSMBCLIENT_SYMS ) $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2007-08-29 23:03:20 +04:00
@echo Linking shared library $@
2010-01-29 17:23:29 +03:00
@$( SHLD_DSO) $( LIBSMBCLIENT_OBJ) $( LIBSMBCLIENT_THREAD_OBJ) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) $( LIBS) \
2010-01-29 17:23:29 +03:00
$( KRB5LIBS) $( LDAP_LIBS) $( NSCD_LIBS) $( ZLIB_LIBS) $( PTHREAD_LDFLAGS) \
2008-07-07 02:02:50 +04:00
@SONAMEFLAG@` basename $@ `
2001-09-22 11:50:08 +04:00
2008-07-07 02:02:50 +04:00
$(LIBSMBCLIENT_SHARED_TARGET) : $( LIBSMBCLIENT_SHARED_TARGET_SONAME )
@rm -f $@
@ln -s ` basename $( LIBSMBCLIENT_SHARED_TARGET_SONAME) ` $@
2008-07-16 17:47:06 +04:00
$(LIBSMBCLIENT_STATIC_TARGET) : $( BINARY_PREREQS ) $( LIBSMBCLIENT_OBJ 1)
2007-08-29 23:03:20 +04:00
@echo Linking non-shared library $@
2008-07-16 17:47:06 +04:00
@-$( AR) -rc $@ $( LIBSMBCLIENT_OBJ1)
2001-09-22 11:50:08 +04:00
2008-07-07 00:08:28 +04:00
libsmbclient : $( LIBSMBCLIENT )
2008-07-07 02:06:28 +04:00
cleanlibsmbclient ::
-rm -f \
$( LIBSMBCLIENT_SHARED_TARGET) \
$( LIBSMBCLIENT_SHARED_TARGET_SONAME) \
$( LIBSMBCLIENT_STATIC_TARGET)
2008-07-07 00:10:23 +04:00
installlibsmbclient :: installdirs libsmbclient
2008-07-07 00:08:28 +04:00
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( LIBDIR)
2008-07-07 02:02:50 +04:00
-$( INSTALLLIBCMD_SH) $( LIBSMBCLIENT_SHARED_TARGET_SONAME) $( DESTDIR) $( LIBDIR)
@rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBSMBCLIENT_SHARED_TARGET) `
2008-10-27 15:50:27 +03:00
-if test -r $( LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2009-02-11 13:02:05 +03:00
ln -f -s ` basename $( LIBSMBCLIENT_SHARED_TARGET_SONAME) ` \
2008-07-07 02:02:50 +04:00
$( DESTDIR) $( LIBDIR) /` basename $( LIBSMBCLIENT_SHARED_TARGET) ` ; \
fi
-$( INSTALLLIBCMD_A) $( LIBSMBCLIENT_STATIC_TARGET) $( DESTDIR) $( LIBDIR)
2008-07-07 00:08:28 +04:00
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) ${ prefix } /include
2008-07-07 02:02:50 +04:00
-$( INSTALLCMD) -m $( INSTALLPERMS_DATA) $( LIBSMBCLIENT_HEADERS) $( DESTDIR) ${ prefix } /include
2008-07-07 00:08:28 +04:00
2008-07-07 00:10:23 +04:00
installclientlib :: installlibsmbclient
uninstalllibsmbclient ::
2008-07-07 02:02:50 +04:00
-rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBSMBCLIENT_SHARED_TARGET) `
-$( UNINSTALLLIBCMD_SH) $( DESTDIR) $( LIBDIR) /` basename $( LIBSMBCLIENT_SHARED_TARGET_SONAME) `
-$( UNINSTALLLIBCMD_A) $( DESTDIR) $( LIBDIR) /` basename $( LIBSMBCLIENT_STATIC_TARGET) `
2008-07-07 00:08:28 +04:00
-rm -f $( DESTDIR) ${ prefix } /include/libsmbclient.h
2008-07-07 00:10:23 +04:00
uninstallclientlib :: uninstalllibsmbclient
2008-07-10 17:49:44 +04:00
libs :: libsmbclient
2008-07-10 16:15:39 +04:00
installlibs :: @INSTALL_LIBSMBCLIENT @
2008-07-10 17:51:14 +04:00
uninstalllibs :: @UNINSTALL_LIBSMBCLIENT @
2008-07-10 16:58:36 +04:00
cleanlibs :: cleanlibsmbclient
2008-07-10 18:25:21 +04:00
shlibs test_shlibs : @LIBSMBCLIENT_SHARED @
2008-07-06 14:51:04 +04:00
2009-04-01 04:02:10 +04:00
showlibsmbclient :
@echo ""
@echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
@echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
@echo " LIBSMBCLIENT_LIBS = $( LIBSMBCLIENT_LIBS) "
@echo ""
@echo " LIBSMBCLIENT_SHARED_TARGET = $( LIBSMBCLIENT_SHARED_TARGET) "
@echo " LIBSMBCLIENT_SOVER = $( LIBSMBCLIENT_SOVER) "
@echo " LIBSMBCLIENT_SHARED TARGET_SONAME = $( LIBSMBCLIENT_SHARED_TARGET_SONAME) "
@echo " LIBSMBCLIENT_STATIC_TARGET = $( LIBSMBCLIENT_STATIC_TARGET) "
@echo " LIBSMBCLIENT = $( LIBSMBCLIENT) "
showlibs :: showlibsmbclient
2008-07-06 14:51:04 +04:00
#-------------------------------------------------------------------
#
# libsmbsharemodes
#
#-------------------------------------------------------------------
2008-07-07 13:57:43 +04:00
LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2009-04-01 02:37:47 +04:00
LIBSMBSHAREMODES_OBJ = $( LIBSMBSHAREMODES_OBJ0)
2008-07-07 02:23:57 +04:00
2008-07-07 02:41:23 +04:00
LIBSMBSHAREMODES_SHARED_TARGET = @LIBSMBSHAREMODES_SHARED_TARGET@
2008-07-07 19:35:08 +04:00
LIBSMBSHAREMODES_SOVER = @LIBSMBSHAREMODES_SOVER@
2008-07-07 02:41:23 +04:00
LIBSMBSHAREMODES_SHARED_TARGET_SONAME = $( LIBSMBSHAREMODES_SHARED_TARGET) .$( LIBSMBSHAREMODES_SOVER)
LIBSMBSHAREMODES_STATIC_TARGET = @LIBSMBSHAREMODES_STATIC_TARGET@
2009-04-01 03:58:22 +04:00
LIBSMBSHAREMODES = @LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2008-08-20 17:09:27 +04:00
LIBSMBSHAREMODES_SYMS = $( srcdir) /exports/libsmbsharemodes.@SYMSEXT@
2008-07-07 02:41:23 +04:00
LIBSMBSHAREMODES_HEADERS = $( srcdir) /include/smb_share_modes.h
2008-08-20 17:09:27 +04:00
$(LIBSMBSHAREMODES_SYMS) : $( LIBSMBSHAREMODES_HEADERS )
@$( MKSYMS_SH) $( AWK) $@ $( LIBSMBSHAREMODES_HEADERS)
2009-10-04 03:30:43 +04:00
$(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) : $( BINARY_PREREQS ) $( LIBSMBSHAREMODES_OBJ ) $( LIBSMBSHAREMODES_SYMS ) $( LIBTALLOC ) $( LIBTDB )
2007-08-29 23:03:20 +04:00
@echo Linking shared library $@
2008-03-05 17:04:28 +03:00
@$( SHLD_DSO) $( LIBSMBSHAREMODES_OBJ) \
2008-07-14 20:02:08 +04:00
$( LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) \
2008-07-07 02:41:23 +04:00
@SONAMEFLAG@` basename $@ `
2005-09-06 00:36:07 +04:00
2008-07-07 02:41:23 +04:00
$(LIBSMBSHAREMODES_SHARED_TARGET) : $( LIBSMBSHAREMODES_SHARED_TARGET_SONAME )
@rm -f $@
2009-02-11 13:02:05 +03:00
@ln -f -s ` basename $( LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ` $@
2008-07-07 02:41:23 +04:00
2008-07-07 13:57:43 +04:00
$(LIBSMBSHAREMODES_STATIC_TARGET) : $( BINARY_PREREQS ) $( LIBSMBSHAREMODES_OBJ 0)
2007-08-29 23:03:20 +04:00
@echo Linking non-shared library $@
2008-07-07 13:57:43 +04:00
@-$( AR) -rc $@ $( LIBSMBSHAREMODES_OBJ0)
2005-09-03 20:40:05 +04:00
2008-07-07 02:23:57 +04:00
libsmbsharemodes : $( LIBSMBSHAREMODES )
2008-07-07 11:26:21 +04:00
cleanlibsmbsharemodes ::
-rm -f \
$( LIBSMBSHAREMODES_SHARED_TARGET) \
$( LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
$( LIBSMBSHAREMODES_STATIC_TARGET)
2008-07-07 02:23:57 +04:00
installlibsmbsharemodes :: installdirs libsmbsharemodes
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( LIBDIR)
2008-07-07 02:41:23 +04:00
-$( INSTALLLIBCMD_SH) $( LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $( DESTDIR) $( LIBDIR)
@rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBSMBSHAREMODES_SHARED_TARGET) `
2008-10-27 15:50:27 +03:00
-if test -r $( LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2009-02-11 13:02:05 +03:00
ln -f -s ` basename $( LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ` \
2008-07-07 02:41:23 +04:00
$( DESTDIR) $( LIBDIR) /` basename $( LIBSMBSHAREMODES_SHARED_TARGET) ` ; \
fi
-$( INSTALLLIBCMD_A) $( LIBSMBSHAREMODES_STATIC_TARGET) $( DESTDIR) $( LIBDIR)
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) ${ prefix } /include
-$( INSTALLCMD) -m $( INSTALLPERMS_DATA) $( LIBSMBSHAREMODES_HEADERS) $( DESTDIR) ${ prefix } /include
2008-07-07 02:23:57 +04:00
uninstalllibsmbsharemodes ::
2008-07-07 02:41:23 +04:00
-rm -f $( DESTDIR) $( LIBDIR) /` basename $( LIBSMBSHAREMODES_SHARED_TARGET) `
-$( UNINSTALLLIBCMD_SH) $( DESTDIR) $( LIBDIR) /` basename $( LIBSMBSHAREMODES_SHARED_TARGET_SONAME) `
-$( UNINSTALLLIBCMD_A) $( DESTDIR) $( LIBDIR) /` basename $( LIBSMBSHAREMODES_STATIC_TARGET) `
-rm -f $( DESTDIR) ${ prefix } /include/smb_share_modes.h
2008-07-07 02:23:57 +04:00
2008-07-10 17:49:44 +04:00
libs :: libsmbsharemodes
2008-07-10 16:15:39 +04:00
installlibs :: @INSTALL_LIBSMBSHAREMODES @
2008-07-10 17:51:14 +04:00
uninstalllibs :: @UNINSTALL_LIBSMBSHAREMODES @
2008-07-10 16:58:36 +04:00
cleanlibs :: cleanlibsmbsharemodes
2008-07-10 18:25:21 +04:00
shlibs test_shlibs : @LIBSMBSHAREMODES_SHARED @
2008-07-07 02:20:47 +04:00
2009-04-01 04:02:10 +04:00
showlibsmbsharemodes :
@echo ""
@echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
@echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
@echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
@echo " LIBSMBSHAREMODES_LIBS = $( LIBSMBSHAREMODES_LIBS) "
@echo ""
@echo " LIBSMBSHAREMODES_SHARED_TARGET = $( LIBSMBSHAREMODES_SHARED_TARGET) "
@echo " LIBSMBSHAREMODES_SOVER = $( LIBSMBSHAREMODES_SOVER) "
@echo " LIBSMBSHAREMODES_SHARED TARGET_SONAME = $( LIBSMBSHAREMODES_SHARED_TARGET_SONAME) "
@echo " LIBSMBSHAREMODES_STATIC_TARGET = $( LIBSMBSHAREMODES_STATIC_TARGET) "
@echo " LIBSMBSHAREMODES = $( LIBSMBSHAREMODES) "
showlibs :: showlibsmbsharemodes
2008-07-07 02:20:47 +04:00
#-------------------------------------------------------------------
#
# libbigballofmud
#
#-------------------------------------------------------------------
2007-04-06 20:42:37 +04:00
# This is probably wrong for anything other than the GNU linker.
2009-11-20 20:24:53 +03:00
bin/libbigballofmud.@SHLIBEXT@ : $( BINARY_PREREQS ) $( LIBBIGBALLOFMUD_OBJ ) $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2007-08-29 23:03:20 +04:00
@echo Linking shared library $@
2008-03-05 17:04:28 +03:00
@$( SHLD) $( LDSHFLAGS) -o $@ $( LIBBIGBALLOFMUD_OBJ) \
2009-11-20 20:24:53 +03:00
$( LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) \
$( PASSDB_LIBS) $( IDMAP_LIBS) $( KRB5LIBS) $( LDAP_LIBS) -lz \
2003-07-22 03:42:45 +04:00
@SONAMEFLAG@` basename $@ ` .$( LIBBIGBALLOFMUD_MAJOR)
2003-04-16 18:45:11 +04:00
ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2000-12-26 08:57:10 +03:00
2003-04-04 07:05:10 +04:00
# It would be nice to build a static bigballofmud too, but when I try
2003-06-07 02:24:36 +04:00
# I get linker errors about dl_open and similar things. I'm not sure if
# it can be fixed or if they just can't be called from a static
2003-04-04 07:05:10 +04:00
# library.
2008-07-06 14:51:04 +04:00
#####################################################################
#
# shared modules
#
#####################################################################
2009-10-19 00:51:06 +04:00
# Linker command to link our shared libraries:
2009-10-20 22:45:46 +04:00
SHLD_LIBRARY = $( SHLD) $( LDSHFLAGS) $( MODULE_EXPORTS) \
2007-04-20 20:07:16 +04:00
-o $@ @SONAMEFLAG@` basename $@ `
2009-10-19 00:51:06 +04:00
# Linker command to link samba internal plugin modules:
2009-10-20 22:45:46 +04:00
SHLD_MODULE = $( SHLD) $( LDSHFLAGS_MODULES) $( MODULE_EXPORTS) \
2009-10-19 00:51:06 +04:00
-o $@ @SONAMEFLAG@` basename $@ `
2007-04-20 20:07:16 +04:00
2007-06-01 20:06:40 +04:00
bin/librpc_lsarpc.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_LSA_OBJ )
2003-02-14 03:48:28 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_LSA_OBJ)
2003-02-14 03:48:28 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_samr.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_SAMR_OBJ )
2003-02-14 03:48:28 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_SAMR_OBJ)
2003-02-14 03:48:28 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_srvsvc.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_SVC_OBJ )
2003-02-14 03:48:28 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_SVC_OBJ)
2003-02-14 03:48:28 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_svcctl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_SVCCTL_OBJ )
2005-03-24 02:26:33 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_SVCCTL_OBJ)
2005-03-24 02:26:33 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_ntsvcs.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_NTSVCS_OBJ )
2005-09-30 21:13:37 +04:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_NTSVCS_OBJ)
2005-09-30 21:13:37 +04:00
2007-06-01 20:06:40 +04:00
bin/librpc_wkssvc.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_WKS_OBJ )
2003-02-14 03:48:28 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_WKS_OBJ)
2003-02-14 03:48:28 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_NETLOGON.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_NETLOG_OBJ )
2003-02-14 03:48:28 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_NETLOG_OBJ)
2003-02-14 03:48:28 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_winreg.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_REG_OBJ )
2003-02-14 03:48:28 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_REG_OBJ)
2003-02-14 03:48:28 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_initshutdown.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_INITSHUTDOWN_OBJ )
2006-09-21 21:51:06 +04:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_INITSHUTDOWN_OBJ)
2006-09-21 21:51:06 +04:00
2008-01-25 15:26:10 +03:00
bin/librpc_dssetup.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_DSSETUP_OBJ )
2003-08-15 01:14:28 +04:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_DSSETUP_OBJ)
2003-08-15 01:14:28 +04:00
2009-03-18 02:45:35 +03:00
bin/librpc_spoolss.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_SPOOLSS_OBJ )
2003-02-14 03:48:28 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_SPOOLSS_OBJ)
2003-02-14 03:48:28 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_eventlog.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_EVENTLOG_OBJ )
2005-06-09 02:10:34 +04:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_EVENTLOG_OBJ)
2005-06-09 02:10:34 +04:00
2007-06-01 20:06:40 +04:00
bin/librpc_netdfs.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_DFS_OBJ )
2003-02-14 03:48:28 +03:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_DFS_OBJ)
2003-02-14 03:48:28 +03:00
2007-06-01 20:06:40 +04:00
bin/librpc_echo.@SHLIBEXT@ : $( BINARY_PREREQS ) $( RPC_ECHO_OBJ )
2003-04-16 16:59:12 +04:00
@echo " Linking $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_LIBRARY) $( RPC_ECHO_OBJ)
2003-04-16 16:59:12 +04:00
2009-10-04 03:40:34 +04:00
bin/winbindd@EXEEXT@ : $( BINARY_PREREQS ) $( WINBINDD_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2003-04-30 18:14:33 +04:00
@echo " Linking $@ "
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( WINBINDD_OBJ) $( LDFLAGS) $( DYNEXP) $( LIBS) \
2010-04-16 18:28:05 +04:00
$( POPT_LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( AUTH_LIBS) \
2009-04-01 03:37:07 +04:00
$( PASSDB_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) \
2008-10-19 13:22:19 +04:00
$( ZLIB_LIBS)
2000-05-09 15:41:38 +04:00
2009-10-04 03:30:43 +04:00
bin/vlp@EXEEXT@ : $( BINARY_PREREQS ) $( VLP_OBJ ) $( LIBTDB )
2007-12-11 00:30:24 +03:00
@echo " Linking $@ "
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( VLP_OBJ) $( LDFLAGS) $( DYNEXP) \
2008-07-14 19:58:53 +04:00
$( TERMLDFLAGS) $( TERMLIBS) $( LIBS) $( POPT_LIBS) \
2009-06-25 19:43:28 +04:00
$( LIBTDB_LIBS)
2007-12-11 00:30:24 +03:00
2007-06-01 20:06:40 +04:00
@WINBIND_NSS@ : $( BINARY_PREREQS ) $( WINBIND_NSS_OBJ )
2000-05-09 15:41:38 +04:00
@echo " Linking $@ "
2006-10-05 13:15:37 +04:00
@$( SHLD) $( WINBIND_NSS_LDSHFLAGS) -o $@ $( WINBIND_NSS_OBJ) \
2010-01-29 17:23:29 +03:00
$( LIBREPLACE_LIBS) $( PTHREAD_LDFLAGS) \
2008-03-05 17:04:28 +03:00
@SONAMEFLAG@` basename $@ ` @NSSSONAMEVERSIONSUFFIX@
2000-05-09 15:41:38 +04:00
2009-10-04 03:30:43 +04:00
@WINBIND_WINS_NSS@ : $( BINARY_PREREQS ) $( WINBIND_WINS_NSS_OBJ ) $( LIBTALLOC ) $( LIBTDB )
2003-06-16 07:28:27 +04:00
@echo " Linking $@ "
2006-10-05 13:15:37 +04:00
@$( SHLD) $( LDSHFLAGS) -o $@ $( WINBIND_WINS_NSS_OBJ) \
2009-07-08 21:12:26 +04:00
$( LDAP_LIBS) $( KRB5LIBS) $( LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( ZLIB_LIBS) \
2006-03-17 17:44:15 +03:00
@SONAMEFLAG@` basename $@ ` @NSSSONAMEVERSIONSUFFIX@
2003-06-16 07:28:27 +04:00
2009-10-04 03:40:34 +04:00
bin/winbind_krb5_locator.@SHLIBEXT@ : $( BINARY_PREREQS ) $( WINBIND_KRB 5_LOCATOR_OBJ ) $( LIBWBCLIENT )
2007-03-13 19:04:17 +03:00
@echo " Linking $@ "
2009-11-19 15:44:33 +03:00
@$( SHLD) $( LDSHFLAGS) -o $@ $( WINBIND_KRB5_LOCATOR_OBJ) $( LIBWBCLIENT_LIBS) $( KRB5LIBS) \
2007-03-13 19:04:17 +03:00
@SONAMEFLAG@` basename $@ `
2009-10-04 03:40:34 +04:00
bin/pam_winbind.@SHLIBEXT@ : $( BINARY_PREREQS ) $( PAM_WINBIND_OBJ ) $( LIBTALLOC ) $( LIBWBCLIENT )
2006-03-21 22:50:28 +03:00
@echo " Linking shared library $@ "
2007-06-04 05:33:00 +04:00
@$( SHLD) $( LDSHFLAGS) -o $@ $( PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2009-10-30 21:54:52 +03:00
$( LIBREPLACE_LIBS) $( LIBTALLOC_LIBS) $( LIBWBCLIENT_LIBS) @SONAMEFLAG@` basename $@ `
2000-05-09 15:41:38 +04:00
2009-10-19 00:51:06 +04:00
##########
# Plugins:
##########
2007-06-01 20:06:40 +04:00
bin/builtin.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_BUILTIN_OBJ )
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_BUILTIN_OBJ)
2003-04-16 17:09:00 +04:00
2007-06-01 20:06:40 +04:00
bin/domain.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_DOMAIN_OBJ )
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_DOMAIN_OBJ)
2003-04-16 17:09:00 +04:00
2007-06-01 20:06:40 +04:00
bin/script.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_SCRIPT_OBJ )
2005-09-15 03:58:14 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_SCRIPT_OBJ)
2005-09-15 03:58:14 +04:00
2008-09-22 21:29:05 +04:00
bin/netlogond.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_NETLOGOND_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_NETLOGOND_OBJ)
2008-09-22 21:29:05 +04:00
2007-06-01 20:06:40 +04:00
bin/smbserver.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_SERVER_OBJ )
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_SERVER_OBJ)
2003-04-16 17:09:00 +04:00
2007-06-01 20:06:40 +04:00
bin/winbind.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_WINBIND_OBJ )
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_WINBIND_OBJ)
2003-04-16 17:09:00 +04:00
2009-02-24 10:21:13 +03:00
bin/wbc.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_WBC_OBJ )
2009-02-13 23:24:22 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_WBC_OBJ)
2009-02-13 23:24:22 +03:00
2007-06-01 20:06:40 +04:00
bin/unix.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_UNIX_OBJ )
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_UNIX_OBJ)
2003-04-16 17:09:00 +04:00
2007-06-01 20:06:40 +04:00
bin/sam.@SHLIBEXT@ : $( BINARY_PREREQS ) $( AUTH_SAM_OBJ )
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( AUTH_SAM_OBJ)
2003-04-16 17:09:00 +04:00
2007-06-01 20:06:40 +04:00
bin/ldapsam.@SHLIBEXT@ : $( BINARY_PREREQS ) passdb /pdb_ldap .o passdb /pdb_nds .o
2002-11-09 20:08:58 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $( LDAP_LIBS)
2002-11-09 20:08:58 +03:00
2009-06-06 13:25:02 +04:00
bin/ads.@SHLIBEXT@ : $( BINARY_PREREQS ) passdb /pdb_ads .o
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) passdb/pdb_ads.o
2009-06-06 13:25:02 +04:00
2007-06-01 20:06:40 +04:00
bin/tdbsam.@SHLIBEXT@ : $( BINARY_PREREQS ) passdb /pdb_tdb .o
2002-11-18 19:22:04 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) passdb/pdb_tdb.o
2003-04-16 17:09:00 +04:00
2009-02-24 10:21:13 +03:00
bin/wbc_sam.@SHLIBEXT@ : $( BINARY_PREREQS ) passdb /pdb_wbc_sam .o
2009-02-13 23:28:57 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) passdb/pdb_wbc_sam.o
2009-02-13 23:28:57 +03:00
2007-06-01 20:06:40 +04:00
bin/smbpasswd.@SHLIBEXT@ : $( BINARY_PREREQS ) passdb /pdb_smbpasswd .o
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) passdb/pdb_smbpasswd.o
2004-10-23 17:23:54 +04:00
2007-09-14 16:03:58 +04:00
bin/rid.@SHLIBEXT@ : $( BINARY_PREREQS ) winbindd /idmap_rid .o
2004-10-23 17:23:54 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) winbindd/idmap_rid.o
2002-11-18 19:22:04 +03:00
2010-07-04 12:01:42 +04:00
bin/passdb.@SHLIBEXT@ : $( BINARY_PREREQS ) winbindd /idmap_passdb .o
@echo " Building plugin $@ "
@$( SHLD_MODULE) winbindd/idmap_passdb.o
2007-09-14 16:03:58 +04:00
bin/ad.@SHLIBEXT@ : $( BINARY_PREREQS ) winbindd /idmap_ad .o
2005-06-29 17:49:29 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) winbindd/idmap_ad.o
2005-06-29 17:49:29 +04:00
2008-09-16 00:51:44 +04:00
bin/hash.@SHLIBEXT@ : $( BINARY_PREREQS ) $( IDMAP_HASH_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( IDMAP_HASH_OBJ)
2008-09-16 00:51:44 +04:00
2008-09-19 21:27:15 +04:00
bin/adex.@SHLIBEXT@ : $( BINARY_PREREQS ) $( IDMAP_ADEX_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( IDMAP_ADEX_OBJ)
2008-09-19 21:27:15 +04:00
2010-06-23 14:12:37 +04:00
bin/tdb2.@SHLIBEXT@ : $( BINARY_PREREQS ) winbindd /idmap_tdb 2.o $( IDMAP_RW_OBJ )
2008-01-16 12:28:28 +03:00
@echo " Building plugin $@ "
2010-06-23 14:12:37 +04:00
@$( SHLD_MODULE) winbindd/idmap_tdb2.o $( IDMAP_RW_OBJ)
2008-01-16 12:28:28 +03:00
2010-06-23 14:18:35 +04:00
bin/ldap.@SHLIBEXT@ : $( BINARY_PREREQS ) winbindd /idmap_ldap .o $( IDMAP_RW_OBJ )
2007-05-15 01:22:14 +04:00
@echo " Building plugin $@ "
2010-06-23 14:18:35 +04:00
@$( SHLD_MODULE) winbindd/idmap_ldap.o $( IDMAP_RW_OBJ)
2007-05-15 01:22:14 +04:00
2007-06-01 20:06:40 +04:00
bin/weird.@SHLIBEXT@ : $( BINARY_PREREQS ) $( DEVEL_HELP_WEIRD_OBJ )
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( DEVEL_HELP_WEIRD_OBJ)
2003-08-26 23:48:16 +04:00
2007-06-01 20:06:40 +04:00
bin/CP850.@SHLIBEXT@ : $( BINARY_PREREQS ) $( CP 850_OBJ )
2003-08-26 23:48:16 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( CP850_OBJ)
2003-04-16 17:09:00 +04:00
2007-06-01 20:06:40 +04:00
bin/CP437.@SHLIBEXT@ : $( BINARY_PREREQS ) $( CP 437_OBJ )
2003-08-28 21:16:27 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( CP437_OBJ)
2003-08-28 21:16:27 +04:00
2007-06-01 20:06:40 +04:00
bin/macosxfs.@SHLIBEXT@ : $( BINARY_PREREQS ) $( CHARSET_MACOSXFS_OBJ )
2003-11-26 23:58:53 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2003-11-26 23:58:53 +03:00
2006-07-11 22:01:26 +04:00
# NOTE, there is no build rule for a dynamic default VFS module because
# this one MUST MUST MUST be built statically.
2007-06-01 20:06:40 +04:00
bin/audit.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_AUDIT_OBJ )
2003-02-07 07:56:37 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_AUDIT_OBJ)
2003-02-07 07:56:37 +03:00
2007-06-01 20:06:40 +04:00
bin/extd_audit.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_EXTD_AUDIT_OBJ )
2003-04-16 17:09:00 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_EXTD_AUDIT_OBJ)
2003-04-16 17:09:00 +04:00
2007-06-01 20:06:40 +04:00
bin/full_audit.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_FULL_AUDIT_OBJ )
2004-04-29 16:11:59 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_FULL_AUDIT_OBJ)
2004-04-29 16:11:59 +04:00
2007-06-01 20:06:40 +04:00
bin/recycle.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_RECYCLE_OBJ )
2002-11-18 19:22:04 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_RECYCLE_OBJ)
2002-11-18 19:22:04 +03:00
2007-06-01 20:06:40 +04:00
bin/netatalk.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_NETATALK_OBJ )
2002-11-18 19:22:04 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_NETATALK_OBJ)
2002-11-18 19:22:04 +03:00
2007-06-01 20:06:40 +04:00
bin/fake_perms.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_FAKE_PERMS_OBJ )
2003-04-26 17:49:55 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_FAKE_PERMS_OBJ)
2003-04-26 17:49:55 +04:00
2007-06-01 20:06:40 +04:00
bin/default_quota.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_DEFAULT_QUOTA_OBJ )
2003-07-29 22:07:13 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_DEFAULT_QUOTA_OBJ)
2003-07-29 22:07:13 +04:00
2007-06-01 20:06:40 +04:00
bin/readonly.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_READONLY_OBJ )
2003-08-12 08:35:47 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_READONLY_OBJ)
2003-08-12 08:35:47 +04:00
2007-06-01 20:06:40 +04:00
bin/shadow_copy.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_SHADOW_COPY_OBJ )
2004-04-22 19:30:42 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_SHADOW_COPY_OBJ)
2004-04-22 19:30:42 +04:00
2008-01-16 12:28:28 +03:00
bin/shadow_copy2.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_SHADOW_COPY 2_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_SHADOW_COPY2_OBJ)
2008-01-16 12:28:28 +03:00
2007-10-23 14:43:27 +04:00
bin/syncops.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_SYNCOPS_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_SYNCOPS_OBJ)
2007-10-23 14:43:27 +04:00
2007-06-01 20:06:40 +04:00
bin/cap.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_CAP_OBJ )
2003-08-28 00:04:23 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_CAP_OBJ)
2003-08-28 00:04:23 +04:00
2007-06-01 20:06:40 +04:00
bin/expand_msdfs.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_EXPAND_MSDFS_OBJ )
2004-03-27 01:26:33 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_EXPAND_MSDFS_OBJ)
2004-03-27 01:26:33 +03:00
2007-06-01 20:06:40 +04:00
bin/afsacl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_AFSACL_OBJ )
2004-05-02 16:13:16 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_AFSACL_OBJ)
2004-05-02 16:13:16 +04:00
2008-01-15 19:03:17 +03:00
bin/xattr_tdb.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_XATTR_TDB_OBJ )
2007-10-22 20:14:57 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_XATTR_TDB_OBJ)
2007-10-22 20:14:57 +04:00
2007-06-01 20:06:40 +04:00
bin/posixacl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_POSIXACL_OBJ )
2006-07-21 19:51:34 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_POSIXACL_OBJ)
2006-07-21 19:51:34 +04:00
2007-06-01 20:06:40 +04:00
bin/aixacl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_AIXACL_OBJ )
2006-07-21 19:51:34 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_AIXACL_OBJ)
2006-09-18 06:27:48 +04:00
2007-06-01 20:06:40 +04:00
bin/aixacl2.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_AIXACL 2_OBJ )
2006-09-18 06:27:48 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_AIXACL2_OBJ)
2006-07-21 19:51:34 +04:00
2007-06-01 20:06:40 +04:00
bin/solarisacl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_SOLARISACL_OBJ )
2006-07-21 19:51:34 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_SOLARISACL_OBJ)
2006-07-21 19:51:34 +04:00
2007-06-01 20:06:40 +04:00
bin/zfsacl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_ZFSACL_OBJ )
2007-05-15 03:55:11 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_ZFSACL_OBJ)
2007-05-15 03:55:11 +04:00
2007-06-01 20:06:40 +04:00
bin/irixacl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_IRIXACL_OBJ )
2006-07-21 19:51:34 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_IRIXACL_OBJ)
2006-07-21 19:51:34 +04:00
2007-06-01 20:06:40 +04:00
bin/hpuxacl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_HPUXACL_OBJ )
2006-07-21 19:51:34 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_HPUXACL_OBJ)
2006-07-21 19:51:34 +04:00
2007-06-01 20:06:40 +04:00
bin/tru64acl.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_TRU 64ACL_OBJ )
2006-07-21 19:51:34 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_TRU64ACL_OBJ)
2006-07-21 19:51:34 +04:00
2007-06-01 20:06:40 +04:00
bin/catia.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_CATIA_OBJ )
2005-03-18 16:13:38 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_CATIA_OBJ)
2005-03-18 16:13:38 +03:00
2008-01-20 01:33:11 +03:00
bin/streams_xattr.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_STREAMS_XATTR_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_STREAMS_XATTR_OBJ)
2008-01-20 01:33:11 +03:00
2008-01-20 01:36:34 +03:00
bin/streams_depot.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_STREAMS_DEPOT_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_STREAMS_DEPOT_OBJ)
2008-01-20 01:36:34 +03:00
2007-06-01 20:06:40 +04:00
bin/cacheprime.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_CACHEPRIME_OBJ )
2006-07-11 22:01:26 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_CACHEPRIME_OBJ)
2006-07-11 22:01:26 +04:00
2007-06-01 20:06:40 +04:00
bin/prealloc.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_PREALLOC_OBJ )
2006-07-11 22:01:26 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_PREALLOC_OBJ)
2006-07-11 22:01:26 +04:00
2007-06-01 20:06:40 +04:00
bin/commit.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_COMMIT_OBJ )
2006-07-11 22:01:26 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_COMMIT_OBJ)
2005-03-18 16:13:38 +03:00
2007-06-01 20:06:40 +04:00
bin/gpfs.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_GPFS_OBJ )
2006-11-09 23:29:31 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_GPFS_OBJ)
2006-11-09 23:29:31 +03:00
2007-06-01 20:06:40 +04:00
bin/notify_fam.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_NOTIFY_FAM_OBJ )
2007-02-01 17:31:10 +03:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2007-02-01 17:31:10 +03:00
2007-06-01 20:06:40 +04:00
bin/readahead.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_READAHEAD_OBJ )
2007-04-06 22:56:47 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_READAHEAD_OBJ)
2007-04-06 22:56:47 +04:00
2008-01-16 12:28:28 +03:00
bin/tsmsm.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_TSMSM_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_TSMSM_OBJ)
2008-01-16 12:28:28 +03:00
2007-08-10 13:05:18 +04:00
bin/fileid.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_FILEID_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_FILEID_OBJ)
2007-08-10 13:05:18 +04:00
2008-02-21 18:14:08 +03:00
bin/aio_fork.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_AIO_FORK_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_AIO_FORK_OBJ)
2008-02-21 18:14:08 +03:00
2009-03-10 20:02:21 +03:00
bin/preopen.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_PREOPEN_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_PREOPEN_OBJ)
2009-03-10 20:02:21 +03:00
2008-09-17 04:01:00 +04:00
bin/acl_xattr.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_ACL_XATTR_OBJ )
2008-09-17 02:55:06 +04:00
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_ACL_XATTR_OBJ)
2008-09-17 02:55:06 +04:00
2008-09-25 03:01:00 +04:00
bin/smb_traffic_analyzer.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_SMB_TRAFFIC_ANALYZER_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2008-09-25 03:01:00 +04:00
2008-11-11 04:57:22 +03:00
bin/acl_tdb.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_ACL_TDB_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_ACL_TDB_OBJ)
2008-11-11 04:57:22 +03:00
2008-10-24 07:49:55 +04:00
bin/onefs.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_ONEFS_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_ONEFS_OBJ) @ONEFS_LIBS@
2008-10-24 07:49:55 +04:00
2009-02-18 07:39:03 +03:00
bin/onefs_shadow_copy.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_ONEFS_SHADOW_COPY_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_ONEFS_SHADOW_COPY_OBJ)
2009-02-18 07:39:03 +03:00
2009-02-09 10:12:02 +03:00
bin/pc_onefs.@SHLIBEXT@ : $( BINARY_PREREQS ) $( PERFCOUNT_ONEFS_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( PERFCOUNT_ONEFS_OBJ)
2009-02-09 10:12:02 +03:00
2009-02-12 09:28:20 +03:00
bin/pc_test.@SHLIBEXT@ : $( BINARY_PREREQS ) $( PERFCOUNT_TEST_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( PERFCOUNT_TEST_OBJ)
2009-02-12 09:28:20 +03:00
2008-02-29 19:06:22 +03:00
bin/registry.@SHLIBEXT@ : $( BINARY_PREREQS ) libgpo /gpext /registry .o
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) libgpo/gpext/registry.o
2008-02-29 19:06:22 +03:00
2008-04-13 19:52:11 +04:00
bin/scripts.@SHLIBEXT@ : $( BINARY_PREREQS ) libgpo /gpext /scripts .o
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) libgpo/gpext/scripts.o
2008-04-13 19:52:11 +04:00
2008-09-27 02:36:45 +04:00
bin/security.@SHLIBEXT@ : $( BINARY_PREREQS ) libgpo /gpext /security .o
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) libgpo/gpext/security.o
2008-09-27 02:36:45 +04:00
2009-03-22 13:06:52 +03:00
bin/dirsort.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_DIRSORT_OBJ )
@echo " Building plugin $@ "
2009-10-20 22:45:46 +04:00
@$( SHLD_MODULE) $( VFS_DIRSORT_OBJ)
2009-03-22 13:06:52 +03:00
2010-01-11 23:53:37 +03:00
bin/scannedonly.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_SCANNEDONLY_OBJ )
@echo " Building plugin $@ "
@$( SHLD_MODULE) $( VFS_SCANNEDONLY_OBJ)
2010-03-08 19:53:18 +03:00
bin/crossrename.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_CROSSRENAME_OBJ )
@echo " Building plugin $@ "
@$( SHLD_MODULE) $( VFS_CROSSRENAME_OBJ)
2010-01-05 12:42:38 +03:00
bin/linux_xfs_sgid.@SHLIBEXT@ : $( BINARY_PREREQS ) $( VFS_LINUX_XFS_SGID_OBJ )
@echo " Building plugin $@ "
@$( SHLD_MODULE) $( VFS_LINUX_XFS_SGID_OBJ)
2007-01-24 04:48:08 +03:00
#########################################################
## IdMap NSS plugins
## None here right now
#########################################################
2009-10-04 03:40:34 +04:00
bin/wbinfo@EXEEXT@ : $( BINARY_PREREQS ) $( WBINFO_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2000-07-05 15:24:26 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LDFLAGS) $( WBINFO_OBJ) $( DYNEXP) $( LIBS) \
2008-07-14 20:02:08 +04:00
$( LDAP_LIBS) $( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBWBCLIENT_LIBS)
2000-07-05 15:24:26 +04:00
2007-07-23 19:29:56 +04:00
bin/ntlm_auth@EXEEXT@ : $( BINARY_PREREQS ) $( NTLM_AUTH_OBJ ) $( PARAM_OBJ ) \
2009-10-04 03:40:34 +04:00
$( LIB_NONSMBD_OBJ) @BUILD_POPT@ $( LIBTALLOC) $( LIBTDB) $( LIBWBCLIENT)
2003-01-28 15:07:02 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LDFLAGS) $( DYNEXP) $( NTLM_AUTH_OBJ) \
2005-01-18 21:28:34 +03:00
$( PARAM_OBJ) $( LIB_NONSMBD_OBJ) $( LIBS) \
2008-07-14 19:58:53 +04:00
$( POPT_LIBS) $( KRB5LIBS) $( LDAP_LIBS) $( NSCD_LIBS) \
2009-05-21 22:03:32 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS) @INIPARSERLIBS@
2003-01-28 15:07:02 +03:00
2009-10-04 03:40:34 +04:00
bin/pam_smbpass.@SHLIBEXT@ : $( BINARY_PREREQS ) $( PAM_SMBPASS_OBJ ) $( LIBTALLOC ) $( LIBWBCLIENT ) $( LIBTDB )
2001-04-25 01:13:48 +04:00
@echo " Linking shared library $@ "
2008-03-05 17:04:28 +03:00
@$( SHLD) $( LDSHFLAGS) -o $@ $( PAM_SMBPASS_OBJ) -lpam $( DYNEXP) \
2009-03-23 21:35:53 +03:00
$( LIBS) $( LDAP_LIBS) $( NSCD_LIBS) \
2009-04-01 03:37:07 +04:00
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS) $( LIBWBCLIENT_LIBS)
2001-04-25 01:13:48 +04:00
2009-10-04 03:30:43 +04:00
bin/tdbbackup@EXEEXT@ : $( BINARY_PREREQS ) $( TDBBACKUP_OBJ ) $( LIBTALLOC ) $( LIBTDB )
2002-03-07 21:58:33 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LDFLAGS) $( TDBBACKUP_OBJ) $( DYNEXP) \
2008-07-14 20:02:08 +04:00
$( LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2002-03-07 21:58:33 +03:00
2009-10-04 03:30:43 +04:00
bin/tdbtool@EXEEXT@ : $( BINARY_PREREQS ) $( TDBTOOL_OBJ ) $( LIBTALLOC ) $( LIBTDB )
2004-10-29 02:58:21 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LDFLAGS) $( TDBTOOL_OBJ) $( DYNEXP) \
2008-07-14 20:02:08 +04:00
$( LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2004-10-29 02:58:21 +04:00
2009-10-04 03:30:43 +04:00
bin/tdbdump@EXEEXT@ : $( BINARY_PREREQS ) $( TDBDUMP_OBJ ) $( LIBTALLOC ) $( LIBTDB )
2003-11-05 20:38:15 +03:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LDFLAGS) $( TDBDUMP_OBJ) $( DYNEXP) \
2008-07-14 20:02:08 +04:00
$( LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2003-11-05 20:38:15 +03:00
2009-10-04 03:30:43 +04:00
bin/tdbtorture@EXEEXT@ : $( BINARY_PREREQS ) $( TDBTORTURE_OBJ ) $( LIBTALLOC ) $( LIBTDB )
2007-03-26 14:57:48 +04:00
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( LDFLAGS) $( TDBTORTURE_OBJ) $( DYNEXP) \
2008-07-14 20:02:08 +04:00
$( LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2007-03-26 14:57:48 +04:00
2009-10-04 03:20:38 +04:00
bin/t_strcmp@EXEEXT@ : $( BINARY_PREREQS ) $( LIBTALLOC ) bin /libbigballofmud .@SHLIBEXT @ torture /t_strcmp .o
2009-01-28 11:42:42 +03:00
$( CC) -o $@ $( DYNEXP) $( LIBS) $( LIBTALLOC_LIBS) \
2009-11-20 20:25:27 +03:00
torture/t_strcmp.o -L ./bin -lbigballofmud $( LIBWBCLIENT_LIBS)
2003-04-04 07:05:10 +04:00
2009-10-04 03:20:38 +04:00
bin/t_strstr@EXEEXT@ : $( BINARY_PREREQS ) $( LIBTALLOC ) bin /libbigballofmud .@SHLIBEXT @ torture /t_strstr .o
2009-01-28 11:42:42 +03:00
$( CC) -o $@ $( DYNEXP) $( LIBS) $( LIBTALLOC_LIBS) \
2009-11-20 20:25:27 +03:00
torture/t_strstr.o -L ./bin -lbigballofmud $( LIBWBCLIENT_LIBS)
2004-03-09 14:15:44 +03:00
2009-10-04 03:20:38 +04:00
bin/t_strappend@EXEEXT@ : $( BINARY_PREREQS ) $( LIBTALLOC ) bin /libbigballofmud .@SHLIBEXT @ torture /t_strappend .o
2009-01-28 11:42:42 +03:00
$( CC) -o $@ $( DYNEXP) $( LIBS) $( LIBTALLOC_LIBS) \
2009-11-20 20:25:27 +03:00
torture/t_strappend.o -L ./bin -lbigballofmud $( LIBWBCLIENT_LIBS)
2005-09-30 21:13:37 +04:00
2007-06-01 20:06:40 +04:00
bin/t_stringoverflow@EXEEXT@ : $( BINARY_PREREQS ) bin /libbigballofmud .@SHLIBEXT @ torture /t_stringoverflow .o
2009-01-28 11:42:42 +03:00
$( CC) -o $@ $( DYNEXP) torture/t_stringoverflow.o \
2009-11-20 20:25:27 +03:00
-L./bin -lbigballofmud $( LIBWBCLIENT_LIBS)
2003-04-04 07:05:10 +04:00
2006-04-02 16:29:13 +04:00
bin/timelimit@EXEEXT@ : script /tests /timelimit .o
@echo Linking $@
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( DYNEXP) script/tests/timelimit.o
2006-03-21 18:33:14 +03:00
2009-10-04 03:40:34 +04:00
bin/rpc_open_tcp@EXEEXT@ : $( BINARY_PREREQS ) $( RPC_OPEN_TCP_OBJ ) $( LIBTALLOC ) $( LIBTDB ) $( LIBWBCLIENT )
2008-05-22 13:08:47 +04:00
@echo " Linking $@ "
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( RPC_OPEN_TCP_OBJ) $( LDFLAGS) $( DYNEXP) \
2009-04-01 03:37:07 +04:00
$( LIBS) $( LIBTALLOC_LIBS) $( LIBWBCLIENT_LIBS) \
2008-05-22 13:08:47 +04:00
$( LDAP_LIBS) $( KRB5LIBS) $( NSCD_LIBS)
2009-10-04 03:30:43 +04:00
bin/test_lp_load@EXEEXT@ : $( BINARY_PREREQS ) $( TEST_LP_LOAD_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
2008-09-28 00:08:02 +04:00
@echo " Linking $@ "
2009-01-28 11:42:42 +03:00
@$( CC) -o $@ $( TEST_LP_LOAD_OBJ) \
2010-05-26 19:18:59 +04:00
$( LDFLAGS) $( DYNEXP) $( LIBS) \
2008-09-28 00:08:02 +04:00
$( LDAP_LIBS) \
$( POPT_LIBS) $( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2009-10-04 03:30:43 +04:00
bin/dbwrap_tool@EXEEXT@ : $( DBWRAP_TOOL_OBJ ) $( LIBTALLOC ) $( LIBTDB )
2009-05-15 03:48:55 +04:00
@echo " Linking $@ "
2009-05-15 13:58:17 +04:00
@$( CC) -o $@ $( DBWRAP_TOOL_OBJ) \
2010-05-26 19:18:59 +04:00
$( LDFLAGS) $( DYNEXP) $( LIBS) \
2009-05-15 03:48:55 +04:00
$( LDAP_LIBS) \
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2009-05-15 17:41:41 +04:00
install-dbwrap_tool :: bin /dbwrap_tool @EXEEXT @
@$( SHELL) script/installbin.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( BINDIR) $<
2009-11-21 02:48:40 +03:00
bin/dbwrap_torture@EXEEXT@ : $( DBWRAP_TORTURE_OBJ ) $( LIBTALLOC ) $( LIBTDB )
@echo " Linking $@ "
@$( CC) -o $@ $( DBWRAP_TORTURE_OBJ) \
2010-05-26 19:18:59 +04:00
$( LDFLAGS) $( DYNEXP) $( LIBS) \
2009-11-21 02:48:40 +03:00
$( LDAP_LIBS) \
$( POPT_LIBS) \
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
install-dbwrap_torture :: bin /dbwrap_torture @EXEEXT @
@$( SHELL) script/installbin.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( BINDIR) $<
2009-05-15 17:41:41 +04:00
2009-12-01 02:53:03 +03:00
bin/split_tokens@EXEEXT@ : $( BINARY_PREREQS ) $( SPLIT_TOKENS_OBJ ) @BUILD_POPT @ $( LIBTALLOC ) $( LIBTDB )
@echo " Linking $@ "
@$( CC) -o $@ $( SPLIT_TOKENS_OBJ) \
2010-05-26 19:18:59 +04:00
$( LDFLAGS) $( DYNEXP) \
2009-12-01 02:53:03 +03:00
$( LIBS) $( POPT_LIBS) \
$( LDAP_LIBS) \
$( LIBTALLOC_LIBS) $( LIBTDB_LIBS)
2010-03-08 17:06:40 +03:00
install :: installservers installbin installman \
2007-12-21 20:57:34 +03:00
installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2008-10-30 12:53:52 +03:00
@INSTALL_PAM_MODULES@ installlibs installmo
1998-07-29 07:08:05 +04:00
2008-05-18 20:39:48 +04:00
install-everything :: install installmodules
2002-11-22 22:03:28 +03:00
2002-11-27 19:21:25 +03:00
# DESTDIR is used here to prevent packagers wasting their time
# duplicating the Makefile. Remove it and you will have the privelege
# of package each samba release for muliple versions of multiple
# distributions and operating systems, or at least supplying patches
# to all the packaging files required for this, prior to committing
# the removal of DESTDIR. Do not remove it even though you think it
# is not used
2008-05-18 20:39:48 +04:00
installdirs ::
2009-01-08 22:18:13 +03:00
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) \
$( DESTDIR) $( prefix) $( BINDIR) $( SBINDIR) $( LIBDIR) \
$( VARDIR) $( PRIVATEDIR) $( PIDDIR) $( LOCKDIR) $( STATEDIR) \
$( CACHEDIR) $( MANDIR) $( CODEPAGEDIR) $( MODULESDIR) $( LOCALEDIR)
1998-09-21 13:07:08 +04:00
2008-05-18 20:39:48 +04:00
installservers :: all installdirs
2007-05-26 17:30:45 +04:00
@$( SHELL) script/installbin.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( SBINDIR) $( SBIN_PROGS)
1999-12-13 16:27:58 +03:00
2008-05-18 20:39:48 +04:00
installbin :: all installdirs
2007-05-26 17:30:45 +04:00
@$( SHELL) script/installbin.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( BINDIR) $( BIN_PROGS)
1998-07-29 07:08:05 +04:00
2007-04-06 20:42:37 +04:00
# Some symlinks are required for the 'probing' of modules.
2004-02-02 23:54:14 +03:00
# This mechanism should go at some point..
2008-05-18 20:39:48 +04:00
installmodules :: modules installdirs
2007-05-26 17:30:45 +04:00
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( VFSLIBDIR) $( VFS_MODULES)
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( PDBLIBDIR) $( PDB_MODULES)
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( RPCLIBDIR) $( RPC_MODULES)
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( IDMAPLIBDIR) $( IDMAP_MODULES)
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( NSSINFOLIBDIR) $( NSS_INFO_MODULES)
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( CHARSETLIBDIR) $( CHARSET_MODULES)
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( AUTHLIBDIR) $( AUTH_MODULES)
2008-02-29 19:06:22 +03:00
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( GPEXTLIBDIR) $( GPEXT_MODULES)
2009-02-09 10:10:34 +03:00
@$( SHELL) $( srcdir) /script/installmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( PERFCOUNTLIBDIR) $( PERFCOUNT_MODULES)
2007-04-20 20:07:16 +04:00
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2003-08-13 08:11:50 +04:00
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2007-06-26 13:15:37 +04:00
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2008-09-25 20:14:58 +04:00
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
2008-09-25 20:41:49 +04:00
@$( SHELL) $( srcdir) /script/linkmodules.sh $( DESTDIR) $( NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
2002-11-18 19:22:04 +03:00
2008-05-18 20:39:48 +04:00
installscripts :: installdirs
2007-05-26 17:30:45 +04:00
@$( SHELL) $( srcdir) /script/installscripts.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( BINDIR) $( SCRIPTS)
1998-07-29 07:08:05 +04:00
2008-05-18 20:39:48 +04:00
installdat :: installdirs
2007-11-01 20:00:10 +03:00
@$( SHELL) $( srcdir) /script/installdat.sh $( DESTDIR) $( CODEPAGEDIR) $( srcdir)
2002-03-22 02:42:54 +03:00
2008-05-18 20:39:48 +04:00
installmsg :: installdirs
2007-11-01 20:00:10 +03:00
@$( SHELL) $( srcdir) /script/installmsg.sh $( DESTDIR) $( CODEPAGEDIR) $( srcdir)
2003-09-24 05:27:39 +04:00
2008-05-18 20:39:48 +04:00
installswat :: installdirs installmsg
2006-02-24 03:30:09 +03:00
@$( SHELL) $( srcdir) /script/installswat.sh $( DESTDIR) $( SWATDIR) $( srcdir)
1998-07-29 07:08:05 +04:00
2008-05-18 20:39:48 +04:00
installpammodules :: $( PAM_MODULES )
2007-05-26 17:30:45 +04:00
@$( SHELL) $( srcdir) /script/installdirs.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( PAMMODULESDIR)
2006-03-22 00:54:53 +03:00
@for module in $( PAM_MODULES) ; do \
echo " Installing module $$ {module} as $( DESTDIR) / $( PAMMODULESDIR) / $$ {module}.@SHLIBEXT@ " ; \
2007-05-26 17:30:45 +04:00
$( INSTALLCMD) -m $( INSTALLPERMS_BIN) bin/$$ { module} .@SHLIBEXT@ \
2006-03-22 00:54:53 +03:00
" $( DESTDIR) / $( PAMMODULESDIR) " ; \
done
1998-07-29 07:08:05 +04:00
# revert to the previously installed version
2008-05-18 20:39:48 +04:00
revert ::
2007-04-06 20:42:37 +04:00
@$( SHELL) $( srcdir) /script/revert.sh $( SBINDIR) $( SBIN_PROGS)
2002-12-06 01:56:25 +03:00
@$( SHELL) $( srcdir) /script/revert.sh $( BINDIR) $( BIN_PROGS) $( SCRIPTS)
1998-07-29 07:08:05 +04:00
2008-05-18 20:39:48 +04:00
installman :: installdirs
2008-02-28 17:49:57 +03:00
@$( SHELL) $( srcdir) /script/installman.sh $( DESTDIR) $( MANDIR) $( srcdir) C "@ROFF@"
1998-07-29 07:08:05 +04:00
2008-10-30 12:53:52 +03:00
installmo :: all installdirs
@$( SHELL) $( srcdir) /script/installmo.sh $( DESTDIR) $( LOCALEDIR) $( srcdir)
2001-11-14 04:23:59 +03:00
.PHONY : showlayout
2008-05-18 20:39:48 +04:00
showlayout ::
2001-11-14 04:23:59 +03:00
@echo "Samba will be installed into:"
2006-03-09 00:20:43 +03:00
@echo " prefix: $( prefix) "
2003-12-10 00:29:25 +03:00
@echo " bindir: $( BINDIR) "
@echo " sbindir: $( SBINDIR) "
@echo " libdir: $( LIBDIR) "
2008-08-15 02:36:49 +04:00
@echo " modulesdir: $( MODULESDIR) "
2006-11-30 09:26:11 +03:00
@echo " vardir: $( VARDIR) "
2003-12-10 00:29:25 +03:00
@echo " mandir: $( MANDIR) "
@echo " privatedir: $( PRIVATE_DIR) "
@echo " configdir: $( CONFIGDIR) "
@echo " lockdir: $( LOCKDIR) "
2009-01-08 22:18:13 +03:00
@echo " statedir: $( STATEDIR) "
@echo " cachedir: $( CACHEDIR) "
2003-12-10 00:29:25 +03:00
@echo " piddir: $( PIDDIR) "
2004-03-15 19:14:04 +03:00
@echo " swatdir: $( SWATDIR) "
2009-09-23 01:23:02 +04:00
@echo " datadir: ${ DATADIR } "
2008-08-15 01:18:28 +04:00
@echo " codepagedir: $( CODEPAGEDIR) "
2001-11-14 04:23:59 +03:00
2010-03-08 17:06:40 +03:00
uninstall :: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES @
2008-10-30 12:53:52 +03:00
uninstallmo ::
@$( SHELL) $( srcdir) /script/uninstallmo.sh $( DESTDIR) $( LOCALEDIR) $( srcdir)
1998-07-29 07:08:05 +04:00
2008-05-18 20:39:48 +04:00
uninstallman ::
2005-03-21 00:08:50 +03:00
@$( SHELL) $( srcdir) /script/uninstallman.sh $( DESTDIR) $( MANDIR) $( srcdir) C
1998-07-29 07:08:05 +04:00
2008-05-18 20:39:48 +04:00
uninstallservers ::
2007-05-26 17:30:45 +04:00
@$( SHELL) script/uninstallbin.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( SBINDIR) $( SBIN_PROGS)
2006-02-24 03:30:09 +03:00
2008-05-18 20:39:48 +04:00
uninstallbin ::
2007-05-26 17:30:45 +04:00
@$( SHELL) script/uninstallbin.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( BINDIR) $( BIN_PROGS)
1998-07-29 07:08:05 +04:00
2008-05-18 20:39:48 +04:00
uninstallmodules ::
2007-05-26 17:30:45 +04:00
@$( SHELL) $( srcdir) /script/uninstallmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( VFSLIBDIR) $( VFS_MODULES)
@$( SHELL) $( srcdir) /script/uninstallmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( PDBLIBDIR) $( PDB_MODULES)
@$( SHELL) $( srcdir) /script/uninstallmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( RPCLIBDIR) $( RPC_MODULES)
@$( SHELL) $( srcdir) /script/uninstallmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( IDMAPLIBDIR) $( IDMAP_MODULES)
@$( SHELL) $( srcdir) /script/uninstallmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( CHARSETLIBDIR) $( CHARSET_MODULES)
@$( SHELL) $( srcdir) /script/uninstallmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( AUTHLIBDIR) $( AUTH_MODULES)
2008-02-29 19:06:22 +03:00
@$( SHELL) $( srcdir) /script/uninstallmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( GPEXTLIBDIR) $( GPEXT_MODULES)
2009-02-09 10:10:34 +03:00
@$( SHELL) $( srcdir) /script/uninstallmodules.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( prefix) $( PERFCOUNTLIBDIR) $( PERFCOUNT_MODULES)
2002-11-18 19:22:04 +03:00
2008-05-18 20:39:48 +04:00
uninstallscripts ::
2007-05-26 17:30:45 +04:00
@$( SHELL) $( srcdir) /script/uninstallscripts.sh $( INSTALLPERMS_BIN) $( DESTDIR) $( BINDIR) $( SCRIPTS)
1998-07-29 07:08:05 +04:00
2008-05-18 20:39:48 +04:00
uninstalldat ::
2006-02-25 20:58:52 +03:00
@$( SHELL) $( srcdir) /script/uninstalldat.sh $( DESTDIR) $( LIBDIR) $( srcdir)
2006-02-24 03:30:09 +03:00
2008-05-18 20:39:48 +04:00
uninstallmsg ::
2006-02-25 20:58:52 +03:00
@$( SHELL) $( srcdir) /script/uninstallmsg.sh $( DESTDIR) $( LIBDIR) $( srcdir)
2006-02-24 03:30:09 +03:00
2008-05-18 20:39:48 +04:00
uninstallswat :: uninstallmsg
2006-02-24 03:30:09 +03:00
@$( SHELL) $( srcdir) /script/uninstallswat.sh $( DESTDIR) $( SWATDIR) $( srcdir)
2008-05-18 20:39:48 +04:00
uninstallpammodules ::
2006-03-22 00:54:53 +03:00
@for module in $( PAM_MODULES) ; do \
echo " Removing $( DESTDIR) / $( PAMMODULESDIR) / $$ {module}.@SHLIBEXT@ " ; \
rm -f " $( DESTDIR) / $( PAMMODULESDIR) / $$ {module}.@SHLIBEXT@ " ; \
done
2002-02-17 21:38:01 +03:00
# Toplevel clean files
2008-10-30 12:53:52 +03:00
TOPFILES = dynconfig.o localedir.o
2002-02-17 21:38:01 +03:00
2008-10-08 22:06:18 +04:00
cleanlibs ::
-rm -f ../lib/*/*.o ../lib/*/*/*.o \
2009-11-20 14:54:19 +03:00
../lib/*/*.ho \
2009-07-01 13:19:58 +04:00
../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
2009-07-01 13:29:00 +04:00
../librpc/*/*.o \
2009-11-19 15:39:24 +03:00
../libgpo/*.o ../libgpo/*/*.o \
../libds/*.o ../libds/*/*.o
2008-10-08 22:06:18 +04:00
2008-07-07 21:06:16 +04:00
clean :: cleanlibs
2008-05-19 02:54:45 +04:00
-rm -f include/build_env.h
-rm -f smbd/build_options.c
2007-04-20 22:12:07 +04:00
-rm -f $( PRECOMPILED_HEADER)
2007-04-22 07:17:31 +04:00
-rm -f core */*~ *~ \
2009-11-20 14:54:19 +03:00
*/*.o */*/*.o */*/*/*.o */*/*/*/*.o \
2008-01-07 00:50:38 +03:00
../testsuite/*/*.o \
2009-11-20 14:54:19 +03:00
../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
2009-11-19 15:39:24 +03:00
../client/*.o \
2006-09-25 22:33:15 +04:00
*/*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2010-03-08 17:06:40 +03:00
$( TOPFILES) $( BIN_PROGS) $( SBIN_PROGS) \
2008-02-08 03:00:03 +03:00
$( MODULES) $( TORTURE_PROGS) \
2008-07-07 11:26:21 +04:00
$( EVERYTHING_PROGS) \
2008-07-06 23:23:11 +04:00
bin/timelimit \
2009-02-12 03:06:18 +03:00
.headers.stamp */src/*.o
2005-08-24 16:42:32 +04:00
-rm -rf t_dir
2003-04-02 10:26:01 +04:00
2003-04-23 18:19:03 +04:00
include/build_env.h : script /build_env .sh
2002-07-15 14:35:28 +04:00
@echo Building include/build_env.h
2003-05-23 05:59:43 +04:00
@$( SHELL) $( srcdir) /script/build_env.sh $( srcdir) $( builddir) $( CC) \
> $( builddir) /include/build_env.h
2001-09-19 13:44:12 +04:00
2008-05-21 20:04:47 +04:00
proto ::
2001-09-22 11:50:08 +04:00
2008-09-15 16:56:46 +04:00
etags ::
2009-03-27 14:19:10 +03:00
find $( srcdir) /.. -name "*.[ch]" | xargs -n 100 etags --append $( ETAGS_OPTIONS)
1998-07-29 07:08:05 +04:00
2008-09-15 16:56:46 +04:00
ctags ::
2009-05-20 14:07:07 +04:00
ctags $( CTAGS_OPTIONS) ` find $( srcdir) /.. -name "*.[ch]" | grep -v proto\. h`
1998-07-29 07:08:05 +04:00
2008-06-18 23:56:36 +04:00
realclean :: clean
2006-03-09 00:46:16 +03:00
-rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2006-03-09 00:42:12 +03:00
-rm -f script/installbin.sh script/uninstallbin.sh
1998-09-21 13:07:08 +04:00
2008-05-18 20:39:48 +04:00
distclean :: realclean
2007-04-30 01:37:24 +04:00
-rm -f smbadduser
2000-06-10 17:35:20 +04:00
-rm -f include/config.h Makefile
1998-11-12 00:41:44 +03:00
-rm -f config.status config.cache so_locations
2003-09-10 07:59:07 +04:00
-rm -rf .deps TAGS
1998-09-05 09:07:05 +04:00
2008-05-18 20:39:48 +04:00
realdistclean :: distclean
2003-08-20 21:13:38 +04:00
-rm -f include/config.h.in
-rm -f include/version.h
-rm -f configure
1998-09-05 09:07:05 +04:00
# this target is really just for my use. It only works on a limited
# range of machines and is used to produce a list of potentially
# dead (ie. unused) functions in the code. (tridge)
2008-05-18 20:39:48 +04:00
finddead ::
1998-09-05 09:07:05 +04:00
nm */*.o | grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
nm */*.o | grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2007-04-06 20:42:37 +04:00
comm -13 nmused.txt nmfns.txt
1998-09-21 13:07:08 +04:00
1998-09-24 12:34:21 +04:00
# when configure.in is updated, reconfigure
2000-06-10 17:35:20 +04:00
$(srcdir)/configure : $( srcdir ) /configure .in
2003-04-14 05:09:16 +04:00
@echo "WARNING: you need to rerun ./autogen.sh"
1998-09-24 12:34:21 +04:00
1998-09-21 13:07:08 +04:00
config.status : $( srcdir ) /configure
2003-04-14 05:09:16 +04:00
@echo "WARNING: you need to run ./configure"
1998-09-24 05:12:43 +04:00
2000-06-10 17:35:20 +04:00
Makefile : $( srcdir ) /Makefile .in config .status
2000-04-10 07:09:42 +04:00
@echo "WARNING: you need to run ./config.status"
2001-09-24 19:55:09 +04:00
2003-04-04 07:05:10 +04:00
######################################################################
# Samba Testing Framework
2008-01-02 15:22:19 +03:00
# Check shared libs for unresolved symbols
2008-07-10 18:25:21 +04:00
test_shlibs :
@echo " Testing $? "
2008-10-27 14:59:11 +03:00
@$( LIB_PATH_VAR) = ./bin && \
export $( LIB_PATH_VAR) && \
2008-07-10 18:25:21 +04:00
for module in $? ; do \
2009-06-10 19:25:12 +04:00
./script/tests/dlopen.sh $( LIBDL) $$ { module} \
2008-01-02 15:22:19 +03:00
|| exit 1; \
done
2007-04-06 20:42:37 +04:00
# Check for NSS module problems.
2008-05-18 20:39:48 +04:00
test_nss_modules :: nss_modules
2007-04-03 17:30:43 +04:00
@echo " Testing $( NSS_MODULES) "
2008-10-27 14:59:11 +03:00
@$( LIB_PATH_VAR) = ./bin && \
export $( LIB_PATH_VAR) && \
2008-03-06 12:26:29 +03:00
for module in $( NSS_MODULES) ; do \
2009-06-10 19:25:12 +04:00
./script/tests/dlopen.sh $( LIBDL) $$ { module} \
2007-04-03 17:30:43 +04:00
|| exit 1; \
done
2006-03-23 17:53:10 +03:00
# Check for PAM module problems. Specifically, check that every module we
# built can actually be loaded by a minimal PAM-aware application.
2008-05-18 20:39:48 +04:00
test_pam_modules :: pam_modules
2006-03-23 17:53:10 +03:00
@echo " Testing $( PAM_MODULES) "
2008-10-27 14:59:11 +03:00
@$( LIB_PATH_VAR) = ./bin && \
export $( LIB_PATH_VAR) && \
2008-03-06 12:26:29 +03:00
for module in $( PAM_MODULES) ; do \
2009-06-08 13:51:36 +04:00
./script/tests/dlopen.sh -lpam $( LIBDL) bin/$$ { module} .@SHLIBEXT@ \
2006-03-23 17:53:10 +03:00
|| exit 1; \
done
2008-01-06 01:09:25 +03:00
2005-08-07 22:43:53 +04:00
##
2006-03-23 17:53:10 +03:00
## Targets for 'make test'
2005-08-07 22:43:53 +04:00
##
2009-01-26 01:38:44 +03:00
2009-02-03 02:08:24 +03:00
TEST_EXTRA_ARGS = ${ smbtorture4_option } ${ selftest_shrdir } ${ selftest_custom_conf }
2009-01-26 01:38:44 +03:00
2010-08-10 13:33:03 +04:00
oldtest :: all torture timelimit
2006-03-23 17:53:10 +03:00
@echo Running Test suite
2009-06-05 18:12:46 +04:00
@LIB_PATH_VAR= $( LIB_PATH_VAR) PERL = " $( PERL) " NSS_WRAPPER_WINBIND_SO_PATH = " $( srcdir) /@WINBIND_NSS@ " $( srcdir) /script/tests/selftest.sh ${ selftest_prefix } all ${ TEST_EXTRA_ARGS }
2006-03-23 17:53:10 +03:00
2008-05-18 20:39:48 +04:00
valgrindtest :: all torture timelimit
2006-03-23 17:53:10 +03:00
@echo Running Test suite with valgrind
2008-01-06 03:12:56 +03:00
@LIB_PATH_VAR= $( LIB_PATH_VAR) \
2008-01-06 01:09:25 +03:00
NMBD_VALGRIND = "xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
2007-10-24 15:18:42 +04:00
WINBINDD_VALGRIND = "xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
2006-03-23 17:53:10 +03:00
SMBD_VALGRIND = "xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2008-02-19 18:48:49 +03:00
VALGRIND = " valgrind -q --num-callers=30 --log-file= ${ selftest_prefix } /valgrind.log " \
2009-01-27 03:50:31 +03:00
PERL = " $( PERL) " $( srcdir) /script/tests/selftest.sh ${ selftest_prefix } all ${ TEST_EXTRA_ARGS }
2008-08-21 12:50:49 +04:00
2008-11-02 18:38:27 +03:00
selftestdir = ../selftest
2008-10-21 20:26:46 +04:00
2009-07-04 03:07:15 +04:00
S3_LD_LIBPATH_OVERRIDE = $( LIB_PATH_VAR) = " $( builddir) /bin: $$ $( LIB_PATH_VAR) "
2009-01-28 11:35:44 +03:00
2010-08-15 15:17:36 +04:00
test :: all torture timelimit
@LIB_PATH_VAR= $( LIB_PATH_VAR) $( S3_LD_LIBPATH_OVERRIDE) \
SAMBA4SHAREDDIR = " $( builddir) /bin/shared " SMBTORTURE4 = $( smbtorture4_path) \
2010-08-25 13:17:33 +04:00
NSS_WRAPPER_WINBIND_SO_PATH = " $( srcdir) /../nsswitch/libnss_winbind.so " \
SELFTESTDIR = " $( selftestdir) " SELFTESTPREFIX = " $( selftest_prefix) " \
SOURCEDIR = " $( srcdir) " \
RUN_FROM_BUILD_FARM = " $( RUN_FROM_BUILD_FARM) " \
2010-08-15 15:17:36 +04:00
PERL = " $( PERL) " PYTHON = " $( PYTHON) " \
2010-08-25 13:17:33 +04:00
$( selftestdir) /s3-selftest.sh
2008-10-21 20:26:46 +04:00
2010-08-10 13:33:03 +04:00
test-% :
$( MAKE) test TESTS = $*
2008-10-19 16:56:29 +04:00
2010-07-06 21:53:37 +04:00
SELFTEST_TESTENV = dc
testenv :
2010-08-10 13:33:03 +04:00
$( MAKE) test SELFTEST_TESTENV = $( SELFTEST_TESTENV) TESTS = "--testenv"
2010-07-06 21:53:37 +04:00
2010-07-09 17:42:34 +04:00
gdbtestenv :
2010-08-10 13:33:03 +04:00
$( MAKE) test SELFTEST_TESTENV = $( SELFTEST_TESTENV) \
2010-08-14 03:52:41 +04:00
NMBD_VALGRIND = " xterm -n nmbd -title nmbd -e $( selftestdir) /gdb_run $( S3_LD_LIBPATH_OVERRIDE) " \
WINBINDD_VALGRIND = " xterm -n winbindd -title winbindd -e $( selftestdir) /gdb_run $( S3_LD_LIBPATH_OVERRIDE) " \
SMBD_VALGRIND = " xterm -n smbd -title smbd -e $( selftestdir) /gdb_run $( S3_LD_LIBPATH_OVERRIDE) " \
2010-07-09 17:42:34 +04:00
TESTS = "--testenv"
2010-08-14 03:54:37 +04:00
valgrindtestenv :
$( MAKE) test SELFTEST_TESTENV = $( SELFTEST_TESTENV) \
NMBD_VALGRIND = "xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
WINBINDD_VALGRIND = "xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
SMBD_VALGRIND = "xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
TESTS = "--testenv"
2010-07-06 21:53:37 +04:00
2008-10-09 13:45:03 +04:00
# Check for Winbind struct 32/64bit padding
test_wbpad :
@echo "Testing winbind request/response structure for 32/64bit padding"
@./script/tests/wb_pad.sh || exit 1;
2008-08-21 12:50:49 +04:00
##
## Examples:
##
2008-09-17 20:55:33 +04:00
libsmbclient_examples : libsmbclient
2008-08-21 12:50:49 +04:00
$( MAKE) -C ../examples/libsmbclient -f Makefile.internal
clean_libsmbclient_examples :
$( MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
2008-09-17 20:39:30 +04:00
libnetapi_examples : libnetapi
$( MAKE) -C lib/netapi/examples
clean_libnetapi_examples :
$( MAKE) -C lib/netapi/examples clean
2010-05-06 16:08:49 +04:00
../source4/configure : ../buildtools /scripts /configure .waf
cd ../source4 && ./autogen.sh
2010-05-10 16:48:41 +04:00
samba4-configure : ../source 4/configure
2010-05-11 18:07:19 +04:00
@$( MAKE) -C ../source4 reconfigure || ( cd ../source4 && \
./configure.developer --nonshared-binary= smbtorture --enable-auto-reconfigure )
2010-05-06 16:08:49 +04:00
.PHONY : samba 4-configure
2010-05-07 20:30:46 +04:00
bin/smbtorture4 : $( BINARY_PREREQS ) samba 4-configure
2010-05-10 16:48:41 +04:00
cd ../source4 && ../buildtools/bin/waf build --targets= smbtorture
2010-05-06 16:08:49 +04:00
cp ../source4/bin/smbtorture bin/smbtorture4
2010-06-16 16:17:44 +04:00
bin/ndrdump4 : $( BINARY_PREREQS ) samba 4-configure
cd ../source4 && ../buildtools/bin/waf build --targets= ndrdump
cp ../source4/bin/ndrdump bin/ndrdump4
2010-05-06 16:08:49 +04:00
.PHONY : bin /smbtorture 4