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