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