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