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