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