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