s3 swat: Add support for anti-XSRF token
[Samba.git] / source3 / Makefile.in
blob82e108ac2052fb7238440fa5174a0f9503c36b01
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 selftest_shrdir=@selftest_shrdir@
21 smbtorture4_path=@smbtorture4_path@
22 smbtorture4_option=@smbtorture4_option@
23 selftest_custom_conf=@selftest_custom_conf@
25 LIBS=@LIBS@
26 CC=@CC@
27 SHLD=@SHLD@
28 LIB_PATH_VAR=@LIB_PATH_VAR@
30 ## Dynamic shared libraries build settings
31 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
32 DSO_EXPORTS=@DSO_EXPORTS@
33 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
35 # The MODULE_EXPORTS variable contains the platform-specific linker flags
36 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
37 MODULE_EXPORTS=@MODULE_EXPORTS@
39 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
40 # (GCC) warnings. This is done automtically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
43 CFLAGS=@CFLAGS@
44 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
46 EXEEXT=@EXEEXT@
47 AR=@AR@
48 LDSHFLAGS=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
49 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
51 WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
52 AWK=@AWK@
53 PICFLAG=@PICFLAG@
54 DYNEXP=@DYNEXP@
55 PERL=@PERL@
57 PIDL_ARGS=@PIDL_ARGS@
59 TERMLDFLAGS=@TERMLDFLAGS@
60 TERMLIBS=@TERMLIBS@
61 PRINT_LIBS=@PRINT_LIBS@
62 ZLIB_LIBS=@ZLIB_LIBS@
63 AUTH_LIBS=@AUTH_LIBS@
64 ACL_LIBS=@ACL_LIBS@
65 PASSDB_LIBS=@PASSDB_LIBS@
66 IDMAP_LIBS=@IDMAP_LIBS@
67 KRB5LIBS=@KRB5_LIBS@
68 LDAP_LIBS=@LDAP_LIBS@
69 NSCD_LIBS=@NSCD_LIBS@
70 UUID_LIBS=@UUID_LIBS@
71 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
72 WINBIND_NSS_EXTRA_LIBS=@WINBIND_NSS_EXTRA_LIBS@
73 WINBIND_NSS_PTHREAD=@WINBIND_NSS_PTHREAD@
74 PAM_WINBIND_EXTRA_LIBS=@PAM_WINBIND_EXTRA_LIBS@
75 DNSSD_LIBS=@DNSSD_LIBS@
76 AVAHI_LIBS=@AVAHI_LIBS@
77 POPT_LIBS=@POPTLIBS@
78 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
79 LIBTDB_LIBS=@LIBTDB_LIBS@
80 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
81 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
82 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
84 INSTALLCMD=@INSTALL@
85 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
86 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
87 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
88 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
90 VPATH=@srcdir@
91 srcdir=@abs_srcdir@
92 builddir=@abs_builddir@
93 SHELL=/bin/sh
94 DESTDIR=/
96 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
97 # will search for a POSIX-compliant shell, and that might not be
98 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
100 # See the autoconf manual "Installation Directory Variables" for a
101 # discussion of the subtle use of these variables.
103 BASEDIR= @prefix@
104 BINDIR = @bindir@
105 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
106 SBINDIR = @sbindir@
107 ROOTSBINDIR = @rootsbindir@
108 LIBDIR = @libdir@
109 MODULESDIR = @modulesdir@
110 INCLUDEDIR=@includedir@
111 PAMMODULESDIR = @pammodulesdir@
112 VFSLIBDIR = $(MODULESDIR)/vfs
113 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
114 PDBLIBDIR = $(MODULESDIR)/pdb
115 RPCLIBDIR = $(MODULESDIR)/rpc
116 IDMAPLIBDIR = $(MODULESDIR)/idmap
117 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
118 CHARSETLIBDIR = $(MODULESDIR)/charset
119 AUTHLIBDIR = $(MODULESDIR)/auth
120 CONFIGLIBDIR = $(MODULESDIR)/config
121 GPEXTLIBDIR = $(MODULESDIR)/gpext
122 CONFIGDIR = @configdir@
123 VARDIR = @localstatedir@
124 MANDIR = @mandir@
125 DATADIR = @datadir@
127 # The permissions to give the executables and other data
128 INSTALLPERMS_BIN = 0755
129 INSTALLPERMS_DATA = 0644
131 # set these to where to find various files
132 # These can be overridden by command line switches (see smbd(8))
133 # or in smb.conf (see smb.conf(5))
134 LOGFILEBASE = @logfilebase@
135 CONFIGFILE = $(CONFIGDIR)/smb.conf
136 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
137 NCALRPCDIR = @ncalrpcdir@
139 # This is where smbpasswd et al go
140 PRIVATEDIR = @privatedir@
142 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
143 PRIVATE_DIR = $(PRIVATEDIR)
145 # This is where SWAT images and help files go
146 SWATDIR = @swatdir@
148 # This is where locale(mo) files go
149 LOCALEDIR= @localedir@
151 # the directory where lock files go
152 LOCKDIR = @lockdir@
154 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
155 CACHEDIR = @cachedir@
156 STATEDIR = @statedir@
158 # Where to look for (and install) codepage databases.
159 CODEPAGEDIR = @codepagedir@
161 # the directory where pid files go
162 PIDDIR = @piddir@
164 FLAGS = -I. \
165 -I$(srcdir) \
166 @FLAGS1@ \
167 @SAMBA_CPPFLAGS@ \
168 $(CPPFLAGS) \
169 $(ISA) \
170 -I$(srcdir)/lib \
171 -I.. \
172 -I../source4 \
173 -D_SAMBA_BUILD_=3
175 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
176 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
177 -DCONFIGFILE=\"$(CONFIGFILE)\" \
178 -DSBINDIR=\"$(SBINDIR)\" \
179 -DBINDIR=\"$(BINDIR)\" \
180 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
181 -DSWATDIR=\"$(SWATDIR)\" \
182 -DLOCKDIR=\"$(LOCKDIR)\" \
183 -DPIDDIR=\"$(PIDDIR)\" \
184 -DLIBDIR=\"$(LIBDIR)\" \
185 -DMODULESDIR=\"$(MODULESDIR)\" \
186 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
187 -DSHLIBEXT=\"@SHLIBEXT@\" \
188 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
189 -DCONFIGDIR=\"$(CONFIGDIR)\" \
190 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
191 -DCACHEDIR=\"$(CACHEDIR)\" \
192 -DSTATEDIR=\"$(STATEDIR)\" \
193 -DLOCALEDIR=\"$(LOCALEDIR)\"
195 # Note that all executable programs now provide for an optional executable suffix.
197 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
199 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@
201 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
202 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@
203 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ bin/tdbbackup@EXEEXT@ \
204 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ bin/tdbdump@EXEEXT@ \
205 bin/tdbtool@EXEEXT@
206 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
207 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
208 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
209 BIN_PROGS4 = bin/ldbedit@EXEEXT@ bin/ldbsearch@EXEEXT@ bin/ldbadd@EXEEXT@ \
210 bin/ldbdel@EXEEXT@ bin/ldbmodify@EXEEXT@ bin/ldbrename@EXEEXT@
212 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
213 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
214 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
215 bin/pdbtest@EXEEXT@ @BIN_TALLOCTORT@ bin/replacetort@EXEEXT@ \
216 bin/tdbtorture@EXEEXT@ \
217 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
219 BIN_PROGS = @EXTRA_BIN_PROGS@ \
220 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) $(BIN_PROGS4)
222 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
223 @BIN_TALLOCTORT@ bin/replacetort@EXEEXT@ \
224 bin/log2pcap@EXEEXT@ \
225 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
226 bin/dbwrap_tool@EXEEXT@
228 PAM_MODULES = @PAM_MODULES@
230 NSS_MODULES = @NSS_MODULES@
232 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
234 VFS_MODULES = @VFS_MODULES@
235 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
236 PDB_MODULES = @PDB_MODULES@
237 RPC_MODULES = @RPC_MODULES@
238 IDMAP_MODULES = @IDMAP_MODULES@
239 CHARSET_MODULES = @CHARSET_MODULES@
240 AUTH_MODULES = @AUTH_MODULES@
241 NSS_INFO_MODULES = @NSS_INFO_MODULES@
242 GPEXT_MODULES = @GPEXT_MODULES@
243 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
244 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
245 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
247 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
249 ######################################################################
250 # object file lists
251 ######################################################################
253 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
254 lib/dbwrap.o lib/dbwrap_tdb.o \
255 lib/dbwrap_ctdb.o \
256 lib/dbwrap_rbt.o
258 TDB_VALIDATE_OBJ = lib/tdb_validate.o
260 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
262 VERSION_OBJ = lib/version.o
264 WBCOMMON_OBJ = ../nsswitch/wb_common.o
266 AFS_OBJ = lib/afs.o
268 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
270 AVAHI_OBJ = @AVAHI_OBJ@
272 SERVER_MUTEX_OBJ = lib/server_mutex.o
274 PASSCHANGE_OBJ = libsmb/passchange.o
276 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
277 ../librpc/ndr/ndr_compression.o \
278 ../librpc/gen_ndr/ndr_drsuapi.o \
279 ../librpc/ndr/ndr_drsblobs.o \
280 ../librpc/gen_ndr/ndr_drsblobs.o
282 ZLIB_OBJ = @ZLIB_OBJS@
284 COMPRESSION_OBJ = ../lib/compression/mszip.o \
285 ../lib/compression/lzxpress.o \
286 $(ZLIB_OBJ)
288 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
289 $(COMPRESSION_OBJ)
291 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
292 ../librpc/ndr/ndr.o \
293 ../librpc/ndr/ndr_misc.o \
294 ../librpc/gen_ndr/ndr_misc.o \
295 ../librpc/gen_ndr/ndr_security.o \
296 ../librpc/ndr/ndr_sec_helper.o \
297 librpc/ndr/ndr_string.o \
298 ../librpc/ndr/uuid.o \
299 librpc/ndr/util.o
301 RPCCLIENT_NDR_OBJ = rpc_client/ndr.o
303 LIBNDR_GEN_OBJ0 = ../librpc/gen_ndr/ndr_samr.o \
304 ../librpc/gen_ndr/ndr_lsa.o
306 LIBNDR_GEN_OBJ1 = ../librpc/gen_ndr/ndr_netlogon.o \
307 ../librpc/ndr/ndr_netlogon.o
309 LIBNDR_GEN_OBJ2 = ../librpc/gen_ndr/ndr_spoolss.o \
310 ../librpc/ndr/ndr_spoolss_buf.o
312 LIBNDR_GEN_OBJ = ../librpc/gen_ndr/ndr_wkssvc.o \
313 $(LIBNDR_GEN_OBJ0) \
314 ../librpc/gen_ndr/ndr_dfs.o \
315 ../librpc/gen_ndr/ndr_echo.o \
316 ../librpc/gen_ndr/ndr_winreg.o \
317 ../librpc/gen_ndr/ndr_initshutdown.o \
318 ../librpc/gen_ndr/ndr_srvsvc.o \
319 ../librpc/gen_ndr/ndr_eventlog.o \
320 $(LIBNDR_GEN_OBJ1) \
321 ../librpc/gen_ndr/ndr_dssetup.o \
322 librpc/gen_ndr/ndr_notify.o \
323 ../librpc/gen_ndr/ndr_xattr.o \
324 ../librpc/gen_ndr/ndr_epmapper.o \
325 ../librpc/gen_ndr/ndr_named_pipe_auth.o \
326 ../librpc/gen_ndr/ndr_ntsvcs.o \
327 $(LIBNDR_GEN_OBJ2)
329 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
331 # this includes only the low level parse code, not stuff
332 # that requires knowledge of security contexts
333 RPC_PARSE_OBJ1 = $(RPC_PARSE_OBJ0)
335 RPC_PARSE_OBJ2 = rpc_parse/parse_rpc.o \
336 rpc_client/init_netlogon.o \
337 rpc_client/init_lsa.o
339 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
341 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
342 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
344 LIBSAMBAUTIL_OBJ = \
345 $(LIBREPLACE_OBJ) \
346 $(SOCKET_WRAPPER_OBJ) \
347 $(NSS_WRAPPER_OBJ)
349 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
350 ../lib/util/xfile.o ../lib/util/util_strlist.o \
351 ../lib/util/util_file.o ../lib/util/data_blob.o \
352 ../lib/util/util.o ../lib/util/fsusage.o \
353 ../lib/util/params.o ../lib/util/talloc_stack.o \
354 ../lib/util/genrand.o ../lib/util/util_net.o \
355 ../lib/util/become_daemon.o ../lib/util/system.o \
356 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o
358 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
359 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
360 ../lib/crypto/md4.o
362 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
363 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
364 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
365 lib/interfaces.o lib/memcache.o \
366 lib/util_transfer_file.o ../lib/async_req/async_req.o \
367 ../lib/async_req/async_sock.o ../lib/async_req/async_req_ntstatus.o \
368 $(TDB_LIB_OBJ) \
369 $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
370 lib/interface.o lib/pidfile.o \
371 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
372 lib/username.o \
373 lib/util_pw.o lib/access.o lib/smbrun.o \
374 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
375 lib/wins_srv.o \
376 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
377 lib/util_unistr.o lib/util_file.o \
378 lib/util.o lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
379 lib/substitute.o lib/dbwrap_util.o \
380 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
381 lib/tallocmsg.o lib/dmallocmsg.o libsmb/smb_signing.o \
382 lib/iconv.o lib/pam_errors.o intl/lang_tdb.o \
383 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
384 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
385 lib/ldap_escape.o @CHARSET_STATIC@ \
386 lib/secdesc.o lib/util_seaccess.o ../libcli/security/secace.o \
387 ../libcli/security/secacl.o \
388 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
389 lib/file_id.o lib/idmap_cache.o \
390 ../libcli/security/dom_sid.o
392 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
393 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
395 READLINE_OBJ = lib/readline.o
397 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
398 # Be sure to include them into your application
399 POPT_LIB_OBJ = lib/popt_common.o
401 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
402 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
403 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
405 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
407 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
408 libaddns/dnsgss.o libaddns/dnsmarshall.o
409 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
411 GPEXT_OBJ = libgpo/gpext/gpext.o @GPEXT_STATIC@
413 LIBGPO_OBJ0 = libgpo/gpo_ldap.o libgpo/gpo_ini.o libgpo/gpo_util.o \
414 libgpo/gpo_fetch.o libgpo/gpo_filesync.o libgpo/gpo_sec.o \
415 libgpo/gpo_reg.o \
416 $(GPEXT_OBJ)
417 LIBGPO_OBJ = $(LIBGPO_OBJ0)
419 LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o \
420 libads/sasl.o libads/sasl_wrapping.o \
421 libads/krb5_setpw.o libads/ldap_user.o \
422 libads/ads_struct.o libads/kerberos_keytab.o \
423 libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
424 libads/ldap_schema.o libads/util.o libads/ndr.o
426 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
427 ../librpc/ndr/ndr_krb5pac.o \
428 ../librpc/gen_ndr/ndr_krb5pac.o
430 SECRETS_OBJ = passdb/secrets.o passdb/machine_sid.o
432 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
433 ../libcli/netlogon.o \
434 ../libcli/ndr_netlogon.o \
435 ../librpc/gen_ndr/ndr_nbt.o \
436 ../librpc/gen_ndr/ndr_svcctl.o \
437 ../librpc/ndr/ndr_svcctl.o
439 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
440 libsmb/namequery.o libsmb/conncache.o libads/dns.o
442 NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
443 DOSERR_OBJ = ../libcli/util/doserr.o
444 ERRORMAP_OBJ = libsmb/errormap.o
445 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
447 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ) \
448 libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ntlmssp_parse.o
450 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) \
451 $(RPC_PARSE_OBJ1) \
452 $(SECRETS_OBJ)
454 LIBSMB_OBJ0 = \
455 libsmb/ntlm_check.o \
456 libsmb/ntlmssp.o \
457 libsmb/ntlmssp_sign.o
459 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
460 $(LIBSMB_ERR_OBJ)
462 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
463 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o
465 CLDAP_OBJ = libads/cldap.o $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ)
467 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
468 libsmb/clikrb5.o libsmb/clispnego.o libsmb/spnego.o ../lib/util/asn1.o \
469 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
470 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
471 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
472 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
473 libsmb/credentials.o \
474 libsmb/clioplock.o libsmb/clirap2.o \
475 libsmb/smb_seal.o libsmb/async_smb.o \
476 libsmb/smbsock_connect.o \
477 $(LIBSAMBA_OBJ) \
478 $(LIBNMB_OBJ) \
479 $(LIBNBT_OBJ) \
480 $(CLDAP_OBJ) \
481 $(DRSUAPI_OBJ)
483 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
485 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
486 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
487 rpc_client/cli_spoolss.o \
488 rpc_client/init_spoolss.o \
489 rpc_client/init_samr.o \
490 librpc/rpc/dcerpc.o \
491 ../librpc/rpc/binding.o
493 LIBMSRPC_GEN_OBJ = ../librpc/gen_ndr/cli_lsa.o \
494 ../librpc/gen_ndr/cli_dfs.o \
495 ../librpc/gen_ndr/cli_echo.o \
496 ../librpc/gen_ndr/cli_srvsvc.o \
497 ../librpc/gen_ndr/cli_svcctl.o \
498 ../librpc/gen_ndr/cli_winreg.o \
499 ../librpc/gen_ndr/cli_initshutdown.o \
500 ../librpc/gen_ndr/cli_eventlog.o \
501 ../librpc/gen_ndr/cli_wkssvc.o \
502 ../librpc/gen_ndr/cli_netlogon.o \
503 ../librpc/gen_ndr/cli_samr.o \
504 ../librpc/gen_ndr/cli_dssetup.o \
505 ../librpc/gen_ndr/cli_ntsvcs.o \
506 ../librpc/gen_ndr/cli_epmapper.o \
507 ../librpc/gen_ndr/cli_drsuapi.o \
508 ../librpc/gen_ndr/cli_spoolss.o \
509 $(LIBNDR_GEN_OBJ) \
510 $(RPCCLIENT_NDR_OBJ)
513 # registry-related objects
515 UTIL_REG_OBJ = lib/util_reg.o
516 UTIL_REG_API_OBJ = lib/util_reg_api.o
518 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
519 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
520 REG_INIT_FULL_OBJ = registry/reg_init_full.o
522 REGFIO_OBJ = registry/regfio.o
524 REGOBJS_OBJ = registry/reg_objects.o
526 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
528 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
530 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
531 registry/reg_backend_shares.o \
532 registry/reg_backend_netlogon_params.o \
533 registry/reg_backend_prod_options.o \
534 registry/reg_backend_tcpip_params.o \
535 registry/reg_backend_hkpt_params.o \
536 registry/reg_backend_current_version.o \
537 registry/reg_backend_perflib.o
539 REG_BASE_OBJ = registry/reg_api.o \
540 registry/reg_dispatcher.o \
541 registry/reg_cachehook.o \
542 $(REGFIO_OBJ) \
543 $(REGOBJS_OBJ) \
544 registry/reg_util.o \
545 $(UTIL_REG_API_OBJ) \
546 lib/util_nttoken.o \
547 $(REG_BACKENDS_BASE_OBJ) \
548 $(REG_INIT_BASIC_OBJ)
550 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
551 $(REG_BACKENDS_SMBCONF_OBJ) \
552 $(REG_INIT_SMBCONF_OBJ)
554 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
555 $(REG_BACKENDS_EXTRA_OBJ) \
556 $(REG_INIT_FULL_OBJ) \
557 registry/reg_eventlog.o \
558 registry/reg_perfcount.o \
559 registry/reg_util_legacy.o
561 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
563 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o ../librpc/gen_ndr/srv_lsa.o
565 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
566 ../librpc/gen_ndr/srv_netlogon.o
568 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
569 rpc_server/srv_samr_util.o \
570 ../librpc/gen_ndr/srv_samr.o
572 RPC_INITSHUTDOWN_OBJ = ../librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
574 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
575 ../librpc/gen_ndr/srv_winreg.o
577 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o ../librpc/gen_ndr/srv_dssetup.o
579 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
580 ../librpc/gen_ndr/srv_srvsvc.o
582 RPC_WKS_OBJ = ../librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
584 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl_nt.o \
585 ../librpc/gen_ndr/srv_svcctl.o \
586 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
587 services/svc_netlogon.o services/svc_winreg.o \
588 services/svc_wins.o
590 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs_nt.o \
591 ../librpc/gen_ndr/srv_ntsvcs.o
593 RPC_DFS_OBJ = ../librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
595 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss_nt.o \
596 ../librpc/gen_ndr/srv_spoolss.o
598 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog_nt.o \
599 $(LIB_EVENTLOG_OBJ) ../librpc/gen_ndr/srv_eventlog.o
601 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
602 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
604 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o ../librpc/gen_ndr/srv_echo.o
606 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
608 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2)
610 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o rpc_client/rpc_transport_np.o \
611 rpc_client/rpc_transport_sock.o rpc_client/rpc_transport_smbd.o
613 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
615 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
617 PRIVILEGES_OBJ = lib/privileges.o
619 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
621 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
622 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
623 passdb/util_unixsids.o passdb/lookup_sid.o \
624 passdb/login_cache.o @PDB_STATIC@ \
625 lib/account_pol.o $(PRIVILEGES_OBJ) \
626 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ)
628 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
629 CP850_OBJ = modules/CP850.o
630 CP437_OBJ = modules/CP437.o
631 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
633 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
635 PROFILE_OBJ = profile/profile.o
636 PROFILES_OBJ = utils/profiles.o \
637 $(LIBSAMBA_OBJ) \
638 $(PARAM_OBJ) \
639 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
640 $(POPT_LIB_OBJ)
642 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
643 smbd/oplock_onefs.o
645 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
647 VFS_DEFAULT_OBJ = modules/vfs_default.o
648 VFS_AUDIT_OBJ = modules/vfs_audit.o
649 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
650 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
651 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
652 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
653 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
654 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
655 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
656 VFS_CAP_OBJ = modules/vfs_cap.o
657 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
658 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
659 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
660 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
661 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
662 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
663 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
664 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
665 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
666 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
667 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
668 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
669 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
670 VFS_CATIA_OBJ = modules/vfs_catia.o
671 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
672 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
673 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
674 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
675 VFS_COMMIT_OBJ = modules/vfs_commit.o
676 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
677 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
678 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
679 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
680 VFS_FILEID_OBJ = modules/vfs_fileid.o
681 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
682 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
683 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
684 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
685 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
686 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
687 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
688 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
689 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
690 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
691 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
692 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
693 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
695 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
697 SLCACHE_OBJ = libsmb/samlogon_cache.o
699 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
701 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
702 AUTH_DOMAIN_OBJ = auth/auth_domain.o
703 AUTH_SAM_OBJ = auth/auth_sam.o
704 AUTH_SERVER_OBJ = auth/auth_server.o
705 AUTH_UNIX_OBJ = auth/auth_unix.o
706 AUTH_WINBIND_OBJ = auth/auth_winbind.o
707 AUTH_WBC_OBJ = auth/auth_wbc.o
708 AUTH_SCRIPT_OBJ = auth/auth_script.o
709 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
711 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
712 auth/auth_compat.o auth/auth_ntlmssp.o \
713 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
715 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
717 SMBD_OBJ_MAIN = smbd/server.o
719 BUILDOPT_OBJ = smbd/build_options.o
721 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
722 smbd/utmp.o smbd/session.o smbd/map_username.o \
723 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
724 smbd/share_access.o smbd/fileio.o \
725 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
726 smbd/message.o smbd/nttrans.o smbd/pipes.o \
727 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
728 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
729 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
730 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
731 smbd/posix_acls.o lib/sysacls.o \
732 smbd/process.o smbd/service.o smbd/error.o \
733 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
734 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
735 smbd/change_trust_pw.o smbd/fake_file.o \
736 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
737 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
738 smbd/dmapi.o \
739 smbd/file_access.o \
740 smbd/dnsregister.o smbd/globals.o \
741 $(MANGLE_OBJ) @VFS_STATIC@
743 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
744 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
745 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
746 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
747 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
748 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
749 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
750 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
751 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) \
752 $(LIBSMBCONF_OBJ) \
753 $(PRIVILEGES_BASIC_OBJ)
755 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
756 printing/print_cups.o printing/print_generic.o \
757 printing/lpq_parse.o printing/load.o \
758 printing/print_iprint.o
760 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
761 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
763 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
765 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
766 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
767 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
768 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
769 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
770 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
771 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
772 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
773 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
774 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
775 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
776 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
778 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
779 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
780 $(LIBNDR_GEN_OBJ0)
782 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
783 web/swat.o web/neg_lang.o
785 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
786 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
787 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
788 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
789 $(PASSCHANGE_OBJ) $(LDB_OBJ)
791 STATUS_OBJ = utils/status.o utils/status_profile.o \
792 $(LOCKING_OBJ) $(PARAM_OBJ) \
793 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
794 $(LIBSAMBA_OBJ)
796 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
797 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
798 $(LIBSAMBA_OBJ) \
799 $(PRINTBASE_OBJ)
801 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
802 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
803 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
804 $(RPC_CLIENT_OBJ) ../librpc/rpc/binding.o $(RPC_PARSE_OBJ2) \
805 $(RPC_CLIENT_OBJ1) \
806 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
807 $(LIBMSRPC_GEN_OBJ)
809 TESTPARM_OBJ = utils/testparm.o \
810 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
811 $(LIBSAMBA_OBJ)
813 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
814 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
815 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
817 PASSWD_UTIL_OBJ = utils/passwd_util.o
819 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
820 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
821 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
822 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
823 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
825 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
826 $(LIBSAMBA_OBJ) \
827 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
828 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o \
829 $(LDB_OBJ)
831 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
833 DISPLAY_SEC_OBJ= lib/display_sec.o
835 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
836 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
837 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
838 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
839 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
840 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
841 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
842 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
843 $(DISPLAY_SEC_OBJ)
845 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
846 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
847 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
848 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
849 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
850 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
852 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o localedir.o $(WBCOMMON_OBJ) \
853 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
855 LIBSMBCLIENT_OBJ0 = \
856 libsmb/libsmb_cache.o \
857 libsmb/libsmb_compat.o \
858 libsmb/libsmb_context.o \
859 libsmb/libsmb_dir.o \
860 libsmb/libsmb_file.o \
861 libsmb/libsmb_misc.o \
862 libsmb/libsmb_path.o \
863 libsmb/libsmb_printjob.o \
864 libsmb/libsmb_server.o \
865 libsmb/libsmb_stat.o \
866 libsmb/libsmb_xattr.o \
867 libsmb/libsmb_setget.o
869 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
870 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
871 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
872 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
873 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
875 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
877 # This shared library is intended for linking with unit test programs
878 # to test Samba internals. It's called libbigballofmud.so to
879 # discourage casual usage.
881 LIBBIGBALLOFMUD_MAJOR = 0
883 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
884 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) \
885 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
887 CLIENT_OBJ1 = client/client.o client/clitar.o $(RPC_CLIENT_OBJ) \
888 ../librpc/rpc/binding.o \
889 client/dnsbrowse.o \
890 $(RPC_CLIENT_OBJ1) \
891 $(RPC_PARSE_OBJ2)
893 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
894 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
895 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
896 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
897 $(DISPLAY_SEC_OBJ)
899 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
900 ../lib/smbconf/smbconf_util.o \
901 ../lib/smbconf/smbconf_txt.o \
902 lib/smbconf/smbconf_reg.o \
903 lib/smbconf/smbconf_init.o
905 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
907 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
908 $(LIB_NONSMBD_OBJ) \
909 $(PARAM_OBJ) \
910 $(LIBSMB_ERR_OBJ) \
911 $(POPT_LIB_OBJ)
913 LIBNET_OBJ = libnet/libnet_join.o \
914 libnet/libnet_keytab.o \
915 libnet/libnet_samsync.o \
916 libnet/libnet_samsync_ldif.o \
917 libnet/libnet_samsync_passdb.o \
918 libnet/libnet_samsync_display.o \
919 libnet/libnet_samsync_keytab.o \
920 libnet/libnet_dssync.o \
921 libnet/libnet_dssync_keytab.o \
922 librpc/gen_ndr/ndr_libnet_join.o
924 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
925 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
926 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
927 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
928 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
929 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
930 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
931 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
932 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
933 utils/net_conf.o utils/net_join.o utils/net_user.o \
934 utils/net_group.o utils/net_file.o utils/net_registry.o \
935 auth/token_util.o utils/net_dom.o utils/net_share.o \
936 utils/net_eventlog.o
938 # these are not processed by make proto
939 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
941 NET_OBJ = $(NET_OBJ1) \
942 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
943 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
944 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
945 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
946 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
947 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
948 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
949 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
950 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
951 $(REG_SMBCONF_OBJ) $(LIBNET_OBJ) \
952 $(LIBSMBCONF_OBJ) \
953 $(PRIVILEGES_BASIC_OBJ) \
954 $(LIB_EVENTLOG_OBJ)
956 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
957 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
958 $(LIBNDR_GEN_OBJ0)
960 CIFS_MOUNT_OBJ = client/mount.cifs.o client/mtab.o
962 CIFS_UMOUNT_OBJ = client/umount.cifs.o client/mtab.o
964 CIFS_UPCALL_OBJ = client/cifs.upcall.o
966 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
967 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
969 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
970 torture/denytest.o torture/mangle_test.o
972 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
973 $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
974 lib/wb_reqtrans.o lib/wbclient.o \
975 $(LIBNDR_GEN_OBJ0)
977 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
978 $(LIB_NONSMBD_OBJ) \
979 $(LIBNDR_GEN_OBJ0)
981 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
982 $(LIB_NONSMBD_OBJ) \
983 $(LIBNDR_GEN_OBJ0)
985 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
986 $(LIBSMB_OBJ) $(LDB_OBJ) $(LIB_NONSMBD_OBJ) \
987 $(LIBNDR_GEN_OBJ0)
989 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
990 $(LIB_NONSMBD_OBJ) \
991 $(LIBNDR_GEN_OBJ0)
993 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
994 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
995 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
996 $(LIBNDR_GEN_OBJ0)
998 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1000 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1002 LOG2PCAP_OBJ = utils/log2pcaphex.o
1004 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
1005 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1006 $(LIBNDR_GEN_OBJ0)
1008 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1009 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
1010 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1011 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
1013 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1014 $(PARAM_OBJ) \
1015 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
1016 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1017 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
1019 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1021 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1022 $(LIBSAMBA_OBJ) \
1023 registry/reg_eventlog.o $(LIB_EVENTLOG_OBJ) \
1024 ../librpc/gen_ndr/ndr_eventlog.o \
1025 ../librpc/gen_ndr/ndr_lsa.o
1027 SHARESEC_OBJ0 = utils/sharesec.o
1028 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1029 $(LIBSAMBA_OBJ) \
1030 $(POPT_LIB_OBJ)
1032 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1033 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSAMBA_OBJ)
1035 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1036 @libreplacedir@/test/getifaddrs.o \
1037 @libreplacedir@/test/os2_delete.o \
1038 @libreplacedir@/test/strptime.o \
1039 @libreplacedir@/test/main.o \
1040 $(LIBREPLACE_OBJ)
1042 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1044 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
1045 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1046 $(LIBNDR_GEN_OBJ0)
1048 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1049 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
1050 $(LIBNDR_GEN_OBJ0) $(LDB_OBJ)
1052 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1053 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
1054 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1055 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1056 $(LDB_OBJ)
1058 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o @IDMAP_STATIC@
1060 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1062 IDMAP_HASH_OBJ = \
1063 winbindd/idmap_hash/idmap_hash.o \
1064 winbindd/idmap_hash/mapfile.o
1066 IDMAP_ADEX_OBJ = \
1067 winbindd/idmap_adex/idmap_adex.o \
1068 winbindd/idmap_adex/cell_util.o \
1069 winbindd/idmap_adex/likewise_cell.o \
1070 winbindd/idmap_adex/provider_unified.o \
1071 winbindd/idmap_adex/gc_util.o \
1072 winbindd/idmap_adex/domain_util.o
1074 WINBINDD_OBJ1 = \
1075 winbindd/winbindd.o \
1076 winbindd/winbindd_user.o \
1077 winbindd/winbindd_group.o \
1078 winbindd/winbindd_util.o \
1079 winbindd/winbindd_cache.o \
1080 winbindd/winbindd_pam.o \
1081 winbindd/winbindd_sid.o \
1082 winbindd/winbindd_misc.o \
1083 winbindd/winbindd_cm.o \
1084 winbindd/winbindd_wins.o \
1085 winbindd/winbindd_rpc.o \
1086 winbindd/winbindd_reconnect.o \
1087 winbindd/winbindd_ads.o \
1088 winbindd/winbindd_passdb.o \
1089 winbindd/winbindd_dual.o \
1090 winbindd/winbindd_async.o \
1091 winbindd/winbindd_creds.o \
1092 winbindd/winbindd_cred_cache.o \
1093 winbindd/winbindd_ccache_access.o \
1094 winbindd/winbindd_domain.o \
1095 winbindd/winbindd_idmap.o \
1096 winbindd/winbindd_locator.o \
1097 winbindd/winbindd_ndr.o \
1098 auth/token_util.o \
1099 smbd/connection.o
1101 WINBINDD_OBJ = \
1102 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1103 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1104 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1105 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1106 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1107 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1108 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1109 $(LIBADS_SERVER_OBJ) $(LDB_OBJ) \
1110 $(TDB_VALIDATE_OBJ)
1112 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1113 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1114 lib/winbind_util.o $(WBCOMMON_OBJ)
1116 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1118 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1119 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1120 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1121 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1122 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1124 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1125 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1126 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1128 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1129 lib/ldb/modules/objectclass.o \
1130 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1132 # enabled in configure.in
1133 LDB_LDAP_OBJ=@LDBLDAP@
1135 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1137 LDB_CMDLINE_OBJ = $(PARAM_OBJ) \
1138 $(POPT_LIB_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) $(LIBSMB_ERR_OBJ0) \
1139 $(RPC_PARSE_OBJ1) $(SECRETS_OBJ) \
1140 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1143 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1144 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1145 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1146 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1147 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1148 LDBRENAME_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbrename.o
1150 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1151 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1153 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1154 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1156 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1157 iniparser_build/strlib.o
1159 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1160 $(SOCKET_WRAPPER_OBJ)
1162 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1163 $(SOCKET_WRAPPER_OBJ)
1165 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1166 $(SOCKET_WRAPPER_OBJ)
1168 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1169 $(SOCKET_WRAPPER_OBJ)
1172 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1174 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1175 ../lib/util/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1176 $(LIBADS_SERVER_OBJ) \
1177 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1178 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1179 $(LDB_OBJ) $(WBCOMMON_OBJ) \
1180 $(LIBNDR_GEN_OBJ0) $(LIBNDR_GEN_OBJ1)
1183 VLP_OBJ1 = printing/tests/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ) ../librpc/rpc/binding.o
1185 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1186 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1187 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1188 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1189 $(DISPLAY_SEC_OBJ)
1191 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1192 $(LIBSMB_OBJ) \
1193 $(PARAM_OBJ) \
1194 $(PASSDB_OBJ) \
1195 $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
1196 $(LIB_NONSMBD_OBJ) \
1197 $(KRBCLIENT_OBJ) \
1198 $(RPC_PARSE_OBJ2) \
1199 $(RPC_CLIENT_OBJ1) \
1200 rpc_client/cli_pipe.o \
1201 ../librpc/rpc/binding.o \
1202 $(LIBMSRPC_GEN_OBJ)
1204 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1205 $(PARAM_OBJ) \
1206 $(LIB_NONSMBD_OBJ) \
1207 $(LIBSAMBA_OBJ)
1209 ######################################################################
1210 # now the rules...
1211 ######################################################################
1212 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1213 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @CIFSUPCALL_PROGS@ \
1214 $(EXTRA_ALL_TARGETS)
1216 basics::
1218 nss_modules:: $(NSS_MODULES)
1220 pam_modules:: $(PAM_MODULES)
1222 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1224 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1226 gpext_modules:: $(GPEXT_MODULES)
1228 torture:: SHOWFLAGS basics $(TORTURE_PROGS)
1230 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1232 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1234 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1236 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1238 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1240 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1242 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1244 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1246 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1248 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1250 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1252 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1254 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1256 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1258 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1260 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1261 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1262 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1264 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1266 modules:: SHOWFLAGS $(MODULES)
1268 #####################################################################
1269 ## Perl IDL Compiler
1270 samba3-idl::
1271 @PIDL_OUTPUTDIR="../librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1272 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1273 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1274 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh \
1275 librpc/idl/messaging.idl librpc/idl/libnetapi.idl librpc/idl/notify.idl
1277 #####################################################################
1280 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter @TALLOCTORT@ replacetort smbconftort modules torture \
1281 $(EVERYTHING_PROGS)
1283 .SUFFIXES:
1284 .SUFFIXES: .c .o .lo
1286 .PHONY: showflags SHOWFLAGS
1288 showflags: SHOWFLAGS
1290 SHOWFLAGS::
1291 @echo "Using CFLAGS = $(CFLAGS)"
1292 @echo " PICFLAG = $(PICFLAG)"
1293 @echo " LIBS = $(LIBS)"
1294 @echo " LDFLAGS = $(LDFLAGS)"
1295 @echo " DYNEXP = $(DYNEXP)"
1296 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1297 @echo " SHLIBEXT = @SHLIBEXT@"
1298 @echo " SONAMEFLAG = @SONAMEFLAG@"
1300 # "showcflags" target for debuggin how CFLAGS are composed:
1302 .PHONY: showcflags SHOWCFLAGS
1304 showcflags: SHOWCFLAGS
1306 SHOWCFLAGS::
1307 @echo "CFLAGS = $(CFLAGS)"
1308 @echo "FLAGS = $(FLAGS)"
1309 @echo ""
1310 @echo "FLAGS1 = @FLAGS1@"
1311 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1312 @echo "CPPFLAGS = $(CPPFLAGS)"
1313 @echo "ISA = $(ISA)"
1315 MAKEDIR = || exec false; \
1316 if test -d "$$dir"; then :; else \
1317 echo mkdir "$$dir"; \
1318 mkdir -p "$$dir" >/dev/null 2>&1 || \
1319 test -d "$$dir" || \
1320 mkdir "$$dir" || \
1321 exec false; fi || exec false
1323 # Run a static checker.
1324 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1325 # Compile a source file.
1326 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1327 # Compile a source file with the installation paths defined.
1328 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1330 COMPILE = $(COMPILE_CC)
1332 .c.o:
1333 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1334 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1335 @if test -n "$(CC_CHECKER)"; then \
1336 echo "Checking $*.c with '$(CC_CHECKER)'";\
1337 $(CHECK_CC); \
1339 @echo Compiling $*.c
1340 @$(COMPILE) && exit 0;\
1341 echo "The following command failed:" 1>&2;\
1342 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1343 $(COMPILE_CC) >/dev/null 2>&1
1344 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1346 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1348 # this adds support for precompiled headers. To use it, install a snapshot
1349 # of gcc-3.4 and run 'make pch' before you do the main build.
1350 pch::
1351 rm -f $(PRECOMPILED_HEADER)
1352 $(MAKE) $(PRECOMPILED_HEADER)
1354 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1355 $(COMPILE)
1357 BINARY_PREREQS = bin/.dummy
1359 # These dependencies are only approximately correct: we want to make
1360 # sure Samba's paths are updated if ./configure is re-run. Really it
1361 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1362 # but since we also require "make install prefix=/opt/samba" *not* to
1363 # rebuild it's a bit hard.
1365 dynconfig.o: dynconfig.c Makefile
1366 @echo Compiling $*.c
1367 @$(COMPILE_CC_PATH) && exit 0;\
1368 echo "The following command failed:" 1>&2;\
1369 echo "$(COMPILE_CC_PATH)" 1>&2;\
1370 $(COMPILE_CC_PATH) >/dev/null 2>&1
1372 localedir.o: localedir.c Makefile
1373 @echo Compiling $*.c
1374 @$(COMPILE_CC_PATH) && exit 0;\
1375 echo "The following command failed:" 1>&2;\
1376 echo "$(COMPILE_CC_PATH)" 1>&2;\
1377 $(COMPILE_CC_PATH) >/dev/null 2>&1
1379 lib/pidfile.o: lib/pidfile.c
1380 @echo Compiling $*.c
1381 @$(COMPILE_CC_PATH) && exit 0;\
1382 echo "The following command failed:" 1>&2;\
1383 echo "$(COMPILE_CC_PATH)" 1>&2;\
1384 $(COMPILE_CC_PATH) >/dev/null 2>&1
1386 lib/version.o: lib/version.c include/version.h
1387 @echo Compiling $*.c
1388 @$(COMPILE_CC_PATH) && exit 0;\
1389 echo "The following command failed:" 1>&2;\
1390 echo "$(COMPILE_CC_PATH)" 1>&2;\
1391 $(COMPILE_CC_PATH) >/dev/null 2>&1
1393 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1394 @echo Compiling $*.c
1395 @$(COMPILE_CC_PATH) && exit 0;\
1396 echo "The following command failed:" 1>&2;\
1397 echo "$(COMPILE_CC_PATH)" 1>&2;\
1398 $(COMPILE_CC_PATH) >/dev/null 2>&1
1400 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1401 @echo Generating $@
1402 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1404 bin/.dummy:
1405 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1406 dir=bin $(MAKEDIR); fi
1407 @: >> $@ || : > $@ # what a fancy emoticon!
1409 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@ @BUILD_POPT@
1410 @echo Linking $@
1411 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1412 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1413 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1414 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1415 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1417 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1418 @echo Linking $@
1419 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1420 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1421 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1423 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1424 @echo Linking $@
1425 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1426 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1427 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1429 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1430 @echo Linking $@
1431 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1432 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1433 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1434 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1436 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1437 @echo Linking $@
1438 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1439 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1440 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1441 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1443 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@ @LIBNETAPI_TARGET@
1444 @echo Linking $@
1445 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1446 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1447 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1448 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1449 $(ZLIB_LIBS)
1451 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1452 @echo Linking $@
1453 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1454 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1456 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1457 @echo Linking $@
1458 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1459 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1461 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ)
1462 @echo Linking $@
1463 @$(CC) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1465 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ)
1466 @echo Linking $@
1467 @$(CC) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1469 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1470 @echo Linking $@
1471 @$(CC) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1472 $(LIBSMBCLIENT_OBJ1) $(LIBS) -lkeyutils $(KRB5LIBS) \
1473 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
1474 $(LIBTDB_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS)
1476 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1477 @echo Linking $@
1478 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1479 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1481 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1482 @echo Linking $@
1483 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1484 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1486 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1487 @echo Linking $@
1488 @$(CC) -DUSING_SMBCONTROL -o $@ \
1489 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1490 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1491 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1493 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1494 @echo Linking $@
1495 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1496 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1497 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1499 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1500 @echo Linking $@
1501 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1502 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1503 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1505 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1506 @echo Linking $@
1507 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1508 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1509 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1511 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1512 @echo Linking $@
1513 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1514 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1515 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1517 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1518 @echo Linking $@
1519 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1520 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1522 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1523 @echo Linking $@
1524 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1525 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1526 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1528 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1529 @echo Linking $@
1530 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1531 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1532 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1534 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1535 @echo Linking $@
1536 @$(CC) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1537 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1539 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1540 @echo Linking $@
1541 @$(CC) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1542 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1543 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1545 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1546 @echo Linking $@
1547 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1548 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1549 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1551 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1552 @echo Linking $@
1553 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1554 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1555 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1557 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1558 @echo Linking $@
1559 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1560 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1561 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1563 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1564 @echo Linking $@
1565 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1566 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1567 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1569 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1570 @echo Linking $@
1571 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1572 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1574 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1575 @echo Linking $@
1576 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1577 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1579 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1580 @echo Linking $@
1581 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1582 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1583 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1585 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1586 @echo Linking $@
1587 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1588 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1589 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1591 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1592 @echo Linking $@
1593 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1594 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1595 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1597 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1598 @echo Linking $@
1599 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1600 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1601 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1602 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1603 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1605 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1606 @echo Linking $@
1607 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1608 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1609 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1611 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1612 @echo Linking $@
1613 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1614 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1616 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1617 @echo Linking $@
1618 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1619 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1620 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1622 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1623 @echo Linking $@
1624 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1625 $(LIBS) $(LIBTALLOC_LIBS)
1627 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1628 @echo Linking $@
1629 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1630 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1631 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1633 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1634 @echo Linking $@
1635 @$(CC) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1636 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1637 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1639 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1640 @echo Linking $@
1641 @$(CC) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1642 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1643 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1645 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1646 @echo Linking $@
1647 @$(CC) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1648 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1649 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1651 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1652 @echo Linking $@
1653 @$(CC) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1654 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1655 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1657 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1658 @echo Linking $@
1659 @$(CC) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1660 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1661 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1663 bin/ldbrename: $(BINARY_PREREQS) $(LDBRENAME_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1664 @echo Linking $@
1665 @$(CC) $(FLAGS) -o $@ $(LDBRENAME_OBJ) $(DYNEXP) $(LDFLAGS) \
1666 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1667 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1669 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1670 @echo Linking $@
1671 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1674 #####################################################################
1676 # libraries
1678 #####################################################################
1680 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1683 #-------------------------------------------------------------------
1685 # libtalloc
1687 #-------------------------------------------------------------------
1690 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1691 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1693 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1694 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1695 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1696 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1697 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
1698 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1699 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1701 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1702 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1704 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1705 @echo Linking shared library $@
1706 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1708 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1709 @rm -f $@
1710 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1712 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1713 @echo Linking non-shared library $@
1714 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1716 libtalloc: $(LIBTALLOC)
1718 cleanlibtalloc::
1719 -rm -f \
1720 $(LIBTALLOC_SYMS) \
1721 $(LIBTALLOC_STATIC_TARGET) \
1722 $(LIBTALLOC_SHARED_TARGET) \
1723 $(LIBTALLOC_SHARED_TARGET_SONAME)
1725 installlibtalloc:: installdirs libtalloc
1726 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1727 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1728 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1729 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1730 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1731 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1733 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1734 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1735 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1737 uninstalllibtalloc::
1738 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1739 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1740 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1741 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1743 libs:: libtalloc
1744 installlibs:: @INSTALL_LIBTALLOC@
1745 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1746 cleanlibs:: cleanlibtalloc
1747 shlibs test_shlibs: @LIBTALLOC_SHARED@
1749 showlibtalloc:
1750 @echo ""
1751 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
1752 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
1753 @echo "LIBTALLOC_TARGET = @LIBTALLOC_TARGET@"
1754 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
1755 @echo ""
1756 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
1757 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
1758 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
1759 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
1760 @echo "LIBTALLOC = $(LIBTALLOC)"
1762 showlibs:: showlibtalloc
1764 #-------------------------------------------------------------------
1766 # libtdb
1768 #-------------------------------------------------------------------
1770 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
1771 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1773 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1774 LIBTDB_SOVER=@LIBTDB_SOVER@
1775 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1776 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1777 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
1778 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1779 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1781 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1782 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1784 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1785 @echo Linking shared library $@
1786 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1787 @SONAMEFLAG@`basename $@`
1789 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1790 @rm -f $@
1791 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1793 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1794 @echo Linking non-shared library $@
1795 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1797 libtdb: $(LIBTDB)
1799 cleanlibtdb::
1800 -rm -f \
1801 $(LIBTDB_SYMS) \
1802 $(LIBTDB_STATIC_TARGET) \
1803 $(LIBTDB_SHARED_TARGET) \
1804 $(LIBTDB_SHARED_TARGET_SONAME)
1807 installlibtdb:: installdirs libtdb
1808 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1809 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1810 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1811 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1812 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1813 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1815 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1816 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1817 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1819 uninstalllibtdb::
1820 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1821 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1822 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1823 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1825 libs:: libtdb
1826 installlibs:: @INSTALL_LIBTDB@
1827 uninstalllibs:: @UNINSTALL_LIBTDB@
1828 cleanlibs:: cleanlibtdb
1829 shlibs test_shlibs: @LIBTDB_SHARED@
1831 showlibtdb:
1832 @echo ""
1833 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
1834 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
1835 @echo "LIBTDB_TARGET = @LIBTDB_TARGET@"
1836 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
1837 @echo ""
1838 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
1839 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
1840 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
1841 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
1842 @echo "LIBTDB = $(LIBTDB)"
1844 showlibs:: showlibtdb
1846 #-------------------------------------------------------------------
1848 # libwbclient
1850 #-------------------------------------------------------------------
1852 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
1853 ../nsswitch/libwbclient/wbc_util.o \
1854 ../nsswitch/libwbclient/wbc_pwd.o \
1855 ../nsswitch/libwbclient/wbc_idmap.o \
1856 ../nsswitch/libwbclient/wbc_sid.o \
1857 ../nsswitch/libwbclient/wbc_guid.o \
1858 ../nsswitch/libwbclient/wbc_pam.o
1859 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1860 $(WBCOMMON_OBJ) \
1861 $(LIBREPLACE_OBJ)
1863 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1864 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1865 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1866 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1867 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1868 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1869 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
1871 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1872 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1874 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_TARGET@
1875 @echo Linking shared library $@
1876 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBTALLOC_LIBS) \
1877 @SONAMEFLAG@`basename $@`
1879 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1880 @rm -f $@
1881 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1883 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1884 @echo Linking non-shared library $@
1885 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1887 libwbclient: $(LIBWBCLIENT)
1889 cleanlibwbclient::
1890 -rm -f \
1891 $(LIBWBCLIENT_SYMS) \
1892 $(LIBWBCLIENT_STATIC_TARGET) \
1893 $(LIBWBCLIENT_SHARED_TARGET) \
1894 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1896 installlibwbclient:: installdirs libwbclient
1897 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1898 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1899 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1900 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1901 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1902 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1904 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1905 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1907 uninstalllibwbclient::
1908 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1909 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1910 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1912 libs:: libwbclient
1913 installlibs:: @INSTALL_LIBWBCLIENT@
1914 uninstalllibs:: uninstalllibwbclient
1915 cleanlibs:: cleanlibwbclient
1916 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1918 showlibwbclient:
1919 @echo ""
1920 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
1921 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
1922 @echo "LIBWBCLIENT_TARGET = @LIBWBCLIENT_TARGET@"
1923 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
1924 @echo ""
1925 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
1926 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
1927 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
1928 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
1929 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
1931 showlibs:: showlibwbclient
1934 #-------------------------------------------------------------------
1936 # libaddns
1938 #-------------------------------------------------------------------
1941 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1942 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1943 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1944 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1945 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
1946 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1947 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1949 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_TARGET@
1950 @echo Linking shared library $@
1951 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1952 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1953 @SONAMEFLAG@`basename $@`
1955 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1956 @rm -f $@
1957 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1959 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1960 @echo Linking non-shared library $@
1961 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1963 libaddns: $(LIBADDNS)
1965 cleanlibaddns::
1966 -rm -f \
1967 $(LIBADDNS_SHARED_TARGET) \
1968 $(LIBADDNS_SHARED_TARGET_SONAME) \
1969 $(LIBADDNS_STATIC_TARGET)
1971 installlibaddns:: installdirs libaddns
1972 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1973 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1974 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1975 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1976 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1977 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1979 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1981 uninstalllibaddns::
1982 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1983 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1984 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
1986 libs:: libaddns
1987 installlibs:: @INSTALL_LIBADDNS@
1988 uninstalllibs:: @UNINSTALL_LIBADDNS@
1989 cleanlibs:: cleanlibaddns
1990 shlibs test_shlibs: @LIBADDNS_SHARED@
1992 showlibaddns:
1993 @echo ""
1994 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
1995 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
1996 @echo "LIBADDNS_TARGET = @LIBADDNS_TARGET@"
1997 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
1998 @echo ""
1999 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2000 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2001 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2002 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2003 @echo "LIBADDNS = $(LIBADDNS)"
2005 showlibs:: showlibaddns
2007 #-------------------------------------------------------------------
2009 # libnetapi
2011 #-------------------------------------------------------------------
2013 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2014 lib/netapi/cm.o \
2015 librpc/gen_ndr/ndr_libnetapi.o \
2016 lib/netapi/libnetapi.o \
2017 lib/netapi/joindomain.o \
2018 lib/netapi/serverinfo.o \
2019 lib/netapi/getdc.o \
2020 lib/netapi/user.o \
2021 lib/netapi/group.o \
2022 lib/netapi/localgroup.o \
2023 lib/netapi/samr.o \
2024 lib/netapi/sid.o \
2025 lib/netapi/share.o \
2026 lib/netapi/file.o \
2027 lib/netapi/shutdown.o
2029 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2030 $(LIBSMBCONF_OBJ) \
2031 $(REG_SMBCONF_OBJ) \
2032 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2033 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2034 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
2035 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
2036 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2037 auth/token_util.o
2039 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2040 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2041 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2042 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2043 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
2044 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2045 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2047 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2048 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2050 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2051 @echo Linking shared library $@
2052 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2053 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2054 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2055 @SONAMEFLAG@`basename $@`
2057 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2058 @rm -f $@
2059 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2061 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2062 @echo Linking non-shared library $@
2063 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2065 libnetapi: $(LIBNETAPI)
2067 cleanlibnetapi::
2068 -rm -f \
2069 $(LIBNETAPI_SYMS) \
2070 $(LIBNETAPI_STATIC_TARGET) \
2071 $(LIBNETAPI_SHARED_TARGET) \
2072 $(LIBNETAPI_SHARED_TARGET_SONAME)
2074 installlibnetapi:: installdirs libnetapi
2075 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2076 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2077 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2078 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2079 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2080 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2082 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2083 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2084 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2086 uninstalllibnetapi::
2087 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2088 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2089 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2090 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2092 libs:: libnetapi
2093 installlibs:: @INSTALL_LIBNETAPI@
2094 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2095 cleanlibs:: cleanlibnetapi
2096 shlibs test_shlibs: @LIBNETAPI_SHARED@
2098 showlibnetapi:
2099 @echo ""
2100 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2101 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2102 @echo "LIBNETAPI_TARGET = @LIBNETAPI_TARGET@"
2103 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2104 @echo ""
2105 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2106 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2107 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2108 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2109 @echo "LIBNETAPI = $(LIBNETAPI)"
2111 showlibs:: showlibnetapi
2113 #-------------------------------------------------------------------
2115 # libsmbclient
2117 #-------------------------------------------------------------------
2119 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2120 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2121 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2122 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2123 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2124 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2125 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2127 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2128 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2130 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2131 @echo Linking shared library $@
2132 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
2133 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2134 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2135 @SONAMEFLAG@`basename $@`
2137 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2138 @rm -f $@
2139 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2141 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2142 @echo Linking non-shared library $@
2143 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2145 libsmbclient: $(LIBSMBCLIENT)
2147 cleanlibsmbclient::
2148 -rm -f \
2149 $(LIBSMBCLIENT_SHARED_TARGET) \
2150 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2151 $(LIBSMBCLIENT_STATIC_TARGET)
2153 installlibsmbclient:: installdirs libsmbclient
2154 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2155 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2156 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2157 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2158 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2159 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2161 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2162 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2163 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2165 installclientlib:: installlibsmbclient
2167 uninstalllibsmbclient::
2168 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2169 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2170 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2171 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2173 uninstallclientlib:: uninstalllibsmbclient
2175 libs:: libsmbclient
2176 installlibs:: @INSTALL_LIBSMBCLIENT@
2177 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2178 cleanlibs:: cleanlibsmbclient
2179 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2181 showlibsmbclient:
2182 @echo ""
2183 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2184 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2185 @echo "LIBSMBCLIENT_TARGET = @LIBSMBCLIENT_TARGET@"
2186 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2187 @echo ""
2188 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2189 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2190 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2191 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2192 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2194 showlibs:: showlibsmbclient
2196 #-------------------------------------------------------------------
2198 # libsmbsharemodes
2200 #-------------------------------------------------------------------
2202 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2204 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2206 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2207 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2208 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2209 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2210 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2211 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2212 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2214 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2215 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2217 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2218 @echo Linking shared library $@
2219 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2220 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2221 $(KRB5LIBS) $(LDAP_LIBS) \
2222 @SONAMEFLAG@`basename $@`
2224 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2225 @rm -f $@
2226 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2228 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2229 @echo Linking non-shared library $@
2230 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2232 libsmbsharemodes: $(LIBSMBSHAREMODES)
2234 cleanlibsmbsharemodes::
2235 -rm -f \
2236 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2237 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2238 $(LIBSMBSHAREMODES_STATIC_TARGET)
2240 installlibsmbsharemodes:: installdirs libsmbsharemodes
2241 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2242 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2243 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2244 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2245 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2246 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2248 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2249 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2250 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2252 uninstalllibsmbsharemodes::
2253 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2254 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2255 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2256 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2258 libs:: libsmbsharemodes
2259 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2260 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2261 cleanlibs:: cleanlibsmbsharemodes
2262 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2264 showlibsmbsharemodes:
2265 @echo ""
2266 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2267 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2268 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2269 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2270 @echo ""
2271 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2272 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2273 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2274 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2275 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2277 showlibs:: showlibsmbsharemodes
2279 #-------------------------------------------------------------------
2281 # libbigballofmud
2283 #-------------------------------------------------------------------
2285 # This is probably wrong for anything other than the GNU linker.
2286 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_TARGET@
2287 @echo Linking shared library $@
2288 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2289 $(LIBS) $(LIBTALLOC_LIBS) \
2290 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2291 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2292 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2294 # It would be nice to build a static bigballofmud too, but when I try
2295 # I get linker errors about dl_open and similar things. I'm not sure if
2296 # it can be fixed or if they just can't be called from a static
2297 # library.
2299 #####################################################################
2301 # shared modules
2303 #####################################################################
2305 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2306 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2307 -o $@ @SONAMEFLAG@`basename $@`
2309 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2310 @echo "Linking $@"
2311 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2313 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2314 @echo "Linking $@"
2315 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2317 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2318 @echo "Linking $@"
2319 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2321 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2322 @echo "Linking $@"
2323 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2325 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2326 @echo "Linking $@"
2327 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2329 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2330 @echo "Linking $@"
2331 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2333 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2334 @echo "Linking $@"
2335 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2337 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2338 @echo "Linking $@"
2339 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2341 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2342 @echo "Linking $@"
2343 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2345 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2346 @echo "Linking $@"
2347 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2349 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2350 @echo "Linking $@"
2351 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2353 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2354 @echo "Linking $@"
2355 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2357 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2358 @echo "Linking $@"
2359 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2361 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2362 @echo "Linking $@"
2363 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2365 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2366 @echo "Linking $@"
2367 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2368 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2369 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2370 $(ZLIB_LIBS)
2372 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2373 @echo "Linking $@"
2374 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2375 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2376 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2377 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2378 $(ZLIB_LIBS)
2380 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2381 @echo "Linking $@"
2382 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2383 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2384 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2386 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2387 @echo "Linking $@"
2388 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2389 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2390 $(ZLIB_LIBS) @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2392 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) @LIBWBCLIENT_TARGET@
2393 @echo "Linking $@"
2394 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2395 @SONAMEFLAG@`basename $@`
2397 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) @LIBTALLOC_TARGET@ @LIBWBCLIENT_TARGET@
2398 @echo "Linking shared library $@"
2399 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2400 $(PAM_WINBIND_EXTRA_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2402 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2403 @echo "Building plugin $@"
2404 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2406 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2407 @echo "Building plugin $@"
2408 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2410 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2411 @echo "Building plugin $@"
2412 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2414 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2415 @echo "Building plugin $@"
2416 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2418 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2419 @echo "Building plugin $@"
2420 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2422 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2423 @echo "Building plugin $@"
2424 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2426 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2427 @echo "Building plugin $@"
2428 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2430 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2431 @echo "Building plugin $@"
2432 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2434 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2435 @echo "Building plugin $@"
2436 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2438 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2439 @echo "Building plugin $@"
2440 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2442 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2443 @echo "Building plugin $@"
2444 @$(SHLD_MODULE) passdb/pdb_tdb.o
2446 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2447 @echo "Building plugin $@"
2448 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2450 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2451 @echo "Building plugin $@"
2452 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2454 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2455 @echo "Building plugin $@"
2456 @$(SHLD_MODULE) winbindd/idmap_rid.o
2458 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2459 @echo "Building plugin $@"
2460 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2462 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2463 @echo "Building plugin $@"
2464 @$(SHLD_MODULE) winbindd/idmap_ad.o
2466 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2467 @echo "Building plugin $@"
2468 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2470 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2471 @echo "Building plugin $@"
2472 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2474 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2475 @echo "Building plugin $@"
2476 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2478 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2479 @echo "Building plugin $@"
2480 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2482 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2483 @echo "Building plugin $@"
2484 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2486 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2487 @echo "Building plugin $@"
2488 @$(SHLD_MODULE) $(CP850_OBJ)
2490 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2491 @echo "Building plugin $@"
2492 @$(SHLD_MODULE) $(CP437_OBJ)
2494 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2495 @echo "Building plugin $@"
2496 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2498 # NOTE, there is no build rule for a dynamic default VFS module because
2499 # this one MUST MUST MUST be built statically.
2501 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2502 @echo "Building plugin $@"
2503 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2505 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2506 @echo "Building plugin $@"
2507 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2509 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2510 @echo "Building plugin $@"
2511 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2513 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2514 @echo "Building plugin $@"
2515 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2517 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2518 @echo "Building plugin $@"
2519 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2521 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2522 @echo "Building plugin $@"
2523 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2525 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2526 @echo "Building plugin $@"
2527 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2529 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2530 @echo "Building plugin $@"
2531 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2533 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2534 @echo "Building plugin $@"
2535 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2537 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2538 @echo "Building plugin $@"
2539 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2541 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2542 @echo "Building plugin $@"
2543 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2545 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2546 @echo "Building plugin $@"
2547 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2549 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2550 @echo "Building plugin $@"
2551 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2553 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2554 @echo "Building plugin $@"
2555 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2557 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2558 @echo "Building plugin $@"
2559 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2561 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2562 @echo "Building plugin $@"
2563 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2565 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2566 @echo "Building plugin $@"
2567 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2569 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2570 @echo "Building plugin $@"
2571 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2573 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2574 @echo "Building plugin $@"
2575 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2577 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2578 @echo "Building plugin $@"
2579 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2581 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2582 @echo "Building plugin $@"
2583 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2585 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2586 @echo "Building plugin $@"
2587 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2589 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2590 @echo "Building plugin $@"
2591 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2593 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2594 @echo "Building plugin $@"
2595 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2597 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2598 @echo "Building plugin $@"
2599 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2601 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2602 @echo "Building plugin $@"
2603 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2605 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2606 @echo "Building plugin $@"
2607 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2609 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2610 @echo "Building plugin $@"
2611 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2613 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2614 @echo "Building plugin $@"
2615 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2617 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2618 @echo "Building plugin $@"
2619 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2621 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2622 @echo "Building plugin $@"
2623 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2625 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2626 @echo "Building plugin $@"
2627 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2629 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2630 @echo "Building plugin $@"
2631 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2633 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2634 @echo "Building plugin $@"
2635 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2637 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2638 @echo "Building plugin $@"
2639 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2641 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2642 @echo "Building plugin $@"
2643 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2645 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2646 @echo "Building plugin $@"
2647 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2649 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2650 @echo "Building plugin $@"
2651 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2653 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2654 @echo "Building plugin $@"
2655 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2657 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2658 @echo "Building plugin $@"
2659 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2661 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2662 @echo "Building plugin $@"
2663 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2665 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2666 @echo "Building plugin $@"
2667 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2669 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2670 @echo "Building plugin $@"
2671 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2673 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2674 @echo "Building plugin $@"
2675 @$(SHLD_MODULE) libgpo/gpext/registry.o
2677 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2678 @echo "Building plugin $@"
2679 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2681 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2682 @echo "Building plugin $@"
2683 @$(SHLD_MODULE) libgpo/gpext/security.o
2685 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2686 @echo "Building plugin $@"
2687 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2689 #########################################################
2690 ## IdMap NSS plugins
2692 ## None here right now
2693 #########################################################
2695 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2696 @echo Linking $@
2697 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2698 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2699 $(LIBWBCLIENT_LIBS)
2701 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2702 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2703 @echo Linking $@
2704 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2705 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2706 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2707 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2709 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_TARGET@ @LIBWBCLIENT_TARGET@ @LIBTDB_TARGET@
2710 @echo "Linking shared library $@"
2711 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2712 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2713 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2715 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2716 @echo Linking $@
2717 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2718 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2720 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2721 @echo Linking $@
2722 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2723 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2725 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2726 @echo Linking $@
2727 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2728 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2730 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2731 @echo Linking $@
2732 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2733 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2735 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2736 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2737 torture/t_strcmp.o -L ./bin -lbigballofmud
2739 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2740 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2741 torture/t_strstr.o -L ./bin -lbigballofmud
2743 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2744 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2745 torture/t_strappend.o -L ./bin -lbigballofmud
2747 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2748 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2749 -L./bin -lbigballofmud
2751 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2752 @echo Linking $@
2753 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
2755 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2756 @echo "Linking $@"
2757 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2758 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
2759 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2761 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2762 @echo "Linking $@"
2763 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
2764 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2765 $(LDAP_LIBS) \
2766 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2768 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2769 @echo "Linking $@"
2770 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
2771 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2772 $(LDAP_LIBS) \
2773 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2775 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
2776 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
2778 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2779 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2780 @INSTALL_PAM_MODULES@ installlibs installmo
2782 install-everything:: install installmodules
2784 # DESTDIR is used here to prevent packagers wasting their time
2785 # duplicating the Makefile. Remove it and you will have the privelege
2786 # of package each samba release for muliple versions of multiple
2787 # distributions and operating systems, or at least supplying patches
2788 # to all the packaging files required for this, prior to committing
2789 # the removal of DESTDIR. Do not remove it even though you think it
2790 # is not used
2792 installdirs::
2793 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
2794 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
2795 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
2796 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
2798 installservers:: all installdirs
2799 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2801 installbin:: all installdirs
2802 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2804 installcifsmount:: @CIFSMOUNT_PROGS@
2805 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2806 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2808 installcifsupcall:: @CIFSUPCALL_PROGS@
2809 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(SBINDIR)
2810 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) @CIFSUPCALL_PROGS@
2812 # Some symlinks are required for the 'probing' of modules.
2813 # This mechanism should go at some point..
2814 installmodules:: modules installdirs
2815 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2816 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2817 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2818 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2819 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2820 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2821 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2822 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2823 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
2824 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2825 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2826 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2827 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2828 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2829 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2830 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2831 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2832 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
2833 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
2835 installscripts:: installdirs
2836 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2838 installdat:: installdirs
2839 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2841 installmsg:: installdirs
2842 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2844 installswat:: installdirs installmsg
2845 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2847 installpammodules:: $(PAM_MODULES)
2848 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2849 @for module in $(PAM_MODULES); do \
2850 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2851 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2852 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2853 done
2855 # revert to the previously installed version
2856 revert::
2857 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2858 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2860 installman:: installdirs
2861 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2863 installmo:: all installdirs
2864 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2866 .PHONY: showlayout
2868 showlayout::
2869 @echo "Samba will be installed into:"
2870 @echo " prefix: $(prefix)"
2871 @echo " bindir: $(BINDIR)"
2872 @echo " sbindir: $(SBINDIR)"
2873 @echo " libdir: $(LIBDIR)"
2874 @echo " modulesdir: $(MODULESDIR)"
2875 @echo " vardir: $(VARDIR)"
2876 @echo " mandir: $(MANDIR)"
2877 @echo " privatedir: $(PRIVATE_DIR)"
2878 @echo " configdir: $(CONFIGDIR)"
2879 @echo " lockdir: $(LOCKDIR)"
2880 @echo " statedir: $(STATEDIR)"
2881 @echo " cachedir: $(CACHEDIR)"
2882 @echo " piddir: $(PIDDIR)"
2883 @echo " swatdir: $(SWATDIR)"
2884 @echo " codepagedir: $(CODEPAGEDIR)"
2887 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2889 uninstallmo::
2890 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2892 uninstallman::
2893 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2895 uninstallservers::
2896 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2898 uninstallbin::
2899 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2901 uninstallcifsmount::
2902 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2904 uninstallcifsupcall::
2905 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2907 uninstallmodules::
2908 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2909 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2910 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2911 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2912 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2913 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2914 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2915 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
2917 uninstallscripts::
2918 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2920 uninstalldat::
2921 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2923 uninstallmsg::
2924 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2926 uninstallswat:: uninstallmsg
2927 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2929 uninstallpammodules::
2930 @for module in $(PAM_MODULES); do \
2931 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2932 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2933 done
2935 # Toplevel clean files
2936 TOPFILES=dynconfig.o localedir.o
2938 cleanlibs::
2939 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
2940 ../libcli/*.o ../libcli/*/*.o \
2941 ../librpc/*/*.o
2943 clean:: cleanlibs
2944 -rm -f include/build_env.h
2945 -rm -f smbd/build_options.c
2946 -rm -f $(PRECOMPILED_HEADER)
2947 -rm -f core */*~ *~ \
2948 */*.o */*/*.o */*/*/*.o \
2949 ../testsuite/*/*.o \
2950 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*.@SHLIBEXT@ \
2951 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2952 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2953 $(MODULES) $(TORTURE_PROGS) \
2954 $(EVERYTHING_PROGS) \
2955 bin/timelimit \
2956 .headers.stamp */src/*.o
2957 -rm -rf t_dir
2959 include/build_env.h: script/build_env.sh
2960 @echo Building include/build_env.h
2961 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2962 > $(builddir)/include/build_env.h
2964 proto::
2966 etags::
2967 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append
2969 ctags::
2970 ctags `find $(srcdir)/.. -name "*.[ch]" | grep -v include/proto\.h`
2972 realclean:: clean
2973 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2974 -rm -f script/installbin.sh script/uninstallbin.sh
2976 distclean:: realclean
2977 -rm -f smbadduser
2978 -rm -f include/config.h Makefile
2979 -rm -f config.status config.cache so_locations
2980 -rm -rf .deps TAGS
2982 realdistclean:: distclean
2983 -rm -f include/config.h.in
2984 -rm -f include/version.h
2985 -rm -f configure
2987 # this target is really just for my use. It only works on a limited
2988 # range of machines and is used to produce a list of potentially
2989 # dead (ie. unused) functions in the code. (tridge)
2990 finddead::
2991 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2992 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2993 comm -13 nmused.txt nmfns.txt
2996 # when configure.in is updated, reconfigure
2997 $(srcdir)/configure: $(srcdir)/configure.in
2998 @echo "WARNING: you need to rerun ./autogen.sh"
3000 config.status: $(srcdir)/configure
3001 @echo "WARNING: you need to run ./configure"
3003 Makefile: $(srcdir)/Makefile.in config.status
3004 @echo "WARNING: you need to run ./config.status"
3006 ######################################################################
3007 # Samba Testing Framework
3009 # Check shared libs for unresolved symbols
3010 test_shlibs:
3011 @echo "Testing $? "
3012 @$(LIB_PATH_VAR)=./bin && \
3013 export $(LIB_PATH_VAR) && \
3014 for module in $?; do \
3015 ./script/tests/dlopen.sh $${module} \
3016 || exit 1; \
3017 done
3019 # Check for NSS module problems.
3020 test_nss_modules:: nss_modules
3021 @echo "Testing $(NSS_MODULES) "
3022 @$(LIB_PATH_VAR)=./bin && \
3023 export $(LIB_PATH_VAR) && \
3024 for module in $(NSS_MODULES); do \
3025 ./script/tests/dlopen.sh $${module} \
3026 || exit 1; \
3027 done
3029 # Check for PAM module problems. Specifically, check that every module we
3030 # built can actually be loaded by a minimal PAM-aware application.
3031 test_pam_modules:: pam_modules
3032 @echo "Testing $(PAM_MODULES) "
3033 @$(LIB_PATH_VAR)=./bin && \
3034 export $(LIB_PATH_VAR) && \
3035 for module in $(PAM_MODULES); do \
3036 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
3037 || exit 1; \
3038 done
3042 ## Targets for 'make test'
3045 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3047 test:: all torture timelimit
3048 @echo Running Test suite
3049 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3051 valgrindtest:: all torture timelimit
3052 @echo Running Test suite with valgrind
3053 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3054 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3055 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3056 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3057 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
3058 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3060 SELFTEST_FORMAT = plain
3061 selftestdir = ../selftest
3063 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin"
3065 selftest:: all torture timelimit
3066 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3067 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3068 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3069 $(PERL) $(selftestdir)/selftest.pl \
3070 --prefix=${selftest_prefix} --target=samba3 \
3071 --testlist="$(srcdir)/selftest/tests.sh|" \
3072 --expected-failures=$(srcdir)/selftest/knownfail \
3073 --exclude=$(srcdir)/selftest/skip \
3074 --socket-wrapper $(TESTS) --format=$(SELFTEST_FORMAT) --immediate
3076 selftest-%:
3077 $(MAKE) selftest TESTS=$*
3079 # Check for Winbind struct 32/64bit padding
3080 test_wbpad:
3081 @echo "Testing winbind request/response structure for 32/64bit padding"
3082 @./script/tests/wb_pad.sh || exit 1;
3085 ## Examples:
3088 libsmbclient_examples: libsmbclient
3089 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3091 clean_libsmbclient_examples:
3092 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3094 libnetapi_examples: libnetapi
3095 $(MAKE) -C lib/netapi/examples
3097 clean_libnetapi_examples:
3098 $(MAKE) -C lib/netapi/examples clean