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