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