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