WHATSNEW: Prepare release notes for Samba 3.4.7.
[Samba.git] / source3 / Makefile.in
blobf1f847167152e618a34fa3bb173026a5b5f403f9
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 $(LIBSAMBA_OBJ) \
477 $(LIBNMB_OBJ) \
478 $(LIBNBT_OBJ) \
479 $(CLDAP_OBJ) \
480 $(DRSUAPI_OBJ)
482 RPC_CLIENT_OBJ1 = rpc_client/cli_netlogon.o
484 LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
485 $(RPC_CLIENT_OBJ1) rpc_client/cli_reg.o $(RPC_CLIENT_OBJ) \
486 rpc_client/cli_spoolss.o \
487 rpc_client/init_spoolss.o \
488 rpc_client/init_samr.o \
489 librpc/rpc/dcerpc.o \
490 ../librpc/rpc/binding.o
492 LIBMSRPC_GEN_OBJ = ../librpc/gen_ndr/cli_lsa.o \
493 ../librpc/gen_ndr/cli_dfs.o \
494 ../librpc/gen_ndr/cli_echo.o \
495 ../librpc/gen_ndr/cli_srvsvc.o \
496 ../librpc/gen_ndr/cli_svcctl.o \
497 ../librpc/gen_ndr/cli_winreg.o \
498 ../librpc/gen_ndr/cli_initshutdown.o \
499 ../librpc/gen_ndr/cli_eventlog.o \
500 ../librpc/gen_ndr/cli_wkssvc.o \
501 ../librpc/gen_ndr/cli_netlogon.o \
502 ../librpc/gen_ndr/cli_samr.o \
503 ../librpc/gen_ndr/cli_dssetup.o \
504 ../librpc/gen_ndr/cli_ntsvcs.o \
505 ../librpc/gen_ndr/cli_epmapper.o \
506 ../librpc/gen_ndr/cli_drsuapi.o \
507 ../librpc/gen_ndr/cli_spoolss.o \
508 $(LIBNDR_GEN_OBJ) \
509 $(RPCCLIENT_NDR_OBJ)
512 # registry-related objects
514 UTIL_REG_OBJ = lib/util_reg.o
515 UTIL_REG_API_OBJ = lib/util_reg_api.o
517 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
518 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
519 REG_INIT_FULL_OBJ = registry/reg_init_full.o
521 REGFIO_OBJ = registry/regfio.o
523 REGOBJS_OBJ = registry/reg_objects.o
525 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
527 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
529 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
530 registry/reg_backend_shares.o \
531 registry/reg_backend_netlogon_params.o \
532 registry/reg_backend_prod_options.o \
533 registry/reg_backend_tcpip_params.o \
534 registry/reg_backend_hkpt_params.o \
535 registry/reg_backend_current_version.o \
536 registry/reg_backend_perflib.o
538 REG_BASE_OBJ = registry/reg_api.o \
539 registry/reg_dispatcher.o \
540 registry/reg_cachehook.o \
541 $(REGFIO_OBJ) \
542 $(REGOBJS_OBJ) \
543 registry/reg_util.o \
544 $(UTIL_REG_API_OBJ) \
545 lib/util_nttoken.o \
546 $(REG_BACKENDS_BASE_OBJ) \
547 $(REG_INIT_BASIC_OBJ)
549 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
550 $(REG_BACKENDS_SMBCONF_OBJ) \
551 $(REG_INIT_SMBCONF_OBJ)
553 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
554 $(REG_BACKENDS_EXTRA_OBJ) \
555 $(REG_INIT_FULL_OBJ) \
556 registry/reg_eventlog.o \
557 registry/reg_perfcount.o \
558 registry/reg_util_legacy.o
560 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
562 RPC_LSA_OBJ = rpc_server/srv_lsa_nt.o ../librpc/gen_ndr/srv_lsa.o
564 RPC_NETLOG_OBJ = rpc_server/srv_netlog_nt.o \
565 ../librpc/gen_ndr/srv_netlogon.o
567 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
568 rpc_server/srv_samr_util.o \
569 ../librpc/gen_ndr/srv_samr.o
571 RPC_INITSHUTDOWN_OBJ = ../librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
573 RPC_REG_OBJ = rpc_server/srv_winreg_nt.o \
574 ../librpc/gen_ndr/srv_winreg.o
576 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o ../librpc/gen_ndr/srv_dssetup.o
578 RPC_SVC_OBJ = rpc_server/srv_srvsvc_nt.o \
579 ../librpc/gen_ndr/srv_srvsvc.o
581 RPC_WKS_OBJ = ../librpc/gen_ndr/srv_wkssvc.o rpc_server/srv_wkssvc_nt.o
583 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl_nt.o \
584 ../librpc/gen_ndr/srv_svcctl.o \
585 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
586 services/svc_netlogon.o services/svc_winreg.o \
587 services/svc_wins.o
589 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs_nt.o \
590 ../librpc/gen_ndr/srv_ntsvcs.o
592 RPC_DFS_OBJ = ../librpc/gen_ndr/srv_dfs.o rpc_server/srv_dfs_nt.o
594 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss_nt.o \
595 ../librpc/gen_ndr/srv_spoolss.o
597 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog_nt.o \
598 $(LIB_EVENTLOG_OBJ) ../librpc/gen_ndr/srv_eventlog.o
600 RPC_PIPE_OBJ = rpc_server/srv_pipe_hnd.o \
601 rpc_server/srv_pipe.o rpc_server/srv_lsa_hnd.o
603 RPC_ECHO_OBJ = rpc_server/srv_echo_nt.o ../librpc/gen_ndr/srv_echo.o
605 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ)
607 RPC_PARSE_OBJ = $(RPC_PARSE_OBJ2)
609 RPC_CLIENT_OBJ = rpc_client/cli_pipe.o rpc_client/rpc_transport_np.o \
610 rpc_client/rpc_transport_sock.o rpc_client/rpc_transport_smbd.o
612 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
614 PRIVILEGES_BASIC_OBJ = lib/privileges_basic.o
616 PRIVILEGES_OBJ = lib/privileges.o
618 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
620 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
621 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
622 passdb/util_unixsids.o passdb/lookup_sid.o \
623 passdb/login_cache.o @PDB_STATIC@ \
624 lib/account_pol.o $(PRIVILEGES_OBJ) \
625 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ)
627 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
628 CP850_OBJ = modules/CP850.o
629 CP437_OBJ = modules/CP437.o
630 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
632 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o groupdb/mapping_ldb.o
634 PROFILE_OBJ = profile/profile.o
635 PROFILES_OBJ = utils/profiles.o \
636 $(LIBSAMBA_OBJ) \
637 $(PARAM_OBJ) \
638 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
639 $(POPT_LIB_OBJ)
641 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
642 smbd/oplock_onefs.o
644 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o
646 VFS_DEFAULT_OBJ = modules/vfs_default.o
647 VFS_AUDIT_OBJ = modules/vfs_audit.o
648 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
649 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
650 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
651 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
652 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
653 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
654 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
655 VFS_CAP_OBJ = modules/vfs_cap.o
656 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
657 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
658 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
659 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
660 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
661 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
662 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
663 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
664 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
665 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
666 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
667 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
668 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
669 VFS_CATIA_OBJ = modules/vfs_catia.o
670 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
671 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
672 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
673 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
674 VFS_COMMIT_OBJ = modules/vfs_commit.o
675 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
676 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
677 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
678 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
679 VFS_FILEID_OBJ = modules/vfs_fileid.o
680 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
681 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
682 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
683 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
684 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
685 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
686 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
687 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
688 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
689 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
690 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
691 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
692 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
694 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
696 SLCACHE_OBJ = libsmb/samlogon_cache.o
698 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
700 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
701 AUTH_DOMAIN_OBJ = auth/auth_domain.o
702 AUTH_SAM_OBJ = auth/auth_sam.o
703 AUTH_SERVER_OBJ = auth/auth_server.o
704 AUTH_UNIX_OBJ = auth/auth_unix.o
705 AUTH_WINBIND_OBJ = auth/auth_winbind.o
706 AUTH_WBC_OBJ = auth/auth_wbc.o
707 AUTH_SCRIPT_OBJ = auth/auth_script.o
708 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
710 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
711 auth/auth_compat.o auth/auth_ntlmssp.o \
712 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
714 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
716 SMBD_OBJ_MAIN = smbd/server.o
718 BUILDOPT_OBJ = smbd/build_options.o
720 SMBD_OBJ_SRV = smbd/files.o smbd/chgpasswd.o smbd/connection.o \
721 smbd/utmp.o smbd/session.o smbd/map_username.o \
722 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
723 smbd/share_access.o smbd/fileio.o \
724 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
725 smbd/message.o smbd/nttrans.o smbd/pipes.o \
726 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
727 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
728 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
729 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
730 smbd/posix_acls.o lib/sysacls.o \
731 smbd/process.o smbd/service.o smbd/error.o \
732 printing/printfsp.o lib/sysquotas.o lib/sysquotas_linux.o \
733 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
734 smbd/change_trust_pw.o smbd/fake_file.o \
735 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
736 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
737 smbd/dmapi.o \
738 smbd/file_access.o \
739 smbd/dnsregister.o smbd/globals.o \
740 $(MANGLE_OBJ) @VFS_STATIC@
742 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
743 $(RPC_SERVER_OBJ) $(RPC_PARSE_OBJ) \
744 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
745 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
746 $(NOTIFY_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
747 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
748 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) \
749 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
750 $(SMBLDAP_OBJ) $(LDB_OBJ) $(LIBNET_OBJ) \
751 $(LIBSMBCONF_OBJ) \
752 $(PRIVILEGES_BASIC_OBJ)
754 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
755 printing/print_cups.o printing/print_generic.o \
756 printing/lpq_parse.o printing/load.o \
757 printing/print_iprint.o
759 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
760 PRINTBACKEND_OBJ = printing/printing.o printing/nt_printing.o $(PRINTBASE_OBJ)
762 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
764 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
765 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
766 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
767 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
768 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
769 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
770 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
771 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
772 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
773 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
774 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
775 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o smbd/connection.o
777 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
778 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
779 $(LIBNDR_GEN_OBJ0)
781 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
782 web/swat.o web/neg_lang.o
784 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
785 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
786 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
787 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
788 $(PASSCHANGE_OBJ) $(LDB_OBJ)
790 STATUS_OBJ = utils/status.o utils/status_profile.o \
791 $(LOCKING_OBJ) $(PARAM_OBJ) \
792 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
793 $(LIBSAMBA_OBJ)
795 SMBCONTROL_OBJ = utils/smbcontrol.o $(LOCKING_OBJ) $(PARAM_OBJ) \
796 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
797 $(LIBSAMBA_OBJ) \
798 $(PRINTBASE_OBJ)
800 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
801 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
802 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
803 $(RPC_CLIENT_OBJ) ../librpc/rpc/binding.o $(RPC_PARSE_OBJ2) \
804 $(RPC_CLIENT_OBJ1) \
805 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
806 $(LIBMSRPC_GEN_OBJ)
808 TESTPARM_OBJ = utils/testparm.o \
809 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
810 $(LIBSAMBA_OBJ)
812 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
813 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
814 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
816 PASSWD_UTIL_OBJ = utils/passwd_util.o
818 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
819 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
820 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
821 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(RPC_PARSE_OBJ) \
822 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) $(LDB_OBJ)
824 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
825 $(LIBSAMBA_OBJ) \
826 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
827 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o \
828 $(LDB_OBJ)
830 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
832 DISPLAY_SEC_OBJ= lib/display_sec.o
834 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
835 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
836 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
837 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
838 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
839 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
840 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
841 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
842 $(DISPLAY_SEC_OBJ)
844 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
845 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
846 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
847 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
848 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
849 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ)
851 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o localedir.o $(WBCOMMON_OBJ) \
852 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
854 LIBSMBCLIENT_OBJ0 = \
855 libsmb/libsmb_cache.o \
856 libsmb/libsmb_compat.o \
857 libsmb/libsmb_context.o \
858 libsmb/libsmb_dir.o \
859 libsmb/libsmb_file.o \
860 libsmb/libsmb_misc.o \
861 libsmb/libsmb_path.o \
862 libsmb/libsmb_printjob.o \
863 libsmb/libsmb_server.o \
864 libsmb/libsmb_stat.o \
865 libsmb/libsmb_xattr.o \
866 libsmb/libsmb_setget.o
868 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
869 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
870 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
871 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
872 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
874 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
876 # This shared library is intended for linking with unit test programs
877 # to test Samba internals. It's called libbigballofmud.so to
878 # discourage casual usage.
880 LIBBIGBALLOFMUD_MAJOR = 0
882 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
883 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) $(PASSDB_OBJ) \
884 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
886 CLIENT_OBJ1 = client/client.o client/clitar.o $(RPC_CLIENT_OBJ) \
887 ../librpc/rpc/binding.o \
888 client/dnsbrowse.o \
889 $(RPC_CLIENT_OBJ1) \
890 $(RPC_PARSE_OBJ2)
892 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
893 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
894 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
895 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
896 $(DISPLAY_SEC_OBJ)
898 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
899 ../lib/smbconf/smbconf_util.o \
900 ../lib/smbconf/smbconf_txt.o \
901 lib/smbconf/smbconf_reg.o \
902 lib/smbconf/smbconf_init.o
904 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
906 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
907 $(LIB_NONSMBD_OBJ) \
908 $(PARAM_OBJ) \
909 $(LIBSMB_ERR_OBJ) \
910 $(POPT_LIB_OBJ)
912 LIBNET_OBJ = libnet/libnet_join.o \
913 libnet/libnet_keytab.o \
914 libnet/libnet_samsync.o \
915 libnet/libnet_samsync_ldif.o \
916 libnet/libnet_samsync_passdb.o \
917 libnet/libnet_samsync_display.o \
918 libnet/libnet_samsync_keytab.o \
919 libnet/libnet_dssync.o \
920 libnet/libnet_dssync_keytab.o \
921 librpc/gen_ndr/ndr_libnet_join.o
923 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
924 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
925 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
926 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
927 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
928 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
929 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
930 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
931 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
932 utils/net_conf.o utils/net_join.o utils/net_user.o \
933 utils/net_group.o utils/net_file.o utils/net_registry.o \
934 auth/token_util.o utils/net_dom.o utils/net_share.o \
935 utils/net_eventlog.o
937 # these are not processed by make proto
938 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
940 NET_OBJ = $(NET_OBJ1) \
941 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
942 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
943 $(RPC_PARSE_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
944 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
945 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
946 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(POPT_LIB_OBJ) \
947 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
948 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
949 $(LDB_OBJ) $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
950 $(REG_SMBCONF_OBJ) $(LIBNET_OBJ) \
951 $(LIBSMBCONF_OBJ) \
952 $(PRIVILEGES_BASIC_OBJ) \
953 $(LIB_EVENTLOG_OBJ)
955 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
956 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
957 $(LIBNDR_GEN_OBJ0)
959 CIFS_MOUNT_OBJ = client/mount.cifs.o client/mtab.o
961 CIFS_UMOUNT_OBJ = client/umount.cifs.o client/mtab.o
963 CIFS_UPCALL_OBJ = client/cifs.upcall.o
965 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
966 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
968 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
969 torture/denytest.o torture/mangle_test.o
971 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) \
972 $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
973 lib/wb_reqtrans.o lib/wbclient.o \
974 $(LIBNDR_GEN_OBJ0)
976 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
977 $(LIB_NONSMBD_OBJ) \
978 $(LIBNDR_GEN_OBJ0)
980 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
981 $(LIB_NONSMBD_OBJ) \
982 $(LIBNDR_GEN_OBJ0)
984 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
985 $(LIBSMB_OBJ) $(LDB_OBJ) $(LIB_NONSMBD_OBJ) \
986 $(LIBNDR_GEN_OBJ0)
988 NSSTEST_OBJ = torture/nsstest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) $(KRBCLIENT_OBJ) \
989 $(LIB_NONSMBD_OBJ) \
990 $(LIBNDR_GEN_OBJ0)
992 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
993 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
994 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) $(LDB_OBJ) \
995 $(LIBNDR_GEN_OBJ0)
997 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
999 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1001 LOG2PCAP_OBJ = utils/log2pcaphex.o
1003 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
1004 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1005 $(LIBNDR_GEN_OBJ0)
1007 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1008 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
1009 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1010 $(POPT_LIB_OBJ) $(DCUTIL_OBJ) $(LIBADS_OBJ) $(SMBLDAP_OBJ) $(LDB_OBJ)
1012 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1013 $(PARAM_OBJ) \
1014 $(LIB_NONSMBD_OBJ) $(RPC_PARSE_OBJ) \
1015 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1016 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ)
1018 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1020 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1021 $(LIBSAMBA_OBJ) \
1022 registry/reg_eventlog.o $(LIB_EVENTLOG_OBJ) \
1023 ../librpc/gen_ndr/ndr_eventlog.o \
1024 ../librpc/gen_ndr/ndr_lsa.o
1026 SHARESEC_OBJ0 = utils/sharesec.o
1027 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1028 $(LIBSAMBA_OBJ) \
1029 $(POPT_LIB_OBJ)
1031 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1032 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSAMBA_OBJ)
1034 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1035 @libreplacedir@/test/getifaddrs.o \
1036 @libreplacedir@/test/os2_delete.o \
1037 @libreplacedir@/test/strptime.o \
1038 @libreplacedir@/test/main.o \
1039 $(LIBREPLACE_OBJ)
1041 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1043 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(LDB_OBJ) \
1044 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1045 $(LIBNDR_GEN_OBJ0)
1047 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1048 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) $(NSSWINS_OBJ) $(KRBCLIENT_OBJ) \
1049 $(LIBNDR_GEN_OBJ0) $(LDB_OBJ)
1051 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1052 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
1053 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1054 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1055 $(LDB_OBJ)
1057 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o @IDMAP_STATIC@
1059 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1061 IDMAP_HASH_OBJ = \
1062 winbindd/idmap_hash/idmap_hash.o \
1063 winbindd/idmap_hash/mapfile.o
1065 IDMAP_ADEX_OBJ = \
1066 winbindd/idmap_adex/idmap_adex.o \
1067 winbindd/idmap_adex/cell_util.o \
1068 winbindd/idmap_adex/likewise_cell.o \
1069 winbindd/idmap_adex/provider_unified.o \
1070 winbindd/idmap_adex/gc_util.o \
1071 winbindd/idmap_adex/domain_util.o
1073 WINBINDD_OBJ1 = \
1074 winbindd/winbindd.o \
1075 winbindd/winbindd_user.o \
1076 winbindd/winbindd_group.o \
1077 winbindd/winbindd_util.o \
1078 winbindd/winbindd_cache.o \
1079 winbindd/winbindd_pam.o \
1080 winbindd/winbindd_sid.o \
1081 winbindd/winbindd_misc.o \
1082 winbindd/winbindd_cm.o \
1083 winbindd/winbindd_wins.o \
1084 winbindd/winbindd_rpc.o \
1085 winbindd/winbindd_reconnect.o \
1086 winbindd/winbindd_ads.o \
1087 winbindd/winbindd_passdb.o \
1088 winbindd/winbindd_dual.o \
1089 winbindd/winbindd_async.o \
1090 winbindd/winbindd_creds.o \
1091 winbindd/winbindd_cred_cache.o \
1092 winbindd/winbindd_ccache_access.o \
1093 winbindd/winbindd_domain.o \
1094 winbindd/winbindd_idmap.o \
1095 winbindd/winbindd_locator.o \
1096 winbindd/winbindd_ndr.o \
1097 auth/token_util.o \
1098 smbd/connection.o
1100 WINBINDD_OBJ = \
1101 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1102 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1103 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1104 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1105 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1106 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1107 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1108 $(LIBADS_SERVER_OBJ) $(LDB_OBJ) \
1109 $(TDB_VALIDATE_OBJ)
1111 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1112 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1113 lib/winbind_util.o $(WBCOMMON_OBJ)
1115 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1117 LDB_COMMON_OBJ=lib/ldb/common/ldb.o lib/ldb/common/ldb_ldif.o \
1118 lib/ldb/common/ldb_parse.o lib/ldb/common/ldb_msg.o lib/ldb/common/ldb_utf8.o \
1119 lib/ldb/common/ldb_debug.o lib/ldb/common/ldb_modules.o \
1120 lib/ldb/common/ldb_dn.o lib/ldb/common/ldb_match.o lib/ldb/common/ldb_attributes.o \
1121 lib/ldb/common/attrib_handlers.o lib/ldb/common/ldb_controls.o lib/ldb/common/qsort.o
1123 LDB_TDB_OBJ=lib/ldb/ldb_tdb/ldb_tdb.o \
1124 lib/ldb/ldb_tdb/ldb_pack.o lib/ldb/ldb_tdb/ldb_search.o lib/ldb/ldb_tdb/ldb_index.o \
1125 lib/ldb/ldb_tdb/ldb_cache.o lib/ldb/ldb_tdb/ldb_tdb_wrap.o
1127 LDB_MODULES_OBJ=lib/ldb/modules/operational.o lib/ldb/modules/rdn_name.o \
1128 lib/ldb/modules/objectclass.o \
1129 lib/ldb/modules/paged_results.o lib/ldb/modules/sort.o lib/ldb/modules/asq.o
1131 # enabled in configure.in
1132 LDB_LDAP_OBJ=@LDBLDAP@
1134 LDB_OBJ = ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1136 LDB_CMDLINE_OBJ = $(PARAM_OBJ) \
1137 $(POPT_LIB_OBJ) $(LIB_OBJ) $(LIB_DUMMY_OBJ) $(LIBSMB_ERR_OBJ0) \
1138 $(RPC_PARSE_OBJ1) $(SECRETS_OBJ) \
1139 $(LDB_OBJ) lib/ldb/tools/cmdline.o
1142 LDBEDIT_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbedit.o
1143 LDBSEARCH_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbsearch.o
1144 LDBADD_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbadd.o
1145 LDBDEL_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbdel.o
1146 LDBMODIFY_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbmodify.o
1147 LDBRENAME_OBJ = $(LDB_CMDLINE_OBJ) lib/ldb/tools/ldbrename.o
1149 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1150 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1152 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1153 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1155 INIPARSER_OBJ = iniparser_build/iniparser.o iniparser_build/dictionary.o \
1156 iniparser_build/strlib.o
1158 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1159 $(SOCKET_WRAPPER_OBJ)
1161 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1162 $(SOCKET_WRAPPER_OBJ)
1164 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1165 $(SOCKET_WRAPPER_OBJ)
1167 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1168 $(SOCKET_WRAPPER_OBJ)
1171 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1173 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1174 ../lib/util/asn1.o libsmb/spnego.o libsmb/clikrb5.o libads/kerberos.o \
1175 $(LIBADS_SERVER_OBJ) \
1176 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1177 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1178 $(LDB_OBJ) $(WBCOMMON_OBJ) \
1179 $(LIBNDR_GEN_OBJ0) $(LIBNDR_GEN_OBJ1)
1182 VLP_OBJ1 = printing/tests/vlp.o $(RPC_CLIENT_OBJ1) $(RPC_PARSE_OBJ2) $(RPC_CLIENT_OBJ) ../librpc/rpc/binding.o
1184 VLP_OBJ = $(VLP_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1185 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1186 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1187 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1188 $(DISPLAY_SEC_OBJ)
1190 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1191 $(LIBSMB_OBJ) \
1192 $(PARAM_OBJ) \
1193 $(PASSDB_OBJ) \
1194 $(SMBLDAP_OBJ) $(LDB_OBJ) $(GROUPDB_OBJ) \
1195 $(LIB_NONSMBD_OBJ) \
1196 $(KRBCLIENT_OBJ) \
1197 $(RPC_PARSE_OBJ2) \
1198 $(RPC_CLIENT_OBJ1) \
1199 rpc_client/cli_pipe.o \
1200 ../librpc/rpc/binding.o \
1201 $(LIBMSRPC_GEN_OBJ)
1203 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1204 $(PARAM_OBJ) \
1205 $(LIB_NONSMBD_OBJ) \
1206 $(LIBSAMBA_OBJ)
1208 ######################################################################
1209 # now the rules...
1210 ######################################################################
1211 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \
1212 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) @CIFSUPCALL_PROGS@ \
1213 $(EXTRA_ALL_TARGETS)
1215 basics::
1217 nss_modules:: $(NSS_MODULES)
1219 pam_modules:: $(PAM_MODULES)
1221 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1223 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1225 gpext_modules:: $(GPEXT_MODULES)
1227 torture:: SHOWFLAGS basics $(TORTURE_PROGS)
1229 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1231 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1233 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1235 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1237 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1239 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1241 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1243 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1245 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1247 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1249 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1251 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
1253 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1255 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1257 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1259 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1260 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1261 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1263 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1265 modules:: SHOWFLAGS $(MODULES)
1267 #####################################################################
1268 ## Perl IDL Compiler
1269 samba3-idl::
1270 @PIDL_OUTPUTDIR="../librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1271 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1272 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1273 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh \
1274 librpc/idl/messaging.idl librpc/idl/libnetapi.idl librpc/idl/notify.idl
1276 #####################################################################
1279 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter @TALLOCTORT@ replacetort smbconftort modules torture \
1280 $(EVERYTHING_PROGS)
1282 .SUFFIXES:
1283 .SUFFIXES: .c .o .lo
1285 .PHONY: showflags SHOWFLAGS
1287 showflags: SHOWFLAGS
1289 SHOWFLAGS::
1290 @echo "Using CFLAGS = $(CFLAGS)"
1291 @echo " PICFLAG = $(PICFLAG)"
1292 @echo " LIBS = $(LIBS)"
1293 @echo " LDFLAGS = $(LDFLAGS)"
1294 @echo " DYNEXP = $(DYNEXP)"
1295 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1296 @echo " SHLIBEXT = @SHLIBEXT@"
1297 @echo " SONAMEFLAG = @SONAMEFLAG@"
1299 # "showcflags" target for debuggin how CFLAGS are composed:
1301 .PHONY: showcflags SHOWCFLAGS
1303 showcflags: SHOWCFLAGS
1305 SHOWCFLAGS::
1306 @echo "CFLAGS = $(CFLAGS)"
1307 @echo "FLAGS = $(FLAGS)"
1308 @echo ""
1309 @echo "FLAGS1 = @FLAGS1@"
1310 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1311 @echo "CPPFLAGS = $(CPPFLAGS)"
1312 @echo "ISA = $(ISA)"
1314 MAKEDIR = || exec false; \
1315 if test -d "$$dir"; then :; else \
1316 echo mkdir "$$dir"; \
1317 mkdir -p "$$dir" >/dev/null 2>&1 || \
1318 test -d "$$dir" || \
1319 mkdir "$$dir" || \
1320 exec false; fi || exec false
1322 # Run a static checker.
1323 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1324 # Compile a source file.
1325 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1326 # Compile a source file with the installation paths defined.
1327 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1329 COMPILE = $(COMPILE_CC)
1331 .c.o:
1332 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1333 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1334 @if test -n "$(CC_CHECKER)"; then \
1335 echo "Checking $*.c with '$(CC_CHECKER)'";\
1336 $(CHECK_CC); \
1338 @echo Compiling $*.c
1339 @$(COMPILE) && exit 0;\
1340 echo "The following command failed:" 1>&2;\
1341 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1342 $(COMPILE_CC) >/dev/null 2>&1
1343 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1345 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1347 # this adds support for precompiled headers. To use it, install a snapshot
1348 # of gcc-3.4 and run 'make pch' before you do the main build.
1349 pch::
1350 rm -f $(PRECOMPILED_HEADER)
1351 $(MAKE) $(PRECOMPILED_HEADER)
1353 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1354 $(COMPILE)
1356 BINARY_PREREQS = bin/.dummy
1358 # These dependencies are only approximately correct: we want to make
1359 # sure Samba's paths are updated if ./configure is re-run. Really it
1360 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1361 # but since we also require "make install prefix=/opt/samba" *not* to
1362 # rebuild it's a bit hard.
1364 dynconfig.o: dynconfig.c Makefile
1365 @echo Compiling $*.c
1366 @$(COMPILE_CC_PATH) && exit 0;\
1367 echo "The following command failed:" 1>&2;\
1368 echo "$(COMPILE_CC_PATH)" 1>&2;\
1369 $(COMPILE_CC_PATH) >/dev/null 2>&1
1371 localedir.o: localedir.c Makefile
1372 @echo Compiling $*.c
1373 @$(COMPILE_CC_PATH) && exit 0;\
1374 echo "The following command failed:" 1>&2;\
1375 echo "$(COMPILE_CC_PATH)" 1>&2;\
1376 $(COMPILE_CC_PATH) >/dev/null 2>&1
1378 lib/pidfile.o: lib/pidfile.c
1379 @echo Compiling $*.c
1380 @$(COMPILE_CC_PATH) && exit 0;\
1381 echo "The following command failed:" 1>&2;\
1382 echo "$(COMPILE_CC_PATH)" 1>&2;\
1383 $(COMPILE_CC_PATH) >/dev/null 2>&1
1385 lib/version.o: lib/version.c include/version.h
1386 @echo Compiling $*.c
1387 @$(COMPILE_CC_PATH) && exit 0;\
1388 echo "The following command failed:" 1>&2;\
1389 echo "$(COMPILE_CC_PATH)" 1>&2;\
1390 $(COMPILE_CC_PATH) >/dev/null 2>&1
1392 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1393 @echo Compiling $*.c
1394 @$(COMPILE_CC_PATH) && exit 0;\
1395 echo "The following command failed:" 1>&2;\
1396 echo "$(COMPILE_CC_PATH)" 1>&2;\
1397 $(COMPILE_CC_PATH) >/dev/null 2>&1
1399 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1400 @echo Generating $@
1401 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1403 bin/.dummy:
1404 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1405 dir=bin $(MAKEDIR); fi
1406 @: >> $@ || : > $@ # what a fancy emoticon!
1408 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@ @BUILD_POPT@
1409 @echo Linking $@
1410 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1411 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1412 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1413 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1414 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1416 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1417 @echo Linking $@
1418 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1419 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1420 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1422 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1423 @echo Linking $@
1424 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1425 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1426 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1428 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1429 @echo Linking $@
1430 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1431 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1432 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1433 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1435 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1436 @echo Linking $@
1437 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1438 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1439 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1440 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1442 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@ @LIBNETAPI_TARGET@
1443 @echo Linking $@
1444 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1445 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1446 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1447 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1448 $(ZLIB_LIBS)
1450 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1451 @echo Linking $@
1452 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1453 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1455 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1456 @echo Linking $@
1457 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1458 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1460 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ)
1461 @echo Linking $@
1462 @$(CC) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1464 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ)
1465 @echo Linking $@
1466 @$(CC) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1468 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1469 @echo Linking $@
1470 @$(CC) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1471 $(LIBSMBCLIENT_OBJ1) $(LIBS) -lkeyutils $(KRB5LIBS) \
1472 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
1473 $(LIBTDB_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS)
1475 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1476 @echo Linking $@
1477 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1478 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1480 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1481 @echo Linking $@
1482 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1483 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1485 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1486 @echo Linking $@
1487 @$(CC) -DUSING_SMBCONTROL -o $@ \
1488 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1489 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1490 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1492 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1493 @echo Linking $@
1494 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1495 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1496 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1498 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1499 @echo Linking $@
1500 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1501 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1502 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1504 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1505 @echo Linking $@
1506 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1507 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1508 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1510 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1511 @echo Linking $@
1512 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1513 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1514 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1516 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1517 @echo Linking $@
1518 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1519 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1521 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1522 @echo Linking $@
1523 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1524 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1525 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1527 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1528 @echo Linking $@
1529 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1530 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1531 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1533 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1534 @echo Linking $@
1535 @$(CC) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1536 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1538 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1539 @echo Linking $@
1540 @$(CC) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1541 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1542 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1544 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1545 @echo Linking $@
1546 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1547 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1548 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1550 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1551 @echo Linking $@
1552 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1553 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1554 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1556 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1557 @echo Linking $@
1558 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1559 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1560 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1562 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1563 @echo Linking $@
1564 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1565 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1566 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1568 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1569 @echo Linking $@
1570 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1571 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1573 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1574 @echo Linking $@
1575 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1576 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1578 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1579 @echo Linking $@
1580 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1581 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1582 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1584 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1585 @echo Linking $@
1586 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1587 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1588 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1590 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1591 @echo Linking $@
1592 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1593 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1594 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1596 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1597 @echo Linking $@
1598 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1599 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1600 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1601 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1602 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1604 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1605 @echo Linking $@
1606 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1607 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1608 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1610 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1611 @echo Linking $@
1612 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1613 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1615 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1616 @echo Linking $@
1617 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1618 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1619 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1621 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1622 @echo Linking $@
1623 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1624 $(LIBS) $(LIBTALLOC_LIBS)
1626 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1627 @echo Linking $@
1628 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1629 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1630 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1632 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1633 @echo Linking $@
1634 @$(CC) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1635 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1636 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1638 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1639 @echo Linking $@
1640 @$(CC) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1641 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1642 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1644 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1645 @echo Linking $@
1646 @$(CC) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1647 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1648 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1650 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1651 @echo Linking $@
1652 @$(CC) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1653 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1654 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1656 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1657 @echo Linking $@
1658 @$(CC) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1659 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1660 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1662 bin/ldbrename: $(BINARY_PREREQS) $(LDBRENAME_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1663 @echo Linking $@
1664 @$(CC) $(FLAGS) -o $@ $(LDBRENAME_OBJ) $(DYNEXP) $(LDFLAGS) \
1665 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1666 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1668 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1669 @echo Linking $@
1670 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1673 #####################################################################
1675 # libraries
1677 #####################################################################
1679 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1682 #-------------------------------------------------------------------
1684 # libtalloc
1686 #-------------------------------------------------------------------
1689 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1690 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1692 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1693 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1694 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1695 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1696 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
1697 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1698 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1700 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1701 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1703 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1704 @echo Linking shared library $@
1705 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1707 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1708 @rm -f $@
1709 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1711 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1712 @echo Linking non-shared library $@
1713 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1715 libtalloc: $(LIBTALLOC)
1717 cleanlibtalloc::
1718 -rm -f \
1719 $(LIBTALLOC_SYMS) \
1720 $(LIBTALLOC_STATIC_TARGET) \
1721 $(LIBTALLOC_SHARED_TARGET) \
1722 $(LIBTALLOC_SHARED_TARGET_SONAME)
1724 installlibtalloc:: installdirs libtalloc
1725 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1726 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1727 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1728 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1729 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1730 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1732 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1733 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1734 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1736 uninstalllibtalloc::
1737 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1738 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1739 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1740 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1742 libs:: libtalloc
1743 installlibs:: @INSTALL_LIBTALLOC@
1744 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1745 cleanlibs:: cleanlibtalloc
1746 shlibs test_shlibs: @LIBTALLOC_SHARED@
1748 showlibtalloc:
1749 @echo ""
1750 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
1751 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
1752 @echo "LIBTALLOC_TARGET = @LIBTALLOC_TARGET@"
1753 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
1754 @echo ""
1755 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
1756 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
1757 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
1758 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
1759 @echo "LIBTALLOC = $(LIBTALLOC)"
1761 showlibs:: showlibtalloc
1763 #-------------------------------------------------------------------
1765 # libtdb
1767 #-------------------------------------------------------------------
1769 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
1770 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1772 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1773 LIBTDB_SOVER=@LIBTDB_SOVER@
1774 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1775 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1776 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
1777 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1778 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1780 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1781 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1783 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1784 @echo Linking shared library $@
1785 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1786 @SONAMEFLAG@`basename $@`
1788 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1789 @rm -f $@
1790 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1792 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1793 @echo Linking non-shared library $@
1794 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1796 libtdb: $(LIBTDB)
1798 cleanlibtdb::
1799 -rm -f \
1800 $(LIBTDB_SYMS) \
1801 $(LIBTDB_STATIC_TARGET) \
1802 $(LIBTDB_SHARED_TARGET) \
1803 $(LIBTDB_SHARED_TARGET_SONAME)
1806 installlibtdb:: installdirs libtdb
1807 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1808 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1809 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1810 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1811 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1812 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1814 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1815 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1816 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1818 uninstalllibtdb::
1819 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1820 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1821 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1822 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1824 libs:: libtdb
1825 installlibs:: @INSTALL_LIBTDB@
1826 uninstalllibs:: @UNINSTALL_LIBTDB@
1827 cleanlibs:: cleanlibtdb
1828 shlibs test_shlibs: @LIBTDB_SHARED@
1830 showlibtdb:
1831 @echo ""
1832 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
1833 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
1834 @echo "LIBTDB_TARGET = @LIBTDB_TARGET@"
1835 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
1836 @echo ""
1837 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
1838 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
1839 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
1840 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
1841 @echo "LIBTDB = $(LIBTDB)"
1843 showlibs:: showlibtdb
1845 #-------------------------------------------------------------------
1847 # libwbclient
1849 #-------------------------------------------------------------------
1851 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
1852 ../nsswitch/libwbclient/wbc_util.o \
1853 ../nsswitch/libwbclient/wbc_pwd.o \
1854 ../nsswitch/libwbclient/wbc_idmap.o \
1855 ../nsswitch/libwbclient/wbc_sid.o \
1856 ../nsswitch/libwbclient/wbc_guid.o \
1857 ../nsswitch/libwbclient/wbc_pam.o
1858 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1859 $(WBCOMMON_OBJ) \
1860 $(LIBREPLACE_OBJ)
1862 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1863 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1864 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1865 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1866 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1867 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1868 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
1870 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1871 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1873 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_TARGET@
1874 @echo Linking shared library $@
1875 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBTALLOC_LIBS) \
1876 @SONAMEFLAG@`basename $@`
1878 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1879 @rm -f $@
1880 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1882 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1883 @echo Linking non-shared library $@
1884 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1886 libwbclient: $(LIBWBCLIENT)
1888 cleanlibwbclient::
1889 -rm -f \
1890 $(LIBWBCLIENT_SYMS) \
1891 $(LIBWBCLIENT_STATIC_TARGET) \
1892 $(LIBWBCLIENT_SHARED_TARGET) \
1893 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1895 installlibwbclient:: installdirs libwbclient
1896 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1897 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1898 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1899 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1900 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1901 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1903 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1904 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1906 uninstalllibwbclient::
1907 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1908 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1909 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1911 libs:: libwbclient
1912 installlibs:: @INSTALL_LIBWBCLIENT@
1913 uninstalllibs:: uninstalllibwbclient
1914 cleanlibs:: cleanlibwbclient
1915 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1917 showlibwbclient:
1918 @echo ""
1919 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
1920 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
1921 @echo "LIBWBCLIENT_TARGET = @LIBWBCLIENT_TARGET@"
1922 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
1923 @echo ""
1924 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
1925 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
1926 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
1927 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
1928 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
1930 showlibs:: showlibwbclient
1933 #-------------------------------------------------------------------
1935 # libaddns
1937 #-------------------------------------------------------------------
1940 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1941 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1942 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1943 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1944 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
1945 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1946 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1948 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_TARGET@
1949 @echo Linking shared library $@
1950 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1951 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1952 @SONAMEFLAG@`basename $@`
1954 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1955 @rm -f $@
1956 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1958 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1959 @echo Linking non-shared library $@
1960 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1962 libaddns: $(LIBADDNS)
1964 cleanlibaddns::
1965 -rm -f \
1966 $(LIBADDNS_SHARED_TARGET) \
1967 $(LIBADDNS_SHARED_TARGET_SONAME) \
1968 $(LIBADDNS_STATIC_TARGET)
1970 installlibaddns:: installdirs libaddns
1971 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1972 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1973 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1974 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1975 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1976 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1978 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1980 uninstalllibaddns::
1981 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1982 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1983 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
1985 libs:: libaddns
1986 installlibs:: @INSTALL_LIBADDNS@
1987 uninstalllibs:: @UNINSTALL_LIBADDNS@
1988 cleanlibs:: cleanlibaddns
1989 shlibs test_shlibs: @LIBADDNS_SHARED@
1991 showlibaddns:
1992 @echo ""
1993 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
1994 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
1995 @echo "LIBADDNS_TARGET = @LIBADDNS_TARGET@"
1996 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
1997 @echo ""
1998 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
1999 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2000 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2001 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2002 @echo "LIBADDNS = $(LIBADDNS)"
2004 showlibs:: showlibaddns
2006 #-------------------------------------------------------------------
2008 # libnetapi
2010 #-------------------------------------------------------------------
2012 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2013 lib/netapi/cm.o \
2014 librpc/gen_ndr/ndr_libnetapi.o \
2015 lib/netapi/libnetapi.o \
2016 lib/netapi/joindomain.o \
2017 lib/netapi/serverinfo.o \
2018 lib/netapi/getdc.o \
2019 lib/netapi/user.o \
2020 lib/netapi/group.o \
2021 lib/netapi/localgroup.o \
2022 lib/netapi/samr.o \
2023 lib/netapi/sid.o \
2024 lib/netapi/share.o \
2025 lib/netapi/file.o \
2026 lib/netapi/shutdown.o
2028 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2029 $(LIBSMBCONF_OBJ) \
2030 $(REG_SMBCONF_OBJ) \
2031 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2032 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2033 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
2034 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
2035 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2036 auth/token_util.o
2038 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2039 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2040 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2041 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2042 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
2043 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2044 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2046 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2047 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2049 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2050 @echo Linking shared library $@
2051 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2052 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2053 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2054 @SONAMEFLAG@`basename $@`
2056 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2057 @rm -f $@
2058 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2060 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2061 @echo Linking non-shared library $@
2062 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2064 libnetapi: $(LIBNETAPI)
2066 cleanlibnetapi::
2067 -rm -f \
2068 $(LIBNETAPI_SYMS) \
2069 $(LIBNETAPI_STATIC_TARGET) \
2070 $(LIBNETAPI_SHARED_TARGET) \
2071 $(LIBNETAPI_SHARED_TARGET_SONAME)
2073 installlibnetapi:: installdirs libnetapi
2074 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2075 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2076 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2077 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2078 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2079 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2081 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2082 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2083 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2085 uninstalllibnetapi::
2086 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2087 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2088 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2089 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2091 libs:: libnetapi
2092 installlibs:: @INSTALL_LIBNETAPI@
2093 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2094 cleanlibs:: cleanlibnetapi
2095 shlibs test_shlibs: @LIBNETAPI_SHARED@
2097 showlibnetapi:
2098 @echo ""
2099 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2100 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2101 @echo "LIBNETAPI_TARGET = @LIBNETAPI_TARGET@"
2102 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2103 @echo ""
2104 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2105 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2106 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2107 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2108 @echo "LIBNETAPI = $(LIBNETAPI)"
2110 showlibs:: showlibnetapi
2112 #-------------------------------------------------------------------
2114 # libsmbclient
2116 #-------------------------------------------------------------------
2118 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2119 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2120 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2121 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2122 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2123 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2124 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2126 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2127 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2129 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2130 @echo Linking shared library $@
2131 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
2132 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2133 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2134 @SONAMEFLAG@`basename $@`
2136 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2137 @rm -f $@
2138 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2140 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2141 @echo Linking non-shared library $@
2142 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2144 libsmbclient: $(LIBSMBCLIENT)
2146 cleanlibsmbclient::
2147 -rm -f \
2148 $(LIBSMBCLIENT_SHARED_TARGET) \
2149 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2150 $(LIBSMBCLIENT_STATIC_TARGET)
2152 installlibsmbclient:: installdirs libsmbclient
2153 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2154 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2155 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2156 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2157 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2158 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2160 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2161 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2162 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2164 installclientlib:: installlibsmbclient
2166 uninstalllibsmbclient::
2167 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2168 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2169 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2170 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2172 uninstallclientlib:: uninstalllibsmbclient
2174 libs:: libsmbclient
2175 installlibs:: @INSTALL_LIBSMBCLIENT@
2176 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2177 cleanlibs:: cleanlibsmbclient
2178 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2180 showlibsmbclient:
2181 @echo ""
2182 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2183 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2184 @echo "LIBSMBCLIENT_TARGET = @LIBSMBCLIENT_TARGET@"
2185 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2186 @echo ""
2187 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2188 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2189 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2190 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2191 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2193 showlibs:: showlibsmbclient
2195 #-------------------------------------------------------------------
2197 # libsmbsharemodes
2199 #-------------------------------------------------------------------
2201 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2203 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2205 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2206 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2207 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2208 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2209 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2210 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2211 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2213 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2214 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2216 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2217 @echo Linking shared library $@
2218 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2219 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2220 $(KRB5LIBS) $(LDAP_LIBS) \
2221 @SONAMEFLAG@`basename $@`
2223 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2224 @rm -f $@
2225 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2227 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2228 @echo Linking non-shared library $@
2229 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2231 libsmbsharemodes: $(LIBSMBSHAREMODES)
2233 cleanlibsmbsharemodes::
2234 -rm -f \
2235 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2236 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2237 $(LIBSMBSHAREMODES_STATIC_TARGET)
2239 installlibsmbsharemodes:: installdirs libsmbsharemodes
2240 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2241 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2242 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2243 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2244 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2245 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2247 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2248 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2249 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2251 uninstalllibsmbsharemodes::
2252 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2253 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2254 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2255 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2257 libs:: libsmbsharemodes
2258 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2259 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2260 cleanlibs:: cleanlibsmbsharemodes
2261 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2263 showlibsmbsharemodes:
2264 @echo ""
2265 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2266 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2267 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2268 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2269 @echo ""
2270 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2271 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2272 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2273 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2274 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2276 showlibs:: showlibsmbsharemodes
2278 #-------------------------------------------------------------------
2280 # libbigballofmud
2282 #-------------------------------------------------------------------
2284 # This is probably wrong for anything other than the GNU linker.
2285 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_TARGET@
2286 @echo Linking shared library $@
2287 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2288 $(LIBS) $(LIBTALLOC_LIBS) \
2289 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2290 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2291 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2293 # It would be nice to build a static bigballofmud too, but when I try
2294 # I get linker errors about dl_open and similar things. I'm not sure if
2295 # it can be fixed or if they just can't be called from a static
2296 # library.
2298 #####################################################################
2300 # shared modules
2302 #####################################################################
2304 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2305 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2306 -o $@ @SONAMEFLAG@`basename $@`
2308 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2309 @echo "Linking $@"
2310 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2312 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2313 @echo "Linking $@"
2314 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2316 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2317 @echo "Linking $@"
2318 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2320 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2321 @echo "Linking $@"
2322 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2324 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2325 @echo "Linking $@"
2326 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2328 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2329 @echo "Linking $@"
2330 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2332 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2333 @echo "Linking $@"
2334 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2336 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2337 @echo "Linking $@"
2338 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2340 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2341 @echo "Linking $@"
2342 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2344 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2345 @echo "Linking $@"
2346 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2348 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2349 @echo "Linking $@"
2350 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2352 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2353 @echo "Linking $@"
2354 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2356 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2357 @echo "Linking $@"
2358 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2360 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2361 @echo "Linking $@"
2362 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2364 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2365 @echo "Linking $@"
2366 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2367 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2368 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2369 $(ZLIB_LIBS)
2371 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2372 @echo "Linking $@"
2373 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2374 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2375 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2376 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2377 $(ZLIB_LIBS)
2379 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2380 @echo "Linking $@"
2381 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2382 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2383 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2385 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2386 @echo "Linking $@"
2387 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2388 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2389 $(ZLIB_LIBS) @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2391 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) @LIBWBCLIENT_TARGET@
2392 @echo "Linking $@"
2393 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2394 @SONAMEFLAG@`basename $@`
2396 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) @LIBTALLOC_TARGET@ @LIBWBCLIENT_TARGET@
2397 @echo "Linking shared library $@"
2398 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2399 $(PAM_WINBIND_EXTRA_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2401 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2402 @echo "Building plugin $@"
2403 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2405 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2406 @echo "Building plugin $@"
2407 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2409 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2410 @echo "Building plugin $@"
2411 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2413 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2414 @echo "Building plugin $@"
2415 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2417 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2418 @echo "Building plugin $@"
2419 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2421 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2422 @echo "Building plugin $@"
2423 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2425 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2426 @echo "Building plugin $@"
2427 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2429 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2430 @echo "Building plugin $@"
2431 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2433 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2434 @echo "Building plugin $@"
2435 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2437 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2438 @echo "Building plugin $@"
2439 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2441 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2442 @echo "Building plugin $@"
2443 @$(SHLD_MODULE) passdb/pdb_tdb.o
2445 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2446 @echo "Building plugin $@"
2447 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2449 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2450 @echo "Building plugin $@"
2451 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2453 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2454 @echo "Building plugin $@"
2455 @$(SHLD_MODULE) winbindd/idmap_rid.o
2457 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2458 @echo "Building plugin $@"
2459 @$(SHLD_MODULE) winbindd/idmap_ad.o
2461 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2462 @echo "Building plugin $@"
2463 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2465 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2466 @echo "Building plugin $@"
2467 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2469 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2470 @echo "Building plugin $@"
2471 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2473 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2474 @echo "Building plugin $@"
2475 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2477 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2478 @echo "Building plugin $@"
2479 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2481 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2482 @echo "Building plugin $@"
2483 @$(SHLD_MODULE) $(CP850_OBJ)
2485 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2486 @echo "Building plugin $@"
2487 @$(SHLD_MODULE) $(CP437_OBJ)
2489 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2490 @echo "Building plugin $@"
2491 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2493 # NOTE, there is no build rule for a dynamic default VFS module because
2494 # this one MUST MUST MUST be built statically.
2496 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2497 @echo "Building plugin $@"
2498 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2500 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2501 @echo "Building plugin $@"
2502 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2504 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2505 @echo "Building plugin $@"
2506 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2508 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2509 @echo "Building plugin $@"
2510 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2512 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2513 @echo "Building plugin $@"
2514 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2516 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2517 @echo "Building plugin $@"
2518 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2520 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2521 @echo "Building plugin $@"
2522 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2524 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2525 @echo "Building plugin $@"
2526 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2528 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2529 @echo "Building plugin $@"
2530 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2532 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2533 @echo "Building plugin $@"
2534 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2536 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2537 @echo "Building plugin $@"
2538 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2540 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2541 @echo "Building plugin $@"
2542 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2544 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2545 @echo "Building plugin $@"
2546 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2548 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2549 @echo "Building plugin $@"
2550 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2552 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2553 @echo "Building plugin $@"
2554 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2556 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2557 @echo "Building plugin $@"
2558 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2560 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2561 @echo "Building plugin $@"
2562 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2564 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2565 @echo "Building plugin $@"
2566 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2568 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2569 @echo "Building plugin $@"
2570 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2572 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2573 @echo "Building plugin $@"
2574 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2576 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2577 @echo "Building plugin $@"
2578 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2580 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2581 @echo "Building plugin $@"
2582 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2584 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2585 @echo "Building plugin $@"
2586 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2588 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2589 @echo "Building plugin $@"
2590 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2592 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2593 @echo "Building plugin $@"
2594 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2596 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2597 @echo "Building plugin $@"
2598 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2600 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2601 @echo "Building plugin $@"
2602 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2604 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2605 @echo "Building plugin $@"
2606 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2608 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2609 @echo "Building plugin $@"
2610 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2612 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2613 @echo "Building plugin $@"
2614 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2616 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2617 @echo "Building plugin $@"
2618 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2620 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2621 @echo "Building plugin $@"
2622 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2624 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2625 @echo "Building plugin $@"
2626 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2628 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2629 @echo "Building plugin $@"
2630 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2632 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2633 @echo "Building plugin $@"
2634 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2636 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2637 @echo "Building plugin $@"
2638 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2640 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2641 @echo "Building plugin $@"
2642 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2644 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2645 @echo "Building plugin $@"
2646 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2648 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2649 @echo "Building plugin $@"
2650 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2652 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2653 @echo "Building plugin $@"
2654 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2656 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2657 @echo "Building plugin $@"
2658 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2660 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2661 @echo "Building plugin $@"
2662 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2664 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2665 @echo "Building plugin $@"
2666 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2668 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2669 @echo "Building plugin $@"
2670 @$(SHLD_MODULE) libgpo/gpext/registry.o
2672 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2673 @echo "Building plugin $@"
2674 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2676 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2677 @echo "Building plugin $@"
2678 @$(SHLD_MODULE) libgpo/gpext/security.o
2680 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2681 @echo "Building plugin $@"
2682 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2684 #########################################################
2685 ## IdMap NSS plugins
2687 ## None here right now
2688 #########################################################
2690 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2691 @echo Linking $@
2692 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2693 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2694 $(LIBWBCLIENT_LIBS)
2696 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2697 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2698 @echo Linking $@
2699 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2700 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2701 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2702 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2704 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_TARGET@ @LIBWBCLIENT_TARGET@ @LIBTDB_TARGET@
2705 @echo "Linking shared library $@"
2706 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2707 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2708 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2710 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2711 @echo Linking $@
2712 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2713 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2715 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2716 @echo Linking $@
2717 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2718 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2720 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2721 @echo Linking $@
2722 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2723 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2725 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2726 @echo Linking $@
2727 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2728 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2730 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2731 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2732 torture/t_strcmp.o -L ./bin -lbigballofmud
2734 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2735 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2736 torture/t_strstr.o -L ./bin -lbigballofmud
2738 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2739 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2740 torture/t_strappend.o -L ./bin -lbigballofmud
2742 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2743 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2744 -L./bin -lbigballofmud
2746 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2747 @echo Linking $@
2748 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
2750 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2751 @echo "Linking $@"
2752 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2753 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
2754 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2756 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2757 @echo "Linking $@"
2758 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
2759 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2760 $(LDAP_LIBS) \
2761 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2763 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2764 @echo "Linking $@"
2765 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
2766 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2767 $(LDAP_LIBS) \
2768 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2770 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
2771 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
2773 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2774 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2775 @INSTALL_PAM_MODULES@ installlibs installmo
2777 install-everything:: install installmodules
2779 # DESTDIR is used here to prevent packagers wasting their time
2780 # duplicating the Makefile. Remove it and you will have the privelege
2781 # of package each samba release for muliple versions of multiple
2782 # distributions and operating systems, or at least supplying patches
2783 # to all the packaging files required for this, prior to committing
2784 # the removal of DESTDIR. Do not remove it even though you think it
2785 # is not used
2787 installdirs::
2788 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
2789 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
2790 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
2791 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
2793 installservers:: all installdirs
2794 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2796 installbin:: all installdirs
2797 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2799 installcifsmount:: @CIFSMOUNT_PROGS@
2800 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2801 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2803 installcifsupcall:: @CIFSUPCALL_PROGS@
2804 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(SBINDIR)
2805 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) @CIFSUPCALL_PROGS@
2807 # Some symlinks are required for the 'probing' of modules.
2808 # This mechanism should go at some point..
2809 installmodules:: modules installdirs
2810 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2811 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2812 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2813 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2814 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2815 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2816 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2817 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2818 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
2819 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2820 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2821 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2822 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2823 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2824 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2825 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2826 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2827 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
2828 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
2830 installscripts:: installdirs
2831 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2833 installdat:: installdirs
2834 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2836 installmsg:: installdirs
2837 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2839 installswat:: installdirs installmsg
2840 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2842 installpammodules:: $(PAM_MODULES)
2843 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2844 @for module in $(PAM_MODULES); do \
2845 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2846 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2847 "$(DESTDIR)/$(PAMMODULESDIR)"; \
2848 done
2850 # revert to the previously installed version
2851 revert::
2852 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2853 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2855 installman:: installdirs
2856 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
2858 installmo:: all installdirs
2859 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2861 .PHONY: showlayout
2863 showlayout::
2864 @echo "Samba will be installed into:"
2865 @echo " prefix: $(prefix)"
2866 @echo " bindir: $(BINDIR)"
2867 @echo " sbindir: $(SBINDIR)"
2868 @echo " libdir: $(LIBDIR)"
2869 @echo " modulesdir: $(MODULESDIR)"
2870 @echo " vardir: $(VARDIR)"
2871 @echo " mandir: $(MANDIR)"
2872 @echo " privatedir: $(PRIVATE_DIR)"
2873 @echo " configdir: $(CONFIGDIR)"
2874 @echo " lockdir: $(LOCKDIR)"
2875 @echo " statedir: $(STATEDIR)"
2876 @echo " cachedir: $(CACHEDIR)"
2877 @echo " piddir: $(PIDDIR)"
2878 @echo " swatdir: $(SWATDIR)"
2879 @echo " codepagedir: $(CODEPAGEDIR)"
2882 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2884 uninstallmo::
2885 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2887 uninstallman::
2888 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2890 uninstallservers::
2891 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2893 uninstallbin::
2894 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2896 uninstallcifsmount::
2897 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2899 uninstallcifsupcall::
2900 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2902 uninstallmodules::
2903 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2904 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2905 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2906 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2907 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2908 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2909 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2910 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
2912 uninstallscripts::
2913 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2915 uninstalldat::
2916 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2918 uninstallmsg::
2919 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2921 uninstallswat:: uninstallmsg
2922 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2924 uninstallpammodules::
2925 @for module in $(PAM_MODULES); do \
2926 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
2927 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
2928 done
2930 # Toplevel clean files
2931 TOPFILES=dynconfig.o localedir.o
2933 cleanlibs::
2934 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
2935 ../libcli/*.o ../libcli/*/*.o \
2936 ../librpc/*/*.o
2938 clean:: cleanlibs
2939 -rm -f include/build_env.h
2940 -rm -f smbd/build_options.c
2941 -rm -f $(PRECOMPILED_HEADER)
2942 -rm -f core */*~ *~ \
2943 */*.o */*/*.o */*/*/*.o \
2944 ../testsuite/*/*.o \
2945 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*.@SHLIBEXT@ \
2946 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2947 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2948 $(MODULES) $(TORTURE_PROGS) \
2949 $(EVERYTHING_PROGS) \
2950 bin/timelimit \
2951 .headers.stamp */src/*.o
2952 -rm -rf t_dir
2954 include/build_env.h: script/build_env.sh
2955 @echo Building include/build_env.h
2956 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2957 > $(builddir)/include/build_env.h
2959 proto::
2961 etags::
2962 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append
2964 ctags::
2965 ctags `find $(srcdir)/.. -name "*.[ch]" | grep -v include/proto\.h`
2967 realclean:: clean
2968 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2969 -rm -f script/installbin.sh script/uninstallbin.sh
2971 distclean:: realclean
2972 -rm -f smbadduser
2973 -rm -f include/config.h Makefile
2974 -rm -f config.status config.cache so_locations
2975 -rm -rf .deps TAGS
2977 realdistclean:: distclean
2978 -rm -f include/config.h.in
2979 -rm -f include/version.h
2980 -rm -f configure
2982 # this target is really just for my use. It only works on a limited
2983 # range of machines and is used to produce a list of potentially
2984 # dead (ie. unused) functions in the code. (tridge)
2985 finddead::
2986 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2987 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2988 comm -13 nmused.txt nmfns.txt
2991 # when configure.in is updated, reconfigure
2992 $(srcdir)/configure: $(srcdir)/configure.in
2993 @echo "WARNING: you need to rerun ./autogen.sh"
2995 config.status: $(srcdir)/configure
2996 @echo "WARNING: you need to run ./configure"
2998 Makefile: $(srcdir)/Makefile.in config.status
2999 @echo "WARNING: you need to run ./config.status"
3001 ######################################################################
3002 # Samba Testing Framework
3004 # Check shared libs for unresolved symbols
3005 test_shlibs:
3006 @echo "Testing $? "
3007 @$(LIB_PATH_VAR)=./bin && \
3008 export $(LIB_PATH_VAR) && \
3009 for module in $?; do \
3010 ./script/tests/dlopen.sh $${module} \
3011 || exit 1; \
3012 done
3014 # Check for NSS module problems.
3015 test_nss_modules:: nss_modules
3016 @echo "Testing $(NSS_MODULES) "
3017 @$(LIB_PATH_VAR)=./bin && \
3018 export $(LIB_PATH_VAR) && \
3019 for module in $(NSS_MODULES); do \
3020 ./script/tests/dlopen.sh $${module} \
3021 || exit 1; \
3022 done
3024 # Check for PAM module problems. Specifically, check that every module we
3025 # built can actually be loaded by a minimal PAM-aware application.
3026 test_pam_modules:: pam_modules
3027 @echo "Testing $(PAM_MODULES) "
3028 @$(LIB_PATH_VAR)=./bin && \
3029 export $(LIB_PATH_VAR) && \
3030 for module in $(PAM_MODULES); do \
3031 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
3032 || exit 1; \
3033 done
3037 ## Targets for 'make test'
3040 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3042 test:: all torture timelimit
3043 @echo Running Test suite
3044 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3046 valgrindtest:: all torture timelimit
3047 @echo Running Test suite with valgrind
3048 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3049 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3050 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3051 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3052 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
3053 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3055 SELFTEST_FORMAT = plain
3056 selftestdir = ../selftest
3058 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin"
3060 selftest:: all torture timelimit
3061 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3062 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3063 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3064 $(PERL) $(selftestdir)/selftest.pl \
3065 --prefix=${selftest_prefix} --target=samba3 \
3066 --testlist="$(srcdir)/selftest/tests.sh|" \
3067 --expected-failures=$(srcdir)/selftest/knownfail \
3068 --exclude=$(srcdir)/selftest/skip \
3069 --socket-wrapper $(TESTS) --format=$(SELFTEST_FORMAT) --immediate
3071 selftest-%:
3072 $(MAKE) selftest TESTS=$*
3074 # Check for Winbind struct 32/64bit padding
3075 test_wbpad:
3076 @echo "Testing winbind request/response structure for 32/64bit padding"
3077 @./script/tests/wb_pad.sh || exit 1;
3080 ## Examples:
3083 libsmbclient_examples: libsmbclient
3084 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3086 clean_libsmbclient_examples:
3087 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3089 libnetapi_examples: libnetapi
3090 $(MAKE) -C lib/netapi/examples
3092 clean_libnetapi_examples:
3093 $(MAKE) -C lib/netapi/examples clean