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