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