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