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