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