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