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 LIBWBCLIENT_LIBS
=@LIBWBCLIENT_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@
82 LIBSMBCLIENT_LIBS
=@LIBSMBCLIENT_LIBS@
83 LIBSMBSHAREMODES_LIBS
=@LIBSMBSHAREMODES_LIBS@
86 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
87 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
88 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
89 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
93 builddir
=@abs_builddir@
94 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
95 # will search for a POSIX-compliant shell, and that might not be
96 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
100 # See the autoconf manual "Installation Directory Variables" for a
101 # discussion of the subtle use of these variables.
105 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
107 ROOTSBINDIR
= @rootsbindir@
109 MODULESDIR
= @modulesdir@
110 INCLUDEDIR
=@
includedir@
111 PAMMODULESDIR
= @pammodulesdir@
112 VFSLIBDIR
= $(MODULESDIR
)/vfs
113 PERFCOUNTLIBDIR
= $(MODULESDIR
)/perfcount
114 PDBLIBDIR
= $(MODULESDIR
)/pdb
115 RPCLIBDIR
= $(MODULESDIR
)/rpc
116 IDMAPLIBDIR
= $(MODULESDIR
)/idmap
117 NSSINFOLIBDIR
= $(MODULESDIR
)/nss_info
118 CHARSETLIBDIR
= $(MODULESDIR
)/charset
119 AUTHLIBDIR
= $(MODULESDIR
)/auth
120 CONFIGLIBDIR
= $(MODULESDIR
)/config
121 GPEXTLIBDIR
= $(MODULESDIR
)/gpext
122 CONFIGDIR
= @configdir@
123 VARDIR
= @localstatedir@
127 # The permissions to give the executables and other data
128 INSTALLPERMS_BIN
= 0755
129 INSTALLPERMS_DATA
= 0644
131 # set these to where to find various files
132 # These can be overridden by command line switches (see smbd(8))
133 # or in smb.conf (see smb.conf(5))
134 LOGFILEBASE
= @logfilebase@
135 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
136 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
137 NCALRPCDIR
= @ncalrpcdir@
139 # This is where smbpasswd et al go
140 PRIVATEDIR
= @privatedir@
142 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
143 PRIVATE_DIR
= $(PRIVATEDIR
)
145 # This is where SWAT images and help files go
148 # This is where locale(mo) files go
149 LOCALEDIR
= @localedir@
151 # the directory where lock files go
154 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
155 CACHEDIR
= @cachedir@
156 STATEDIR
= @
statedir@
158 # Where to look for (and install) codepage databases.
159 CODEPAGEDIR
= @codepagedir@
161 # the directory where pid files go
175 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
176 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
177 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
178 -DSBINDIR
=\"$(SBINDIR
)\" \
179 -DBINDIR
=\"$(BINDIR
)\" \
180 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
181 -DSWATDIR
=\"$(SWATDIR
)\" \
182 -DLOCKDIR
=\"$(LOCKDIR
)\" \
183 -DPIDDIR
=\"$(PIDDIR
)\" \
184 -DLIBDIR
=\"$(LIBDIR
)\" \
185 -DMODULESDIR
=\"$(MODULESDIR
)\" \
186 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
187 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
188 -DNCALRPCDIR
=\"$(NCALRPCDIR
)\" \
189 -DCONFIGDIR
=\"$(CONFIGDIR
)\" \
190 -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\" \
191 -DCACHEDIR
=\"$(CACHEDIR
)\" \
192 -DSTATEDIR
=\"$(STATEDIR
)\" \
193 -DLOCALEDIR
=\"$(LOCALEDIR
)\"
195 # Note that all executable programs now provide for an optional executable suffix.
197 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
199 ROOT_SBIN_PROGS
= @CIFSMOUNT_PROGS@
201 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
202 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@
203 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@ bin
/tdbbackup@EXEEXT@ \
204 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@ bin
/tdbdump@EXEEXT@ \
206 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
207 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ bin
/sharesec@EXEEXT@ \
208 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
209 BIN_PROGS4
= bin
/ldbedit@EXEEXT@ bin
/ldbsearch@EXEEXT@ bin
/ldbadd@EXEEXT@ \
210 bin
/ldbdel@EXEEXT@ bin
/ldbmodify@EXEEXT@ bin
/ldbrename@EXEEXT@
212 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
213 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
214 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
215 bin
/pdbtest@EXEEXT@ bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
216 bin
/tdbtorture@EXEEXT@ \
217 bin
/smbconftort@EXEEXT@ bin
/vlp@EXEEXT@
219 BIN_PROGS
= @EXTRA_BIN_PROGS@ \
220 $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
) $(BIN_PROGS4
)
222 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
223 bin
/talloctort@EXEEXT@ bin
/replacetort@EXEEXT@ \
224 bin
/log2pcap@EXEEXT@ \
225 bin
/vlp@EXEEXT@ bin
/smbiconv@EXEEXT@ \
226 bin
/dbwrap_tool@EXEEXT@
228 PAM_MODULES
= @PAM_MODULES@
230 NSS_MODULES
= @NSS_MODULES@
232 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
234 VFS_MODULES
= @VFS_MODULES@
235 PERFCOUNT_MODULES
= @PERFCOUNT_MODULES@
236 PDB_MODULES
= @PDB_MODULES@
237 RPC_MODULES
= @RPC_MODULES@
238 IDMAP_MODULES
= @IDMAP_MODULES@
239 CHARSET_MODULES
= @CHARSET_MODULES@
240 AUTH_MODULES
= @AUTH_MODULES@
241 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
242 GPEXT_MODULES
= @GPEXT_MODULES@
243 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
244 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
) \
245 $(GPEXT_MODULES
) $(PERFCOUNT_MODULES
)
247 EXTRA_ALL_TARGETS
= @EXTRA_ALL_TARGETS@
249 ######################################################################
251 ######################################################################
253 TDB_LIB_OBJ
= lib
/util_tdb.o ..
/lib
/util
/util_tdb.o \
254 lib
/dbwrap.o lib
/dbwrap_tdb.o \
258 TDB_VALIDATE_OBJ
= lib
/tdb_validate.o
260 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
262 VERSION_OBJ
= lib
/version.o
264 WBCOMMON_OBJ
= ..
/nsswitch
/wb_common.o
268 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
270 AVAHI_OBJ
= @AVAHI_OBJ@
272 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
274 PASSCHANGE_OBJ
= libsmb
/passchange.o
276 LIBNDR_DRSUAPI_OBJ
= ..
/librpc
/ndr
/ndr_drsuapi.o \
277 ..
/librpc
/ndr
/ndr_compression.o \
278 ..
/librpc
/gen_ndr
/ndr_drsuapi.o \
279 ..
/librpc
/ndr
/ndr_drsblobs.o \
280 ..
/librpc
/gen_ndr
/ndr_drsblobs.o
282 ZLIB_OBJ
= @ZLIB_OBJS@
284 COMPRESSION_OBJ
= ..
/lib
/compression
/mszip.o \
285 ..
/lib
/compression
/lzxpress.o \
288 DRSUAPI_OBJ
= $(LIBNDR_DRSUAPI_OBJ
) \
291 LIBNDR_OBJ
= ..
/librpc
/ndr
/ndr_basic.o \
292 ..
/librpc
/ndr
/ndr.o \
293 ..
/librpc
/ndr
/ndr_misc.o \
294 ..
/librpc
/gen_ndr
/ndr_misc.o \
295 ..
/librpc
/gen_ndr
/ndr_security.o \
296 ..
/librpc
/ndr
/ndr_sec_helper.o \
297 librpc
/ndr
/ndr_string.o \
298 ..
/librpc
/ndr
/uuid.o \
300 ..
/librpc
/gen_ndr
/ndr_dcerpc.o
302 RPCCLIENT_NDR_OBJ
= rpc_client
/ndr.o
304 LIBNDR_GEN_OBJ0
= ..
/librpc
/gen_ndr
/ndr_samr.o \
305 ..
/librpc
/gen_ndr
/ndr_lsa.o
307 LIBNDR_GEN_OBJ1
= ..
/librpc
/gen_ndr
/ndr_netlogon.o \
308 ..
/librpc
/ndr
/ndr_netlogon.o
310 LIBNDR_GEN_OBJ2
= ..
/librpc
/gen_ndr
/ndr_spoolss.o \
311 ..
/librpc
/ndr
/ndr_spoolss_buf.o
313 LIBNDR_GEN_OBJ
= ..
/librpc
/gen_ndr
/ndr_wkssvc.o \
315 ..
/librpc
/gen_ndr
/ndr_dfs.o \
316 ..
/librpc
/gen_ndr
/ndr_echo.o \
317 ..
/librpc
/gen_ndr
/ndr_winreg.o \
318 ..
/librpc
/gen_ndr
/ndr_initshutdown.o \
319 ..
/librpc
/gen_ndr
/ndr_srvsvc.o \
320 ..
/librpc
/gen_ndr
/ndr_eventlog.o \
322 ..
/librpc
/gen_ndr
/ndr_dssetup.o \
323 librpc
/gen_ndr
/ndr_notify.o \
324 ..
/librpc
/gen_ndr
/ndr_xattr.o \
325 ..
/librpc
/gen_ndr
/ndr_epmapper.o \
326 ..
/librpc
/gen_ndr
/ndr_named_pipe_auth.o \
327 ..
/librpc
/gen_ndr
/ndr_ntsvcs.o \
330 RPC_PARSE_OBJ0
= rpc_parse
/parse_prs.o rpc_parse
/parse_misc.o
332 # this includes only the low level parse code, not stuff
333 # that requires knowledge of security contexts
334 RPC_PARSE_OBJ1
= $(RPC_PARSE_OBJ0
)
336 RPC_PARSE_OBJ2
= rpc_parse
/parse_rpc.o \
337 rpc_client
/init_netlogon.o \
338 rpc_client
/init_lsa.o
340 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
342 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
343 NSS_WRAPPER_OBJ
= @NSS_WRAPPER_OBJS@
347 $(SOCKET_WRAPPER_OBJ
) \
350 UTIL_OBJ
= ..
/lib
/util
/rbtree.o ..
/lib
/util
/signal.o ..
/lib
/util
/time.o \
351 ..
/lib
/util
/xfile.o ..
/lib
/util
/util_strlist.o \
352 ..
/lib
/util
/util_file.o ..
/lib
/util
/data_blob.o \
353 ..
/lib
/util
/util.o ..
/lib
/util
/fsusage.o \
354 ..
/lib
/util
/params.o ..
/lib
/util
/talloc_stack.o \
355 ..
/lib
/util
/genrand.o ..
/lib
/util
/util_net.o \
356 ..
/lib
/util
/become_daemon.o ..
/lib
/util
/system.o \
357 ..
/lib
/util
/tevent_unix.o ..
/lib
/util
/tevent_ntstatus.o \
358 ..
/lib
/util
/smb_threads.o
360 CRYPTO_OBJ
= ..
/lib
/crypto
/crc32.o ..
/lib
/crypto
/md5.o \
361 ..
/lib
/crypto
/hmacmd5.o ..
/lib
/crypto
/arcfour.o \
364 LIB_OBJ
= $(LIBSAMBAUTIL_OBJ
) $(UTIL_OBJ
) $(CRYPTO_OBJ
) \
365 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
366 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o \
367 lib
/interfaces.o lib
/memcache.o \
368 lib
/util_transfer_file.o ..
/lib
/async_req
/async_sock.o \
370 $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
371 lib
/interface.o lib
/pidfile.o \
372 lib
/system.o lib
/sendfile.o lib
/recvfile.o lib
/time.o \
374 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
375 lib
/bitmap.o lib
/dprintf.o
$(UTIL_REG_OBJ
) \
377 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
378 lib
/util_unistr.o lib
/util_file.o \
379 lib
/util.o lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
380 lib
/substitute.o lib
/dbwrap_util.o \
381 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
382 lib
/tallocmsg.o lib
/dmallocmsg.o \
383 libsmb
/clisigning.o libsmb
/smb_signing.o \
384 lib
/iconv.o lib
/pam_errors.o intl
/lang_tdb.o \
385 lib
/conn_tdb.o lib
/adt_tree.o lib
/gencache.o \
386 lib
/module.o lib
/events.o @LIBTEVENT_OBJ0@ \
387 lib
/ldap_escape.o @CHARSET_STATIC@ \
388 lib
/secdesc.o lib
/util_seaccess.o ..
/libcli
/security
/secace.o \
389 ..
/libcli
/security
/secacl.o @PTHREADPOOL_OBJ@ \
391 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
392 lib
/file_id.o lib
/idmap_cache.o \
393 ..
/libcli
/security
/dom_sid.o ..
/libcli
/security
/security_descriptor.o
395 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
396 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
398 READLINE_OBJ
= lib
/readline.o
400 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
401 # Be sure to include them into your application
402 POPT_LIB_OBJ
= lib
/popt_common.o
404 PARAM_WITHOUT_REG_OBJ
= dynconfig.o param
/loadparm.o param
/util.o lib
/sharesec.o lib
/ldap_debug_handler.o
405 PARAM_REG_ADD_OBJ
= $(REG_SMBCONF_OBJ
) $(LIBSMBCONF_OBJ
) $(PRIVILEGES_BASIC_OBJ
)
406 PARAM_OBJ
= $(PARAM_WITHOUT_REG_OBJ
) $(PARAM_REG_ADD_OBJ
)
408 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
410 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
411 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
412 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(SOCKET_WRAPPER_OBJ
)
414 GPEXT_OBJ
= ..
/libgpo
/gpext
/gpext.o @GPEXT_STATIC@
416 LIBGPO_OBJ0
= ..
/libgpo
/gpo_ldap.o ..
/libgpo
/gpo_ini.o ..
/libgpo
/gpo_util.o \
417 ..
/libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o ..
/libgpo
/gpo_sec.o \
420 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
422 LIBADS_OBJ
= libads
/ldap.o libads
/ldap_printer.o \
423 libads
/sasl.o libads
/sasl_wrapping.o \
424 libads
/krb5_setpw.o libads
/ldap_user.o \
425 libads
/ads_struct.o libads
/kerberos_keytab.o \
426 libads
/disp_sec.o libads
/ads_utils.o libads
/ldap_utils.o \
427 libads
/ldap_schema.o libads
/util.o libads
/ndr.o
429 LIBADS_SERVER_OBJ
= libads
/kerberos_verify.o libads
/authdata.o \
430 ..
/librpc
/ndr
/ndr_krb5pac.o \
431 ..
/librpc
/gen_ndr
/ndr_krb5pac.o
433 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_sid.o
435 LIBNBT_OBJ
= ..
/libcli
/nbt
/nbtname.o \
436 ..
/libcli
/netlogon.o \
437 ..
/libcli
/ndr_netlogon.o \
438 ..
/librpc
/gen_ndr
/ndr_nbt.o \
439 ..
/librpc
/gen_ndr
/ndr_svcctl.o \
440 ..
/librpc
/ndr
/ndr_svcctl.o
442 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
443 libsmb
/namequery.o libsmb
/conncache.o libads
/dns.o
445 NTERR_OBJ
= libsmb
/nterr.o libsmb
/smberr.o
446 DOSERR_OBJ
= ..
/libcli
/util
/doserr.o
447 ERRORMAP_OBJ
= libsmb
/errormap.o
448 DCE_RPC_ERR_OBJ
= ..
/librpc
/rpc
/dcerpc_error.o
450 LIBSMB_ERR_OBJ0
= $(NTERR_OBJ
) $(DOSERR_OBJ
) $(ERRORMAP_OBJ
) $(DCE_RPC_ERR_OBJ
)
452 LIBSMB_ERR_OBJ1
= ..
/libcli
/auth
/smbdes.o ..
/libcli
/auth
/smbencrypt.o ..
/libcli
/auth
/msrpc_parse.o ..
/libcli
/auth
/session.o
454 LIBSMB_ERR_OBJ
= $(LIBSMB_ERR_OBJ0
) $(LIBSMB_ERR_OBJ1
) \
459 ..
/libcli
/auth
/ntlm_check.o \
461 libsmb
/ntlmssp_sign.o
463 LIBSAMBA_OBJ
= $(LIBSMB_OBJ0
) \
466 LIBCLI_LDAP_MESSAGE_OBJ
= ..
/libcli
/ldap
/ldap_message.o
467 LIBCLI_LDAP_NDR_OBJ
= ..
/libcli
/ldap
/ldap_ndr.o
469 LIBTSOCKET_OBJ
= ..
/lib
/tsocket
/tsocket.o \
470 ..
/lib
/tsocket
/tsocket_helpers.o \
471 ..
/lib
/tsocket
/tsocket_bsd.o
473 CLDAP_OBJ
= libads
/cldap.o \
474 ..
/libcli
/cldap
/cldap.o \
475 ..
/lib
/util
/idtree.o \
476 $(LIBCLI_LDAP_MESSAGE_OBJ
) $(LIBCLI_LDAP_NDR_OBJ
) $(LIBTSOCKET_OBJ
)
478 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
479 libsmb
/clikrb5.o libsmb
/clispnego.o ..
/lib
/util
/asn1.o \
480 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
481 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
482 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
483 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
484 libsmb
/credentials.o ..
/libcli
/auth
/credentials.o \
485 libsmb
/clioplock.o libsmb
/clirap2.o \
486 libsmb
/smb_seal.o libsmb
/async_smb.o \
493 RPC_CLIENT_OBJ1
= rpc_client
/cli_netlogon.o
495 LIBMSRPC_OBJ
= rpc_client
/cli_lsarpc.o rpc_client
/cli_samr.o \
496 $(RPC_CLIENT_OBJ1
) rpc_client
/cli_reg.o
$(RPC_CLIENT_OBJ
) \
497 rpc_client
/cli_spoolss.o \
498 rpc_client
/init_spoolss.o \
499 rpc_client
/init_samr.o \
500 librpc
/rpc
/dcerpc.o \
501 ..
/librpc
/rpc
/binding.o
503 LIBMSRPC_GEN_OBJ
= ..
/librpc
/gen_ndr
/cli_lsa.o \
504 ..
/librpc
/gen_ndr
/cli_dfs.o \
505 ..
/librpc
/gen_ndr
/cli_echo.o \
506 ..
/librpc
/gen_ndr
/cli_srvsvc.o \
507 ..
/librpc
/gen_ndr
/cli_svcctl.o \
508 ..
/librpc
/gen_ndr
/cli_winreg.o \
509 ..
/librpc
/gen_ndr
/cli_initshutdown.o \
510 ..
/librpc
/gen_ndr
/cli_eventlog.o \
511 ..
/librpc
/gen_ndr
/cli_wkssvc.o \
512 ..
/librpc
/gen_ndr
/cli_netlogon.o \
513 ..
/librpc
/gen_ndr
/cli_samr.o \
514 ..
/librpc
/gen_ndr
/cli_dssetup.o \
515 ..
/librpc
/gen_ndr
/cli_ntsvcs.o \
516 ..
/librpc
/gen_ndr
/cli_epmapper.o \
517 ..
/librpc
/gen_ndr
/cli_drsuapi.o \
518 ..
/librpc
/gen_ndr
/cli_spoolss.o \
523 # registry-related objects
525 UTIL_REG_OBJ
= lib
/util_reg.o
526 UTIL_REG_API_OBJ
= lib
/util_reg_api.o
528 REG_INIT_BASIC_OBJ
= registry
/reg_init_basic.o
529 REG_INIT_SMBCONF_OBJ
= registry
/reg_init_smbconf.o
530 REG_INIT_FULL_OBJ
= registry
/reg_init_full.o
532 REGFIO_OBJ
= registry
/regfio.o
534 REGOBJS_OBJ
= registry
/reg_objects.o
536 REG_BACKENDS_BASE_OBJ
= registry
/reg_backend_db.o
538 REG_BACKENDS_SMBCONF_OBJ
= registry
/reg_backend_smbconf.o
540 REG_BACKENDS_EXTRA_OBJ
= registry
/reg_backend_printing.o \
541 registry
/reg_backend_shares.o \
542 registry
/reg_backend_netlogon_params.o \
543 registry
/reg_backend_prod_options.o \
544 registry
/reg_backend_tcpip_params.o \
545 registry
/reg_backend_hkpt_params.o \
546 registry
/reg_backend_current_version.o \
547 registry
/reg_backend_perflib.o
549 REG_BASE_OBJ
= registry
/reg_api.o \
550 registry
/reg_dispatcher.o \
551 registry
/reg_cachehook.o \
554 registry
/reg_util.o \
555 $(UTIL_REG_API_OBJ
) \
557 $(REG_BACKENDS_BASE_OBJ
) \
558 $(REG_INIT_BASIC_OBJ
)
560 REG_SMBCONF_OBJ
= $(REG_BASE_OBJ
) \
561 $(REG_BACKENDS_SMBCONF_OBJ
) \
562 $(REG_INIT_SMBCONF_OBJ
)
564 REG_FULL_OBJ
= $(REG_SMBCONF_OBJ
) \
565 $(REG_BACKENDS_EXTRA_OBJ
) \
566 $(REG_INIT_FULL_OBJ
) \
567 registry
/reg_eventlog.o \
568 registry
/reg_perfcount.o \
569 registry
/reg_util_legacy.o
571 LIB_EVENTLOG_OBJ
= lib
/eventlog
/eventlog.o
573 RPC_LSA_OBJ
= rpc_server
/srv_lsa_nt.o ..
/librpc
/gen_ndr
/srv_lsa.o
575 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog_nt.o \
576 ..
/librpc
/gen_ndr
/srv_netlogon.o
578 RPC_SAMR_OBJ
= rpc_server
/srv_samr_nt.o \
579 rpc_server
/srv_samr_util.o \
580 ..
/librpc
/gen_ndr
/srv_samr.o
582 RPC_INITSHUTDOWN_OBJ
= ..
/librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
584 RPC_REG_OBJ
= rpc_server
/srv_winreg_nt.o \
585 ..
/librpc
/gen_ndr
/srv_winreg.o
587 RPC_DSSETUP_OBJ
= rpc_server
/srv_dssetup_nt.o ..
/librpc
/gen_ndr
/srv_dssetup.o
589 RPC_SVC_OBJ
= rpc_server
/srv_srvsvc_nt.o \
590 ..
/librpc
/gen_ndr
/srv_srvsvc.o
592 RPC_WKS_OBJ
= ..
/librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
594 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl_nt.o \
595 ..
/librpc
/gen_ndr
/srv_svcctl.o \
596 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
597 services
/svc_netlogon.o services
/svc_winreg.o \
600 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs_nt.o \
601 ..
/librpc
/gen_ndr
/srv_ntsvcs.o
603 RPC_DFS_OBJ
= ..
/librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
605 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss_nt.o \
606 ..
/librpc
/gen_ndr
/srv_spoolss.o
608 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog_nt.o \
609 $(LIB_EVENTLOG_OBJ
) ..
/librpc
/gen_ndr
/srv_eventlog.o
611 RPC_PIPE_OBJ
= rpc_server
/srv_pipe_hnd.o \
612 rpc_server
/srv_pipe.o rpc_server
/srv_lsa_hnd.o
614 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o ..
/librpc
/gen_ndr
/srv_echo.o
616 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
)
618 RPC_PARSE_OBJ
= $(RPC_PARSE_OBJ2
)
620 RPC_CLIENT_OBJ
= rpc_client
/cli_pipe.o rpc_client
/rpc_transport_np.o \
621 rpc_client
/rpc_transport_sock.o rpc_client
/rpc_transport_smbd.o
623 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
625 PRIVILEGES_BASIC_OBJ
= lib
/privileges_basic.o
627 PRIVILEGES_OBJ
= lib
/privileges.o
629 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
631 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
632 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
633 passdb
/util_unixsids.o passdb
/lookup_sid.o \
634 passdb
/login_cache.o @PDB_STATIC@ \
635 lib
/account_pol.o
$(PRIVILEGES_OBJ
) \
636 lib
/util_nscd.o lib
/winbind_util.o
$(SERVER_MUTEX_OBJ
)
638 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
639 CP850_OBJ
= modules
/CP850.o
640 CP437_OBJ
= modules
/CP437.o
641 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
643 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o groupdb
/mapping_ldb.o
645 PROFILE_OBJ
= profile
/profile.o
646 PROFILES_OBJ
= utils
/profiles.o \
649 $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
652 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o \
655 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
657 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
658 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
659 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
660 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
661 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
662 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
663 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
664 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
665 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
666 VFS_CAP_OBJ
= modules
/vfs_cap.o
667 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
668 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
669 VFS_SHADOW_COPY2_OBJ
= modules
/vfs_shadow_copy2.o
670 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
671 VFS_XATTR_TDB_OBJ
= modules
/vfs_xattr_tdb.o
672 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
673 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
674 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
675 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
676 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
677 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
678 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
679 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
680 VFS_CATIA_OBJ
= modules
/vfs_catia.o
681 VFS_STREAMS_XATTR_OBJ
= modules
/vfs_streams_xattr.o
682 VFS_STREAMS_DEPOT_OBJ
= modules
/vfs_streams_depot.o
683 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
684 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
685 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
686 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
687 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
688 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
689 VFS_TSMSM_OBJ
= modules
/vfs_tsmsm.o
690 VFS_FILEID_OBJ
= modules
/vfs_fileid.o
691 VFS_AIO_FORK_OBJ
= modules
/vfs_aio_fork.o
692 VFS_PREOPEN_OBJ
= modules
/vfs_preopen.o
693 VFS_SYNCOPS_OBJ
= modules
/vfs_syncops.o
694 VFS_ACL_XATTR_OBJ
= modules
/vfs_acl_xattr.o
695 VFS_ACL_TDB_OBJ
= modules
/vfs_acl_tdb.o
696 VFS_SMB_TRAFFIC_ANALYZER_OBJ
= modules
/vfs_smb_traffic_analyzer.o
697 VFS_ONEFS_OBJ
= modules
/vfs_onefs.o modules
/onefs_acl.o modules
/onefs_system.o \
698 modules
/onefs_open.o modules
/onefs_streams.o modules
/onefs_dir.o \
699 modules
/onefs_cbrl.o modules
/onefs_notify.o modules
/onefs_config.o
700 VFS_ONEFS_SHADOW_COPY_OBJ
= modules
/vfs_onefs_shadow_copy.o modules
/onefs_shadow_copy.o
701 PERFCOUNT_ONEFS_OBJ
= modules
/perfcount_onefs.o
702 PERFCOUNT_TEST_OBJ
= modules
/perfcount_test.o
703 VFS_DIRSORT_OBJ
= modules
/vfs_dirsort.o
705 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
707 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
709 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o libsmb
/dsgetdcname.o
711 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
712 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
713 AUTH_SAM_OBJ
= auth
/auth_sam.o
714 AUTH_SERVER_OBJ
= auth
/auth_server.o
715 AUTH_UNIX_OBJ
= auth
/auth_unix.o
716 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
717 AUTH_WBC_OBJ
= auth
/auth_wbc.o
718 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
719 AUTH_NETLOGOND_OBJ
= auth
/auth_netlogond.o
721 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
722 auth
/auth_compat.o auth
/auth_ntlmssp.o \
723 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
725 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_hash2.o
727 SMBD_OBJ_MAIN
= smbd
/server.o
729 BUILDOPT_OBJ
= smbd
/build_options.o
731 SMBD_OBJ_SRV
= smbd
/files.o smbd
/chgpasswd.o smbd
/connection.o \
732 smbd
/utmp.o smbd
/session.o smbd
/map_username.o \
733 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
734 smbd
/share_access.o smbd
/fileio.o \
735 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
736 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
737 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
738 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
739 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
740 smbd
/vfs.o smbd
/perfcount.o smbd
/statcache.o smbd
/seal.o \
741 smbd
/posix_acls.o lib
/sysacls.o \
742 smbd
/process.o smbd
/service.o smbd
/error.o \
743 printing
/printfsp.o lib
/sysquotas.o lib
/sysquotas_linux.o \
744 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
745 smbd
/change_trust_pw.o smbd
/fake_file.o \
746 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
747 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
748 smbd
/dmapi.o smbd
/signing.o \
750 smbd
/dnsregister.o smbd
/globals.o \
751 $(MANGLE_OBJ
) @VFS_STATIC@
753 SMBD_OBJ_BASE
= $(PARAM_WITHOUT_REG_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
754 $(RPC_SERVER_OBJ
) $(RPC_PARSE_OBJ
) \
755 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
756 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
757 $(NOTIFY_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
758 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(AVAHI_OBJ
) \
759 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) \
760 $(REG_FULL_OBJ
) $(POPT_LIB_OBJ
) $(BUILDOPT_OBJ
) \
761 $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(LIBNET_OBJ
) \
763 $(PRIVILEGES_BASIC_OBJ
)
765 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
766 printing
/print_cups.o printing
/print_generic.o \
767 printing
/lpq_parse.o printing
/load.o \
768 printing
/print_iprint.o
770 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
771 PRINTBACKEND_OBJ
= printing
/printing.o printing
/nt_printing.o
$(PRINTBASE_OBJ
)
773 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
775 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
776 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
777 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
778 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
779 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
780 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
781 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
782 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
783 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
784 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
785 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
786 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o smbd
/connection.o
788 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) \
789 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
792 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
793 web
/swat.o web
/neg_lang.o
795 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(PRINTBASE_OBJ
) $(LIBSMB_OBJ
) \
796 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(KRBCLIENT_OBJ
) \
797 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
798 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
799 $(PASSCHANGE_OBJ
) $(LDB_OBJ
)
801 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
802 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
803 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
806 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(LOCKING_OBJ
) $(PARAM_OBJ
) \
807 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
811 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
812 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
813 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
814 $(RPC_CLIENT_OBJ
) ..
/librpc
/rpc
/binding.o
$(RPC_PARSE_OBJ2
) \
816 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
819 TESTPARM_OBJ
= utils
/testparm.o \
820 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
823 TEST_LP_LOAD_OBJ
= param
/test_lp_load.o \
824 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
825 $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
827 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
829 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
830 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
831 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
832 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(RPC_PARSE_OBJ
) \
833 $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) $(LDB_OBJ
)
835 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) \
837 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
838 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) ..
/lib
/util
/asn1.o \
841 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ1
)
843 DISPLAY_SEC_OBJ
= ..
/libcli
/security
/display_sec.o
845 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
846 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
847 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
848 rpcclient
/cmd_dfs.o rpcclient
/cmd_epmapper.o \
849 rpcclient
/cmd_dssetup.o rpcclient
/cmd_echo.o \
850 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
851 rpcclient
/cmd_wkssvc.o rpcclient
/cmd_ntsvcs.o \
852 rpcclient
/cmd_drsuapi.o rpcclient
/cmd_eventlog.o \
855 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
856 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
857 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
858 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
859 $(LIBADS_OBJ
) $(POPT_LIB_OBJ
) \
860 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) $(LDB_OBJ
)
862 PAM_WINBIND_OBJ
= ..
/nsswitch
/pam_winbind.o localedir.o
$(WBCOMMON_OBJ
) \
863 $(LIBREPLACE_OBJ
) @BUILD_INIPARSER@
865 LIBSMBCLIENT_OBJ0
= \
866 libsmb
/libsmb_cache.o \
867 libsmb
/libsmb_compat.o \
868 libsmb
/libsmb_context.o \
869 libsmb
/libsmb_dir.o \
870 libsmb
/libsmb_file.o \
871 libsmb
/libsmb_misc.o \
872 libsmb
/libsmb_path.o \
873 libsmb
/libsmb_printjob.o \
874 libsmb
/libsmb_server.o \
875 libsmb
/libsmb_stat.o \
876 libsmb
/libsmb_xattr.o \
877 libsmb
/libsmb_setget.o \
878 libsmb
/libsmb_thread_impl.o \
879 libsmb
/libsmb_thread_posix.o
881 LIBSMBCLIENT_OBJ1
= $(LIBSMBCLIENT_OBJ0
) \
882 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
883 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
884 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
885 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
887 LIBSMBCLIENT_OBJ
= $(LIBSMBCLIENT_OBJ1
)
889 # This shared library is intended for linking with unit test programs
890 # to test Samba internals. It's called libbigballofmud.so to
891 # discourage casual usage.
893 LIBBIGBALLOFMUD_MAJOR
= 0
895 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
896 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) \
897 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
899 CLIENT_OBJ1
= client
/client.o client
/clitar.o
$(RPC_CLIENT_OBJ
) \
900 ..
/librpc
/rpc
/binding.o \
905 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
906 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
907 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
908 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
911 LIBSMBCONF_OBJ
= ..
/lib
/smbconf
/smbconf.o \
912 ..
/lib
/smbconf
/smbconf_util.o \
913 ..
/lib
/smbconf
/smbconf_txt.o \
914 lib
/smbconf
/smbconf_reg.o \
915 lib
/smbconf
/smbconf_init.o
917 SMBCONFTORT_OBJ0
= lib
/smbconf
/testsuite.o
919 SMBCONFTORT_OBJ
= $(SMBCONFTORT_OBJ0
) \
925 LIBNET_OBJ
= libnet
/libnet_join.o \
926 libnet
/libnet_keytab.o \
927 librpc
/gen_ndr
/ndr_libnet_join.o
929 LIBNET_DSSYNC_OBJ
= libnet
/libnet_dssync.o \
930 libnet
/libnet_dssync_keytab.o \
931 ..
/libcli
/drsuapi
/repl_decrypt.o
933 LIBNET_SAMSYNC_OBJ
= libnet
/libnet_samsync.o \
934 libnet
/libnet_samsync_ldif.o \
935 libnet
/libnet_samsync_passdb.o \
936 libnet
/libnet_samsync_display.o \
937 libnet
/libnet_samsync_keytab.o \
938 ..
/libcli
/samsync
/decrypt.o
940 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_help.o \
941 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
942 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
943 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
944 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
945 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
946 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
947 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
948 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
949 utils
/net_conf.o utils
/net_join.o utils
/net_user.o \
950 utils
/net_group.o utils
/net_file.o utils
/net_registry.o \
951 auth
/token_util.o utils
/net_dom.o utils
/net_share.o utils
/net_lua.o \
954 # these are not processed by make proto
955 NET_OBJ2
= utils
/net_registry_util.o utils
/net_help_common.o
957 NET_OBJ
= $(NET_OBJ1
) \
958 $(NET_OBJ2
) @FAKE_KASERVER_OBJ@\
959 $(PARAM_WITHOUT_REG_OBJ
) $(LIBSMB_OBJ
) \
960 $(RPC_PARSE_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
961 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
962 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
963 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(POPT_LIB_OBJ
) \
964 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) \
965 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(READLINE_OBJ
) \
966 $(LDB_OBJ
) $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) \
968 $(LIBNET_OBJ
) $(LIBNET_DSSYNC_OBJ
) $(LIBNET_SAMSYNC_OBJ
) \
970 $(PRIVILEGES_BASIC_OBJ
) \
973 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) \
974 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
977 CIFS_MOUNT_OBJ
= client
/mount.cifs.o client
/mtab.o
979 CIFS_UMOUNT_OBJ
= client
/umount.cifs.o client
/mtab.o
981 CIFS_UPCALL_OBJ
= client
/cifs.upcall.o
983 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) \
984 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
986 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
987 torture
/denytest.o torture
/mangle_test.o
989 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) \
990 $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
991 lib
/wb_reqtrans.o lib
/wbclient.o \
994 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) \
998 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) \
1002 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
1003 $(LIBSMB_OBJ
) $(LDB_OBJ
) $(LIB_NONSMBD_OBJ
) \
1006 NSSTEST_OBJ
= torture
/nsstest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) $(KRBCLIENT_OBJ
) \
1007 $(LIB_NONSMBD_OBJ
) \
1010 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1011 $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1012 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) $(LDB_OBJ
) \
1015 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
1017 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
1019 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
1021 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) \
1022 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
1025 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1026 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
1027 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1028 $(POPT_LIB_OBJ
) $(DCUTIL_OBJ
) $(LIBADS_OBJ
) $(SMBLDAP_OBJ
) $(LDB_OBJ
)
1030 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1032 $(LIB_NONSMBD_OBJ
) $(RPC_PARSE_OBJ
) \
1033 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(POPT_LIB_OBJ
) \
1034 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
)
1036 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
1038 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1040 registry
/reg_eventlog.o
$(LIB_EVENTLOG_OBJ
) \
1041 ..
/librpc
/gen_ndr
/ndr_eventlog.o \
1042 ..
/librpc
/gen_ndr
/ndr_lsa.o
1044 SHARESEC_OBJ0
= utils
/sharesec.o
1045 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1049 TALLOCTORT_OBJ
= @tallocdir@
/testsuite.o @tallocdir@
/testsuite_main.o \
1050 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSAMBA_OBJ
)
1052 REPLACETORT_OBJ
= @libreplacedir@
/test/testsuite.o \
1053 @libreplacedir@
/test/getifaddrs.o \
1054 @libreplacedir@
/test/os2_delete.o \
1055 @libreplacedir@
/test/strptime.o \
1056 @libreplacedir@
/test/main.o \
1059 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
1061 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LDB_OBJ
) \
1062 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
1065 WINBIND_WINS_NSS_OBJ
= ..
/nsswitch
/wins.o
$(PARAM_OBJ
) \
1066 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) $(NSSWINS_OBJ
) $(KRBCLIENT_OBJ
) \
1067 $(LIBNDR_GEN_OBJ0
) $(LDB_OBJ
)
1069 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
1070 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o
1071 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1072 $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
1075 IDMAP_OBJ
= winbindd
/idmap.o winbindd
/idmap_util.o @IDMAP_STATIC@
1077 NSS_INFO_OBJ
= winbindd
/nss_info.o @NSS_INFO_STATIC@
1080 winbindd
/idmap_hash
/idmap_hash.o \
1081 winbindd
/idmap_hash
/mapfile.o
1084 winbindd
/idmap_adex
/idmap_adex.o \
1085 winbindd
/idmap_adex
/cell_util.o \
1086 winbindd
/idmap_adex
/likewise_cell.o \
1087 winbindd
/idmap_adex
/provider_unified.o \
1088 winbindd
/idmap_adex
/gc_util.o \
1089 winbindd
/idmap_adex
/domain_util.o
1092 winbindd
/winbindd.o \
1093 winbindd
/winbindd_user.o \
1094 winbindd
/winbindd_group.o \
1095 winbindd
/winbindd_util.o \
1096 winbindd
/winbindd_cache.o \
1097 winbindd
/winbindd_pam.o \
1098 winbindd
/winbindd_sid.o \
1099 winbindd
/winbindd_misc.o \
1100 winbindd
/winbindd_cm.o \
1101 winbindd
/winbindd_wins.o \
1102 winbindd
/winbindd_rpc.o \
1103 winbindd
/winbindd_reconnect.o \
1104 winbindd
/winbindd_ads.o \
1105 winbindd
/winbindd_passdb.o \
1106 winbindd
/winbindd_dual.o \
1107 winbindd
/winbindd_async.o \
1108 winbindd
/winbindd_creds.o \
1109 winbindd
/winbindd_cred_cache.o \
1110 winbindd
/winbindd_ccache_access.o \
1111 winbindd
/winbindd_domain.o \
1112 winbindd
/winbindd_idmap.o \
1113 winbindd
/winbindd_locator.o \
1114 winbindd
/winbindd_ndr.o \
1119 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1120 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1121 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(RPC_PARSE_OBJ
) \
1122 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
1123 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
1124 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
1125 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1126 $(LIBADS_SERVER_OBJ
) $(LDB_OBJ
) \
1129 WBINFO_OBJ
= ..
/nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1130 $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1131 lib
/winbind_util.o
$(WBCOMMON_OBJ
)
1133 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
1135 LDB_COMMON_OBJ
=lib
/ldb
/common
/ldb.o lib
/ldb
/common
/ldb_ldif.o \
1136 lib
/ldb
/common
/ldb_parse.o lib
/ldb
/common
/ldb_msg.o lib
/ldb
/common
/ldb_utf8.o \
1137 lib
/ldb
/common
/ldb_debug.o lib
/ldb
/common
/ldb_modules.o \
1138 lib
/ldb
/common
/ldb_dn.o lib
/ldb
/common
/ldb_match.o lib
/ldb
/common
/ldb_attributes.o \
1139 lib
/ldb
/common
/attrib_handlers.o lib
/ldb
/common
/ldb_controls.o lib
/ldb
/common
/qsort.o
1141 LDB_TDB_OBJ
=lib
/ldb
/ldb_tdb
/ldb_tdb.o \
1142 lib
/ldb
/ldb_tdb
/ldb_pack.o lib
/ldb
/ldb_tdb
/ldb_search.o lib
/ldb
/ldb_tdb
/ldb_index.o \
1143 lib
/ldb
/ldb_tdb
/ldb_cache.o lib
/ldb
/ldb_tdb
/ldb_tdb_wrap.o
1145 LDB_MODULES_OBJ
=lib
/ldb
/modules
/operational.o lib
/ldb
/modules
/rdn_name.o \
1146 lib
/ldb
/modules
/objectclass.o \
1147 lib
/ldb
/modules
/paged_results.o lib
/ldb
/modules
/sort.o lib
/ldb
/modules
/asq.o
1149 # enabled in configure.in
1150 LDB_LDAP_OBJ
=@LDBLDAP@
1152 LDB_OBJ
= ${LDB_COMMON_OBJ} ${LDB_TDB_OBJ} ${LDB_LDAP_OBJ} ${LDB_MODULES_OBJ}
1154 LDB_CMDLINE_OBJ
= $(PARAM_OBJ
) \
1155 $(POPT_LIB_OBJ
) $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) $(LIBSMB_ERR_OBJ0
) $(LIBSMB_ERR_OBJ1
) \
1156 $(RPC_PARSE_OBJ1
) $(SECRETS_OBJ
) \
1157 $(LDB_OBJ
) lib
/ldb
/tools
/cmdline.o
1160 LDBEDIT_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbedit.o
1161 LDBSEARCH_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbsearch.o
1162 LDBADD_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbadd.o
1163 LDBDEL_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbdel.o
1164 LDBMODIFY_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbmodify.o
1165 LDBRENAME_OBJ
= $(LDB_CMDLINE_OBJ
) lib
/ldb
/tools
/ldbrename.o
1167 WINBIND_KRB5_LOCATOR_OBJ1
= ..
/nsswitch
/winbind_krb5_locator.o
1168 WINBIND_KRB5_LOCATOR_OBJ
= $(WINBIND_KRB5_LOCATOR_OBJ1
) $(LIBREPLACE_OBJ
)
1170 POPT_OBJ
=..
/lib
/popt
/findme.o ..
/lib
/popt
/popt.o ..
/lib
/popt
/poptconfig.o \
1171 ..
/lib
/popt
/popthelp.o ..
/lib
/popt
/poptparse.o
1173 INIPARSER_OBJ
= iniparser_build
/iniparser.o iniparser_build
/dictionary.o \
1174 iniparser_build
/strlib.o
1176 TDBBACKUP_OBJ
= @tdbdir@
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
1177 $(SOCKET_WRAPPER_OBJ
)
1179 TDBTOOL_OBJ
= @tdbdir@
/tools
/tdbtool.o
$(LIBREPLACE_OBJ
) \
1180 $(SOCKET_WRAPPER_OBJ
)
1182 TDBDUMP_OBJ
= @tdbdir@
/tools
/tdbdump.o
$(LIBREPLACE_OBJ
) \
1183 $(SOCKET_WRAPPER_OBJ
)
1185 TDBTORTURE_OBJ
= @tdbdir@
/tools
/tdbtorture.o
$(LIBREPLACE_OBJ
) \
1186 $(SOCKET_WRAPPER_OBJ
)
1189 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
1191 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
1192 ..
/lib
/util
/asn1.o libsmb
/spnego.o libsmb
/clikrb5.o libads
/kerberos.o \
1193 $(LIBADS_SERVER_OBJ
) \
1194 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1195 $(SMBLDAP_OBJ
) $(LIBNMB_OBJ
) \
1196 $(LDB_OBJ
) $(WBCOMMON_OBJ
) \
1197 $(LIBNDR_GEN_OBJ0
) $(LIBNDR_GEN_OBJ1
)
1200 VLP_OBJ1
= printing
/tests
/vlp.o
$(RPC_CLIENT_OBJ1
) $(RPC_PARSE_OBJ2
) $(RPC_CLIENT_OBJ
) ..
/librpc
/rpc
/binding.o
1202 VLP_OBJ
= $(VLP_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1203 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1204 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
1205 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) $(LDB_OBJ
) \
1208 RPC_OPEN_TCP_OBJ
= torture
/rpc_open_tcp.o \
1212 $(SMBLDAP_OBJ
) $(LDB_OBJ
) $(GROUPDB_OBJ
) \
1213 $(LIB_NONSMBD_OBJ
) \
1216 $(RPC_CLIENT_OBJ1
) \
1217 rpc_client
/cli_pipe.o \
1218 ..
/librpc
/rpc
/binding.o \
1221 DBWRAP_TOOL_OBJ
= utils
/dbwrap_tool.o \
1223 $(LIB_NONSMBD_OBJ
) \
1226 ######################################################################
1228 ######################################################################
1229 all:: SHOWFLAGS basics libs
$(SBIN_PROGS
) $(BIN_PROGS
) $(ROOT_SBIN_PROGS
) \
1230 $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) @CIFSUPCALL_PROGS@ \
1231 $(EXTRA_ALL_TARGETS
)
1235 nss_modules
:: $(NSS_MODULES
)
1237 pam_modules
:: $(PAM_MODULES
)
1239 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
1241 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
1243 gpext_modules
:: $(GPEXT_MODULES
)
1245 torture
:: SHOWFLAGS basics
$(TORTURE_PROGS
)
1247 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
1249 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
1251 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
1253 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
1255 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
1257 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
1259 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
1261 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
1263 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
1265 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
1267 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
1269 talloctort
: SHOWFLAGS bin
/talloctort@EXEEXT@
1271 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
1273 smbconftort
: SHOWFLAGS bin
/smbconftort@EXEEXT@
1275 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
1277 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1278 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1279 bin
/pam_winbind.@SHLIBEXT@ bin
/smbcontrol@EXEEXT@
1281 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
1283 modules
:: SHOWFLAGS
$(MODULES
)
1285 #####################################################################
1286 ## Perl IDL Compiler
1288 @PIDL_OUTPUTDIR
="../librpc/gen_ndr" PIDL_ARGS
="$(PIDL_ARGS)" CPP
="$(CPP)" PIDL
="../pidl/pidl" \
1289 srcdir="$(srcdir)" ..
/librpc
/build_idl.sh ..
/librpc
/idl
/*.idl
1290 @PIDL_OUTPUTDIR
="librpc/gen_ndr" PIDL_ARGS
="$(PIDL_ARGS)" CPP
="$(CPP)" PIDL
="../pidl/pidl" \
1291 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh \
1292 librpc
/idl
/messaging.idl librpc
/idl
/libnetapi.idl librpc
/idl
/notify.idl
1294 #####################################################################
1297 everything
:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1301 .SUFFIXES
: .c .o .lo
1303 .PHONY
: showflags SHOWFLAGS
1305 showflags
: SHOWFLAGS
1308 @echo
"Using CFLAGS = $(CFLAGS)"
1309 @echo
" PICFLAG = $(PICFLAG)"
1310 @echo
" LIBS = $(LIBS)"
1311 @echo
" LDFLAGS = $(LDFLAGS)"
1312 @echo
" DYNEXP = $(DYNEXP)"
1313 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1314 @echo
" SHLIBEXT = @SHLIBEXT@"
1315 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1317 # "showcflags" target for debuggin how CFLAGS are composed:
1319 .PHONY
: showcflags SHOWCFLAGS
1321 showcflags
: SHOWCFLAGS
1324 @echo
"CFLAGS = $(CFLAGS)"
1325 @echo
"FLAGS = $(FLAGS)"
1327 @echo
"FLAGS1 = @FLAGS1@"
1328 @echo
"SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1329 @echo
"CPPFLAGS = $(CPPFLAGS)"
1330 @echo
"ISA = $(ISA)"
1332 MAKEDIR
= || exec false
; \
1333 if
test -d
"$$dir"; then
:; else \
1334 echo mkdir
"$$dir"; \
1335 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1336 test -d
"$$dir" || \
1338 exec false
; fi || exec false
1340 # Run a static checker.
1341 CHECK_CC
= $(CC_CHECKER
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1342 # Compile a source file.
1343 COMPILE_CC
= $(CC
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1344 # Compile a source file with the installation paths defined.
1345 COMPILE_CC_PATH
= $(CC
) $(PATH_FLAGS
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1347 COMPILE
= $(COMPILE_CC
)
1350 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1351 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1352 @if
test -n
"$(CC_CHECKER)"; then \
1353 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1356 @echo Compiling
$*.c
1357 @
$(COMPILE
) && exit
0;\
1358 echo
"The following command failed:" 1>&2;\
1359 echo
"$(subst ",\",$(COMPILE_CC
))" 1>&2;\
1360 $(COMPILE_CC) >/dev/null 2>&1
1361 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1363 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1365 # this adds support for precompiled headers. To use it, install a snapshot
1366 # of gcc-3.4 and run 'make pch' before you do the main build.
1368 rm -f $(PRECOMPILED_HEADER)
1369 $(MAKE) $(PRECOMPILED_HEADER)
1371 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1374 BINARY_PREREQS = bin/.dummy
1376 # These dependencies are only approximately correct: we want to make
1377 # sure Samba's paths are updated if ./configure is re-run. Really it
1378 # would be nice if "make
prefix=/opt
/samba
all" also rebuilt things,
1379 # but since we also require "make
install prefix=/opt
/samba
" *not* to
1380 # rebuild it's a bit hard.
1382 dynconfig.o: dynconfig.c Makefile
1383 @echo Compiling $*.c
1384 @$(COMPILE_CC_PATH) && exit 0;\
1385 echo "The following command failed
:" 1>&2;\
1386 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1387 $(COMPILE_CC_PATH) >/dev/null 2>&1
1389 localedir.o: localedir.c Makefile
1390 @echo Compiling $*.c
1391 @$(COMPILE_CC_PATH) && exit 0;\
1392 echo "The following command failed
:" 1>&2;\
1393 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1394 $(COMPILE_CC_PATH) >/dev/null 2>&1
1396 lib/pidfile.o: lib/pidfile.c
1397 @echo Compiling $*.c
1398 @$(COMPILE_CC_PATH) && exit 0;\
1399 echo "The following command failed
:" 1>&2;\
1400 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1401 $(COMPILE_CC_PATH) >/dev/null 2>&1
1403 lib/version.o: lib/version.c include/version.h
1404 @echo Compiling $*.c
1405 @$(COMPILE_CC_PATH) && exit 0;\
1406 echo "The following command failed
:" 1>&2;\
1407 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1408 $(COMPILE_CC_PATH) >/dev/null 2>&1
1410 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1411 @echo Compiling $*.c
1412 @$(COMPILE_CC_PATH) && exit 0;\
1413 echo "The following command failed
:" 1>&2;\
1414 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1415 $(COMPILE_CC_PATH) >/dev/null 2>&1
1417 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1419 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1422 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1423 dir=bin $(MAKEDIR); fi
1424 @: >> $@ || : > $@ # what a fancy emoticon!
1426 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@ @BUILD_POPT@
1428 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \
1429 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1430 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1431 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1432 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1434 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1436 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1437 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1438 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1440 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1442 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1443 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1444 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1446 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1448 @$(CC) -o $@ $(LDFLAGS) $(PASSDB_LIBS) $(RPCCLIENT_OBJ) \
1449 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1450 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1451 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1453 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1455 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1456 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1457 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1458 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1460 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@ @LIBNETAPI_TARGET@ @LIBLUA_TARGET@
1462 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1463 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1464 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1465 @INIPARSERLIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) $(LIBLUA_LIBS) -lm \
1468 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1470 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1471 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1473 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1475 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1476 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1478 bin/mount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_MOUNT_OBJ)
1480 @$(CC) -o $@ $(CIFS_MOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1482 bin/umount.cifs@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UMOUNT_OBJ)
1484 @$(CC) -o $@ $(CIFS_UMOUNT_OBJ) $(DYNEXP) $(LDFLAGS)
1486 bin/cifs.upcall@EXEEXT@: $(BINARY_PREREQS) $(CIFS_UPCALL_OBJ) $(LIBSMBCLIENT_OBJ1) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1488 @$(CC) -o $@ $(CIFS_UPCALL_OBJ) $(DYNEXP) $(LDFLAGS) \
1489 -lkeyutils $(LIBS) $(LIBSMBCLIENT_OBJ1) $(KRB5LIBS) \
1490 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
1491 $(LIBTDB_LIBS) $(NSCD_LIBS)
1493 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1495 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1496 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1498 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1500 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1501 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1503 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1505 @$(CC) -DUSING_SMBCONTROL -o $@ \
1506 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1507 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1508 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1510 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1512 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1513 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1514 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1516 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1518 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1519 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1520 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1522 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1524 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1525 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1526 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1528 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1530 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1531 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1532 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1534 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1536 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1537 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1539 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1541 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1542 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1543 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1545 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1547 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1548 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1549 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1551 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1553 @$(CC) @PIE_LDFLAGS@ -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1554 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1556 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1558 @$(CC) @PIE_LDFLAGS@ -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1559 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1560 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1562 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1564 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1565 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1566 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1568 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1570 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1571 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1572 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1574 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1576 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1577 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1578 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1580 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1582 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1583 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1584 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1586 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1588 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1589 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1591 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1593 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1594 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1596 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1598 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1599 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1600 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1602 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1604 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1605 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1606 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1608 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1610 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1611 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1612 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1614 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1616 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1617 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1618 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1619 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1620 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1622 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1624 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1625 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1626 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1628 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1630 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1631 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1633 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1635 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1636 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1637 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1639 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@
1641 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1642 $(LIBS) $(LIBTALLOC_LIBS)
1644 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
1646 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(LIBS) \
1647 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1648 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1650 bin/ldbedit: $(BINARY_PREREQS) $(LDBEDIT_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1652 @$(CC) -o $@ $(LDBEDIT_OBJ) $(DYNEXP) $(LDFLAGS) \
1653 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1654 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1656 bin/ldbsearch: $(BINARY_PREREQS) $(LDBSEARCH_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1658 @$(CC) -o $@ $(LDBSEARCH_OBJ) $(DYNEXP) $(LDFLAGS) \
1659 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1660 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1662 bin/ldbadd: $(BINARY_PREREQS) $(LDBADD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1664 @$(CC) -o $@ $(LDBADD_OBJ) $(DYNEXP) $(LDFLAGS) \
1665 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1666 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1668 bin/ldbmodify: $(BINARY_PREREQS) $(LDBMODIFY_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1670 @$(CC) -o $@ $(LDBMODIFY_OBJ) $(DYNEXP) $(LDFLAGS) \
1671 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1672 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1674 bin/ldbdel: $(BINARY_PREREQS) $(LDBDEL_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1676 @$(CC) -o $@ $(LDBDEL_OBJ) $(DYNEXP) $(LDFLAGS) \
1677 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1678 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1680 bin/ldbrename: $(BINARY_PREREQS) $(LDBRENAME_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
1682 @$(CC) $(FLAGS) -o $@ $(LDBRENAME_OBJ) $(DYNEXP) $(LDFLAGS) \
1683 $(LIBS) $(POPT_LIBS) $(LDAP_LIBS) \
1684 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1686 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1688 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1691 #####################################################################
1695 #####################################################################
1697 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1700 #-------------------------------------------------------------------
1704 #-------------------------------------------------------------------
1707 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1708 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1710 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1711 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1712 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1713 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1714 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
1715 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1716 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1718 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1719 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1721 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1722 @echo Linking shared library $@
1723 @$(SHLD_DSO) $(LIBTALLOC_OBJ) @SONAMEFLAG@`basename $@`
1725 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1727 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1729 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1730 @echo Linking non-shared library $@
1731 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1733 libtalloc: $(LIBTALLOC)
1738 $(LIBTALLOC_STATIC_TARGET) \
1739 $(LIBTALLOC_SHARED_TARGET) \
1740 $(LIBTALLOC_SHARED_TARGET_SONAME)
1742 installlibtalloc:: installdirs libtalloc
1743 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1744 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1745 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1746 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1747 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1748 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1750 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1751 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1752 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
1754 uninstalllibtalloc::
1755 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1756 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
1757 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
1758 -rm -f $(DESTDIR)${prefix}/include/talloc.h
1761 installlibs:: @INSTALL_LIBTALLOC@
1762 uninstalllibs:: @UNINSTALL_LIBTALLOC@
1763 cleanlibs:: cleanlibtalloc
1764 shlibs test_shlibs: @LIBTALLOC_SHARED@
1768 @echo "LIBTALLOC_SHARED
= @LIBTALLOC_SHARED@
"
1769 @echo "LIBTALLOC_STATIC
= @LIBTALLOC_STATIC@
"
1770 @echo "LIBTALLOC_TARGET
= @LIBTALLOC_TARGET@
"
1771 @echo "LIBTALLOC_LIBS
= $(LIBTALLOC_LIBS
)"
1773 @echo "LIBTALLOC_SHARED_TARGET
= $(LIBTALLOC_SHARED_TARGET
)"
1774 @echo "LIBTALLOC_SOVER
= $(LIBTALLOC_SOVER
)"
1775 @echo "LIBTALLOC_SHARED TARGET_SONAME
= $(LIBTALLOC_SHARED_TARGET_SONAME
)"
1776 @echo "LIBTALLOC_STATIC_TARGET
= $(LIBTALLOC_STATIC_TARGET
)"
1777 @echo "LIBTALLOC
= $(LIBTALLOC
)"
1779 showlibs:: showlibtalloc
1781 #-------------------------------------------------------------------
1785 #-------------------------------------------------------------------
1787 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
1788 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
1790 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
1791 LIBTDB_SOVER=@LIBTDB_SOVER@
1792 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
1793 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
1794 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
1795 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
1796 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
1798 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
1799 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
1801 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
1802 @echo Linking shared library $@
1803 @$(SHLD_DSO) $(LIBTDB_OBJ) \
1804 @SONAMEFLAG@`basename $@`
1806 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
1808 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
1810 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
1811 @echo Linking non-shared library $@
1812 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
1819 $(LIBTDB_STATIC_TARGET) \
1820 $(LIBTDB_SHARED_TARGET) \
1821 $(LIBTDB_SHARED_TARGET_SONAME)
1824 installlibtdb:: installdirs libtdb
1825 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1826 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1827 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1828 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
1829 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
1830 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
1832 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1833 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1834 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
1837 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
1838 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
1839 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
1840 -rm -f $(DESTDIR)${prefix}/include/tdb.h
1843 installlibs:: @INSTALL_LIBTDB@
1844 uninstalllibs:: @UNINSTALL_LIBTDB@
1845 cleanlibs:: cleanlibtdb
1846 shlibs test_shlibs: @LIBTDB_SHARED@
1850 @echo "LIBTDB_SHARED
= @LIBTDB_SHARED@
"
1851 @echo "LIBTDB_STATIC
= @LIBTDB_STATIC@
"
1852 @echo "LIBTDB_TARGET
= @LIBTDB_TARGET@
"
1853 @echo "LIBTDB_LIBS
= $(LIBTDB_LIBS
)"
1855 @echo "LIBTDB_SHARED_TARGET
= $(LIBTDB_SHARED_TARGET
)"
1856 @echo "LIBTDB_SOVER
= $(LIBTDB_SOVER
)"
1857 @echo "LIBTDB_SHARED TARGET_SONAME
= $(LIBTDB_SHARED_TARGET_SONAME
)"
1858 @echo "LIBTDB_STATIC_TARGET
= $(LIBTDB_STATIC_TARGET
)"
1859 @echo "LIBTDB
= $(LIBTDB
)"
1861 showlibs:: showlibtdb
1863 #-------------------------------------------------------------------
1867 #-------------------------------------------------------------------
1869 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
1870 ../nsswitch/libwbclient/wbc_util.o \
1871 ../nsswitch/libwbclient/wbc_pwd.o \
1872 ../nsswitch/libwbclient/wbc_idmap.o \
1873 ../nsswitch/libwbclient/wbc_sid.o \
1874 ../nsswitch/libwbclient/wbc_guid.o \
1875 ../nsswitch/libwbclient/wbc_pam.o
1876 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
1880 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
1881 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
1882 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
1883 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
1884 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
1885 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
1886 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
1888 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
1889 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
1891 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS) @LIBTALLOC_TARGET@
1892 @echo Linking shared library $@
1893 @$(SHLD_DSO) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_OBJ) \
1894 @SONAMEFLAG@`basename $@`
1896 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1898 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
1900 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1901 @echo Linking non-shared library $@
1902 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
1904 libwbclient: $(LIBWBCLIENT)
1908 $(LIBWBCLIENT_SYMS) \
1909 $(LIBWBCLIENT_STATIC_TARGET) \
1910 $(LIBWBCLIENT_SHARED_TARGET) \
1911 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
1913 installlibwbclient:: installdirs libwbclient
1914 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1915 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1916 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1917 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
1918 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
1919 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
1921 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1922 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
1924 uninstalllibwbclient::
1925 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
1926 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
1927 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
1930 installlibs:: @INSTALL_LIBWBCLIENT@
1931 uninstalllibs:: uninstalllibwbclient
1932 cleanlibs:: cleanlibwbclient
1933 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
1937 @echo "LIBWBCLIENT_SHARED
= @LIBWBCLIENT_SHARED@
"
1938 @echo "LIBWBCLIENT_STATIC
= @LIBWBCLIENT_STATIC@
"
1939 @echo "LIBWBCLIENT_TARGET
= @LIBWBCLIENT_TARGET@
"
1940 @echo "LIBWBCLIENT_LIBS
= $(LIBWBCLIENT_LIBS
)"
1942 @echo "LIBWBCLIENT_SHARED_TARGET
= $(LIBWBCLIENT_SHARED_TARGET
)"
1943 @echo "LIBWBCLIENT_SOVER
= $(LIBWBCLIENT_SOVER
)"
1944 @echo "LIBWBCLIENT_SHARED TARGET_SONAME
= $(LIBWBCLIENT_SHARED_TARGET_SONAME
)"
1945 @echo "LIBWBCLIENT_STATIC_TARGET
= $(LIBWBCLIENT_STATIC_TARGET
)"
1946 @echo "LIBWBCLIENT
= $(LIBWBCLIENT
)"
1948 showlibs:: showlibwbclient
1951 #-------------------------------------------------------------------
1955 #-------------------------------------------------------------------
1958 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
1959 LIBADDNS_SOVER=@LIBADDNS_SOVER@
1960 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
1961 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
1962 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
1963 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
1964 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
1966 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) @LIBTALLOC_TARGET@
1967 @echo Linking shared library $@
1968 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
1969 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
1970 @SONAMEFLAG@`basename $@`
1972 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
1974 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
1976 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
1977 @echo Linking non-shared library $@
1978 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
1980 libaddns: $(LIBADDNS)
1984 $(LIBADDNS_SHARED_TARGET) \
1985 $(LIBADDNS_SHARED_TARGET_SONAME) \
1986 $(LIBADDNS_STATIC_TARGET)
1988 installlibaddns:: installdirs libaddns
1989 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1990 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1991 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
1992 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
1993 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
1994 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
1996 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1999 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2000 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2001 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2004 installlibs:: @INSTALL_LIBADDNS@
2005 uninstalllibs:: @UNINSTALL_LIBADDNS@
2006 cleanlibs:: cleanlibaddns
2007 shlibs test_shlibs: @LIBADDNS_SHARED@
2011 @echo "LIBADDNS_SHARED
= @LIBADDNS_SHARED@
"
2012 @echo "LIBADDNS_STATIC
= @LIBADDNS_STATIC@
"
2013 @echo "LIBADDNS_TARGET
= @LIBADDNS_TARGET@
"
2014 @echo "LIBADDNS_LIBS
= $(LIBADDNS_LIBS
)"
2016 @echo "LIBADDNS_SHARED_TARGET
= $(LIBADDNS_SHARED_TARGET
)"
2017 @echo "LIBADDNS_SOVER
= $(LIBADDNS_SOVER
)"
2018 @echo "LIBADDNS_SHARED TARGET_SONAME
= $(LIBADDNS_SHARED_TARGET_SONAME
)"
2019 @echo "LIBADDNS_STATIC_TARGET
= $(LIBADDNS_STATIC_TARGET
)"
2020 @echo "LIBADDNS
= $(LIBADDNS
)"
2022 showlibs:: showlibaddns
2024 #-------------------------------------------------------------------
2028 #-------------------------------------------------------------------
2030 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2032 librpc/gen_ndr/ndr_libnetapi.o \
2033 lib/netapi/libnetapi.o \
2034 lib/netapi/joindomain.o \
2035 lib/netapi/serverinfo.o \
2036 lib/netapi/getdc.o \
2038 lib/netapi/group.o \
2039 lib/netapi/localgroup.o \
2042 lib/netapi/share.o \
2044 lib/netapi/shutdown.o
2046 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2048 $(REG_SMBCONF_OBJ) \
2049 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2050 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2051 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(RPC_PARSE_OBJ) \
2052 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) $(LDB_OBJ) \
2053 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2056 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2057 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2058 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2059 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2060 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
2061 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2062 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2064 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2065 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2067 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2068 @echo Linking shared library $@
2069 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2070 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2071 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) \
2072 @SONAMEFLAG@`basename $@`
2074 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2076 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2078 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2079 @echo Linking non-shared library $@
2080 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2082 libnetapi: $(LIBNETAPI)
2087 $(LIBNETAPI_STATIC_TARGET) \
2088 $(LIBNETAPI_SHARED_TARGET) \
2089 $(LIBNETAPI_SHARED_TARGET_SONAME)
2091 installlibnetapi:: installdirs libnetapi
2092 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2093 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2094 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2095 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2096 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2097 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2099 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2100 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2101 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2103 uninstalllibnetapi::
2104 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2105 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2106 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2107 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2110 installlibs:: @INSTALL_LIBNETAPI@
2111 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2112 cleanlibs:: cleanlibnetapi
2113 shlibs test_shlibs: @LIBNETAPI_SHARED@
2117 @echo "LIBNETAPI_SHARED
= @LIBNETAPI_SHARED@
"
2118 @echo "LIBNETAPI_STATIC
= @LIBNETAPI_STATIC@
"
2119 @echo "LIBNETAPI_TARGET
= @LIBNETAPI_TARGET@
"
2120 @echo "LIBNETAPI_LIBS
= $(LIBNETAPI_LIBS
)"
2122 @echo "LIBNETAPI_SHARED_TARGET
= $(LIBNETAPI_SHARED_TARGET
)"
2123 @echo "LIBNETAPI_SOVER
= $(LIBNETAPI_SOVER
)"
2124 @echo "LIBNETAPI_SHARED TARGET_SONAME
= $(LIBNETAPI_SHARED_TARGET_SONAME
)"
2125 @echo "LIBNETAPI_STATIC_TARGET
= $(LIBNETAPI_STATIC_TARGET
)"
2126 @echo "LIBNETAPI
= $(LIBNETAPI
)"
2128 showlibs:: showlibnetapi
2130 #-------------------------------------------------------------------
2134 #-------------------------------------------------------------------
2136 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2137 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2138 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2139 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2140 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2141 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2142 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2144 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2145 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2147 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2148 @echo Linking shared library $@
2149 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
2150 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2151 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2152 @SONAMEFLAG@`basename $@`
2154 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2156 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2158 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2159 @echo Linking non-shared library $@
2160 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2162 libsmbclient: $(LIBSMBCLIENT)
2166 $(LIBSMBCLIENT_SHARED_TARGET) \
2167 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2168 $(LIBSMBCLIENT_STATIC_TARGET)
2170 installlibsmbclient:: installdirs libsmbclient
2171 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2172 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2173 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2174 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2175 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2176 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2178 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2179 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2180 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2182 installclientlib:: installlibsmbclient
2184 uninstalllibsmbclient::
2185 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2186 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2187 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2188 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2190 uninstallclientlib:: uninstalllibsmbclient
2193 installlibs:: @INSTALL_LIBSMBCLIENT@
2194 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2195 cleanlibs:: cleanlibsmbclient
2196 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2200 @echo "LIBSMBCLIENT_SHARED
= @LIBSMBCLIENT_SHARED@
"
2201 @echo "LIBSMBCLIENT_STATIC
= @LIBSMBCLIENT_STATIC@
"
2202 @echo "LIBSMBCLIENT_TARGET
= @LIBSMBCLIENT_TARGET@
"
2203 @echo "LIBSMBCLIENT_LIBS
= $(LIBSMBCLIENT_LIBS
)"
2205 @echo "LIBSMBCLIENT_SHARED_TARGET
= $(LIBSMBCLIENT_SHARED_TARGET
)"
2206 @echo "LIBSMBCLIENT_SOVER
= $(LIBSMBCLIENT_SOVER
)"
2207 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME
= $(LIBSMBCLIENT_SHARED_TARGET_SONAME
)"
2208 @echo "LIBSMBCLIENT_STATIC_TARGET
= $(LIBSMBCLIENT_STATIC_TARGET
)"
2209 @echo "LIBSMBCLIENT
= $(LIBSMBCLIENT
)"
2211 showlibs:: showlibsmbclient
2213 #-------------------------------------------------------------------
2217 #-------------------------------------------------------------------
2219 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2221 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2223 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2224 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2225 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2226 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2227 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2228 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2229 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2231 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2232 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2234 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2235 @echo Linking shared library $@
2236 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2237 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2238 $(KRB5LIBS) $(LDAP_LIBS) \
2239 @SONAMEFLAG@`basename $@`
2241 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2243 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2245 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2246 @echo Linking non-shared library $@
2247 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2249 libsmbsharemodes: $(LIBSMBSHAREMODES)
2251 cleanlibsmbsharemodes::
2253 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2254 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2255 $(LIBSMBSHAREMODES_STATIC_TARGET)
2257 installlibsmbsharemodes:: installdirs libsmbsharemodes
2258 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2259 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2260 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2261 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2262 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2263 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2265 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2266 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2267 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2269 uninstalllibsmbsharemodes::
2270 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2271 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2272 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2273 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2275 libs:: libsmbsharemodes
2276 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2277 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2278 cleanlibs:: cleanlibsmbsharemodes
2279 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2281 showlibsmbsharemodes:
2283 @echo "LIBSMBSHAREMODES_SHARED
= @LIBSMBSHAREMODES_SHARED@
"
2284 @echo "LIBSMBSHAREMODES_STATIC
= @LIBSMBSHAREMODES_STATIC@
"
2285 @echo "LIBSMBSHAREMODES_TARGET
= @LIBSMBSHAREMODES_TARGET@
"
2286 @echo "LIBSMBSHAREMODES_LIBS
= $(LIBSMBSHAREMODES_LIBS
)"
2288 @echo "LIBSMBSHAREMODES_SHARED_TARGET
= $(LIBSMBSHAREMODES_SHARED_TARGET
)"
2289 @echo "LIBSMBSHAREMODES_SOVER
= $(LIBSMBSHAREMODES_SOVER
)"
2290 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME
= $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
)"
2291 @echo "LIBSMBSHAREMODES_STATIC_TARGET
= $(LIBSMBSHAREMODES_STATIC_TARGET
)"
2292 @echo "LIBSMBSHAREMODES
= $(LIBSMBSHAREMODES
)"
2294 showlibs:: showlibsmbsharemodes
2296 #-------------------------------------------------------------------
2300 #-------------------------------------------------------------------
2302 # This is probably wrong for anything other than the GNU linker.
2303 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) @LIBTALLOC_TARGET@
2304 @echo Linking shared library $@
2305 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2306 $(LIBS) $(LIBTALLOC_LIBS) \
2307 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2308 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2309 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2311 # It would be nice to build a static bigballofmud too, but when I try
2312 # I get linker errors about dl_open and similar things. I'm not sure if
2313 # it can be fixed or if they just can't be called from a static
2316 #-------------------------------------------------------------------
2320 #-------------------------------------------------------------------
2322 LIBLUA_OBJ0 = lua-5.1.4/src/lapi.o lua-5.1.4/src/lauxlib.o \
2323 lua-5.1.4/src/lbaselib.o lua-5.1.4/src/lcode.o \
2324 lua-5.1.4/src/ldblib.o lua-5.1.4/src/ldebug.o lua-5.1.4/src/ldo.o \
2325 lua-5.1.4/src/ldump.o lua-5.1.4/src/lfunc.o lua-5.1.4/src/lgc.o \
2326 lua-5.1.4/src/linit.o lua-5.1.4/src/liolib.o lua-5.1.4/src/llex.o \
2327 lua-5.1.4/src/lmathlib.o lua-5.1.4/src/lmem.o \
2328 lua-5.1.4/src/loadlib.o lua-5.1.4/src/lobject.o \
2329 lua-5.1.4/src/lopcodes.o lua-5.1.4/src/loslib.o \
2330 lua-5.1.4/src/lparser.o lua-5.1.4/src/lstate.o \
2331 lua-5.1.4/src/lstring.o lua-5.1.4/src/lstrlib.o \
2332 lua-5.1.4/src/ltable.o lua-5.1.4/src/ltablib.o lua-5.1.4/src/ltm.o \
2333 lua-5.1.4/src/lundump.o lua-5.1.4/src/lvm.o \
2334 lua-5.1.4/src/lzio.o lua-5.1.4/src/print.o
2336 LIBLUA_OBJ = $(LIBLUA_OBJ0)
2338 LIBLUA_SHARED_TARGET=@LIBLUA_SHARED_TARGET@
2339 LIBLUA_SOVER=@LIBLUA_SOVER@
2340 LIBLUA_SHARED_TARGET_SONAME=$(LIBLUA_SHARED_TARGET).$(LIBLUA_SOVER)
2341 LIBLUA_STATIC_TARGET=@LIBLUA_STATIC_TARGET@
2342 LIBLUA=@LIBLUA_STATIC@ @LIBLUA_SHARED@
2343 LIBLUA_SYMS=$(srcdir)/exports/liblua.@SYMSEXT@
2344 LIBLUA_HEADERS=$(srcdir)/lua-5.1.4/src/lua.h
2346 $(LIBLUA_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBLUA_OBJ) $(LIBLUA_SYMS) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2347 @echo Linking shared library $@
2348 @$(SHLD_DSO) $(LIBLUA_OBJ) \
2349 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2350 $(KRB5LIBS) $(LDAP_LIBS) \
2351 @SONAMEFLAG@`basename $@`
2353 $(LIBLUA_SHARED_TARGET): $(LIBLUA_SHARED_TARGET_SONAME)
2355 @ln -f -s `basename $(LIBLUA_SHARED_TARGET_SONAME)` $@
2357 $(LIBLUA_STATIC_TARGET): $(BINARY_PREREQS) $(LIBLUA_OBJ0)
2358 @echo Linking non-shared library $@
2359 @-$(AR) -rc $@ $(LIBLUA_OBJ0)
2365 $(LIBLUA_SHARED_TARGET) \
2366 $(LIBLUA_SHARED_TARGET_SONAME) \
2367 $(LIBLUA_STATIC_TARGET)
2369 installliblua:: installdirs liblua
2370 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2371 -$(INSTALLLIBCMD_SH) $(LIBLUA_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2372 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)`
2373 -if test -f $(LIBLUA_SHARED_TARGET_SONAME) ; then \
2374 ln -f -s `basename $(LIBLUA_SHARED_TARGET_SONAME)` \
2375 $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)` ; \
2377 -$(INSTALLLIBCMD_A) $(LIBLUA_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2378 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2379 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBLUA_HEADERS) $(DESTDIR)${prefix}/include
2382 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET)`
2383 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_SHARED_TARGET_SONAME)`
2384 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBLUA_STATIC_TARGET)`
2385 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2388 installlibs:: @INSTALL_LIBLUA@
2389 uninstalllibs:: @UNINSTALL_LIBLUA@
2390 cleanlibs:: cleanliblua
2391 shlibs test_shlibs: @LIBLUA_SHARED@
2395 @echo "LIBLUA_SHARED
= @LIBLUA_SHARED@
"
2396 @echo "LIBLUA_STATIC
= @LIBLUA_STATIC@
"
2397 @echo "LIBLUA_TARGET
= @LIBLUA_TARGET@
"
2398 @echo "LIBLUA_LIBS
= $(LIBLUA_LIBS
)"
2400 @echo "LIBLUA_SHARED_TARGET
= $(LIBLUA_SHARED_TARGET
)"
2401 @echo "LIBLUA_SOVER
= $(LIBLUA_SOVER
)"
2402 @echo "LIBLUA_SHARED TARGET_SONAME
= $(LIBLUA_SHARED_TARGET_SONAME
)"
2403 @echo "LIBLUA_STATIC_TARGET
= $(LIBLUA_STATIC_TARGET
)"
2404 @echo "LIBLUA
= $(LIBLUA
)"
2406 showlibs:: showliblua
2409 #####################################################################
2413 #####################################################################
2415 # Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
2416 SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2417 -o $@ @SONAMEFLAG@`basename $@`
2419 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2421 @$(SHLD_MODULE) $(RPC_LSA_OBJ)
2423 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2425 @$(SHLD_MODULE) $(RPC_SAMR_OBJ)
2427 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2429 @$(SHLD_MODULE) $(RPC_SVC_OBJ)
2431 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2433 @$(SHLD_MODULE) $(RPC_SVCCTL_OBJ)
2435 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2437 @$(SHLD_MODULE) $(RPC_NTSVCS_OBJ)
2439 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2441 @$(SHLD_MODULE) $(RPC_WKS_OBJ)
2443 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2445 @$(SHLD_MODULE) $(RPC_NETLOG_OBJ)
2447 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2449 @$(SHLD_MODULE) $(RPC_REG_OBJ)
2451 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2453 @$(SHLD_MODULE) $(RPC_INITSHUTDOWN_OBJ)
2455 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2457 @$(SHLD_MODULE) $(RPC_DSSETUP_OBJ)
2459 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2461 @$(SHLD_MODULE) $(RPC_SPOOLSS_OBJ)
2463 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2465 @$(SHLD_MODULE) $(RPC_EVENTLOG_OBJ)
2467 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2469 @$(SHLD_MODULE) $(RPC_DFS_OBJ)
2471 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2473 @$(SHLD_MODULE) $(RPC_ECHO_OBJ)
2475 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2477 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2478 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2479 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2482 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2484 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2485 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2486 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2487 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2490 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2492 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2493 $(WINBIND_NSS_EXTRA_LIBS) $(WINBIND_NSS_PTHREAD) \
2494 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2496 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2498 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2499 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2500 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2502 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) @LIBWBCLIENT_TARGET@
2504 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) \
2505 @SONAMEFLAG@`basename $@`
2507 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) @LIBTALLOC_TARGET@ @LIBWBCLIENT_TARGET@
2508 @echo "Linking shared library
$@
"
2509 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2510 $(PAM_WINBIND_EXTRA_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2512 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2513 @echo "Building plugin
$@
"
2514 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2516 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2517 @echo "Building plugin
$@
"
2518 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2520 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2521 @echo "Building plugin
$@
"
2522 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2524 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2525 @echo "Building plugin
$@
"
2526 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2528 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2529 @echo "Building plugin
$@
"
2530 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2532 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2533 @echo "Building plugin
$@
"
2534 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2536 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2537 @echo "Building plugin
$@
"
2538 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2540 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2541 @echo "Building plugin
$@
"
2542 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2544 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2545 @echo "Building plugin
$@
"
2546 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2548 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2549 @echo "Building plugin
$@
"
2550 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2552 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2553 @echo "Building plugin
$@
"
2554 @$(SHLD_MODULE) passdb/pdb_tdb.o
2556 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2557 @echo "Building plugin
$@
"
2558 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2560 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2561 @echo "Building plugin
$@
"
2562 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2564 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2565 @echo "Building plugin
$@
"
2566 @$(SHLD_MODULE) winbindd/idmap_rid.o
2568 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2569 @echo "Building plugin
$@
"
2570 @$(SHLD_MODULE) winbindd/idmap_ad.o
2572 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2573 @echo "Building plugin
$@
"
2574 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2576 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2577 @echo "Building plugin
$@
"
2578 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2580 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o
2581 @echo "Building plugin
$@
"
2582 @$(SHLD_MODULE) winbindd/idmap_tdb2.o
2584 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o
2585 @echo "Building plugin
$@
"
2586 @$(SHLD_MODULE) winbindd/idmap_ldap.o
2588 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2589 @echo "Building plugin
$@
"
2590 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2592 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2593 @echo "Building plugin
$@
"
2594 @$(SHLD_MODULE) $(CP850_OBJ)
2596 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2597 @echo "Building plugin
$@
"
2598 @$(SHLD_MODULE) $(CP437_OBJ)
2600 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2601 @echo "Building plugin
$@
"
2602 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2604 # NOTE, there is no build rule for a dynamic default VFS module because
2605 # this one MUST MUST MUST be built statically.
2607 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2608 @echo "Building plugin
$@
"
2609 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2611 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2612 @echo "Building plugin
$@
"
2613 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2615 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2616 @echo "Building plugin
$@
"
2617 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2619 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2620 @echo "Building plugin
$@
"
2621 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2623 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2624 @echo "Building plugin
$@
"
2625 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2627 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2628 @echo "Building plugin
$@
"
2629 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2631 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2632 @echo "Building plugin
$@
"
2633 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2635 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2636 @echo "Building plugin
$@
"
2637 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2639 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2640 @echo "Building plugin
$@
"
2641 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2643 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2644 @echo "Building plugin
$@
"
2645 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2647 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2648 @echo "Building plugin
$@
"
2649 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2651 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2652 @echo "Building plugin
$@
"
2653 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2655 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2656 @echo "Building plugin
$@
"
2657 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2659 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2660 @echo "Building plugin
$@
"
2661 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2663 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2664 @echo "Building plugin
$@
"
2665 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2667 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2668 @echo "Building plugin
$@
"
2669 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2671 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2672 @echo "Building plugin
$@
"
2673 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2675 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2676 @echo "Building plugin
$@
"
2677 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2679 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2680 @echo "Building plugin
$@
"
2681 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2683 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2684 @echo "Building plugin
$@
"
2685 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2687 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2688 @echo "Building plugin
$@
"
2689 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2691 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2692 @echo "Building plugin
$@
"
2693 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2695 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2696 @echo "Building plugin
$@
"
2697 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2699 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2700 @echo "Building plugin
$@
"
2701 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2703 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2704 @echo "Building plugin
$@
"
2705 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2707 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2708 @echo "Building plugin
$@
"
2709 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2711 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2712 @echo "Building plugin
$@
"
2713 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2715 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2716 @echo "Building plugin
$@
"
2717 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2719 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2720 @echo "Building plugin
$@
"
2721 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2723 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2724 @echo "Building plugin
$@
"
2725 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2727 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2728 @echo "Building plugin
$@
"
2729 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2731 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2732 @echo "Building plugin
$@
"
2733 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2735 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2736 @echo "Building plugin
$@
"
2737 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2739 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2740 @echo "Building plugin
$@
"
2741 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2743 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2744 @echo "Building plugin
$@
"
2745 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2747 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2748 @echo "Building plugin
$@
"
2749 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2751 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2752 @echo "Building plugin
$@
"
2753 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2755 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2756 @echo "Building plugin
$@
"
2757 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2759 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2760 @echo "Building plugin
$@
"
2761 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2763 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2764 @echo "Building plugin
$@
"
2765 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2767 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2768 @echo "Building plugin
$@
"
2769 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2771 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2772 @echo "Building plugin
$@
"
2773 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2775 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2776 @echo "Building plugin
$@
"
2777 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2779 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2780 @echo "Building plugin
$@
"
2781 @$(SHLD_MODULE) libgpo/gpext/registry.o
2783 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2784 @echo "Building plugin
$@
"
2785 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2787 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2788 @echo "Building plugin
$@
"
2789 @$(SHLD_MODULE) libgpo/gpext/security.o
2791 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2792 @echo "Building plugin
$@
"
2793 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2795 #########################################################
2796 ## IdMap NSS plugins
2798 ## None here right now
2799 #########################################################
2801 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2803 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2804 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2807 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2808 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2810 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2811 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2812 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2813 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2815 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) @LIBTALLOC_TARGET@ @LIBWBCLIENT_TARGET@ @LIBTDB_TARGET@
2816 @echo "Linking shared library
$@
"
2817 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
2818 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2819 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
2821 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2823 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
2824 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2826 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2828 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
2829 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2831 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2833 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
2834 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2836 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2838 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
2839 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2841 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
2842 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2843 torture/t_strcmp.o -L ./bin -lbigballofmud
2845 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
2846 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2847 torture/t_strstr.o -L ./bin -lbigballofmud
2849 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) @LIBTALLOC_TARGET@ bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
2850 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
2851 torture/t_strappend.o -L ./bin -lbigballofmud
2853 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
2854 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
2855 -L./bin -lbigballofmud
2857 bin/timelimit@EXEEXT@: script/tests/timelimit.o
2859 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
2861 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@ @LIBWBCLIENT_TARGET@
2863 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
2864 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
2865 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
2867 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2869 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
2870 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2872 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2874 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
2876 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
2877 $(LDFLAGS) $(DYNEEXP) $(LIBS) \
2879 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2881 install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
2882 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
2883 @INSTALL_PAM_MODULES@ installlibs installmo
2885 install-everything:: install installmodules
2887 # DESTDIR is used here to prevent packagers wasting their time
2888 # duplicating the Makefile. Remove it and you will have the privelege
2889 # of package each samba release for muliple versions of multiple
2890 # distributions and operating systems, or at least supplying patches
2891 # to all the packaging files required for this, prior to committing
2892 # the removal of DESTDIR. Do not remove it even though you think it
2896 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
2897 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
2898 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
2899 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
2901 installservers:: all installdirs
2902 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
2904 installbin:: all installdirs
2905 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
2907 installcifsmount:: @CIFSMOUNT_PROGS@
2908 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(ROOTSBINDIR)
2909 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
2911 installcifsupcall:: @CIFSUPCALL_PROGS@
2912 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(SBINDIR)
2913 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) @CIFSUPCALL_PROGS@
2915 # Some symlinks are required for the 'probing' of modules.
2916 # This mechanism should go at some point..
2917 installmodules:: modules installdirs
2918 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
2919 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
2920 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
2921 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
2922 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
2923 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
2924 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
2925 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
2926 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
2927 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
2928 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
2929 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
2930 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
2931 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
2932 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
2933 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
2934 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
2935 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
2936 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
2938 installscripts:: installdirs
2939 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
2941 installdat:: installdirs
2942 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2944 installmsg:: installdirs
2945 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
2947 installswat:: installdirs installmsg
2948 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
2950 installpammodules:: $(PAM_MODULES)
2951 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
2952 @for module in $(PAM_MODULES); do \
2953 echo "Installing module
$${module} as $(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
2954 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
2955 "$(DESTDIR
)/$(PAMMODULESDIR
)"; \
2958 # revert to the previously installed version
2960 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
2961 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
2963 installman:: installdirs
2964 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@
"
2966 installmo:: all installdirs
2967 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2972 @echo "Samba will be installed into
:"
2973 @echo " prefix: $(prefix)"
2974 @echo " bindir: $(BINDIR
)"
2975 @echo " sbindir
: $(SBINDIR
)"
2976 @echo " libdir: $(LIBDIR
)"
2977 @echo " modulesdir
: $(MODULESDIR
)"
2978 @echo " vardir
: $(VARDIR
)"
2979 @echo " mandir: $(MANDIR
)"
2980 @echo " privatedir
: $(PRIVATE_DIR
)"
2981 @echo " configdir
: $(CONFIGDIR
)"
2982 @echo " lockdir
: $(LOCKDIR
)"
2983 @echo " statedir: $(STATEDIR
)"
2984 @echo " cachedir
: $(CACHEDIR
)"
2985 @echo " piddir
: $(PIDDIR
)"
2986 @echo " swatdir
: $(SWATDIR
)"
2987 @echo " codepagedir
: $(CODEPAGEDIR
)"
2990 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
2993 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
2996 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
2999 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3002 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3004 uninstallcifsmount::
3005 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSMOUNT_PROGS@
3007 uninstallcifsupcall::
3008 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(ROOTSBINDIR) @CIFSUPCALL_PROGS@
3011 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3012 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3013 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3014 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3015 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3016 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3017 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3018 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3021 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3024 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3027 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3029 uninstallswat:: uninstallmsg
3030 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3032 uninstallpammodules::
3033 @for module in $(PAM_MODULES); do \
3034 echo "Removing
$(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
3035 rm -f "$(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
3038 # Toplevel clean files
3039 TOPFILES=dynconfig.o localedir.o
3042 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3043 ../libcli/*.o ../libcli/*/*.o \
3047 -rm -f include/build_env.h
3048 -rm -f smbd/build_options.c
3049 -rm -f $(PRECOMPILED_HEADER)
3050 -rm -f core */*~ *~ \
3051 */*.o */*/*.o */*/*/*.o \
3052 ../testsuite/*/*.o \
3053 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3054 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3055 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \
3056 $(MODULES) $(TORTURE_PROGS) \
3057 $(EVERYTHING_PROGS) \
3059 .headers.stamp */src/*.o
3062 include/build_env.h: script/build_env.sh
3063 @echo Building include/build_env.h
3064 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3065 > $(builddir)/include/build_env.h
3070 find $(srcdir)/.. -name "*.
[ch
]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3073 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.
[ch
]" | grep -v include/proto\.h`
3076 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3077 -rm -f script/installbin.sh script/uninstallbin.sh
3079 distclean:: realclean
3081 -rm -f include/config.h Makefile
3082 -rm -f config.status config.cache so_locations
3085 realdistclean:: distclean
3086 -rm -f include/config.h.in
3087 -rm -f include/version.h
3090 # this target is really just for my use. It only works on a limited
3091 # range of machines and is used to produce a list of potentially
3092 # dead (ie. unused) functions in the code. (tridge)
3094 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3095 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3096 comm -13 nmused.txt nmfns.txt
3099 # when configure.in is updated, reconfigure
3100 $(srcdir)/configure: $(srcdir)/configure.in
3101 @echo "WARNING
: you need to rerun .
/autogen.sh
"
3103 config.status: $(srcdir)/configure
3104 @echo "WARNING
: you need to run .
/configure
"
3106 Makefile: $(srcdir)/Makefile.in config.status
3107 @echo "WARNING
: you need to run .
/config.status
"
3109 ######################################################################
3110 # Samba Testing Framework
3112 # Check shared libs for unresolved symbols
3115 @$(LIB_PATH_VAR)=./bin && \
3116 export $(LIB_PATH_VAR) && \
3117 for module in $?; do \
3118 ./script/tests/dlopen.sh $${module} \
3122 # Check for NSS module problems.
3123 test_nss_modules:: nss_modules
3124 @echo "Testing
$(NSS_MODULES
) "
3125 @$(LIB_PATH_VAR)=./bin && \
3126 export $(LIB_PATH_VAR) && \
3127 for module in $(NSS_MODULES); do \
3128 ./script/tests/dlopen.sh $${module} \
3132 # Check for PAM module problems. Specifically, check that every module we
3133 # built can actually be loaded by a minimal PAM-aware application.
3134 test_pam_modules:: pam_modules
3135 @echo "Testing
$(PAM_MODULES
) "
3136 @$(LIB_PATH_VAR)=./bin && \
3137 export $(LIB_PATH_VAR) && \
3138 for module in $(PAM_MODULES); do \
3139 ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
3145 ## Targets for 'make test'
3148 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3150 test:: all torture timelimit
3151 @echo Running Test suite
3152 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL
)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3154 valgrindtest:: all torture timelimit
3155 @echo Running Test suite with valgrind
3156 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3157 NMBD_VALGRIND="xterm
-n nmbd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3158 WINBINDD_VALGRIND="xterm
-n winbindd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3159 SMBD_VALGRIND="xterm
-n smbd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3160 VALGRIND="valgrind
-q
--num-callers
=30 --log-file
=${selftest_prefix}/valgrind.log
" \
3161 PERL="$(PERL
)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3163 SELFTEST_FORMAT = plain
3164 selftestdir = ../selftest
3166 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir
)/bin
"
3168 selftest:: all torture timelimit
3169 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3170 SAMBA4SHAREDDIR="$(builddir
)/bin
/shared
" SMBTORTURE4=$(smbtorture4_path) \
3171 PERL="$(PERL
)" PYTHON="$(PYTHON
)" \
3172 $(PERL) $(selftestdir)/selftest.pl \
3173 --prefix=${selftest_prefix} --target=samba3 \
3174 --testlist="$(srcdir)/selftest
/tests.sh|
" \
3175 --expected-failures=$(srcdir)/selftest/knownfail \
3176 --exclude=$(srcdir)/selftest/skip \
3177 --socket-wrapper $(TESTS) --format=$(SELFTEST_FORMAT) --immediate
3180 $(MAKE) selftest TESTS=$*
3182 # Check for Winbind struct 32/64bit padding
3184 @echo "Testing winbind request
/response structure for
32/64bit padding
"
3185 @./script/tests/wb_pad.sh || exit 1;
3191 libsmbclient_examples: libsmbclient
3192 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3194 clean_libsmbclient_examples:
3195 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3197 libnetapi_examples: libnetapi
3198 $(MAKE) -C lib/netapi/examples
3200 clean_libnetapi_examples:
3201 $(MAKE) -C lib/netapi/examples clean