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