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