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