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