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