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 ###########################################################################
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@
22 smbtorture4_option
=@smbtorture4_option@
23 selftest_custom_conf
=@selftest_custom_conf@
28 LIB_PATH_VAR
=@LIB_PATH_VAR@
30 ## Dynamic shared libraries build settings
31 DSO_EXPORTS_CMD
=-Wl
,--version-script
,$(srcdir)/exports
/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
32 DSO_EXPORTS
=@DSO_EXPORTS@
33 SHLD_DSO
= $(SHLD
) $(LDSHFLAGS
) $(DSO_EXPORTS
) -o
$@
35 # The MODULE_EXPORTS variable contains the platform-specific linker flags
36 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
37 MODULE_EXPORTS
=@MODULE_EXPORTS@
39 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
40 # (GCC) warnings. This is done automtically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS
=@DEVELOPER_CFLAGS@
44 CPPFLAGS
=-DHAVE_CONFIG_H @CPPFLAGS@
48 LDSHFLAGS
=@LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
49 LDFLAGS
=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
51 WINBIND_NSS_LDSHFLAGS
=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
59 TERMLDFLAGS
=@TERMLDFLAGS@
61 PRINT_LIBS
=@PRINT_LIBS@
65 PASSDB_LIBS
=@PASSDB_LIBS@
66 IDMAP_LIBS
=@IDMAP_LIBS@
71 WINBIND_LIBS
=@WINBIND_LIBS@
72 WINBIND_NSS_EXTRA_LIBS
=@WINBIND_NSS_EXTRA_LIBS@
73 WINBIND_NSS_PTHREAD
=@WINBIND_NSS_PTHREAD@
74 PAM_WINBIND_EXTRA_LIBS
=@PAM_WINBIND_EXTRA_LIBS@
75 DNSSD_LIBS
=@DNSSD_LIBS@
76 AVAHI_LIBS
=@AVAHI_LIBS@
78 LIBTALLOC_LIBS
=@LIBTALLOC_LIBS@
79 LIBTDB_LIBS
=@LIBTDB_LIBS@
80 LIBNETAPI_LIBS
=@LIBNETAPI_LIBS@
81 LIBLUA_LIBS
=@LIBLUA_LIBS@
84 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
85 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
86 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
87 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
91 builddir
=@abs_builddir@
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
98 # See the autoconf manual "Installation Directory Variables" for a
99 # discussion of the subtle use of these variables.
103 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
105 ROOTSBINDIR
= @rootsbindir@
107 MODULESDIR
= @modulesdir@
108 INCLUDEDIR
=@
includedir@
109 PAMMODULESDIR
= @pammodulesdir@
110 VFSLIBDIR
= $(MODULESDIR
)/vfs
111 PERFCOUNTLIBDIR
= $(MODULESDIR
)/perfcount
112 PDBLIBDIR
= $(MODULESDIR
)/pdb
113 RPCLIBDIR
= $(MODULESDIR
)/rpc
114 IDMAPLIBDIR
= $(MODULESDIR
)/idmap
115 NSSINFOLIBDIR
= $(MODULESDIR
)/nss_info
116 CHARSETLIBDIR
= $(MODULESDIR
)/charset
117 AUTHLIBDIR
= $(MODULESDIR
)/auth
118 CONFIGLIBDIR
= $(MODULESDIR
)/config
119 GPEXTLIBDIR
= $(MODULESDIR
)/gpext
120 CONFIGDIR
= @configdir@
121 VARDIR
= @localstatedir@
125 # The permissions to give the executables and other data
126 INSTALLPERMS_BIN
= 0755
127 INSTALLPERMS_DATA
= 0644
129 # set these to where to find various files
130 # These can be overridden by command line switches (see smbd(8))
131 # or in smb.conf (see smb.conf(5))
132 LOGFILEBASE
= @logfilebase@
133 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
134 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
135 NCALRPCDIR
= @ncalrpcdir@
137 # This is where smbpasswd et al go
138 PRIVATEDIR
= @privatedir@
140 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
141 PRIVATE_DIR
= $(PRIVATEDIR
)
143 # This is where SWAT images and help files go
146 # This is where locale(mo) files go
147 LOCALEDIR
= @localedir@
149 # the directory where lock files go
152 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
153 CACHEDIR
= @cachedir@
154 STATEDIR
= @
statedir@
156 # Where to look for (and install) codepage databases.
157 CODEPAGEDIR
= @codepagedir@
159 # the directory where pid files go
162 FLAGS
= -I.
-I
$(srcdir) @FLAGS1@ @SAMBA_CPPFLAGS@
$(CPPFLAGS
) $(ISA
) -I
$(srcdir)/lib
-I..
-D_SAMBA_BUILD_
=3 -I..
/source4
164 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
165 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
166 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
167 -DSBINDIR
=\"$(SBINDIR
)\" \
168 -DBINDIR
=\"$(BINDIR
)\" \
169 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
170 -DSWATDIR
=\"$(SWATDIR
)\" \
171 -DLOCKDIR
=\"$(LOCKDIR
)\" \
172 -DPIDDIR
=\"$(PIDDIR
)\" \
173 -DLIBDIR
=\"$(LIBDIR
)\" \
174 -DMODULESDIR
=\"$(MODULESDIR
)\" \
175 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
176 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
177 -DNCALRPCDIR
=\"$(NCALRPCDIR
)\" \
178 -DCONFIGDIR
=\"$(CONFIGDIR
)\" \
179 -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\" \
180 -DCACHEDIR
=\"$(CACHEDIR
)\" \
181 -DSTATEDIR
=\"$(STATEDIR
)\" \
182 -DLOCALEDIR
=\"$(LOCALEDIR
)\"
184 # Note that all executable programs now provide for an optional executable suffix.
186 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
188 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@
190 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
191 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
192 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
193 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
195 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
196 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ bin
/sharesec@EXEEXT@ \
197 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
198 BIN_PROGS4
= bin
/ldbedit@EXEEXT@ bin
/ldbsearch@EXEEXT@ bin
/ldbadd@EXEEXT@ \
199 bin
/ldbdel@EXEEXT@ bin
/ldbmodify@EXEEXT@ bin
/ldbrename@EXEEXT@
201 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
202 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
203 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
204 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
205 bin
/tdbtorture@EXEEXT@ \
206 bin
/smbconftort@EXEEXT@ bin
/vlp@EXEEXT@
208 BIN_PROGS
= @EXTRA_BIN_PROGS@ \
209 $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) $(BIN_PROGS4
)
211 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
212 bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
213 bin
/log2pcap@EXEEXT@ \
214 bin
/vlp@EXEEXT@ bin
/smbiconv@EXEEXT@
216 PAM_MODULES
= @PAM_MODULES@
218 NSS_MODULES
= @NSS_MODULES@
220 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
222 VFS_MODULES
= @VFS_MODULES@
223 PERFCOUNT_MODULES
= @PERFCOUNT_MODULES@
224 PDB_MODULES
= @PDB_MODULES@
225 RPC_MODULES
= @RPC_MODULES@
226 IDMAP_MODULES
= @IDMAP_MODULES@
227 CHARSET_MODULES
= @CHARSET_MODULES@
228 AUTH_MODULES
= @AUTH_MODULES@
229 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
230 GPEXT_MODULES
= @GPEXT_MODULES@
231 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
232 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
) \
233 $(GPEXT_MODULES
) $(PERFCOUNT_MODULES
)
235 EXTRA_ALL_TARGETS
= @EXTRA_ALL_TARGETS@
237 ######################################################################
239 ######################################################################
241 TDB_LIB_OBJ
= lib
/util_tdb.o ..
/lib
/util
/util_tdb.o \
242 lib
/dbwrap.o lib
/dbwrap_tdb.o \
244 lib
/dbwrap_rbt.o @LIBTDB_STATIC@
246 TDB_VALIDATE_OBJ
= lib
/tdb_validate.o
248 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
250 VERSION_OBJ
= lib
/version.o
252 WBCOMMON_OBJ
= ..
/nsswitch
/wb_common.o
256 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
258 AVAHI_OBJ
= @AVAHI_OBJ@
260 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
262 PASSCHANGE_OBJ
= libsmb
/passchange.o
264 LIBNDR_DRSUAPI_OBJ
= ..
/librpc
/ndr
/ndr_drsuapi.o \
265 ..
/librpc
/ndr
/ndr_compression.o \
266 ..
/librpc
/gen_ndr
/ndr_drsuapi.o \
267 ..
/librpc
/ndr
/ndr_drsblobs.o \
268 ..
/librpc
/gen_ndr
/ndr_drsblobs.o
270 ZLIB_OBJ
= @ZLIB_OBJS@
272 COMPRESSION_OBJ
= ..
/lib
/compression
/mszip.o \
273 ..
/lib
/compression
/lzxpress.o \
276 DRSUAPI_OBJ
= $(LIBNDR_DRSUAPI_OBJ
) \
279 LIBNDR_OBJ
= ..
/librpc
/ndr
/ndr_basic.o \
280 ..
/librpc
/ndr
/ndr.o \
281 ..
/librpc
/ndr
/ndr_misc.o \
282 ..
/librpc
/gen_ndr
/ndr_misc.o \
283 ..
/librpc
/gen_ndr
/ndr_security.o \
284 ..
/librpc
/ndr
/ndr_sec_helper.o \
285 librpc
/ndr
/ndr_string.o \
286 ..
/librpc
/ndr
/uuid.o \
288 ..
/librpc
/gen_ndr
/ndr_dcerpc.o
290 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
292 LIBNDR_GEN_OBJ0
= ..
/librpc
/gen_ndr
/ndr_samr.o \
293 ..
/librpc
/gen_ndr
/ndr_lsa.o
295 LIBNDR_GEN_OBJ1
= ..
/librpc
/gen_ndr
/ndr_netlogon.o \
296 ..
/librpc
/ndr
/ndr_netlogon.o
298 LIBNDR_GEN_OBJ2
= ..
/librpc
/gen_ndr
/ndr_spoolss.o \
299 ..
/librpc
/ndr
/ndr_spoolss_buf.o
301 LIBNDR_GEN_OBJ
= ..
/librpc
/gen_ndr
/ndr_wkssvc.o \
303 ..
/librpc
/gen_ndr
/ndr_dfs.o \
304 ..
/librpc
/gen_ndr
/ndr_echo.o \
305 ..
/librpc
/gen_ndr
/ndr_winreg.o \
306 ..
/librpc
/gen_ndr
/ndr_initshutdown.o \
307 ..
/librpc
/gen_ndr
/ndr_srvsvc.o \
308 ..
/librpc
/gen_ndr
/ndr_eventlog.o \
310 ..
/librpc
/gen_ndr
/ndr_dssetup.o \
311 librpc
/gen_ndr
/ndr_notify.o \
312 ..
/librpc
/gen_ndr
/ndr_xattr.o \
313 ..
/librpc
/gen_ndr
/ndr_epmapper.o \
314 ..
/librpc
/gen_ndr
/ndr_named_pipe_auth.o \
315 ..
/librpc
/gen_ndr
/ndr_ntsvcs.o \
318 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
320 # this includes only the low level parse code, not stuff
321 # that requires knowledge of security contexts
322 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
)
324 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o \
325 rpc_client
/init_netlogon.o \
326 rpc_client
/init_lsa.o
328 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
330 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
331 NSS_WRAPPER_OBJ
= @NSS_WRAPPER_OBJS@
333 LIBSAMBAUTIL_OBJ
= @LIBTALLOC_STATIC@ \
335 $(SOCKET_WRAPPER_OBJ
) \
338 UTIL_OBJ
= ..
/lib
/util
/rbtree.o ..
/lib
/util
/signal.o ..
/lib
/util
/time.o \
339 ..
/lib
/util
/xfile.o ..
/lib
/util
/util_strlist.o \
340 ..
/lib
/util
/util_file.o ..
/lib
/util
/data_blob.o \
341 ..
/lib
/util
/util.o ..
/lib
/util
/fsusage.o \
342 ..
/lib
/util
/params.o ..
/lib
/util
/talloc_stack.o \
343 ..
/lib
/util
/genrand.o ..
/lib
/util
/util_net.o \
344 ..
/lib
/util
/become_daemon.o ..
/lib
/util
/system.o \
345 ..
/lib
/util
/tevent_unix.o ..
/lib
/util
/tevent_ntstatus.o
347 CRYPTO_OBJ
= ..
/lib
/crypto
/crc32.o ..
/lib
/crypto
/md5.o \
348 ..
/lib
/crypto
/hmacmd5.o ..
/lib
/crypto
/arcfour.o \
351 LIB_OBJ
= $(LIBSAMBAUTIL_OBJ
) $(UTIL_OBJ
) $(CRYPTO_OBJ
) \
352 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
353 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o \
354 lib
/interfaces.o lib
/memcache.o \
355 lib
/util_transfer_file.o ..
/lib
/async_req
/async_req.o \
356 ..
/lib
/async_req
/async_sock.o ..
/lib
/async_req
/async_req_ntstatus.o \
358 $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
359 lib
/interface.o lib
/pidfile.o \
360 lib
/system.o lib
/sendfile.o lib
/recvfile.o lib
/time.o \
362 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
363 lib
/bitmap.o lib
/dprintf.o
$(UTIL_REG_OBJ
) \
365 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
366 lib
/util_unistr.o lib
/util_file.o \
367 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
368 lib
/substitute.o lib
/dbwrap_util.o \
369 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
370 lib
/tallocmsg.o lib
/dmallocmsg.o \
371 libsmb
/clisigning.o libsmb
/smb_signing.o \
372 lib
/iconv.o lib
/pam_errors.o intl
/lang_tdb.o \
373 lib
/conn_tdb.o lib
/adt_tree.o lib
/gencache.o \
374 lib
/module.o lib
/events.o @LIBTEVENT_OBJ0@ \
375 lib
/ldap_escape.o @CHARSET_STATIC@ \
376 lib
/secdesc.o lib
/util_seaccess.o ..
/libcli
/security
/secace.o \
377 ..
/libcli
/security
/secacl.o \
378 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
379 lib
/file_id.o lib
/idmap_cache.o \
380 ..
/libcli
/security
/dom_sid.o
382 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
383 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
385 READLINE_OBJ
= lib
/readline.o
387 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
388 # Be sure to include them into your application
389 POPT_LIB_OBJ
= lib
/popt_common.o
391 PARAM_WITHOUT_REG_OBJ
= dynconfig.o param
/loadparm.o param
/util.o lib
/sharesec.o lib
/ldap_debug_handler.o
392 PARAM_REG_ADD_OBJ
= $(REG_SMBCONF_OBJ
) $(LIBSMBCONF_OBJ
) $(PRIVILEGES_BASIC_OBJ
)
393 PARAM_OBJ
= $(PARAM_WITHOUT_REG_OBJ
) $(PARAM_REG_ADD_OBJ
)
395 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
397 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
398 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
399 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(SOCKET_WRAPPER_OBJ
) @LIBTALLOC_STATIC@
401 GPEXT_OBJ
= libgpo
/gpext
/gpext.o @GPEXT_STATIC@
403 LIBGPO_OBJ0
= libgpo
/gpo_ldap.o libgpo
/gpo_ini.o libgpo
/gpo_util.o \
404 libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o libgpo
/gpo_sec.o \
407 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
409 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o \
410 libads
/sasl.o libads
/sasl_wrapping.o \
411 libads
/krb5_setpw.o libads
/ldap_user.o \
412 libads
/ads_struct.o libads
/kerberos_keytab.o \
413 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
414 libads
/ldap_schema.o libads
/util.o libads
/ndr.o
416 LIBADS_SERVER_OBJ
= libads
/kerberos_verify.o libads
/authdata.o \
417 ..
/librpc
/ndr
/ndr_krb5pac.o \
418 ..
/librpc
/gen_ndr
/ndr_krb5pac.o
420 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
422 LIBNBT_OBJ
= ..
/libcli
/nbt
/nbtname.o \
423 ..
/libcli
/netlogon.o \
424 ..
/libcli
/ndr_netlogon.o \
425 ..
/librpc
/gen_ndr
/ndr_nbt.o \
426 ..
/librpc
/gen_ndr
/ndr_svcctl.o \
427 ..
/librpc
/ndr
/ndr_svcctl.o
429 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
430 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
432 NTERR_OBJ
= libsmb
/nterr.o libsmb
/smberr.o
433 DOSERR_OBJ
= ..
/libcli
/util
/doserr.o
434 ERRORMAP_OBJ
= libsmb
/errormap.o
435 DCE_RPC_ERR_OBJ
= ..
/librpc
/rpc
/dcerpc_error.o
437 LIBSMB_ERR_OBJ0
= $(NTERR_OBJ
) $(DOSERR_OBJ
) $(ERRORMAP_OBJ
) $(DCE_RPC_ERR_OBJ
) \
438 libsmb
/smbdes.o libsmb
/smbencrypt.o libsmb
/ntlmssp_parse.o
440 LIBSMB_ERR_OBJ
= $(LIBSMB_ERR_OBJ0
) \
445 libsmb
/ntlm_check.o \
447 libsmb
/ntlmssp_sign.o
449 LIBSAMBA_OBJ
= $(LIBSMB_OBJ0
) \
452 LIBCLI_LDAP_MESSAGE_OBJ
= ..
/libcli
/ldap
/ldap_message.o
453 LIBCLI_LDAP_NDR_OBJ
= ..
/libcli
/ldap
/ldap_ndr.o
455 LIBTSOCKET_OBJ
= ..
/lib
/tsocket
/tsocket.o \
456 ..
/lib
/tsocket
/tsocket_helpers.o \
457 ..
/lib
/tsocket
/tsocket_bsd.o \
458 ..
/lib
/tsocket
/tsocket_recvfrom.o \
459 ..
/lib
/tsocket
/tsocket_sendto.o \
460 ..
/lib
/tsocket
/tsocket_connect.o \
461 ..
/lib
/tsocket
/tsocket_writev.o \
462 ..
/lib
/tsocket
/tsocket_readv.o
464 CLDAP_OBJ
= libads
/cldap.o \
465 ..
/libcli
/cldap
/cldap.o \
466 ..
/lib
/util
/idtree.o \
467 $(LIBCLI_LDAP_MESSAGE_OBJ
) $(LIBCLI_LDAP_NDR_OBJ
) $(LIBTSOCKET_OBJ
)
469 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
470 libsmb
/clikrb5.o libsmb
/clispnego.o ..
/lib
/util
/asn1.o \
471 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
472 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
473 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
474 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
475 libsmb
/credentials.o \
476 libsmb
/clioplock.o libsmb
/clirap2.o \
477 libsmb
/smb_seal.o libsmb
/async_smb.o \
484 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o
486 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
487 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
488 rpc_client
/cli_spoolss.o \
489 rpc_client
/init_spoolss.o \
490 rpc_client
/init_samr.o \
491 librpc
/rpc
/dcerpc.o \
492 ..
/librpc
/rpc
/binding.o
494 LIBMSRPC_GEN_OBJ
= ..
/librpc
/gen_ndr
/cli_lsa.o \
495 ..
/librpc
/gen_ndr
/cli_dfs.o \
496 ..
/librpc
/gen_ndr
/cli_echo.o \
497 ..
/librpc
/gen_ndr
/cli_srvsvc.o \
498 ..
/librpc
/gen_ndr
/cli_svcctl.o \
499 ..
/librpc
/gen_ndr
/cli_winreg.o \
500 ..
/librpc
/gen_ndr
/cli_initshutdown.o \
501 ..
/librpc
/gen_ndr
/cli_eventlog.o \
502 ..
/librpc
/gen_ndr
/cli_wkssvc.o \
503 ..
/librpc
/gen_ndr
/cli_netlogon.o \
504 ..
/librpc
/gen_ndr
/cli_samr.o \
505 ..
/librpc
/gen_ndr
/cli_dssetup.o \
506 ..
/librpc
/gen_ndr
/cli_ntsvcs.o \
507 ..
/librpc
/gen_ndr
/cli_epmapper.o \
508 ..
/librpc
/gen_ndr
/cli_drsuapi.o \
509 ..
/librpc
/gen_ndr
/cli_spoolss.o \
514 # registry-related objects
516 UTIL_REG_OBJ
= lib
/util_reg.o
517 UTIL_REG_API_OBJ
= lib
/util_reg_api.o
519 REG_INIT_BASIC_OBJ
= registry
/reg_init_basic.o
520 REG_INIT_SMBCONF_OBJ
= registry
/reg_init_smbconf.o
521 REG_INIT_FULL_OBJ
= registry
/reg_init_full.o
523 REGFIO_OBJ
= registry
/regfio.o
525 REGOBJS_OBJ
= registry
/reg_objects.o
527 REG_BACKENDS_BASE_OBJ
= registry
/reg_backend_db.o
529 REG_BACKENDS_SMBCONF_OBJ
= registry
/reg_backend_smbconf.o
531 REG_BACKENDS_EXTRA_OBJ
= registry
/reg_backend_printing.o \
532 registry
/reg_backend_shares.o \
533 registry
/reg_backend_netlogon_params.o \
534 registry
/reg_backend_prod_options.o \
535 registry
/reg_backend_tcpip_params.o \
536 registry
/reg_backend_hkpt_params.o \
537 registry
/reg_backend_current_version.o \
538 registry
/reg_backend_perflib.o
540 REG_BASE_OBJ
= registry
/reg_api.o \
541 registry
/reg_dispatcher.o \
542 registry
/reg_cachehook.o \
545 registry
/reg_util.o \
546 $(UTIL_REG_API_OBJ
) \
548 $(REG_BACKENDS_BASE_OBJ
) \
549 $(REG_INIT_BASIC_OBJ
)
551 REG_SMBCONF_OBJ
= $(REG_BASE_OBJ
) \
552 $(REG_BACKENDS_SMBCONF_OBJ
) \
553 $(REG_INIT_SMBCONF_OBJ
)
555 REG_FULL_OBJ
= $(REG_SMBCONF_OBJ
) \
556 $(REG_BACKENDS_EXTRA_OBJ
) \
557 $(REG_INIT_FULL_OBJ
) \
558 registry
/reg_eventlog.o \
559 registry
/reg_perfcount.o \
560 registry
/reg_util_legacy.o
562 LIB_EVENTLOG_OBJ
= rpc_server
/srv_eventlog_lib.o
564 RPC_LSA_OBJ
= rpc_server
/srv_lsa_nt.o ..
/librpc
/gen_ndr
/srv_lsa.o
566 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog_nt.o \
567 ..
/librpc
/gen_ndr
/srv_netlogon.o
569 RPC_SAMR_OBJ
= rpc_server
/srv_samr_nt.o \
570 rpc_server
/srv_samr_util.o \
571 ..
/librpc
/gen_ndr
/srv_samr.o
573 RPC_INITSHUTDOWN_OBJ
= ..
/librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
575 RPC_REG_OBJ
= rpc_server
/srv_winreg_nt.o \
576 ..
/librpc
/gen_ndr
/srv_winreg.o
578 RPC_DSSETUP_OBJ
= rpc_server
/srv_dssetup_nt.o ..
/librpc
/gen_ndr
/srv_dssetup.o
580 RPC_SVC_OBJ
= rpc_server
/srv_srvsvc_nt.o \
581 ..
/librpc
/gen_ndr
/srv_srvsvc.o
583 RPC_WKS_OBJ
= ..
/librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
585 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl_nt.o \
586 ..
/librpc
/gen_ndr
/srv_svcctl.o \
587 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
588 services
/svc_netlogon.o services
/svc_winreg.o \
591 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs_nt.o \
592 ..
/librpc
/gen_ndr
/srv_ntsvcs.o
594 RPC_DFS_OBJ
= ..
/librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
596 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss_nt.o \
597 ..
/librpc
/gen_ndr
/srv_spoolss.o
599 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog_nt.o \
600 $(LIB_EVENTLOG_OBJ
) ..
/librpc
/gen_ndr
/srv_eventlog.o
602 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
603 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
605 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o ..
/librpc
/gen_ndr
/srv_echo.o
607 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
609 RPC_PARSE_OBJ
= $(RPC_PARSE_OBJ2
)
611 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o rpc_client
/rpc_transport_np.o \
612 rpc_client
/rpc_transport_sock.o rpc_client
/rpc_transport_smbd.o
614 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
616 PRIVILEGES_BASIC_OBJ
= lib
/privileges_basic.o
618 PRIVILEGES_OBJ
= lib
/privileges.o
620 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
622 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
623 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
624 passdb
/util_unixsids.o passdb
/lookup_sid.o \
625 passdb
/login_cache.o @PDB_STATIC@ \
626 lib
/account_pol.o
$(PRIVILEGES_OBJ
) \
627 lib
/util_nscd.o lib
/winbind_util.o
$(SERVER_MUTEX_OBJ
)
629 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
630 CP850_OBJ
= modules
/CP850.o
631 CP437_OBJ
= modules
/CP437.o
632 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
634 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o groupdb
/mapping_ldb.o
636 PROFILE_OBJ
= profile
/profile.o
637 PROFILES_OBJ
= utils
/profiles.o \
640 $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
643 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o \
646 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
648 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
649 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
650 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
651 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
652 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
653 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
654 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
655 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
656 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
657 VFS_CAP_OBJ
= modules
/vfs_cap.o
658 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
659 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
660 VFS_SHADOW_COPY2_OBJ
= modules
/vfs_shadow_copy2.o
661 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
662 VFS_XATTR_TDB_OBJ
= modules
/vfs_xattr_tdb.o
663 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
664 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
665 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
666 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
667 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
668 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
669 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
670 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
671 VFS_CATIA_OBJ
= modules
/vfs_catia.o
672 VFS_STREAMS_XATTR_OBJ
= modules
/vfs_streams_xattr.o
673 VFS_STREAMS_DEPOT_OBJ
= modules
/vfs_streams_depot.o
674 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
675 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
676 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
677 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
678 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
679 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
680 VFS_TSMSM_OBJ
= modules
/vfs_tsmsm.o
681 VFS_FILEID_OBJ
= modules
/vfs_fileid.o
682 VFS_AIO_FORK_OBJ
= modules
/vfs_aio_fork.o
683 VFS_PREOPEN_OBJ
= modules
/vfs_preopen.o
684 VFS_SYNCOPS_OBJ
= modules
/vfs_syncops.o
685 VFS_ACL_XATTR_OBJ
= modules
/vfs_acl_xattr.o
686 VFS_ACL_TDB_OBJ
= modules
/vfs_acl_tdb.o
687 VFS_SMB_TRAFFIC_ANALYZER_OBJ
= modules
/vfs_smb_traffic_analyzer.o
688 VFS_ONEFS_OBJ
= modules
/vfs_onefs.o modules
/onefs_acl.o modules
/onefs_system.o \
689 modules
/onefs_open.o modules
/onefs_streams.o modules
/onefs_dir.o \
690 modules
/onefs_cbrl.o modules
/onefs_notify.o modules
/onefs_config.o
691 VFS_ONEFS_SHADOW_COPY_OBJ
= modules
/vfs_onefs_shadow_copy.o modules
/onefs_shadow_copy.o
692 PERFCOUNT_ONEFS_OBJ
= modules
/perfcount_onefs.o
693 PERFCOUNT_TEST_OBJ
= modules
/perfcount_test.o
694 VFS_DIRSORT_OBJ
= modules
/vfs_dirsort.o
696 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
698 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
700 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o libsmb
/dsgetdcname.o
702 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
703 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
704 AUTH_SAM_OBJ
= auth
/auth_sam.o
705 AUTH_SERVER_OBJ
= auth
/auth_server.o
706 AUTH_UNIX_OBJ
= auth
/auth_unix.o
707 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
708 AUTH_WBC_OBJ
= auth
/auth_wbc.o
709 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
710 AUTH_NETLOGOND_OBJ
= auth
/auth_netlogond.o
712 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
713 auth
/auth_compat.o auth
/auth_ntlmssp.o \
714 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
716 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_hash2.o
718 SMBD_OBJ_MAIN
= smbd
/server.o
720 BUILDOPT_OBJ
= smbd
/build_options.o
722 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
723 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
724 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
725 smbd
/share_access.o smbd
/fileio.o \
726 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
727 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
728 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
729 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
730 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
731 smbd
/vfs.o smbd
/perfcount.o smbd
/statcache.o smbd
/seal.o \
732 smbd
/posix_acls.o lib
/sysacls.o \
733 smbd
/process.o smbd
/service.o smbd
/error.o \
734 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
735 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
736 smbd
/change_trust_pw.o smbd
/fake_file.o \
737 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
738 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
739 smbd
/dmapi.o smbd
/signing.o \
741 smbd
/dnsregister.o smbd
/globals.o \
742 $(MANGLE_OBJ
) @VFS_STATIC@
744 SMBD_OBJ_BASE
= $(PARAM_WITHOUT_REG_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
745 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) \
746 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
747 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
748 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
749 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(AVAHI_OBJ
) \
750 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
751 $(REG_FULL_OBJ
) $(POPT_LIB_OBJ
) $(BUILDOPT_OBJ
) \
752 $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(LIBNET_OBJ
) @LIBWBCLIENT_STATIC@ \
754 $(PRIVILEGES_BASIC_OBJ
)
756 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
757 printing
/print_cups.o printing
/print_generic.o \
758 printing
/lpq_parse.o printing
/load.o \
759 printing
/print_iprint.o
761 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
762 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
764 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
766 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
767 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
768 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
769 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
770 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
771 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
772 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
773 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
774 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
775 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
776 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
777 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o smbd
/connection.o
779 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) \
780 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
783 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
784 web
/swat.o web
/neg_lang.o
786 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(PRINTBASE_OBJ
) $(LIBSMB_OBJ
) \
787 $(LOCKING_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(KRBCLIENT_OBJ
) \
788 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
789 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
790 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
792 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
793 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
794 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
797 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
798 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
802 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
803 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
804 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
805 $(RPC_CLIENT_OBJ
) ..
/librpc
/rpc
/binding.o
$(RPC_PARSE_OBJ2
) \
807 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
810 TESTPARM_OBJ
= utils
/testparm.o \
811 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
814 TEST_LP_LOAD_OBJ
= param
/test_lp_load.o \
815 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
816 $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
818 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
820 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
821 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
822 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
823 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) \
824 $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
826 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
828 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
829 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) ..
/lib
/util
/asn1.o \
832 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ1
) @LIBWBCLIENT_STATIC@
834 DISPLAY_SEC_OBJ
= lib
/display_sec.o
836 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
837 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
838 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
839 rpcclient
/cmd_dfs.o rpcclient
/cmd_epmapper.o \
840 rpcclient
/cmd_dssetup.o rpcclient
/cmd_echo.o \
841 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
842 rpcclient
/cmd_wkssvc.o rpcclient
/cmd_ntsvcs.o \
843 rpcclient
/cmd_drsuapi.o rpcclient
/cmd_eventlog.o \
846 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
847 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
848 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
849 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
850 $(LIBADS_OBJ
) $(POPT_LIB_OBJ
) \
851 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
853 PAM_WINBIND_OBJ
= ..
/nsswitch
/pam_winbind.o localedir.o
$(WBCOMMON_OBJ
) \
854 $(LIBREPLACE_OBJ
) @BUILD_INIPARSER@
856 LIBSMBCLIENT_OBJ0
= \
857 libsmb
/libsmb_cache.o \
858 libsmb
/libsmb_compat.o \
859 libsmb
/libsmb_context.o \
860 libsmb
/libsmb_dir.o \
861 libsmb
/libsmb_file.o \
862 libsmb
/libsmb_misc.o \
863 libsmb
/libsmb_path.o \
864 libsmb
/libsmb_printjob.o \
865 libsmb
/libsmb_server.o \
866 libsmb
/libsmb_stat.o \
867 libsmb
/libsmb_xattr.o \
868 libsmb
/libsmb_setget.o
870 LIBSMBCLIENT_OBJ1
= $(LIBSMBCLIENT_OBJ0
) \
871 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
872 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
873 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
874 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
876 LIBSMBCLIENT_OBJ
= $(LIBSMBCLIENT_OBJ1
) @LIBWBCLIENT_STATIC@
878 # This shared library is intended for linking with unit test programs
879 # to test Samba internals. It's called libbigballofmud.so to
880 # discourage casual usage.
882 LIBBIGBALLOFMUD_MAJOR
= 0
884 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
885 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@ \
886 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
888 CLIENT_OBJ1
= client
/client.o client
/clitar.o
$(RPC_CLIENT_OBJ
) \
889 ..
/librpc
/rpc
/binding.o \
894 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
895 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
896 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
897 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
900 LIBSMBCONF_OBJ
= ..
/lib
/smbconf
/smbconf.o \
901 ..
/lib
/smbconf
/smbconf_util.o \
902 ..
/lib
/smbconf
/smbconf_txt.o \
903 lib
/smbconf
/smbconf_reg.o \
904 lib
/smbconf
/smbconf_init.o
906 SMBCONFTORT_OBJ0
= lib
/smbconf
/testsuite.o
908 SMBCONFTORT_OBJ
= $(SMBCONFTORT_OBJ0
) \
914 LIBNET_OBJ
= libnet
/libnet_join.o \
915 libnet
/libnet_keytab.o \
916 libnet
/libnet_samsync.o \
917 libnet
/libnet_samsync_ldif.o \
918 libnet
/libnet_samsync_passdb.o \
919 libnet
/libnet_samsync_display.o \
920 libnet
/libnet_samsync_keytab.o \
921 libnet
/libnet_dssync.o \
922 libnet
/libnet_dssync_keytab.o \
923 librpc
/gen_ndr
/ndr_libnet_join.o
925 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_help.o \
926 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
927 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
928 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
929 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
930 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
931 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
932 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
933 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
934 utils
/net_conf.o utils
/net_join.o utils
/net_user.o \
935 utils
/net_group.o utils
/net_file.o utils
/net_registry.o \
936 auth
/token_util.o utils
/net_dom.o utils
/net_share.o utils
/net_lua.o \
939 # these are not processed by make proto
940 NET_OBJ2
= utils
/net_registry_util.o utils
/net_help_common.o
942 NET_OBJ
= $(NET_OBJ1
) \
943 $(NET_OBJ2
) @FAKE_KASERVER_OBJ@\
944 $(PARAM_WITHOUT_REG_OBJ
) $(LIBSMB_OBJ
) \
945 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
946 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
947 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
948 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
949 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) \
950 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(READLINE_OBJ
) \
951 $(LDB_OBJ
) $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) \
952 $(REG_SMBCONF_OBJ
) @LIBNETAPI_STATIC@
$(LIBNET_OBJ
) \
954 @LIBWBCLIENT_STATIC@ \
955 $(PRIVILEGES_BASIC_OBJ
) @LIBLUA_STATIC@ \
958 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) \
959 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
962 CIFS_MOUNT_OBJ
= client
/mount.cifs.o client
/mtab.o
964 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o client
/mtab.o
966 CIFS_UPCALL_OBJ
= client
/cifs.upcall.o
968 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) \
969 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
971 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
972 torture
/denytest.o torture
/mangle_test.o
974 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
975 $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
976 lib
/wb_reqtrans.o lib
/wbclient.o \
977 @LIBWBCLIENT_STATIC@ \
980 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) \
984 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) \
988 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
989 $(LIBSMB_OBJ
) $(LDB_OBJ
) $(LIB_NONSMBD_OBJ
) \
992 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) \
996 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
997 $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
998 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
) \
1001 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
1003 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
1005 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
1007 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) \
1008 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
1011 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1012 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
1013 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1014 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
1016 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1018 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
1019 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(POPT_LIB_OBJ
) \
1020 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
1022 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
1024 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1026 registry
/reg_eventlog.o
$(LIB_EVENTLOG_OBJ
) \
1027 ..
/librpc
/gen_ndr
/ndr_eventlog.o \
1028 ..
/librpc
/gen_ndr
/ndr_lsa.o
1030 SHARESEC_OBJ0
= utils
/sharesec.o
1031 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1035 TALLOCTORT_OBJ
= @tallocdir@
/testsuite.o @tallocdir@
/testsuite_main.o \
1036 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSAMBA_OBJ
)
1038 REPLACETORT_OBJ
= @libreplacedir@
/test/testsuite.o \
1039 @libreplacedir@
/test/getifaddrs.o \
1040 @libreplacedir@
/test/os2_delete.o \
1041 @libreplacedir@
/test/strptime.o \
1042 @libreplacedir@
/test/main.o \
1045 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
1047 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) \
1048 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
1051 WINBIND_WINS_NSS_OBJ
= ..
/nsswitch
/wins.o
$(PARAM_OBJ
) \
1052 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) \
1055 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
1056 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o
1057 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
1058 $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
1061 IDMAP_OBJ
= winbindd
/idmap.o winbindd
/idmap_util.o @IDMAP_STATIC@
1063 NSS_INFO_OBJ
= winbindd
/nss_info.o @NSS_INFO_STATIC@
1066 winbindd
/idmap_hash
/idmap_hash.o \
1067 winbindd
/idmap_hash
/mapfile.o
1070 winbindd
/idmap_adex
/idmap_adex.o \
1071 winbindd
/idmap_adex
/cell_util.o \
1072 winbindd
/idmap_adex
/likewise_cell.o \
1073 winbindd
/idmap_adex
/provider_unified.o \
1074 winbindd
/idmap_adex
/gc_util.o \
1075 winbindd
/idmap_adex
/domain_util.o
1078 winbindd
/winbindd.o \
1079 winbindd
/winbindd_user.o \
1080 winbindd
/winbindd_group.o \
1081 winbindd
/winbindd_util.o \
1082 winbindd
/winbindd_cache.o \
1083 winbindd
/winbindd_pam.o \
1084 winbindd
/winbindd_sid.o \
1085 winbindd
/winbindd_misc.o \
1086 winbindd
/winbindd_cm.o \
1087 winbindd
/winbindd_wins.o \
1088 winbindd
/winbindd_rpc.o \
1089 winbindd
/winbindd_reconnect.o \
1090 winbindd
/winbindd_ads.o \
1091 winbindd
/winbindd_passdb.o \
1092 winbindd
/winbindd_dual.o \
1093 winbindd
/winbindd_async.o \
1094 winbindd
/winbindd_creds.o \
1095 winbindd
/winbindd_cred_cache.o \
1096 winbindd
/winbindd_ccache_access.o \
1097 winbindd
/winbindd_domain.o \
1098 winbindd
/winbindd_idmap.o \
1099 winbindd
/winbindd_locator.o \
1100 winbindd
/winbindd_ndr.o \
1105 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(GROUPDB_OBJ
) \
1106 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1107 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
1108 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
1109 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
1110 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
1111 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1112 $(LIBADS_SERVER_OBJ
) $(LDB_OBJ
) \
1115 WBINFO_OBJ
= ..
/nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1116 $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1117 lib
/winbind_util.o
$(WBCOMMON_OBJ
) @LIBWBCLIENT_STATIC@
1119 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
1121 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
1122 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
1123 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
1124 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
1125 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
1127 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
1128 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
1129 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
1131 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
1132 lib
/ldb
/modules
/objectclass.o \
1133 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
1135 # enabled in configure.in
1136 LDB_LDAP_OBJ
=@LDBLDAP@
1138 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1140 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) \
1141 $(POPT_LIB_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) $(LIBSMB_ERR_OBJ0
) \
1142 $(RPC_PARSE_OBJ1
) $(SECRETS_OBJ
) \
1143 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
1146 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
1147 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
1148 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
1149 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
1150 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
1151 LDBRENAME_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbrename.o
1153 WINBIND_KRB5_LOCATOR_OBJ1
= ..
/nsswitch
/winbind_krb5_locator.o
1154 WINBIND_KRB5_LOCATOR_OBJ
= $(WINBIND_KRB5_LOCATOR_OBJ1
) $(LIBREPLACE_OBJ
)
1156 POPT_OBJ
=..
/lib
/popt
/findme.o ..
/lib
/popt
/popt.o ..
/lib
/popt
/poptconfig.o \
1157 ..
/lib
/popt
/popthelp.o ..
/lib
/popt
/poptparse.o
1159 INIPARSER_OBJ
= iniparser_build
/iniparser.o iniparser_build
/dictionary.o \
1160 iniparser_build
/strlib.o
1162 TDBBACKUP_OBJ
= @tdbdir@
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
1163 @LIBTDB_STATIC@
$(SOCKET_WRAPPER_OBJ
)
1165 TDBTOOL_OBJ
= @tdbdir@
/tools
/tdbtool.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1166 $(SOCKET_WRAPPER_OBJ
)
1168 TDBDUMP_OBJ
= @tdbdir@
/tools
/tdbdump.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1169 $(SOCKET_WRAPPER_OBJ
)
1171 TDBTORTURE_OBJ
= @tdbdir@
/tools
/tdbtorture.o @LIBTDB_STATIC@
$(LIBREPLACE_OBJ
) \
1172 $(SOCKET_WRAPPER_OBJ
)
1175 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
1177 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
1178 ..
/lib
/util
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
1179 $(LIBADS_SERVER_OBJ
) \
1180 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1181 $(SMBLDAP_OBJ
) $(LIBNMB_OBJ
) \
1182 $(LDB_OBJ
) $(WBCOMMON_OBJ
) @LIBWBCLIENT_STATIC@ \
1183 $(LIBNDR_GEN_OBJ0
) $(LIBNDR_GEN_OBJ1
)
1186 VLP_OBJ1
= printing
/tests
/vlp.o
$(RPC_CLIENT_OBJ1
) $(RPC_PARSE_OBJ2
) $(RPC_CLIENT_OBJ
) ..
/librpc
/rpc
/binding.o
1188 VLP_OBJ
= $(VLP_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1189 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1190 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
1191 $(PASSDB_OBJ
) @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
1194 RPC_OPEN_TCP_OBJ
= torture
/rpc_open_tcp.o \
1198 @LIBWBCLIENT_STATIC@
$(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
1199 $(LIB_NONSMBD_OBJ
) \
1202 $(RPC_CLIENT_OBJ1
) \
1203 rpc_client
/cli_pipe.o \
1204 ..
/librpc
/rpc
/binding.o \
1208 ######################################################################
1210 ######################################################################
1211 all:: SHOWFLAGS basics libs
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1212 $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @CIFSUPCALL_PROGS@ \
1213 $(EXTRA_ALL_TARGETS
)
1217 nss_modules
:: $(NSS_MODULES
)
1219 pam_modules
:: $(PAM_MODULES
)
1221 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
1223 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
1225 gpext_modules
:: $(GPEXT_MODULES
)
1227 torture
:: SHOWFLAGS basics
$(TORTURE_PROGS
)
1229 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
1231 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
1233 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
1235 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
1237 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
1239 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
1241 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
1243 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
1245 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
1247 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
1249 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
1251 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
1253 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
1255 smbconftort
: SHOWFLAGS bin
/smbconftort@EXEEXT@
1257 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
1259 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1260 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1261 bin
/pam_winbind.@SHLIBEXT@ bin
/smbcontrol@EXEEXT@
1263 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
1265 modules
:: SHOWFLAGS
$(MODULES
)
1267 #####################################################################
1268 ## Perl IDL Compiler
1270 @PIDL_OUTPUTDIR
="../librpc/gen_ndr" PIDL_ARGS
="$(PIDL_ARGS)" CPP
="$(CPP)" PIDL
="../pidl/pidl" \
1271 srcdir="$(srcdir)" ..
/librpc
/build_idl.sh ..
/librpc
/idl
/*.idl
1272 @PIDL_OUTPUTDIR
="librpc/gen_ndr" PIDL_ARGS
="$(PIDL_ARGS)" CPP
="$(CPP)" PIDL
="../pidl/pidl" \
1273 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh \
1274 librpc
/idl
/messaging.idl librpc
/idl
/libnetapi.idl librpc
/idl
/notify.idl
1276 #####################################################################
1279 everything
:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1283 .SUFFIXES
: .c .o .lo
1285 .PHONY
: showflags SHOWFLAGS
1287 showflags
: SHOWFLAGS
1290 @echo
"Using CFLAGS = $(CFLAGS)"
1291 @echo
" PICFLAG = $(PICFLAG)"
1292 @echo
" LIBS = $(LIBS)"
1293 @echo
" LDFLAGS = $(LDFLAGS)"
1294 @echo
" DYNEXP = $(DYNEXP)"
1295 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1296 @echo
" SHLIBEXT = @SHLIBEXT@"
1297 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1299 MAKEDIR
= || exec false
; \
1300 if
test -d
"$$dir"; then
:; else \
1301 echo mkdir
"$$dir"; \
1302 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1303 test -d
"$$dir" || \
1305 exec false
; fi || exec false
1307 # Run a static checker.
1308 CHECK_CC
= $(CC_CHECKER
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1309 # Compile a source file.
1310 COMPILE_CC
= $(CC
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1311 # Compile a source file with the installation paths defined.
1312 COMPILE_CC_PATH
= $(CC
) $(PATH_FLAGS
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1314 COMPILE
= $(COMPILE_CC
)
1317 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1318 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1319 @if
test -n
"$(CC_CHECKER)"; then \
1320 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1323 @echo Compiling
$*.c
1324 @
$(COMPILE
) && exit
0;\
1325 echo
"The following command failed:" 1>&2;\
1326 echo
"$(subst ",\",$(COMPILE_CC
))" 1>&2;\
1327 $(COMPILE_CC) >/dev/null 2>&1
1328 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1330 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1332 # this adds support for precompiled headers. To use it, install a snapshot
1333 # of gcc-3.4 and run 'make pch' before you do the main build.
1335 rm -f $(PRECOMPILED_HEADER)
1336 $(MAKE) $(PRECOMPILED_HEADER)
1338 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1341 BINARY_PREREQS = bin/.dummy
1343 # These dependencies are only approximately correct: we want to make
1344 # sure Samba's paths are updated if ./configure is re-run. Really it
1345 # would be nice if "make
prefix=/opt
/samba
all" also rebuilt things,
1346 # but since we also require "make
install prefix=/opt
/samba
" *not* to
1347 # rebuild it's a bit hard.
1349 dynconfig.o: dynconfig.c Makefile
1350 @echo Compiling $*.c
1351 @$(COMPILE_CC_PATH) && exit 0;\
1352 echo "The following command failed
:" 1>&2;\
1353 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1354 $(COMPILE_CC_PATH) >/dev/null 2>&1
1356 localedir.o: localedir.c Makefile
1357 @echo Compiling $*.c
1358 @$(COMPILE_CC_PATH) && exit 0;\
1359 echo "The following command failed
:" 1>&2;\
1360 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1361 $(COMPILE_CC_PATH) >/dev/null 2>&1
1363 lib/pidfile.o: lib/pidfile.c
1364 @echo Compiling $*.c
1365 @$(COMPILE_CC_PATH) && exit 0;\
1366 echo "The following command failed
:" 1>&2;\
1367 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1368 $(COMPILE_CC_PATH) >/dev/null 2>&1
1370 lib/version.o: lib/version.c include/version.h
1371 @echo Compiling $*.c
1372 @$(COMPILE_CC_PATH) && exit 0;\
1373 echo "The following command failed
:" 1>&2;\
1374 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1375 $(COMPILE_CC_PATH) >/dev/null 2>&1
1377 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1378 @echo Compiling $*.c
1379 @$(COMPILE_CC_PATH) && exit 0;\
1380 echo "The following command failed
:" 1>&2;\
1381 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1382 $(COMPILE_CC_PATH) >/dev/null 2>&1
1384 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1386 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1389 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1390 dir=bin $(MAKEDIR); fi
1391 @: >> $@ || : > $@ # what a fancy emoticon!
1393 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @BUILD_POPT@
1395 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1396 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1397 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1398 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1399 $(WINBIND_LIBS) $(ZLIB_LIBS)
1401 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1403 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1404 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1405 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1407 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1409 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1410 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1411 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(ZLIB_LIBS)
1413 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1415 @$(CC) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1416 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1417 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1418 $(WINBIND_LIBS) $(ZLIB_LIBS)
1420 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1422 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1423 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1424 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1425 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(ZLIB_LIBS)
1427 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@ @LIBNETAPI_SHARED@ @LIBLUA_SHARED@
1429 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1430 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1431 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1432 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBNETAPI_LIBS) $(LIBLUA_LIBS) -lm \
1435 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1437 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1438 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1440 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1442 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1443 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1445 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ)
1447 @$(CC) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1449 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ)
1451 @$(CC) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1453 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1455 @$(CC) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1456 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ1) $(KRB5LIBS) \
1457 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(WINBIND_LIBS) \
1458 $(LIBTDB_LIBS) $(NSCD_LIBS)
1460 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1462 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1463 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1465 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1467 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1468 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1470 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1472 @$(CC) -DUSING_SMBCONTROL -o $@ \
1473 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1474 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1475 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1477 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1479 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1480 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1481 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(ZLIB_LIBS)
1483 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1485 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1486 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1487 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(ZLIB_LIBS)
1489 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1491 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1492 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1493 $(LIBTDB_LIBS) $(WINBIND_LIBS)
1495 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1497 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1498 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1499 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(ZLIB_LIBS)
1501 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1503 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1504 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1506 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1508 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1509 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1510 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(WINBIND_LIBS)
1512 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1514 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1515 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1516 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1518 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1520 @$(CC) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1521 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1523 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1525 @$(CC) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1526 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1527 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1529 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1531 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1532 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1533 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1535 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1537 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1538 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1539 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1541 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1543 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1544 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1545 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(ZLIB_LIBS)
1547 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1549 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1550 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1551 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(ZLIB_LIBS)
1553 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1555 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1556 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1558 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1560 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1561 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1563 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1565 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1566 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1567 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1569 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1571 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1572 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1573 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1575 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1577 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1578 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1579 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(ZLIB_LIBS)
1581 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1583 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1584 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1585 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1586 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1587 $(WINBIND_LIBS) $(ZLIB_LIBS)
1589 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1591 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1592 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1593 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1595 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1597 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1598 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1600 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1602 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1603 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1604 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1606 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@
1608 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1609 $(LIBS) $(LIBTALLOC_LIBS)
1611 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
1613 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1614 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1615 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1617 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1619 @$(CC) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1620 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1621 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1623 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1625 @$(CC) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1626 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1627 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1629 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1631 @$(CC) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1632 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1633 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1635 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1637 @$(CC) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1638 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1639 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1641 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1643 @$(CC) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1644 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1645 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1647 bin/ldbrename: $(BINARY_PREREQS) $(LDBRENAME_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1649 @$(CC) $(FLAGS) -o $@ $(LDBRENAME_OBJ) $(DYNEXP) $(LDFLAGS) \
1650 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1651 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1653 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1655 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1658 #####################################################################
1662 #####################################################################
1664 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1667 #-------------------------------------------------------------------
1671 #-------------------------------------------------------------------
1674 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1675 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1677 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1678 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1679 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1680 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1681 LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
1682 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1683 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1685 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1686 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1688 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1689 @echo Linking shared library $@
1690 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1692 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1694 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1696 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1697 @echo Linking non-shared library $@
1698 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1700 libtalloc: $(LIBTALLOC)
1705 $(LIBTALLOC_STATIC_TARGET) \
1706 $(LIBTALLOC_SHARED_TARGET) \
1707 $(LIBTALLOC_SHARED_TARGET_SONAME)
1709 installlibtalloc:: installdirs libtalloc
1710 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1711 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1712 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1713 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1714 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1715 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1717 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1718 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1719 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1721 uninstalllibtalloc::
1722 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1723 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1724 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1725 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1728 installlibs:: @INSTALL_LIBTALLOC@
1729 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1730 cleanlibs:: cleanlibtalloc
1731 shlibs test_shlibs: @LIBTALLOC_SHARED@
1733 #-------------------------------------------------------------------
1737 #-------------------------------------------------------------------
1739 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
1740 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1742 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1743 LIBTDB_SOVER=@LIBTDB_SOVER@
1744 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1745 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1746 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
1747 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1748 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1750 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1751 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1753 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1754 @echo Linking shared library $@
1755 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1756 @SONAMEFLAG@`basename $@`
1758 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1760 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1762 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1763 @echo Linking non-shared library $@
1764 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1771 $(LIBTDB_STATIC_TARGET) \
1772 $(LIBTDB_SHARED_TARGET) \
1773 $(LIBTDB_SHARED_TARGET_SONAME)
1776 installlibtdb:: installdirs libtdb
1777 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1778 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1779 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1780 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1781 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1782 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1784 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1785 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1786 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1789 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1790 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1791 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1792 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1795 installlibs:: @INSTALL_LIBTDB@
1796 uninstalllibs:: @UNINSTALL_LIBTDB@
1797 cleanlibs:: cleanlibtdb
1798 shlibs test_shlibs: @LIBTDB_SHARED@
1800 #-------------------------------------------------------------------
1804 #-------------------------------------------------------------------
1806 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
1807 ../nsswitch/libwbclient/wbc_util.o \
1808 ../nsswitch/libwbclient/wbc_pwd.o \
1809 ../nsswitch/libwbclient/wbc_idmap.o \
1810 ../nsswitch/libwbclient/wbc_sid.o \
1811 ../nsswitch/libwbclient/wbc_guid.o \
1812 ../nsswitch/libwbclient/wbc_pam.o
1813 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1815 @LIBTALLOC_STATIC@ $(LIBREPLACE_OBJ)
1817 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1818 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1819 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1820 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1821 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1822 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1823 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
1825 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1826 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1828 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_SHARED@
1829 @echo Linking shared library $@
1830 @$(SHLD_DSO) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_OBJ) \
1831 @SONAMEFLAG@`basename $@`
1833 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1835 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1837 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1838 @echo Linking non-shared library $@
1839 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1841 libwbclient: $(LIBWBCLIENT)
1845 $(LIBWBCLIENT_SYMS) \
1846 $(LIBWBCLIENT_STATIC_TARGET) \
1847 $(LIBWBCLIENT_SHARED_TARGET) \
1848 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1850 installlibwbclient:: installdirs libwbclient
1851 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1852 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1853 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1854 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1855 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1856 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1858 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1859 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1861 uninstalllibwbclient::
1862 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1863 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1864 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1867 installlibs:: @INSTALL_LIBWBCLIENT@
1868 uninstalllibs:: uninstalllibwbclient
1869 cleanlibs:: cleanlibwbclient
1870 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1873 #-------------------------------------------------------------------
1877 #-------------------------------------------------------------------
1880 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1881 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1882 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1883 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1884 LIBADDNS=$(LIBADDNS_STATIC_TARGET) @LIBADDNS_SHARED@
1885 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1886 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1888 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_SHARED@
1889 @echo Linking shared library $@
1890 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1891 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1892 @SONAMEFLAG@`basename $@`
1894 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1896 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1898 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1899 @echo Linking non-shared library $@
1900 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1902 libaddns: $(LIBADDNS)
1906 $(LIBADDNS_SHARED_TARGET) \
1907 $(LIBADDNS_SHARED_TARGET_SONAME) \
1908 $(LIBADDNS_STATIC_TARGET)
1910 installlibaddns:: installdirs libaddns
1911 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1912 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1913 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1914 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1915 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1916 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1918 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1921 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
1922 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1923 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
1926 installlibs:: @INSTALL_LIBADDNS@
1927 uninstalllibs:: @UNINSTALL_LIBADDNS@
1928 cleanlibs:: cleanlibaddns
1929 shlibs test_shlibs: @LIBADDNS_SHARED@
1931 #-------------------------------------------------------------------
1935 #-------------------------------------------------------------------
1937 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
1939 librpc/gen_ndr/ndr_libnetapi.o \
1940 lib/netapi/libnetapi.o \
1941 lib/netapi/joindomain.o \
1942 lib/netapi/serverinfo.o \
1943 lib/netapi/getdc.o \
1945 lib/netapi/group.o \
1946 lib/netapi/localgroup.o \
1949 lib/netapi/share.o \
1952 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
1954 $(REG_SMBCONF_OBJ) \
1955 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
1956 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1957 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
1958 $(PASSDB_OBJ) @LIBWBCLIENT_STATIC@ $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
1959 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
1962 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
1963 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
1964 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
1965 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
1966 LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
1967 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
1968 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
1970 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
1971 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
1973 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
1974 @echo Linking shared library $@
1975 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
1976 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
1977 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
1978 @SONAMEFLAG@`basename $@`
1980 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
1982 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
1984 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
1985 @echo Linking non-shared library $@
1986 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
1988 libnetapi: $(LIBNETAPI)
1993 $(LIBNETAPI_STATIC_TARGET) \
1994 $(LIBNETAPI_SHARED_TARGET) \
1995 $(LIBNETAPI_SHARED_TARGET_SONAME)
1997 installlibnetapi:: installdirs libnetapi
1998 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1999 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2000 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2001 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2002 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2003 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2005 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2006 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2007 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2009 uninstalllibnetapi::
2010 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2011 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2012 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2013 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2016 installlibs:: @INSTALL_LIBNETAPI@
2017 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2018 cleanlibs:: cleanlibnetapi
2019 shlibs test_shlibs: @LIBNETAPI_SHARED@
2021 #-------------------------------------------------------------------
2025 #-------------------------------------------------------------------
2027 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2028 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2029 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2030 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2031 LIBSMBCLIENT=$(LIBSMBCLIENT_STATIC_TARGET) @LIBSMBCLIENT_SHARED@
2032 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2033 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2035 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2036 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2038 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2039 @echo Linking shared library $@
2040 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
2041 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
2042 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2043 @SONAMEFLAG@`basename $@`
2045 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2047 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2049 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2050 @echo Linking non-shared library $@
2051 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2053 libsmbclient: $(LIBSMBCLIENT)
2057 $(LIBSMBCLIENT_SHARED_TARGET) \
2058 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2059 $(LIBSMBCLIENT_STATIC_TARGET)
2061 installlibsmbclient:: installdirs libsmbclient
2062 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2063 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2064 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2065 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2066 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2067 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2069 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2070 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2071 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2073 installclientlib:: installlibsmbclient
2075 uninstalllibsmbclient::
2076 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2077 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2078 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2079 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2081 uninstallclientlib:: uninstalllibsmbclient
2084 installlibs:: @INSTALL_LIBSMBCLIENT@
2085 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2086 cleanlibs:: cleanlibsmbclient
2087 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2089 #-------------------------------------------------------------------
2093 #-------------------------------------------------------------------
2095 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2097 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0) @LIBTDB_STATIC@
2099 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2100 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2101 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2102 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2103 LIBSMBSHAREMODES=$(LIBSMBSHAREMODES_STATIC_TARGET) @LIBSMBSHAREMODES_SHARED@
2104 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2105 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2107 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2108 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2110 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2111 @echo Linking shared library $@
2112 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2113 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2114 $(KRB5LIBS) $(LDAP_LIBS) \
2115 @SONAMEFLAG@`basename $@`
2117 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2119 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2121 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2122 @echo Linking non-shared library $@
2123 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2125 libsmbsharemodes: $(LIBSMBSHAREMODES)
2127 cleanlibsmbsharemodes::
2129 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2130 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2131 $(LIBSMBSHAREMODES_STATIC_TARGET)
2133 installlibsmbsharemodes:: installdirs libsmbsharemodes
2134 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2135 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2136 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2137 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2138 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2139 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2141 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2142 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2143 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2145 uninstalllibsmbsharemodes::
2146 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2147 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2148 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2149 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2151 libs:: libsmbsharemodes
2152 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2153 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2154 cleanlibs:: cleanlibsmbsharemodes
2155 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2157 #-------------------------------------------------------------------
2161 #-------------------------------------------------------------------
2163 # This is probably wrong for anything other than the GNU linker.
2164 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_SHARED@
2165 @echo Linking shared library $@
2166 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2167 $(LIBS) $(LIBTALLOC_LIBS) \
2168 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2169 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2170 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2172 # It would be nice to build a static bigballofmud too, but when I try
2173 # I get linker errors about dl_open and similar things. I'm not sure if
2174 # it can be fixed or if they just can't be called from a static
2177 #-------------------------------------------------------------------
2181 #-------------------------------------------------------------------
2183 LIBLUA_OBJ0 = lua-5.1.4/src/lapi.o lua-5.1.4/src/lauxlib.o \
2184 lua-5.1.4/src/lbaselib.o lua-5.1.4/src/lcode.o \
2185 lua-5.1.4/src/ldblib.o lua-5.1.4/src/ldebug.o lua-5.1.4/src/ldo.o \
2186 lua-5.1.4/src/ldump.o lua-5.1.4/src/lfunc.o lua-5.1.4/src/lgc.o \
2187 lua-5.1.4/src/linit.o lua-5.1.4/src/liolib.o lua-5.1.4/src/llex.o \
2188 lua-5.1.4/src/lmathlib.o lua-5.1.4/src/lmem.o \
2189 lua-5.1.4/src/loadlib.o lua-5.1.4/src/lobject.o \
2190 lua-5.1.4/src/lopcodes.o lua-5.1.4/src/loslib.o \
2191 lua-5.1.4/src/lparser.o lua-5.1.4/src/lstate.o \
2192 lua-5.1.4/src/lstring.o lua-5.1.4/src/lstrlib.o \
2193 lua-5.1.4/src/ltable.o lua-5.1.4/src/ltablib.o lua-5.1.4/src/ltm.o \
2194 lua-5.1.4/src/lundump.o lua-5.1.4/src/lvm.o \
2195 lua-5.1.4/src/lzio.o lua-5.1.4/src/print.o
2197 LIBLUA_OBJ = $(LIBLUA_OBJ0)
2199 LIBLUA_SHARED_TARGET=@LIBLUA_SHARED_TARGET@
2200 LIBLUA_SOVER=@LIBLUA_SOVER@
2201 LIBLUA_SHARED_TARGET_SONAME=$(LIBLUA_SHARED_TARGET).$(LIBLUA_SOVER)
2202 LIBLUA_STATIC_TARGET=@LIBLUA_STATIC_TARGET@
2203 LIBLUA=$(LIBLUA_STATIC_TARGET) @LIBLUA_SHARED@
2204 LIBLUA_SYMS=$(srcdir)/exports/liblua.@SYMSEXT@
2205 LIBLUA_HEADERS=$(srcdir)/lua-5.1.4/src/lua.h
2207 $(LIBLUA_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBLUA_OBJ) $(LIBLUA_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2208 @echo Linking shared library $@
2209 @$(SHLD_DSO) $(LIBLUA_OBJ) \
2210 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2211 $(KRB5LIBS) $(LDAP_LIBS) \
2212 @SONAMEFLAG@`basename $@`
2214 $(LIBLUA_SHARED_TARGET): $(LIBLUA_SHARED_TARGET_SONAME)
2216 @ln -f -s `basename $(LIBLUA_SHARED_TARGET_SONAME)` $@
2218 $(LIBLUA_STATIC_TARGET): $(BINARY_PREREQS) $(LIBLUA_OBJ0)
2219 @echo Linking non-shared library $@
2220 @-$(AR) -rc $@ $(LIBLUA_OBJ0)
2226 $(LIBLUA_SHARED_TARGET) \
2227 $(LIBLUA_SHARED_TARGET_SONAME) \
2228 $(LIBLUA_STATIC_TARGET)
2230 installliblua:: installdirs liblua
2231 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2232 -$(INSTALLLIBCMD_SH) $(LIBLUA_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2233 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)`
2234 -if test -f $(LIBLUA_SHARED_TARGET_SONAME) ; then \
2235 ln -f -s `basename $(LIBLUA_SHARED_TARGET_SONAME)` \
2236 $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)` ; \
2238 -$(INSTALLLIBCMD_A) $(LIBLUA_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2239 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2240 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBLUA_HEADERS) $(DESTDIR)${prefix}/include
2243 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)`
2244 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET_SONAME)`
2245 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_STATIC_TARGET)`
2246 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2249 installlibs:: @INSTALL_LIBLUA@
2250 uninstalllibs:: @UNINSTALL_LIBLUA@
2251 cleanlibs:: cleanliblua
2252 shlibs test_shlibs: @LIBLUA_SHARED@
2255 #####################################################################
2259 #####################################################################
2261 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2262 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2263 -o $@ @SONAMEFLAG@`basename $@`
2265 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2267 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2269 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2271 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2273 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2275 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2277 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2279 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2281 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2283 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2285 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2287 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2289 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2291 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2293 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2295 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2297 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2299 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2301 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2303 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2305 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2307 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2309 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2311 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2313 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2315 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2317 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2319 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2321 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2323 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2324 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2325 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) \
2328 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2330 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2331 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2332 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2333 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) \
2336 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2338 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2339 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2340 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2342 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2344 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2345 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2346 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2348 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) @LIBWBCLIENT_SHARED@
2350 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(WINBIND_LIBS) \
2351 @SONAMEFLAG@`basename $@`
2353 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@
2354 @echo "Linking shared library
$@
"
2355 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2356 $(PAM_WINBIND_EXTRA_LIBS) $(LIBTALLOC_LIBS) $(WINBIND_LIBS) @SONAMEFLAG@`basename $@`
2358 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2359 @echo "Building plugin
$@
"
2360 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2362 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2363 @echo "Building plugin
$@
"
2364 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2366 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2367 @echo "Building plugin
$@
"
2368 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2370 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2371 @echo "Building plugin
$@
"
2372 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2374 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2375 @echo "Building plugin
$@
"
2376 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2378 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2379 @echo "Building plugin
$@
"
2380 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2382 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2383 @echo "Building plugin
$@
"
2384 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2386 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2387 @echo "Building plugin
$@
"
2388 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2390 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2391 @echo "Building plugin
$@
"
2392 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2394 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2395 @echo "Building plugin
$@
"
2396 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2398 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2399 @echo "Building plugin
$@
"
2400 @$(SHLD_MODULE) passdb/pdb_tdb.o
2402 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2403 @echo "Building plugin
$@
"
2404 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2406 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2407 @echo "Building plugin
$@
"
2408 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2410 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2411 @echo "Building plugin
$@
"
2412 @$(SHLD_MODULE) winbindd/idmap_rid.o
2414 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2415 @echo "Building plugin
$@
"
2416 @$(SHLD_MODULE) winbindd/idmap_ad.o
2418 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2419 @echo "Building plugin
$@
"
2420 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2422 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2423 @echo "Building plugin
$@
"
2424 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2426 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2427 @echo "Building plugin
$@
"
2428 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2430 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2431 @echo "Building plugin
$@
"
2432 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2434 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2435 @echo "Building plugin
$@
"
2436 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2438 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2439 @echo "Building plugin
$@
"
2440 @$(SHLD_MODULE) $(CP850_OBJ)
2442 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2443 @echo "Building plugin
$@
"
2444 @$(SHLD_MODULE) $(CP437_OBJ)
2446 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2447 @echo "Building plugin
$@
"
2448 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2450 # NOTE, there is no build rule for a dynamic default VFS module because
2451 # this one MUST MUST MUST be built statically.
2453 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2454 @echo "Building plugin
$@
"
2455 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2457 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2458 @echo "Building plugin
$@
"
2459 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2461 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2462 @echo "Building plugin
$@
"
2463 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2465 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2466 @echo "Building plugin
$@
"
2467 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2469 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2470 @echo "Building plugin
$@
"
2471 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2473 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2474 @echo "Building plugin
$@
"
2475 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2477 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2478 @echo "Building plugin
$@
"
2479 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2481 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2482 @echo "Building plugin
$@
"
2483 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2485 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2486 @echo "Building plugin
$@
"
2487 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2489 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2490 @echo "Building plugin
$@
"
2491 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2493 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2494 @echo "Building plugin
$@
"
2495 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2497 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2498 @echo "Building plugin
$@
"
2499 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2501 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2502 @echo "Building plugin
$@
"
2503 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2505 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2506 @echo "Building plugin
$@
"
2507 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2509 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2510 @echo "Building plugin
$@
"
2511 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2513 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2514 @echo "Building plugin
$@
"
2515 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2517 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2518 @echo "Building plugin
$@
"
2519 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2521 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2522 @echo "Building plugin
$@
"
2523 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2525 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2526 @echo "Building plugin
$@
"
2527 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2529 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2530 @echo "Building plugin
$@
"
2531 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2533 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2534 @echo "Building plugin
$@
"
2535 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2537 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2538 @echo "Building plugin
$@
"
2539 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2541 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2542 @echo "Building plugin
$@
"
2543 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2545 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2546 @echo "Building plugin
$@
"
2547 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2549 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2550 @echo "Building plugin
$@
"
2551 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2553 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2554 @echo "Building plugin
$@
"
2555 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2557 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2558 @echo "Building plugin
$@
"
2559 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2561 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2562 @echo "Building plugin
$@
"
2563 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2565 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2566 @echo "Building plugin
$@
"
2567 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2569 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2570 @echo "Building plugin
$@
"
2571 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2573 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2574 @echo "Building plugin
$@
"
2575 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2577 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2578 @echo "Building plugin
$@
"
2579 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2581 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2582 @echo "Building plugin
$@
"
2583 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2585 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2586 @echo "Building plugin
$@
"
2587 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2589 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2590 @echo "Building plugin
$@
"
2591 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2593 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2594 @echo "Building plugin
$@
"
2595 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2597 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2598 @echo "Building plugin
$@
"
2599 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2601 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2602 @echo "Building plugin
$@
"
2603 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2605 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2606 @echo "Building plugin
$@
"
2607 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2609 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2610 @echo "Building plugin
$@
"
2611 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2613 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2614 @echo "Building plugin
$@
"
2615 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2617 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2618 @echo "Building plugin
$@
"
2619 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2621 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2622 @echo "Building plugin
$@
"
2623 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2625 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2626 @echo "Building plugin
$@
"
2627 @$(SHLD_MODULE) libgpo/gpext/registry.o
2629 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2630 @echo "Building plugin
$@
"
2631 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2633 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2634 @echo "Building plugin
$@
"
2635 @$(SHLD_MODULE) libgpo/gpext/security.o
2637 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2638 @echo "Building plugin
$@
"
2639 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2641 #########################################################
2642 ## IdMap NSS plugins
2644 ## None here right now
2645 #########################################################
2647 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2649 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2650 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2653 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2654 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2656 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2657 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2658 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2659 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2661 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_SHARED@ @LIBWBCLIENT_SHARED@ @LIBTDB_SHARED@
2662 @echo "Linking shared library
$@
"
2663 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2664 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2665 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS)
2667 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2669 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2670 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2672 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2674 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2675 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2677 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2679 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2680 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2682 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2684 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2685 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2687 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2688 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2689 torture/t_strcmp.o -L ./bin -lbigballofmud
2691 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2692 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2693 torture/t_strstr.o -L ./bin -lbigballofmud
2695 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_SHARED@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2696 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2697 torture/t_strappend.o -L ./bin -lbigballofmud
2699 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2700 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2701 -L./bin -lbigballofmud
2703 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2705 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
2707 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
2709 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2710 $(LIBS) $(LIBTALLOC_LIBS) @LIBTDB_SHARED@ $(WINBIND_LIBS) \
2711 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2713 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
2715 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
2716 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2718 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2720 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2721 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2722 @INSTALL_PAM_MODULES@ installlibs installmo
2724 install-everything:: install installmodules
2726 # DESTDIR is used here to prevent packagers wasting their time
2727 # duplicating the Makefile. Remove it and you will have the privelege
2728 # of package each samba release for muliple versions of multiple
2729 # distributions and operating systems, or at least supplying patches
2730 # to all the packaging files required for this, prior to committing
2731 # the removal of DESTDIR. Do not remove it even though you think it
2735 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
2736 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
2737 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
2738 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
2740 installservers:: all installdirs
2741 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2743 installbin:: all installdirs
2744 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2746 installcifsmount:: @CIFSMOUNT_PROGS@
2747 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2748 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2750 installcifsupcall:: @CIFSUPCALL_PROGS@
2751 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(SBINDIR)
2752 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) @CIFSUPCALL_PROGS@
2754 # Some symlinks are required for the 'probing' of modules.
2755 # This mechanism should go at some point..
2756 installmodules:: modules installdirs
2757 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2758 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2759 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2760 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2761 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2762 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2763 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2764 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2765 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
2766 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2767 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2768 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2769 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2770 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2771 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2772 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2773 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2774 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
2775 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
2777 installscripts:: installdirs
2778 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2780 installdat:: installdirs
2781 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2783 installmsg:: installdirs
2784 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2786 installswat:: installdirs installmsg
2787 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2789 installpammodules:: $(PAM_MODULES)
2790 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2791 @for module in $(PAM_MODULES); do \
2792 echo "Installing module
$${module} as $(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
2793 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2794 "$(DESTDIR
)/$(PAMMODULESDIR
)"; \
2797 # revert to the previously installed version
2799 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2800 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2802 installman:: installdirs
2803 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@
"
2805 installmo:: all installdirs
2806 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2811 @echo "Samba will be installed into
:"
2812 @echo " prefix: $(prefix)"
2813 @echo " bindir: $(BINDIR
)"
2814 @echo " sbindir
: $(SBINDIR
)"
2815 @echo " libdir: $(LIBDIR
)"
2816 @echo " modulesdir
: $(MODULESDIR
)"
2817 @echo " vardir
: $(VARDIR
)"
2818 @echo " mandir: $(MANDIR
)"
2819 @echo " privatedir
: $(PRIVATE_DIR
)"
2820 @echo " configdir
: $(CONFIGDIR
)"
2821 @echo " lockdir
: $(LOCKDIR
)"
2822 @echo " statedir: $(STATEDIR
)"
2823 @echo " cachedir
: $(CACHEDIR
)"
2824 @echo " piddir
: $(PIDDIR
)"
2825 @echo " swatdir
: $(SWATDIR
)"
2826 @echo " codepagedir
: $(CODEPAGEDIR
)"
2829 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2832 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2835 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2838 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2841 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2843 uninstallcifsmount::
2844 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2846 uninstallcifsupcall::
2847 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
2850 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2851 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2852 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2853 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2854 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2855 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2856 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2857 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
2860 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2863 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2866 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
2868 uninstallswat:: uninstallmsg
2869 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2871 uninstallpammodules::
2872 @for module in $(PAM_MODULES); do \
2873 echo "Removing
$(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
2874 rm -f "$(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
2877 # Toplevel clean files
2878 TOPFILES=dynconfig.o localedir.o
2881 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
2882 ../libcli/*.o ../libcli/*/*.o \
2886 -rm -f include/build_env.h
2887 -rm -f smbd/build_options.c
2888 -rm -f $(PRECOMPILED_HEADER)
2889 -rm -f core */*~ *~ \
2890 */*.o */*/*.o */*/*/*.o \
2891 ../testsuite/*/*.o \
2892 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*.@SHLIBEXT@ \
2893 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
2894 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
2895 $(MODULES) $(TORTURE_PROGS) \
2896 $(EVERYTHING_PROGS) \
2898 .headers.stamp */src/*.o
2901 include/build_env.h: script/build_env.sh
2902 @echo Building include/build_env.h
2903 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
2904 > $(builddir)/include/build_env.h
2909 find $(srcdir)/.. -name "*.
[ch
]" | xargs -n 100 etags --append
2912 ctags `find $(srcdir)/.. -name "*.
[ch
]" | grep -v include/proto\.h`
2915 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
2916 -rm -f script/installbin.sh script/uninstallbin.sh
2918 distclean:: realclean
2920 -rm -f include/config.h Makefile
2921 -rm -f config.status config.cache so_locations
2924 realdistclean:: distclean
2925 -rm -f include/config.h.in
2926 -rm -f include/version.h
2929 # this target is really just for my use. It only works on a limited
2930 # range of machines and is used to produce a list of potentially
2931 # dead (ie. unused) functions in the code. (tridge)
2933 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
2934 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
2935 comm -13 nmused.txt nmfns.txt
2938 # when configure.in is updated, reconfigure
2939 $(srcdir)/configure: $(srcdir)/configure.in
2940 @echo "WARNING
: you need to rerun .
/autogen.sh
"
2942 config.status: $(srcdir)/configure
2943 @echo "WARNING
: you need to run .
/configure
"
2945 Makefile: $(srcdir)/Makefile.in config.status
2946 @echo "WARNING
: you need to run .
/config.status
"
2948 ######################################################################
2949 # Samba Testing Framework
2951 # Check shared libs for unresolved symbols
2954 @$(LIB_PATH_VAR)=./bin && \
2955 export $(LIB_PATH_VAR) && \
2956 for module in $?; do \
2957 ./script/tests/dlopen.sh $${module} \
2961 # Check for NSS module problems.
2962 test_nss_modules:: nss_modules
2963 @echo "Testing
$(NSS_MODULES
) "
2964 @$(LIB_PATH_VAR)=./bin && \
2965 export $(LIB_PATH_VAR) && \
2966 for module in $(NSS_MODULES); do \
2967 ./script/tests/dlopen.sh $${module} \
2971 # Check for PAM module problems. Specifically, check that every module we
2972 # built can actually be loaded by a minimal PAM-aware application.
2973 test_pam_modules:: pam_modules
2974 @echo "Testing
$(PAM_MODULES
) "
2975 @$(LIB_PATH_VAR)=./bin && \
2976 export $(LIB_PATH_VAR) && \
2977 for module in $(PAM_MODULES); do \
2978 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
2984 ## Targets for 'make test'
2987 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
2989 test:: all torture timelimit
2990 @echo Running Test suite
2991 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL
)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
2993 valgrindtest:: all torture timelimit
2994 @echo Running Test suite with valgrind
2995 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
2996 NMBD_VALGRIND="xterm
-n nmbd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
2997 WINBINDD_VALGRIND="xterm
-n winbindd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
2998 SMBD_VALGRIND="xterm
-n smbd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
2999 VALGRIND="valgrind
-q
--num-callers
=30 --log-file
=${selftest_prefix}/valgrind.log
" \
3000 PERL="$(PERL
)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3002 SELFTEST_FORMAT = plain
3003 selftestdir = ../selftest
3005 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir
)/bin
"
3007 selftest:: all torture timelimit
3008 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3009 SAMBA4SHAREDDIR="$(builddir
)/bin
/shared
" SMBTORTURE4=$(smbtorture4_path) \
3010 PERL="$(PERL
)" PYTHON="$(PYTHON
)" \
3011 $(PERL) $(selftestdir)/selftest.pl \
3012 --prefix=${selftest_prefix} --target=samba3 \
3013 --testlist="$(srcdir)/selftest
/tests.sh|
" \
3014 --expected-failures=$(srcdir)/selftest/knownfail \
3015 --exclude=$(srcdir)/selftest/skip \
3016 --socket-wrapper $(TESTS) --format=$(SELFTEST_FORMAT) --immediate
3019 $(MAKE) selftest TESTS=$*
3021 # Check for Winbind struct 32/64bit padding
3023 @echo "Testing winbind request
/response structure for
32/64bit padding
"
3024 @./script/tests/wb_pad.sh || exit 1;
3030 libsmbclient_examples: libsmbclient
3031 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3033 clean_libsmbclient_examples:
3034 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3036 libnetapi_examples: libnetapi
3037 $(MAKE) -C lib/netapi/examples
3039 clean_libnetapi_examples:
3040 $(MAKE) -C lib/netapi/examples clean