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 automatically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS
=@DEVELOPER_CFLAGS@
45 CPPFLAGS
=-DHAVE_CONFIG_H @CPPFLAGS@
50 LDSHFLAGS
=$(PICFLAG
) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
-lc @LDSHFLAGS_Z_DEFS@
51 LDSHFLAGS_MODULES
=$(PICFLAG
) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
52 LDFLAGS
=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
54 WINBIND_NSS_LDSHFLAGS
=$(PICFLAG
) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@
-lc @LDSHFLAGS_Z_DEFS@
63 TERMLDFLAGS
=@TERMLDFLAGS@
65 PRINT_LIBS
=@PRINT_LIBS@
69 PASSDB_LIBS
=@PASSDB_LIBS@
70 IDMAP_LIBS
=@IDMAP_LIBS@
75 LIBWBCLIENT
=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
76 LIBWBCLIENT_LIBS
=@LIBWBCLIENT_LIBS@
77 PTHREAD_LDFLAGS
=@PTHREAD_LDFLAGS@
78 PTHREAD_CFLAGS
=@PTHREAD_CFLAGS@
79 DNSSD_LIBS
=@DNSSD_LIBS@
80 AVAHI_LIBS
=@AVAHI_LIBS@
82 LIBTALLOC
=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
83 LIBTALLOC_LIBS
=@LIBTALLOC_LIBS@
84 LIBREPLACE_LIBS
=@LIBREPLACE_LIBS@
85 LIBTDB
=@LIBTDB_STATIC@ @LIBTDB_SHARED@
86 LIBTDB_LIBS
=@LIBTDB_LIBS@
88 LIBNETAPI
=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
89 LIBNETAPI_LIBS
=@LIBNETAPI_LIBS@
90 LIBSMBCLIENT_LIBS
=@LIBSMBCLIENT_LIBS@
91 LIBSMBSHAREMODES_LIBS
=@LIBSMBSHAREMODES_LIBS@
93 TALLOCTORT
= @TALLOCTORT@
95 TDBBACKUP
= @TDBBACKUP@
98 TDBTORTURE
= @TDBTORTURE@
101 INSTALLLIBCMD_SH
=@INSTALLLIBCMD_SH@
102 INSTALLLIBCMD_A
=@INSTALLLIBCMD_A@
103 UNINSTALLLIBCMD_SH
=@UNINSTALLLIBCMD_SH@
104 UNINSTALLLIBCMD_A
=@UNINSTALLLIBCMD_A@
108 builddir
=@abs_builddir@
109 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
110 # will search for a POSIX-compliant shell, and that might not be
111 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
115 # See the autoconf manual "Installation Directory Variables" for a
116 # discussion of the subtle use of these variables.
120 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
122 ROOTSBINDIR
= @rootsbindir@
124 MODULESDIR
= @modulesdir@
125 INCLUDEDIR
=@
includedir@
126 PAMMODULESDIR
= @pammodulesdir@
127 VFSLIBDIR
= $(MODULESDIR
)/vfs
128 PERFCOUNTLIBDIR
= $(MODULESDIR
)/perfcount
129 PDBLIBDIR
= $(MODULESDIR
)/pdb
130 RPCLIBDIR
= $(MODULESDIR
)/rpc
131 IDMAPLIBDIR
= $(MODULESDIR
)/idmap
132 NSSINFOLIBDIR
= $(MODULESDIR
)/nss_info
133 CHARSETLIBDIR
= $(MODULESDIR
)/charset
134 AUTHLIBDIR
= $(MODULESDIR
)/auth
135 CONFIGLIBDIR
= $(MODULESDIR
)/config
136 GPEXTLIBDIR
= $(MODULESDIR
)/gpext
137 CONFIGDIR
= @configdir@
138 VARDIR
= @localstatedir@
142 # The permissions to give the executables and other data
143 INSTALLPERMS_BIN
= 0755
144 INSTALLPERMS_DATA
= 0644
146 # set these to where to find various files
147 # These can be overridden by command line switches (see smbd(8))
148 # or in smb.conf (see smb.conf(5))
149 LOGFILEBASE
= @logfilebase@
150 CONFIGFILE
= $(CONFIGDIR
)/smb.conf
151 LMHOSTSFILE
= $(CONFIGDIR
)/lmhosts
152 NCALRPCDIR
= @ncalrpcdir@
154 # This is where smbpasswd et al go
155 PRIVATEDIR
= @privatedir@
157 SMB_PASSWD_FILE
= $(PRIVATEDIR
)/smbpasswd
158 PRIVATE_DIR
= $(PRIVATEDIR
)
160 # This is where SWAT images and help files go
163 # This is where locale(mo) files go
164 LOCALEDIR
= @localedir@
166 # the directory where lock files go
169 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
170 CACHEDIR
= @cachedir@
171 STATEDIR
= @
statedir@
173 # Where to look for (and install) codepage databases.
174 CODEPAGEDIR
= @codepagedir@
176 # the directory where pid files go
190 PATH_FLAGS
= -DSMB_PASSWD_FILE
=\"$(SMB_PASSWD_FILE
)\" \
191 -DPRIVATE_DIR
=\"$(PRIVATE_DIR
)\" \
192 -DCONFIGFILE
=\"$(CONFIGFILE
)\" \
193 -DSBINDIR
=\"$(SBINDIR
)\" \
194 -DBINDIR
=\"$(BINDIR
)\" \
195 -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\" \
196 -DSWATDIR
=\"$(SWATDIR
)\" \
197 -DLOCKDIR
=\"$(LOCKDIR
)\" \
198 -DPIDDIR
=\"$(PIDDIR
)\" \
199 -DLIBDIR
=\"$(LIBDIR
)\" \
200 -DMODULESDIR
=\"$(MODULESDIR
)\" \
201 -DLOGFILEBASE
=\"$(LOGFILEBASE
)\" \
202 -DSHLIBEXT
=\"@SHLIBEXT@
\" \
203 -DNCALRPCDIR
=\"$(NCALRPCDIR
)\" \
204 -DCONFIGDIR
=\"$(CONFIGDIR
)\" \
205 -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\" \
206 -DCACHEDIR
=\"$(CACHEDIR
)\" \
207 -DSTATEDIR
=\"$(STATEDIR
)\" \
208 -DLOCALEDIR
=\"$(LOCALEDIR
)\"
210 # Note that all executable programs now provide for an optional executable suffix.
212 SBIN_PROGS
= bin
/smbd@EXEEXT@ bin
/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
214 BIN_PROGS1
= bin
/smbclient@EXEEXT@ bin
/net@EXEEXT@ bin
/smbspool@EXEEXT@ \
215 bin
/testparm@EXEEXT@ bin
/smbstatus@EXEEXT@ bin
/smbget@EXEEXT@ \
216 bin
/smbta-util@EXEEXT@
217 BIN_PROGS2
= bin
/smbcontrol@EXEEXT@ bin
/smbtree@EXEEXT@
$(TDBBACKUP
) \
218 bin
/nmblookup@EXEEXT@ bin
/pdbedit@EXEEXT@
$(TDBDUMP
) \
220 BIN_PROGS3
= bin
/smbpasswd@EXEEXT@ bin
/rpcclient@EXEEXT@ bin
/smbcacls@EXEEXT@ \
221 bin
/profiles@EXEEXT@ bin
/ntlm_auth@EXEEXT@ bin
/sharesec@EXEEXT@ \
222 bin
/smbcquotas@EXEEXT@ bin
/eventlogadm@EXEEXT@
224 TORTURE_PROGS
= bin
/smbtorture@EXEEXT@ bin
/msgtest@EXEEXT@ \
225 bin
/masktest@EXEEXT@ bin
/locktest@EXEEXT@ \
226 bin
/locktest2@EXEEXT@ bin
/nsstest@EXEEXT@ bin
/vfstest@EXEEXT@ \
227 bin
/pdbtest@EXEEXT@
$(TALLOCTORT
) bin
/replacetort@EXEEXT@ \
229 bin
/smbconftort@EXEEXT@ bin
/vlp@EXEEXT@
231 BIN_PROGS
= @EXTRA_BIN_PROGS@ \
232 $(BIN_PROGS1
) $(BIN_PROGS2
) $(BIN_PROGS3
)
234 EVERYTHING_PROGS
= bin
/debug2html@EXEEXT@ bin
/smbfilter@EXEEXT@ \
235 $(TALLOCTORT
) bin
/replacetort@EXEEXT@ \
236 bin
/log2pcap@EXEEXT@ \
237 bin
/vlp@EXEEXT@ bin
/smbiconv@EXEEXT@ \
238 bin
/dbwrap_tool@EXEEXT@ \
239 bin
/dbwrap_torture@EXEEXT@
241 PAM_MODULES
= @PAM_MODULES@
243 NSS_MODULES
= @NSS_MODULES@
245 SCRIPTS
= $(srcdir)/script
/smbtar
$(builddir
)/script
/findsmb
247 VFS_MODULES
= @VFS_MODULES@
248 PERFCOUNT_MODULES
= @PERFCOUNT_MODULES@
249 PDB_MODULES
= @PDB_MODULES@
250 RPC_MODULES
= @RPC_MODULES@
251 IDMAP_MODULES
= @IDMAP_MODULES@
252 CHARSET_MODULES
= @CHARSET_MODULES@
253 AUTH_MODULES
= @AUTH_MODULES@
254 NSS_INFO_MODULES
= @NSS_INFO_MODULES@
255 GPEXT_MODULES
= @GPEXT_MODULES@
256 MODULES
= $(VFS_MODULES
) $(PDB_MODULES
) $(RPC_MODULES
) $(IDMAP_MODULES
) \
257 $(CHARSET_MODULES
) $(AUTH_MODULES
) $(NSS_INFO_MODULES
) \
258 $(GPEXT_MODULES
) $(PERFCOUNT_MODULES
)
260 EXTRA_ALL_TARGETS
= @EXTRA_ALL_TARGETS@
262 ######################################################################
264 ######################################################################
266 TDB_LIB_OBJ
= lib
/util_tdb.o ..
/lib
/util
/util_tdb.o \
267 lib
/dbwrap.o lib
/dbwrap_tdb.o \
272 TDB_VALIDATE_OBJ
= lib
/tdb_validate.o
274 SMBLDAP_OBJ
= @SMBLDAP@ @SMBLDAPUTIL@
276 VERSION_OBJ
= lib
/version.o
278 WBCOMMON_OBJ
= ..
/nsswitch
/wb_common.o
282 AFS_SETTOKEN_OBJ
= lib
/afs_settoken.o
284 AVAHI_OBJ
= @AVAHI_OBJ@
286 SERVER_MUTEX_OBJ
= lib
/server_mutex.o
288 PASSCHANGE_OBJ
= libsmb
/passchange.o
290 LIBNDR_DRSUAPI_OBJ
= ..
/librpc
/ndr
/ndr_drsuapi.o \
291 ..
/librpc
/ndr
/ndr_compression.o \
292 librpc
/gen_ndr
/ndr_drsuapi.o \
293 ..
/librpc
/ndr
/ndr_drsblobs.o \
294 librpc
/gen_ndr
/ndr_drsblobs.o
296 ZLIB_OBJ
= @ZLIB_OBJS@
298 COMPRESSION_OBJ
= ..
/lib
/compression
/mszip.o \
299 ..
/lib
/compression
/lzxpress.o \
302 DRSUAPI_OBJ
= $(LIBNDR_DRSUAPI_OBJ
) \
305 LIBNDR_NTLMSSP_OBJ
= librpc
/gen_ndr
/ndr_ntlmssp.o \
306 ..
/librpc
/ndr
/ndr_ntlmssp.o
308 LIBNDR_OBJ
= ..
/librpc
/ndr
/ndr_basic.o \
309 ..
/librpc
/ndr
/ndr.o \
310 ..
/librpc
/ndr
/ndr_misc.o \
311 librpc
/gen_ndr
/ndr_misc.o \
312 librpc
/gen_ndr
/ndr_security.o \
313 ..
/librpc
/ndr
/ndr_sec_helper.o \
314 ..
/librpc
/ndr
/ndr_string.o \
315 ..
/librpc
/ndr
/uuid.o \
317 librpc
/gen_ndr
/ndr_dcerpc.o
319 LIBNDR_GEN_OBJ0
= librpc
/gen_ndr
/ndr_samr.o \
320 librpc
/gen_ndr
/ndr_lsa.o
322 LIBNDR_NETLOGON_OBJ
= librpc
/gen_ndr
/ndr_netlogon.o \
323 ..
/librpc
/ndr
/ndr_netlogon.o
325 LIBNDR_SCHANNEL_OBJ
= librpc
/gen_ndr
/ndr_schannel.o \
326 ..
/librpc
/ndr
/ndr_schannel.o
328 LIBNDR_SPOOLSS_OBJ
= librpc
/gen_ndr
/ndr_spoolss.o \
329 ..
/librpc
/ndr
/ndr_spoolss_buf.o
331 LIBNDR_NTPRINTING_OBJ
= librpc
/gen_ndr
/ndr_ntprinting.o \
332 ..
/librpc
/ndr
/ndr_ntprinting.o \
334 LIBNDR_PREG_OBJ
= librpc
/gen_ndr
/ndr_preg.o \
335 librpc
/ndr
/ndr_preg.o
337 LIBNDR_XATTR_OBJ
= librpc
/gen_ndr
/ndr_xattr.o \
338 ..
/librpc
/ndr
/ndr_xattr.o
340 LIBCLI_SPOOLSS_OBJ
= librpc
/gen_ndr
/cli_spoolss.o \
341 librpc
/gen_ndr
/ndr_spoolss_c.o \
342 rpc_client
/cli_spoolss.o \
343 rpc_client
/init_spoolss.o
345 LIBCLI_EVENTLOG_OBJ
= librpc
/gen_ndr
/cli_eventlog.o \
346 librpc
/gen_ndr
/ndr_eventlog_c.o
348 LIBCLI_WINREG_OBJ
= librpc
/gen_ndr
/cli_winreg.o \
349 librpc
/gen_ndr
/ndr_winreg_c.o
351 LIBCLI_NTSVCS_OBJ
= librpc
/gen_ndr
/cli_ntsvcs.o \
352 librpc
/gen_ndr
/ndr_ntsvcs_c.o
354 LIBCLI_DRSUAPI_OBJ
= librpc
/gen_ndr
/cli_drsuapi.o \
355 librpc
/gen_ndr
/ndr_drsuapi_c.o
357 LIBCLI_DFS_OBJ
= librpc
/gen_ndr
/cli_dfs.o \
358 librpc
/gen_ndr
/ndr_dfs_c.o
360 LIBCLI_ECHO_OBJ
= librpc
/gen_ndr
/cli_echo.o \
361 librpc
/gen_ndr
/ndr_echo_c.o
363 LIBCLI_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/cli_initshutdown.o \
364 librpc
/gen_ndr
/ndr_initshutdown_c.o
366 LIBCLI_DSSETUP_OBJ
= librpc
/gen_ndr
/cli_dssetup.o \
367 librpc
/gen_ndr
/ndr_dssetup_c.o
369 LIBCLI_SVCCTL_OBJ
= librpc
/gen_ndr
/cli_svcctl.o \
370 librpc
/gen_ndr
/ndr_svcctl_c.o
372 LIBCLI_WKSSVC_OBJ
= librpc
/gen_ndr
/cli_wkssvc.o \
373 librpc
/gen_ndr
/ndr_wkssvc_c.o
375 LIBCLI_SRVSVC_OBJ
= librpc
/gen_ndr
/cli_srvsvc.o \
376 librpc
/gen_ndr
/ndr_srvsvc_c.o
378 LIBCLI_LSA_OBJ
= librpc
/gen_ndr
/cli_lsa.o \
379 librpc
/gen_ndr
/ndr_lsa_c.o \
380 rpc_client
/cli_lsarpc.o \
381 rpc_client
/init_lsa.o
383 LIBCLI_SAMR_OBJ
= librpc
/gen_ndr
/cli_samr.o \
384 librpc
/gen_ndr
/ndr_samr_c.o \
385 rpc_client
/cli_samr.o
387 LIBCLI_NETLOGON_OBJ
= librpc
/gen_ndr
/cli_netlogon.o \
388 librpc
/gen_ndr
/ndr_netlogon_c.o \
389 rpc_client
/cli_netlogon.o
391 LIBCLI_EPMAPPER_OBJ
= librpc
/gen_ndr
/cli_epmapper.o \
392 librpc
/gen_ndr
/ndr_epmapper_c.o
394 LIBNDR_GEN_OBJ
= librpc
/gen_ndr
/ndr_wkssvc.o \
396 librpc
/gen_ndr
/ndr_dfs.o \
397 librpc
/gen_ndr
/ndr_echo.o \
398 librpc
/gen_ndr
/ndr_winreg.o \
399 librpc
/gen_ndr
/ndr_initshutdown.o \
400 librpc
/gen_ndr
/ndr_srvsvc.o \
401 librpc
/gen_ndr
/ndr_eventlog.o \
402 $(LIBNDR_NETLOGON_OBJ
) \
403 librpc
/gen_ndr
/ndr_dssetup.o \
404 librpc
/gen_ndr
/ndr_notify.o \
405 $(LIBNDR_XATTR_OBJ
) \
406 librpc
/gen_ndr
/ndr_epmapper.o \
407 librpc
/gen_ndr
/ndr_named_pipe_auth.o \
408 librpc
/gen_ndr
/ndr_ntsvcs.o \
409 $(LIBNDR_SPOOLSS_OBJ
)
411 # this includes only the low level parse code, not stuff
412 # that requires knowledge of security contexts
413 REG_PARSE_PRS_OBJ
= registry
/reg_parse_prs.o
415 LIBREPLACE_OBJ
= @LIBREPLACE_OBJS@
417 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
418 NSS_WRAPPER_OBJ
= @NSS_WRAPPER_OBJS@
422 $(SOCKET_WRAPPER_OBJ
) \
425 UTIL_OBJ
= ..
/lib
/util
/rbtree.o ..
/lib
/util
/signal.o ..
/lib
/util
/time.o \
426 ..
/lib
/util
/xfile.o ..
/lib
/util
/util_strlist.o \
427 ..
/lib
/util
/util_file.o ..
/lib
/util
/data_blob.o \
428 ..
/lib
/util
/util.o ..
/lib
/util
/fsusage.o \
429 ..
/lib
/util
/params.o ..
/lib
/util
/talloc_stack.o \
430 ..
/lib
/util
/genrand.o ..
/lib
/util
/util_net.o \
431 ..
/lib
/util
/become_daemon.o ..
/lib
/util
/system.o \
432 ..
/lib
/util
/tevent_unix.o ..
/lib
/util
/tevent_ntstatus.o \
433 ..
/lib
/util
/smb_threads.o ..
/lib
/util
/util_id.o \
434 ..
/lib
/util
/blocking.o ..
/lib
/util
/rfc1738.o
436 CRYPTO_OBJ
= ..
/lib
/crypto
/crc32.o ..
/lib
/crypto
/md5.o \
437 ..
/lib
/crypto
/hmacmd5.o ..
/lib
/crypto
/arcfour.o \
438 ..
/lib
/crypto
/md4.o \
439 ..
/lib
/crypto
/sha256.o ..
/lib
/crypto
/hmacsha256.o \
440 ..
/lib
/crypto
/aes.o ..
/lib
/crypto
/rijndael-alg-fst.o
442 LIB_OBJ
= $(LIBSAMBAUTIL_OBJ
) $(UTIL_OBJ
) $(CRYPTO_OBJ
) \
443 lib
/messages.o librpc
/gen_ndr
/ndr_messaging.o lib
/messages_local.o \
444 lib
/messages_ctdbd.o lib
/packet.o lib
/ctdbd_conn.o \
445 lib
/interfaces.o lib
/memcache.o \
449 lib
/util_transfer_file.o ..
/lib
/async_req
/async_sock.o \
451 $(VERSION_OBJ
) lib
/charcnv.o lib
/debug.o lib
/fault.o \
452 lib
/interface.o lib
/pidfile.o \
453 lib
/system.o lib
/sendfile.o lib
/recvfile.o lib
/time.o \
455 ..
/libds
/common
/flag_mapping.o \
456 lib
/util_pw.o lib
/access.o lib
/smbrun.o \
457 lib
/bitmap.o lib
/dprintf.o
$(UTIL_REG_OBJ
) \
459 lib
/util_str.o lib
/clobber.o lib
/util_sid.o lib
/util_uuid.o \
460 lib
/util_unistr.o lib
/util_file.o \
461 lib
/util.o lib
/util_names.o \
462 lib
/util_sock.o lib
/sock_exec.o lib
/util_sec.o \
463 lib
/substitute.o lib
/dbwrap_util.o \
464 lib
/ms_fnmatch.o lib
/select.o lib
/errmap_unix.o \
465 lib
/tallocmsg.o lib
/dmallocmsg.o \
466 libsmb
/clisigning.o libsmb
/smb_signing.o \
467 lib
/iconv.o lib
/pam_errors.o intl
/lang_tdb.o \
468 lib
/conn_tdb.o lib
/adt_tree.o lib
/gencache.o \
469 lib
/sessionid_tdb.o \
470 lib
/module.o lib
/events.o @LIBTEVENT_OBJ0@ \
471 lib
/server_contexts.o \
472 lib
/ldap_escape.o @CHARSET_STATIC@ \
473 lib
/secdesc.o lib
/util_seaccess.o ..
/libcli
/security
/secace.o \
474 ..
/libcli
/security
/sddl.o \
475 ..
/libcli
/security
/secacl.o @PTHREADPOOL_OBJ@ \
477 libads
/krb5_errs.o lib
/system_smbd.o lib
/audit.o
$(LIBNDR_OBJ
) \
478 lib
/file_id.o lib
/idmap_cache.o \
479 ..
/libcli
/security
/dom_sid.o ..
/libcli
/security
/security_descriptor.o
481 LIB_DUMMY_OBJ
= lib
/dummysmbd.o lib
/dummyroot.o
482 LIB_NONSMBD_OBJ
= $(LIB_OBJ
) $(LIB_DUMMY_OBJ
)
484 READLINE_OBJ
= lib
/readline.o
486 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
487 # Be sure to include them into your application
488 POPT_LIB_OBJ
= lib
/popt_common.o
490 PARAM_WITHOUT_REG_OBJ
= dynconfig.o param
/loadparm.o param
/loadparm_server_role.o param
/util.o lib
/sharesec.o lib
/ldap_debug_handler.o
491 PARAM_REG_ADD_OBJ
= $(REG_SMBCONF_OBJ
) $(LIBSMBCONF_OBJ
) $(PRIVILEGES_BASIC_OBJ
)
492 PARAM_OBJ
= $(PARAM_WITHOUT_REG_OBJ
) $(PARAM_REG_ADD_OBJ
)
494 KRBCLIENT_OBJ
= libads
/kerberos.o libads
/ads_status.o
496 LIBADDNS_OBJ0
= libaddns
/dnsrecord.o libaddns
/dnsutils.o libaddns
/dnssock.o \
497 libaddns
/dnsgss.o libaddns
/dnsmarshall.o
498 LIBADDNS_OBJ
= $(LIBADDNS_OBJ0
) $(SOCKET_WRAPPER_OBJ
)
500 GPEXT_OBJ
= ..
/libgpo
/gpext
/gpext.o @GPEXT_STATIC@
502 LIBGPO_OBJ0
= ..
/libgpo
/gpo_ldap.o ..
/libgpo
/gpo_ini.o ..
/libgpo
/gpo_util.o \
503 ..
/libgpo
/gpo_fetch.o libgpo
/gpo_filesync.o ..
/libgpo
/gpo_sec.o \
506 LIBGPO_OBJ
= $(LIBGPO_OBJ0
)
508 LIBADS_OBJ
= libads
/ldap.o \
509 libads
/sasl.o libads
/sasl_wrapping.o \
510 libads
/krb5_setpw.o \
511 libads
/kerberos_util.o \
513 libads
/ads_struct.o libads
/kerberos_keytab.o \
514 libads
/disp_sec.o libads
/ldap_utils.o \
515 libads
/ldap_schema.o libads
/util.o libads
/ndr.o
517 LIBADS_SERVER_OBJ
= libads
/kerberos_verify.o libads
/authdata.o \
518 ..
/librpc
/ndr
/ndr_krb5pac.o \
519 librpc
/gen_ndr
/ndr_krb5pac.o
521 LIBADS_PRINTER_OBJ
= libads
/ldap_printer.o
523 SECRETS_OBJ
= passdb
/secrets.o passdb
/machine_account_secrets.o passdb
/machine_sid.o \
524 librpc
/gen_ndr
/ndr_secrets.o
526 LIBNBT_OBJ
= ..
/libcli
/nbt
/nbtname.o \
527 ..
/libcli
/netlogon.o \
528 ..
/libcli
/ndr_netlogon.o \
529 librpc
/gen_ndr
/ndr_nbt.o \
530 librpc
/gen_ndr
/ndr_svcctl.o \
531 ..
/librpc
/ndr
/ndr_svcctl.o
533 LIBNMB_OBJ
= libsmb
/unexpected.o libsmb
/namecache.o libsmb
/nmblib.o \
534 libsmb
/namequery.o ..
/libcli
/nbt
/lmhosts.o libsmb
/conncache.o \
535 libads
/dns.o libads
/sitename_cache.o
537 NTERR_OBJ
= libsmb
/nterr.o libsmb
/smberr.o
538 DOSERR_OBJ
= ..
/libcli
/util
/doserr.o
539 ERRORMAP_OBJ
= libsmb
/errormap.o
540 DCE_RPC_ERR_OBJ
= ..
/librpc
/rpc
/dcerpc_error.o
542 LIBSMB_ERR_OBJ0
= $(NTERR_OBJ
) $(DOSERR_OBJ
) $(ERRORMAP_OBJ
) $(DCE_RPC_ERR_OBJ
)
544 LIBSMB_ERR_OBJ1
= ..
/libcli
/auth
/smbdes.o ..
/libcli
/auth
/smbencrypt.o ..
/libcli
/auth
/msrpc_parse.o ..
/libcli
/auth
/session.o
546 LIBSMB_ERR_OBJ
= $(LIBSMB_ERR_OBJ0
) $(LIBSMB_ERR_OBJ1
) \
547 $(REG_PARSE_PRS_OBJ
) \
551 ..
/libcli
/auth
/ntlm_check.o \
553 libsmb
/ntlmssp_wrap.o \
554 ..
/libcli
/auth
/ntlmssp.o \
555 ..
/libcli
/auth
/ntlmssp_sign.o \
556 $(LIBNDR_NTLMSSP_OBJ
) \
557 ..
/libcli
/auth
/ntlmssp_ndr.o \
558 ..
/libcli
/auth
/ntlmssp_server.o
560 LIBSAMBA_OBJ
= $(LIBSMB_OBJ0
) \
563 LIBCLI_LDAP_MESSAGE_OBJ
= ..
/libcli
/ldap
/ldap_message.o
564 LIBCLI_LDAP_NDR_OBJ
= ..
/libcli
/ldap
/ldap_ndr.o
566 LIBTSOCKET_OBJ
= ..
/lib
/tsocket
/tsocket.o \
567 ..
/lib
/tsocket
/tsocket_helpers.o \
568 ..
/lib
/tsocket
/tsocket_bsd.o
570 CLDAP_OBJ
= libads
/cldap.o \
571 ..
/libcli
/cldap
/cldap.o lib
/ldb_compat.o \
572 ..
/lib
/util
/idtree.o \
573 $(LIBCLI_LDAP_MESSAGE_OBJ
) $(LIBCLI_LDAP_NDR_OBJ
) $(LIBTSOCKET_OBJ
)
575 TLDAP_OBJ
= lib
/tldap.o lib
/tldap_util.o lib
/util_tsock.o
577 SCHANNEL_OBJ
= ..
/libcli
/auth
/credentials.o \
578 ..
/libcli
/auth
/schannel_sign.o \
579 ..
/libcli
/auth
/schannel_state_tdb.o \
580 $(LIBNDR_SCHANNEL_OBJ
)
582 LIBSMB_OBJ
= libsmb
/clientgen.o libsmb
/cliconnect.o libsmb
/clifile.o \
583 libsmb
/clikrb5.o libsmb
/clispnego.o \
584 ..
/libcli
/auth
/spnego_parse.o \
586 libsmb
/clirap.o libsmb
/clierror.o libsmb
/climessage.o \
587 libsmb
/clireadwrite.o libsmb
/clilist.o libsmb
/cliprint.o \
588 libsmb
/clitrans.o libsmb
/clisecdesc.o libsmb
/clidgram.o \
589 libsmb
/clistr.o libsmb
/cliquota.o libsmb
/clifsinfo.o libsmb
/clidfs.o \
590 libsmb
/clioplock.o libsmb
/clirap2.o \
591 libsmb
/smb_seal.o libsmb
/async_smb.o \
598 LIBMSRPC_OBJ
= $(SCHANNEL_OBJ
) \
599 rpc_client
/cli_pipe.o \
600 librpc
/rpc
/dcerpc_krb5.o \
601 librpc
/rpc
/dcerpc_gssapi.o \
602 librpc
/rpc
/dcerpc_spnego.o \
603 librpc
/rpc
/rpc_common.o \
604 rpc_client
/rpc_transport_np.o \
605 rpc_client
/rpc_transport_sock.o \
606 ..
/librpc
/rpc
/binding.o \
607 ..
/librpc
/rpc
/dcerpc_util.o \
608 ..
/librpc
/rpc
/binding_handle.o \
609 librpc
/rpc
/dcerpc_helpers.o
611 LIBMSRPC_GEN_OBJ
= $(LIBCLI_EPMAPPER_OBJ
) \
615 # registry-related objects
617 UTIL_REG_OBJ
= ..
/libcli
/registry
/util_reg.o
619 REG_INIT_BASIC_OBJ
= registry
/reg_init_basic.o
620 REG_INIT_SMBCONF_OBJ
= registry
/reg_init_smbconf.o
621 REG_INIT_FULL_OBJ
= registry
/reg_init_full.o
623 REGFIO_OBJ
= registry
/regfio.o
625 REGOBJS_OBJ
= registry
/reg_objects.o
627 REG_BACKENDS_BASE_OBJ
= registry
/reg_backend_db.o
629 REG_BACKENDS_SMBCONF_OBJ
= registry
/reg_backend_smbconf.o
631 REG_BACKENDS_EXTRA_OBJ
= registry
/reg_backend_printing.o \
632 registry
/reg_backend_shares.o \
633 registry
/reg_backend_netlogon_params.o \
634 registry
/reg_backend_prod_options.o \
635 registry
/reg_backend_tcpip_params.o \
636 registry
/reg_backend_hkpt_params.o \
637 registry
/reg_backend_current_version.o \
638 registry
/reg_backend_perflib.o
640 REG_BASE_OBJ
= registry
/reg_api.o \
641 registry
/reg_dispatcher.o \
642 registry
/reg_cachehook.o \
645 registry
/reg_util_internal.o \
647 $(REG_BACKENDS_BASE_OBJ
) \
648 $(REG_INIT_BASIC_OBJ
)
650 REG_SMBCONF_OBJ
= $(REG_BASE_OBJ
) \
651 registry
/reg_util_token.o \
652 $(REG_BACKENDS_SMBCONF_OBJ
) \
653 $(REG_INIT_SMBCONF_OBJ
)
655 REG_FULL_OBJ
= $(REG_SMBCONF_OBJ
) \
656 $(REG_BACKENDS_EXTRA_OBJ
) \
657 $(REG_INIT_FULL_OBJ
) \
658 registry
/reg_eventlog.o \
659 registry
/reg_perfcount.o \
660 librpc
/gen_ndr
/ndr_perfcount.o \
661 registry
/reg_util_legacy.o
663 LIB_EVENTLOG_OBJ
= lib
/eventlog
/eventlog.o
665 RPC_LSA_OBJ
= rpc_server
/srv_lsa_nt.o librpc
/gen_ndr
/srv_lsa.o
667 RPC_NETLOG_OBJ
= rpc_server
/srv_netlog_nt.o \
668 librpc
/gen_ndr
/srv_netlogon.o
670 RPC_SAMR_OBJ
= rpc_server
/srv_samr_nt.o \
671 rpc_server
/srv_samr_util.o \
672 rpc_server
/srv_samr_chgpasswd.o \
673 librpc
/gen_ndr
/srv_samr.o
675 RPC_INITSHUTDOWN_OBJ
= librpc
/gen_ndr
/srv_initshutdown.o rpc_server
/srv_initshutdown_nt.o
677 RPC_REG_OBJ
= rpc_server
/srv_winreg_nt.o \
678 librpc
/gen_ndr
/srv_winreg.o
680 RPC_DSSETUP_OBJ
= rpc_server
/srv_dssetup_nt.o librpc
/gen_ndr
/srv_dssetup.o
682 RPC_SVC_OBJ
= rpc_server
/srv_srvsvc_nt.o \
683 librpc
/gen_ndr
/srv_srvsvc.o
685 RPC_WKS_OBJ
= librpc
/gen_ndr
/srv_wkssvc.o rpc_server
/srv_wkssvc_nt.o
687 RPC_SVCCTL_OBJ
= rpc_server
/srv_svcctl_nt.o \
688 librpc
/gen_ndr
/srv_svcctl.o \
689 services
/svc_spoolss.o services
/svc_rcinit.o services
/services_db.o \
690 services
/svc_netlogon.o services
/svc_winreg.o \
693 RPC_NTSVCS_OBJ
= rpc_server
/srv_ntsvcs_nt.o \
694 librpc
/gen_ndr
/srv_ntsvcs.o
696 RPC_DFS_OBJ
= librpc
/gen_ndr
/srv_dfs.o rpc_server
/srv_dfs_nt.o
698 RPC_SPOOLSS_OBJ
= rpc_server
/srv_spoolss_nt.o \
699 rpc_server
/srv_spoolss_util.o \
700 librpc
/gen_ndr
/srv_spoolss.o
702 RPC_EVENTLOG_OBJ
= rpc_server
/srv_eventlog_nt.o \
703 $(LIB_EVENTLOG_OBJ
) librpc
/gen_ndr
/srv_eventlog.o
705 NPA_TSTREAM_OBJ
= ..
/libcli
/named_pipe_auth
/npa_tstream.o
707 RPC_NCACN_NP_INTERNAL
= rpc_server
/srv_pipe_register.o rpc_server
/rpc_ncacn_np_internal.o \
708 rpc_server
/rpc_handles.o
710 RPC_PIPE_OBJ
= rpc_server
/srv_pipe.o rpc_server
/srv_pipe_hnd.o \
711 $(RPC_NCACN_NP_INTERNAL
)
713 RPC_ECHO_OBJ
= rpc_server
/srv_echo_nt.o librpc
/gen_ndr
/srv_echo.o
715 RPC_SERVER_OBJ
= @RPC_STATIC@
$(RPC_PIPE_OBJ
) $(NPA_TSTREAM_OBJ
) \
716 $(LIBCLI_SPOOLSS_OBJ
) \
717 $(LIBCLI_WINREG_OBJ
) \
718 $(LIBCLI_SRVSVC_OBJ
) \
721 $(LIBCLI_NETLOGON_OBJ
) \
722 $(RPC_CLIENT_SCHANNEL_OBJ
) \
723 rpc_client
/init_netlogon.o \
724 rpc_client
/init_samr.o
726 RPC_CLIENT_SCHANNEL_OBJ
= rpc_client
/cli_pipe_schannel.o
728 LOCKING_OBJ
= locking
/locking.o locking
/brlock.o locking
/posix.o
730 PRIVILEGES_BASIC_OBJ
= lib
/privileges_basic.o
732 PRIVILEGES_OBJ
= lib
/privileges.o
734 PASSDB_GET_SET_OBJ
= passdb
/pdb_get_set.o
736 PASSDB_OBJ
= $(PASSDB_GET_SET_OBJ
) passdb
/passdb.o passdb
/pdb_interface.o \
737 passdb
/util_wellknown.o passdb
/util_builtin.o passdb
/pdb_compat.o \
738 passdb
/util_unixsids.o passdb
/lookup_sid.o \
739 passdb
/login_cache.o @PDB_STATIC@ \
740 passdb
/account_pol.o
$(PRIVILEGES_OBJ
) \
741 lib
/util_nscd.o lib
/winbind_util.o
$(SERVER_MUTEX_OBJ
)
743 DEVEL_HELP_WEIRD_OBJ
= modules
/weird.o
744 CP850_OBJ
= modules
/CP850.o
745 CP437_OBJ
= modules
/CP437.o
746 CHARSET_MACOSXFS_OBJ
= modules
/charset_macosxfs.o
748 GROUPDB_OBJ
= groupdb
/mapping.o groupdb
/mapping_tdb.o
750 PROFILE_OBJ
= profile
/profile.o
751 PROFILES_OBJ
= utils
/profiles.o \
754 $(LIB_OBJ
) $(LIB_DUMMY_OBJ
) \
757 OPLOCK_OBJ
= smbd
/oplock.o smbd
/oplock_irix.o smbd
/oplock_linux.o \
760 NOTIFY_OBJ
= smbd
/notify.o smbd
/notify_inotify.o smbd
/notify_internal.o
762 FNAME_UTIL_OBJ
= smbd
/filename_util.o
764 VFS_DEFAULT_OBJ
= modules
/vfs_default.o
765 VFS_AUDIT_OBJ
= modules
/vfs_audit.o
766 VFS_EXTD_AUDIT_OBJ
= modules
/vfs_extd_audit.o
767 VFS_FULL_AUDIT_OBJ
= modules
/vfs_full_audit.o
768 VFS_FAKE_PERMS_OBJ
= modules
/vfs_fake_perms.o
769 VFS_RECYCLE_OBJ
= modules
/vfs_recycle.o
770 VFS_NETATALK_OBJ
= modules
/vfs_netatalk.o
771 VFS_DEFAULT_QUOTA_OBJ
= modules
/vfs_default_quota.o
772 VFS_READONLY_OBJ
= modules
/vfs_readonly.o modules
/getdate.o
773 VFS_CAP_OBJ
= modules
/vfs_cap.o
774 VFS_EXPAND_MSDFS_OBJ
= modules
/vfs_expand_msdfs.o
775 VFS_SHADOW_COPY_OBJ
= modules
/vfs_shadow_copy.o
776 VFS_SHADOW_COPY2_OBJ
= modules
/vfs_shadow_copy2.o
777 VFS_AFSACL_OBJ
= modules
/vfs_afsacl.o
778 VFS_XATTR_TDB_OBJ
= modules
/vfs_xattr_tdb.o
779 VFS_POSIXACL_OBJ
= modules
/vfs_posixacl.o
780 VFS_AIXACL_OBJ
= modules
/vfs_aixacl.o modules
/vfs_aixacl_util.o
781 VFS_AIXACL2_OBJ
= modules
/vfs_aixacl2.o modules
/vfs_aixacl_util.o modules
/nfs4_acls.o
782 VFS_SOLARISACL_OBJ
= modules
/vfs_solarisacl.o
783 VFS_ZFSACL_OBJ
= modules
/vfs_zfsacl.o modules
/nfs4_acls.o
784 VFS_HPUXACL_OBJ
= modules
/vfs_hpuxacl.o
785 VFS_IRIXACL_OBJ
= modules
/vfs_irixacl.o
786 VFS_TRU64ACL_OBJ
= modules
/vfs_tru64acl.o
787 VFS_CATIA_OBJ
= modules
/vfs_catia.o
788 VFS_STREAMS_XATTR_OBJ
= modules
/vfs_streams_xattr.o
789 VFS_STREAMS_DEPOT_OBJ
= modules
/vfs_streams_depot.o
790 VFS_CACHEPRIME_OBJ
= modules
/vfs_cacheprime.o
791 VFS_PREALLOC_OBJ
= modules
/vfs_prealloc.o
792 VFS_COMMIT_OBJ
= modules
/vfs_commit.o
793 VFS_GPFS_OBJ
= modules
/vfs_gpfs.o modules
/gpfs.o modules
/nfs4_acls.o
794 VFS_NOTIFY_FAM_OBJ
= modules
/vfs_notify_fam.o
795 VFS_READAHEAD_OBJ
= modules
/vfs_readahead.o
796 VFS_TSMSM_OBJ
= modules
/vfs_tsmsm.o
797 VFS_FILEID_OBJ
= modules
/vfs_fileid.o
798 VFS_AIO_FORK_OBJ
= modules
/vfs_aio_fork.o
799 VFS_PREOPEN_OBJ
= modules
/vfs_preopen.o
800 VFS_SYNCOPS_OBJ
= modules
/vfs_syncops.o
801 VFS_ACL_XATTR_OBJ
= modules
/vfs_acl_xattr.o
802 VFS_ACL_TDB_OBJ
= modules
/vfs_acl_tdb.o
803 VFS_SMB_TRAFFIC_ANALYZER_OBJ
= modules
/vfs_smb_traffic_analyzer.o
804 VFS_ONEFS_OBJ
= modules
/vfs_onefs.o modules
/onefs_acl.o modules
/onefs_system.o \
805 modules
/onefs_open.o modules
/onefs_streams.o modules
/onefs_dir.o \
806 modules
/onefs_cbrl.o modules
/onefs_notify.o modules
/onefs_config.o
807 VFS_ONEFS_SHADOW_COPY_OBJ
= modules
/vfs_onefs_shadow_copy.o modules
/onefs_shadow_copy.o
808 PERFCOUNT_ONEFS_OBJ
= modules
/perfcount_onefs.o
809 PERFCOUNT_TEST_OBJ
= modules
/perfcount_test.o
810 VFS_DIRSORT_OBJ
= modules
/vfs_dirsort.o
811 VFS_SCANNEDONLY_OBJ
= modules
/vfs_scannedonly.o
812 VFS_CROSSRENAME_OBJ
= modules
/vfs_crossrename.o
813 VFS_LINUX_XFS_SGID_OBJ
= modules
/vfs_linux_xfs_sgid.o
815 PLAINTEXT_AUTH_OBJ
= auth
/pampass.o auth
/pass_check.o
817 SLCACHE_OBJ
= libsmb
/samlogon_cache.o
819 DCUTIL_OBJ
= libsmb
/namequery_dc.o libsmb
/trustdom_cache.o libsmb
/trusts_util.o libsmb
/dsgetdcname.o
821 AUTH_BUILTIN_OBJ
= auth
/auth_builtin.o
822 AUTH_DOMAIN_OBJ
= auth
/auth_domain.o
823 AUTH_SAM_OBJ
= auth
/auth_sam.o auth
/check_samsec.o
824 AUTH_SERVER_OBJ
= auth
/auth_server.o
825 AUTH_UNIX_OBJ
= auth
/auth_unix.o
826 AUTH_WINBIND_OBJ
= auth
/auth_winbind.o
827 AUTH_WBC_OBJ
= auth
/auth_wbc.o
828 AUTH_SCRIPT_OBJ
= auth
/auth_script.o
829 AUTH_NETLOGOND_OBJ
= auth
/auth_netlogond.o
831 AUTH_OBJ
= auth
/auth.o @AUTH_STATIC@ auth
/auth_util.o auth
/token_util.o \
833 auth
/server_info_sam.o \
837 auth
/auth_compat.o auth
/auth_ntlmssp.o \
838 $(PLAINTEXT_AUTH_OBJ
) $(SLCACHE_OBJ
) $(DCUTIL_OBJ
)
840 MANGLE_OBJ
= smbd
/mangle.o smbd
/mangle_hash.o smbd
/mangle_hash2.o
842 SMBD_OBJ_MAIN
= smbd
/server.o smbd
/server_exit.o
844 BUILDOPT_OBJ
= smbd
/build_options.o
846 SMBD_OBJ_SRV
= smbd
/server_reload.o \
847 smbd
/files.o smbd
/connection.o \
848 smbd
/utmp.o smbd
/session.o \
849 smbd
/dfree.o smbd
/dir.o smbd
/password.o smbd
/conn.o \
850 smbd
/share_access.o smbd
/fileio.o \
851 smbd
/ipc.o smbd
/lanman.o smbd
/negprot.o \
852 smbd
/message.o smbd
/nttrans.o smbd
/pipes.o \
853 smbd
/reply.o smbd
/sesssetup.o smbd
/trans2.o smbd
/uid.o \
854 smbd
/dosmode.o smbd
/filename.o smbd
/open.o smbd
/close.o \
855 smbd
/blocking.o smbd
/sec_ctx.o smbd
/srvstr.o \
856 smbd
/vfs.o smbd
/perfcount.o smbd
/statcache.o smbd
/seal.o \
857 smbd
/posix_acls.o lib
/sysacls.o \
858 smbd
/process.o smbd
/service.o smbd
/error.o \
859 printing
/printspoolss.o \
860 lib
/sysquotas.o lib
/sysquotas_linux.o \
861 lib
/sysquotas_xfs.o lib
/sysquotas_4A.o \
862 lib
/sysquotas_nfs.o \
864 smbd
/quotas.o smbd
/ntquotas.o
$(AFS_OBJ
) smbd
/msdfs.o \
865 $(AFS_SETTOKEN_OBJ
) smbd
/aio.o smbd
/statvfs.o \
866 smbd
/dmapi.o smbd
/signing.o \
868 smbd
/dnsregister.o smbd
/globals.o \
870 smbd
/smb2_signing.o \
872 smbd
/smb2_negprot.o \
873 smbd
/smb2_sesssetup.o \
882 smbd
/smb2_keepalive.o \
885 smbd
/smb2_getinfo.o \
886 smbd
/smb2_setinfo.o \
888 ..
/libcli
/smb
/smb2_create_blob.o \
889 $(MANGLE_OBJ
) @VFS_STATIC@
891 SMBD_OBJ_BASE
= $(PARAM_WITHOUT_REG_OBJ
) $(SMBD_OBJ_SRV
) $(LIBSMB_OBJ
) \
893 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(PRINTING_OBJ
) $(PROFILE_OBJ
) \
894 $(LIB_OBJ
) $(PRINTBACKEND_OBJ
) $(OPLOCK_OBJ
) \
895 $(NOTIFY_OBJ
) $(FNAME_UTIL_OBJ
) $(GROUPDB_OBJ
) $(AUTH_OBJ
) \
896 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(AVAHI_OBJ
) \
897 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(LIBADS_SERVER_OBJ
) $(LIBADS_PRINTER_OBJ
) \
898 $(REG_FULL_OBJ
) $(POPT_LIB_OBJ
) $(BUILDOPT_OBJ
) \
899 $(SMBLDAP_OBJ
) $(LIBNET_OBJ
) \
901 $(PRIVILEGES_BASIC_OBJ
)
903 PRINTING_OBJ
= printing
/pcap.o printing
/print_svid.o printing
/print_aix.o \
904 printing
/print_cups.o printing
/print_generic.o \
905 printing
/lpq_parse.o printing
/load.o \
906 printing
/print_iprint.o printing
/print_standard.o
908 PRINTBASE_OBJ
= printing
/notify.o printing
/printing_db.o
909 PRINTBACKEND_OBJ
= printing
/printing.o \
910 printing
/nt_printing.o \
911 printing
/nt_printing_tdb.o \
912 printing
/nt_printing_migrate.o \
913 printing
/nt_printing_ads.o \
914 librpc
/gen_ndr
/ndr_ntprinting.o \
915 ..
/librpc
/ndr
/ndr_ntprinting.o \
918 SMBD_OBJ
= $(SMBD_OBJ_BASE
) $(SMBD_OBJ_MAIN
)
920 NMBD_OBJ1
= nmbd
/asyncdns.o nmbd
/nmbd.o nmbd
/nmbd_become_dmb.o \
921 nmbd
/nmbd_become_lmb.o nmbd
/nmbd_browserdb.o \
922 nmbd
/nmbd_browsesync.o nmbd
/nmbd_elections.o \
923 nmbd
/nmbd_incomingdgrams.o nmbd
/nmbd_incomingrequests.o \
924 nmbd
/nmbd_lmhosts.o nmbd
/nmbd_logonnames.o nmbd
/nmbd_mynames.o \
925 nmbd
/nmbd_namelistdb.o nmbd
/nmbd_namequery.o \
926 nmbd
/nmbd_nameregister.o nmbd
/nmbd_namerelease.o \
927 nmbd
/nmbd_nodestatus.o nmbd
/nmbd_packets.o \
928 nmbd
/nmbd_processlogon.o nmbd
/nmbd_responserecordsdb.o \
929 nmbd
/nmbd_sendannounce.o nmbd
/nmbd_serverlistdb.o \
930 nmbd
/nmbd_subnetdb.o nmbd
/nmbd_winsproxy.o nmbd
/nmbd_winsserver.o \
931 nmbd
/nmbd_workgroupdb.o nmbd
/nmbd_synclists.o
933 NMBD_OBJ
= $(NMBD_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
934 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
937 SWAT_OBJ1
= web
/cgi.o web
/diagnose.o web
/startstop.o web
/statuspage.o \
938 web
/swat.o web
/neg_lang.o
940 SWAT_OBJ
= $(SWAT_OBJ1
) $(PARAM_OBJ
) $(PRINTING_OBJ
) $(PRINTBASE_OBJ
) $(LIBSMB_OBJ
) \
941 $(LOCKING_OBJ
) $(PASSDB_OBJ
) $(KRBCLIENT_OBJ
) \
942 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) $(PLAINTEXT_AUTH_OBJ
) \
943 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
944 $(PASSCHANGE_OBJ
) $(FNAME_UTIL_OBJ
) \
946 rpc_client
/init_lsa.o
948 STATUS_OBJ
= utils
/status.o utils
/status_profile.o \
949 $(LOCKING_OBJ
) $(PARAM_OBJ
) \
950 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
951 $(LIBSMB_ERR_OBJ
) $(FNAME_UTIL_OBJ
)
953 SMBCONTROL_OBJ
= utils
/smbcontrol.o
$(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
954 $(LIBSMB_ERR_OBJ
) $(POPT_LIB_OBJ
) $(PRINTBASE_OBJ
)
956 SMBTREE_OBJ
= utils
/smbtree.o
$(PARAM_OBJ
) \
957 $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_OBJ
) \
958 $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
959 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) \
960 $(LIBMSRPC_GEN_OBJ
) \
964 TESTPARM_OBJ
= utils
/testparm.o \
965 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) \
968 SMBTA_UTIL_OBJ
= utils
/smbta-util.o
$(PARAM_OBJ
) $(POPT_LIB_OBJ
) \
969 $(LOCKING_OBJ
) $(PROFILE_OBJ
) $(LIB_NONSMBD_OBJ
) \
970 $(LIBSMB_ERR_OBJ
) $(FNAME_UTIL_OBJ
)
972 TEST_LP_LOAD_OBJ
= param
/test_lp_load.o \
973 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
974 $(POPT_LIB_OBJ
) $(LIBSAMBA_OBJ
)
976 PASSWD_UTIL_OBJ
= utils
/passwd_util.o
978 SMBPASSWD_OBJ
= utils
/smbpasswd.o
$(PASSWD_UTIL_OBJ
) $(PASSCHANGE_OBJ
) \
979 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(PASSDB_OBJ
) \
980 $(GROUPDB_OBJ
) $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
981 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) \
982 $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
984 rpc_client
/init_lsa.o
986 PDBEDIT_OBJ
= utils
/pdbedit.o
$(PASSWD_UTIL_OBJ
) $(PARAM_OBJ
) $(PASSDB_OBJ
) \
987 $(LIBSAMBA_OBJ
) $(LIBTSOCKET_OBJ
) \
988 $(LIB_NONSMBD_OBJ
) $(GROUPDB_OBJ
) \
989 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) ..
/lib
/util
/asn1.o
991 SMBGET_OBJ
= utils
/smbget.o
$(POPT_LIB_OBJ
) $(LIBSMBCLIENT_OBJ1
)
993 DISPLAY_SEC_OBJ
= ..
/libcli
/security
/display_sec.o
995 RPCCLIENT_OBJ1
= rpcclient
/rpcclient.o rpcclient
/cmd_lsarpc.o \
996 rpcclient
/cmd_samr.o rpcclient
/cmd_spoolss.o \
997 rpcclient
/cmd_netlogon.o rpcclient
/cmd_srvsvc.o \
998 rpcclient
/cmd_dfs.o rpcclient
/cmd_epmapper.o \
999 rpcclient
/cmd_dssetup.o rpcclient
/cmd_echo.o \
1000 rpcclient
/cmd_shutdown.o rpcclient
/cmd_test.o \
1001 rpcclient
/cmd_wkssvc.o rpcclient
/cmd_ntsvcs.o \
1002 rpcclient
/cmd_drsuapi.o rpcclient
/cmd_eventlog.o \
1005 RPCCLIENT_OBJ
= $(RPCCLIENT_OBJ1
) \
1006 $(PARAM_OBJ
) $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
1007 $(PASSDB_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(LIBMSRPC_OBJ
) \
1008 $(READLINE_OBJ
) $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) \
1009 $(LIBADS_OBJ
) $(POPT_LIB_OBJ
) \
1010 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) \
1011 $(LIBCLI_SPOOLSS_OBJ
) \
1012 $(LIBCLI_EVENTLOG_OBJ
) \
1013 $(LIBCLI_NTSVCS_OBJ
) \
1014 $(LIBCLI_DRSUAPI_OBJ
) \
1016 $(LIBCLI_ECHO_OBJ
) \
1017 $(LIBCLI_DSSETUP_OBJ
) \
1018 $(LIBCLI_WKSSVC_OBJ
) \
1019 $(LIBCLI_SRVSVC_OBJ
) \
1021 $(LIBCLI_SAMR_OBJ
) \
1022 $(LIBCLI_NETLOGON_OBJ
) \
1023 $(RPC_CLIENT_SCHANNEL_OBJ
) \
1024 rpc_client
/init_netlogon.o \
1025 rpc_client
/init_samr.o
1027 PAM_WINBIND_OBJ
= ..
/nsswitch
/pam_winbind.o
$(WBCOMMON_OBJ
) \
1028 $(LIBREPLACE_OBJ
) @BUILD_INIPARSER@
1030 LIBSMBCLIENT_THREAD_OBJ
= \
1031 libsmb
/libsmb_thread_impl.o \
1032 libsmb
/libsmb_thread_posix.o
1034 LIBSMBCLIENT_OBJ0
= \
1035 libsmb
/libsmb_cache.o \
1036 libsmb
/libsmb_compat.o \
1037 libsmb
/libsmb_context.o \
1038 libsmb
/libsmb_dir.o \
1039 libsmb
/libsmb_file.o \
1040 libsmb
/libsmb_misc.o \
1041 libsmb
/libsmb_path.o \
1042 libsmb
/libsmb_printjob.o \
1043 libsmb
/libsmb_server.o \
1044 libsmb
/libsmb_stat.o \
1045 libsmb
/libsmb_xattr.o \
1046 libsmb
/libsmb_setget.o
1048 LIBSMBCLIENT_OBJ1
= $(LIBSMBCLIENT_OBJ0
) \
1049 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1050 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1051 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1052 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) \
1053 $(LIBCLI_SRVSVC_OBJ
) \
1056 LIBSMBCLIENT_OBJ
= $(LIBSMBCLIENT_OBJ1
)
1058 # This shared library is intended for linking with unit test programs
1059 # to test Samba internals. It's called libbigballofmud.so to
1060 # discourage casual usage.
1062 LIBBIGBALLOFMUD_MAJOR
= 0
1064 LIBBIGBALLOFMUD_OBJ
= $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1065 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(PASSDB_OBJ
) \
1066 $(GROUPDB_OBJ
) $(KRBCLIENT_OBJ
) $(SMBLDAP_OBJ
)
1068 CLIENT_OBJ1
= client
/client.o client
/clitar.o \
1069 client
/dnsbrowse.o \
1072 CLIENT_OBJ
= $(CLIENT_OBJ1
) $(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1073 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1074 $(READLINE_OBJ
) $(POPT_LIB_OBJ
) \
1075 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) \
1076 $(DISPLAY_SEC_OBJ
) \
1077 $(LIBCLI_SRVSVC_OBJ
)
1079 LIBSMBCONF_OBJ
= ..
/lib
/smbconf
/smbconf.o \
1080 ..
/lib
/smbconf
/smbconf_util.o \
1081 ..
/lib
/smbconf
/smbconf_txt.o \
1082 lib
/smbconf
/smbconf_reg.o \
1083 lib
/smbconf
/smbconf_init.o
1085 SMBCONFTORT_OBJ0
= lib
/smbconf
/testsuite.o
1087 SMBCONFTORT_OBJ
= $(SMBCONFTORT_OBJ0
) \
1088 $(LIB_NONSMBD_OBJ
) \
1093 LIBNET_OBJ
= libnet
/libnet_join.o \
1094 libnet
/libnet_keytab.o \
1095 librpc
/gen_ndr
/ndr_libnet_join.o
1097 LIBNET_DSSYNC_OBJ
= libnet
/libnet_dssync.o \
1098 libnet
/libnet_dssync_keytab.o \
1099 ..
/libcli
/drsuapi
/repl_decrypt.o
1101 LIBNET_SAMSYNC_OBJ
= libnet
/libnet_samsync.o \
1102 libnet
/libnet_samsync_ldif.o \
1103 libnet
/libnet_samsync_passdb.o \
1104 libnet
/libnet_samsync_display.o \
1105 libnet
/libnet_samsync_keytab.o \
1106 ..
/libcli
/samsync
/decrypt.o
1108 NET_OBJ1
= utils
/net.o utils
/net_ads.o utils
/net_help.o \
1109 utils
/net_rap.o utils
/net_rpc.o utils
/net_rpc_samsync.o \
1110 utils
/net_rpc_join.o utils
/net_time.o utils
/net_lookup.o \
1111 utils
/net_cache.o utils
/net_groupmap.o utils
/net_idmap.o \
1112 utils
/net_status.o utils
/net_rpc_printer.o utils
/net_rpc_rights.o \
1113 utils
/net_rpc_service.o utils
/net_rpc_registry.o utils
/net_usershare.o \
1114 utils
/netlookup.o utils
/net_sam.o utils
/net_rpc_shell.o \
1115 utils
/net_util.o utils
/net_rpc_sh_acct.o utils
/net_rpc_audit.o \
1116 $(PASSWD_UTIL_OBJ
) utils
/net_dns.o utils
/net_ads_gpo.o \
1117 utils
/net_conf.o utils
/net_join.o utils
/net_user.o \
1118 utils
/net_group.o utils
/net_file.o utils
/net_registry.o \
1119 auth
/token_util.o utils
/net_dom.o utils
/net_share.o \
1120 utils
/net_g_lock.o \
1121 utils
/net_serverid.o \
1122 utils
/net_eventlog.o \
1123 utils
/net_printing.o \
1124 $(LIBNDR_NTPRINTING_OBJ
) \
1125 $(LIBNDR_PREG_OBJ
) \
1126 $(LIBCLI_SPOOLSS_OBJ
) \
1127 $(LIBCLI_WINREG_OBJ
) \
1128 $(LIBCLI_DRSUAPI_OBJ
) \
1129 $(LIBCLI_INITSHUTDOWN_OBJ
) \
1130 $(LIBCLI_DSSETUP_OBJ
) \
1131 $(LIBCLI_SVCCTL_OBJ
) \
1132 $(LIBCLI_WKSSVC_OBJ
) \
1133 $(LIBCLI_SRVSVC_OBJ
) \
1135 $(LIBCLI_SAMR_OBJ
) \
1136 $(LIBCLI_NETLOGON_OBJ
) \
1137 $(RPC_CLIENT_SCHANNEL_OBJ
) \
1138 rpc_client
/init_netlogon.o \
1139 rpc_client
/init_samr.o
1142 # these are not processed by make proto
1143 NET_OBJ2
= utils
/net_registry_util.o utils
/net_help_common.o
1145 NET_OBJ
= $(NET_OBJ1
) \
1146 $(NET_OBJ2
) @FAKE_KASERVER_OBJ@\
1147 $(PARAM_WITHOUT_REG_OBJ
) $(LIBSMB_OBJ
) \
1148 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1149 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBADDNS_OBJ0
) \
1150 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1151 $(LIBADS_OBJ
) $(LIBADS_SERVER_OBJ
) $(LIBADS_PRINTER_OBJ
) $(POPT_LIB_OBJ
) \
1152 $(SMBLDAP_OBJ
) $(DCUTIL_OBJ
) \
1153 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) $(READLINE_OBJ
) \
1154 $(LIBGPO_OBJ
) @BUILD_INIPARSER@
$(DISPLAY_SEC_OBJ
) \
1155 $(REG_SMBCONF_OBJ
) \
1156 $(LIBNET_OBJ
) $(LIBNET_DSSYNC_OBJ
) $(LIBNET_SAMSYNC_OBJ
) \
1158 $(PRIVILEGES_BASIC_OBJ
) \
1159 $(LIB_EVENTLOG_OBJ
) localedir.o
1161 CUPS_OBJ
= client
/smbspool.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1162 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
1165 NMBLOOKUP_OBJ
= utils
/nmblookup.o
$(PARAM_OBJ
) $(LIBNMB_OBJ
) \
1166 $(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSMB_ERR_OBJ
)
1168 SMBTORTURE_OBJ1
= torture
/torture.o torture
/nbio.o torture
/scanner.o torture
/utable.o \
1169 torture
/denytest.o torture
/mangle_test.o \
1171 torture
/test_posix_append.o
1173 SMBTORTURE_OBJ
= $(SMBTORTURE_OBJ1
) $(PARAM_OBJ
) $(TLDAP_OBJ
) \
1174 $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
1175 @LIBWBCLIENT_STATIC@ \
1176 ..
/nsswitch
/libwbclient
/wbc_async.o \
1177 ..
/nsswitch
/libwbclient
/wb_reqtrans.o \
1180 MASKTEST_OBJ
= torture
/masktest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1181 $(LIB_NONSMBD_OBJ
) \
1184 MSGTEST_OBJ
= torture
/msgtest.o
$(PARAM_OBJ
) $(LIBSMB_ERR_OBJ
) \
1185 $(LIB_NONSMBD_OBJ
) \
1188 LOCKTEST_OBJ
= torture
/locktest.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(KRBCLIENT_OBJ
) \
1189 $(LIBSMB_OBJ
) $(LIB_NONSMBD_OBJ
) \
1190 $(LIBNDR_GEN_OBJ0
) $(FNAME_UTIL_OBJ
)
1192 NSSTEST_OBJ
= torture
/nsstest.o
$(LIBSAMBAUTIL_OBJ
)
1194 PDBTEST_OBJ
= torture
/pdbtest.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1195 $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1196 $(SMBLDAP_OBJ
) $(POPT_LIB_OBJ
) \
1199 VFSTEST_OBJ
= torture
/cmd_vfs.o torture
/vfstest.o
$(SMBD_OBJ_BASE
) $(READLINE_OBJ
)
1201 SMBICONV_OBJ
= $(PARAM_OBJ
) torture
/smbiconv.o
$(LIB_NONSMBD_OBJ
) $(POPT_LIB_OBJ
) $(LIBSMB_ERR_OBJ
)
1203 LOG2PCAP_OBJ
= utils
/log2pcaphex.o
1205 LOCKTEST2_OBJ
= torture
/locktest2.o
$(PARAM_OBJ
) $(LOCKING_OBJ
) $(LIBSMB_OBJ
) \
1206 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
1207 $(LIBNDR_GEN_OBJ0
) $(FNAME_UTIL_OBJ
)
1209 SMBCACLS_OBJ
= utils
/smbcacls.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1210 $(KRBCLIENT_OBJ
) $(LIB_NONSMBD_OBJ
) \
1211 $(PASSDB_OBJ
) $(GROUPDB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1212 $(POPT_LIB_OBJ
) $(SMBLDAP_OBJ
) \
1215 SMBCQUOTAS_OBJ
= utils
/smbcquotas.o
$(LIBSMB_OBJ
) $(KRBCLIENT_OBJ
) \
1217 $(LIB_NONSMBD_OBJ
) \
1218 $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) $(POPT_LIB_OBJ
) \
1219 $(PASSDB_OBJ
) $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) \
1222 EVTLOGADM_OBJ0
= utils
/eventlogadm.o
1224 EVTLOGADM_OBJ
= $(EVTLOGADM_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1226 registry
/reg_eventlog.o
$(LIB_EVENTLOG_OBJ
) \
1227 librpc
/gen_ndr
/ndr_eventlog.o \
1228 librpc
/gen_ndr
/ndr_lsa.o
1230 SHARESEC_OBJ0
= utils
/sharesec.o
1231 SHARESEC_OBJ
= $(SHARESEC_OBJ0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1235 TALLOCTORT_OBJ
= @tallocdir@
/testsuite.o @tallocdir@
/testsuite_main.o \
1236 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(LIBSMB_ERR_OBJ
)
1238 REPLACETORT_OBJ
= @libreplacedir@
/test/testsuite.o \
1239 @libreplacedir@
/test/getifaddrs.o \
1240 @libreplacedir@
/test/os2_delete.o \
1241 @libreplacedir@
/test/strptime.o \
1242 @libreplacedir@
/test/main.o \
1243 $(LIBREPLACE_OBJ
) $(SOCKET_WRAPPER_OBJ
)
1245 DEBUG2HTML_OBJ
= utils
/debug2html.o utils
/debugparse.o
1247 SMBFILTER_OBJ
= utils
/smbfilter.o
$(PARAM_OBJ
) $(LIBSMB_OBJ
) \
1248 $(LIB_NONSMBD_OBJ
) $(KRBCLIENT_OBJ
) \
1251 WINBIND_WINS_NSS_OBJ
= ..
/nsswitch
/wins.o
$(PARAM_OBJ
) \
1252 $(LIB_NONSMBD_OBJ
) $(LIBSMB_ERR_OBJ
) $(LIBNMB_OBJ
)
1254 PAM_SMBPASS_OBJ_0
= pam_smbpass
/pam_smb_auth.o pam_smbpass
/pam_smb_passwd.o \
1255 pam_smbpass
/pam_smb_acct.o pam_smbpass
/support.o ..
/lib
/util
/asn1.o
1256 PAM_SMBPASS_OBJ
= $(PAM_SMBPASS_OBJ_0
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1257 $(SMBLDAP_OBJ
) $(LIBSAMBA_OBJ
) \
1260 IDMAP_RW_OBJ
= winbindd
/idmap_rw.o
1262 IDMAP_OBJ
= winbindd
/idmap.o winbindd
/idmap_util.o
$(IDMAP_RW_OBJ
) @IDMAP_STATIC@
1264 NSS_INFO_OBJ
= winbindd
/nss_info.o @NSS_INFO_STATIC@
1267 winbindd
/idmap_hash
/idmap_hash.o \
1268 winbindd
/idmap_hash
/mapfile.o
1271 winbindd
/idmap_adex
/idmap_adex.o \
1272 winbindd
/idmap_adex
/cell_util.o \
1273 winbindd
/idmap_adex
/likewise_cell.o \
1274 winbindd
/idmap_adex
/provider_unified.o \
1275 winbindd
/idmap_adex
/gc_util.o \
1276 winbindd
/idmap_adex
/domain_util.o
1279 winbindd
/winbindd.o \
1280 winbindd
/winbindd_group.o \
1281 winbindd
/winbindd_util.o \
1282 winbindd
/winbindd_cache.o \
1283 winbindd
/winbindd_pam.o \
1284 winbindd
/winbindd_misc.o \
1285 winbindd
/winbindd_cm.o \
1286 winbindd
/winbindd_wins.o \
1287 winbindd
/winbindd_msrpc.o \
1288 winbindd
/winbindd_rpc.o \
1289 winbindd
/winbindd_reconnect.o \
1290 winbindd
/winbindd_ads.o \
1291 winbindd
/winbindd_samr.o \
1292 winbindd
/winbindd_dual.o \
1293 winbindd
/winbindd_dual_ndr.o \
1294 winbindd
/winbindd_dual_srv.o \
1295 librpc
/gen_ndr
/cli_wbint.o \
1296 librpc
/gen_ndr
/ndr_wbint_c.o \
1297 librpc
/gen_ndr
/srv_wbint.o \
1298 librpc
/gen_ndr
/ndr_wbint.o \
1299 winbindd
/winbindd_async.o \
1300 winbindd
/winbindd_creds.o \
1301 winbindd
/winbindd_cred_cache.o \
1302 winbindd
/winbindd_ccache_access.o \
1303 winbindd
/winbindd_domain.o \
1304 winbindd
/winbindd_idmap.o \
1305 winbindd
/winbindd_locator.o \
1306 winbindd
/winbindd_ndr.o \
1307 winbindd
/wb_ping.o \
1308 winbindd
/wb_lookupsid.o \
1309 winbindd
/wb_lookupname.o \
1310 winbindd
/wb_sid2uid.o \
1311 winbindd
/wb_sid2gid.o \
1312 winbindd
/wb_uid2sid.o \
1313 winbindd
/wb_gid2sid.o \
1314 winbindd
/wb_queryuser.o \
1315 winbindd
/wb_lookupuseraliases.o \
1316 winbindd
/wb_lookupusergroups.o \
1317 winbindd
/wb_getpwsid.o \
1318 winbindd
/wb_gettoken.o \
1319 winbindd
/wb_seqnum.o \
1320 winbindd
/wb_seqnums.o \
1321 winbindd
/wb_group_members.o \
1322 winbindd
/wb_getgrsid.o \
1323 winbindd
/wb_query_user_list.o \
1324 winbindd
/wb_fill_pwent.o \
1325 winbindd
/wb_next_pwent.o \
1326 winbindd
/wb_next_grent.o \
1327 winbindd
/wb_dsgetdcname.o \
1328 winbindd
/winbindd_lookupsid.o \
1329 winbindd
/winbindd_lookupname.o \
1330 winbindd
/winbindd_sid_to_uid.o \
1331 winbindd
/winbindd_sid_to_gid.o \
1332 winbindd
/winbindd_uid_to_sid.o \
1333 winbindd
/winbindd_gid_to_sid.o \
1334 winbindd
/winbindd_allocate_uid.o \
1335 winbindd
/winbindd_allocate_gid.o \
1336 winbindd
/winbindd_getpwsid.o \
1337 winbindd
/winbindd_getpwnam.o \
1338 winbindd
/winbindd_getpwuid.o \
1339 winbindd
/winbindd_getsidaliases.o \
1340 winbindd
/winbindd_getuserdomgroups.o \
1341 winbindd
/winbindd_getgroups.o \
1342 winbindd
/winbindd_show_sequence.o \
1343 winbindd
/winbindd_getgrgid.o \
1344 winbindd
/winbindd_getgrnam.o \
1345 winbindd
/winbindd_getusersids.o \
1346 winbindd
/winbindd_lookuprids.o \
1347 winbindd
/winbindd_setpwent.o \
1348 winbindd
/winbindd_getpwent.o \
1349 winbindd
/winbindd_endpwent.o \
1350 winbindd
/winbindd_setgrent.o \
1351 winbindd
/winbindd_getgrent.o \
1352 winbindd
/winbindd_endgrent.o \
1353 winbindd
/winbindd_dsgetdcname.o \
1354 winbindd
/winbindd_getdcname.o \
1355 winbindd
/winbindd_list_users.o \
1356 winbindd
/winbindd_list_groups.o \
1357 winbindd
/winbindd_check_machine_acct.o \
1358 winbindd
/winbindd_change_machine_acct.o \
1359 winbindd
/winbindd_ping_dc.o \
1360 winbindd
/winbindd_pam_auth.o \
1361 winbindd
/winbindd_pam_auth_crap.o \
1362 winbindd
/winbindd_pam_chauthtok.o \
1363 winbindd
/winbindd_pam_chng_pswd_auth_crap.o \
1364 winbindd
/winbindd_pam_logoff.o \
1368 auth
/check_samsec.o \
1369 auth
/server_info.o \
1370 auth
/server_info_sam.o \
1373 ..
/nsswitch
/libwbclient
/wb_reqtrans.o
1376 $(WINBINDD_OBJ1
) $(PASSDB_OBJ
) $(GROUPDB_OBJ
) \
1377 $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1378 $(LIBSMB_OBJ
) $(LIBMSRPC_OBJ
) $(LIBMSRPC_GEN_OBJ
) \
1379 $(PROFILE_OBJ
) $(SLCACHE_OBJ
) $(SMBLDAP_OBJ
) \
1380 $(LIBADS_OBJ
) $(KRBCLIENT_OBJ
) $(POPT_LIB_OBJ
) \
1381 $(DCUTIL_OBJ
) $(IDMAP_OBJ
) $(NSS_INFO_OBJ
) \
1382 $(RPC_NCACN_NP_INTERNAL
) $(RPC_SAMR_OBJ
) $(RPC_LSA_OBJ
) \
1383 $(AFS_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1384 $(LIBADS_SERVER_OBJ
) \
1385 $(TDB_VALIDATE_OBJ
) \
1386 $(LIBCLI_DSSETUP_OBJ
) \
1388 $(LIBCLI_SAMR_OBJ
) \
1389 $(LIBCLI_NETLOGON_OBJ
) \
1390 rpc_client
/init_netlogon.o \
1391 rpc_client
/init_samr.o
1393 WBINFO_OBJ
= ..
/nsswitch
/wbinfo.o
$(LIBSAMBA_OBJ
) $(PARAM_OBJ
) $(LIB_NONSMBD_OBJ
) \
1394 $(POPT_LIB_OBJ
) $(AFS_SETTOKEN_OBJ
) \
1395 lib
/winbind_util.o
$(WBCOMMON_OBJ
)
1397 WINBIND_NSS_OBJ
= $(WBCOMMON_OBJ
) $(LIBREPLACE_OBJ
) @WINBIND_NSS_EXTRA_OBJS@
1399 WINBIND_KRB5_LOCATOR_OBJ1
= ..
/nsswitch
/winbind_krb5_locator.o
1400 WINBIND_KRB5_LOCATOR_OBJ
= $(WINBIND_KRB5_LOCATOR_OBJ1
) $(LIBREPLACE_OBJ
)
1402 POPT_OBJ
=..
/lib
/popt
/findme.o ..
/lib
/popt
/popt.o ..
/lib
/popt
/poptconfig.o \
1403 ..
/lib
/popt
/popthelp.o ..
/lib
/popt
/poptparse.o
1405 INIPARSER_OBJ
= ..
/lib
/iniparser_build
/iniparser.o ..
/lib
/iniparser_build
/dictionary.o \
1406 ..
/lib
/iniparser_build
/strlib.o
1408 TDBBACKUP_OBJ
= @tdbdir@
/tools
/tdbbackup.o
$(LIBREPLACE_OBJ
) \
1409 $(SOCKET_WRAPPER_OBJ
)
1411 TDBTOOL_OBJ
= @tdbdir@
/tools
/tdbtool.o
$(LIBREPLACE_OBJ
) \
1412 $(SOCKET_WRAPPER_OBJ
)
1414 TDBDUMP_OBJ
= @tdbdir@
/tools
/tdbdump.o
$(LIBREPLACE_OBJ
) \
1415 $(SOCKET_WRAPPER_OBJ
)
1417 TDBTORTURE_OBJ
= @tdbdir@
/tools
/tdbtorture.o
$(LIBREPLACE_OBJ
) \
1418 $(SOCKET_WRAPPER_OBJ
)
1421 NTLM_AUTH_OBJ1
= utils
/ntlm_auth.o utils
/ntlm_auth_diagnostics.o
1423 NTLM_AUTH_OBJ
= ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ
) $(POPT_LIB_OBJ
) \
1424 ..
/lib
/util
/asn1.o ..
/libcli
/auth
/spnego_parse.o libsmb
/clikrb5.o libads
/kerberos.o \
1425 $(LIBADS_SERVER_OBJ
) \
1426 $(PASSDB_OBJ
) $(LIBTSOCKET_OBJ
) $(GROUPDB_OBJ
) \
1427 $(SMBLDAP_OBJ
) $(LIBNMB_OBJ
) \
1429 $(LIBNDR_GEN_OBJ0
) $(LIBNDR_NETLOGON_OBJ
) @BUILD_INIPARSER@
1432 VLP_OBJ
= printing
/tests
/vlp.o \
1433 ..
/lib
/util
/util_tdb.o \
1434 $(LIBSAMBAUTIL_OBJ
) \
1437 RPC_OPEN_TCP_OBJ
= torture
/rpc_open_tcp.o \
1441 $(SMBLDAP_OBJ
) $(GROUPDB_OBJ
) \
1442 $(LIB_NONSMBD_OBJ
) \
1447 DBWRAP_TOOL_OBJ
= utils
/dbwrap_tool.o \
1449 $(LIB_NONSMBD_OBJ
) \
1452 DBWRAP_TORTURE_OBJ
= utils
/dbwrap_torture.o \
1454 $(LIB_NONSMBD_OBJ
) \
1458 SPLIT_TOKENS_OBJ
= utils
/split_tokens.o \
1460 $(LIB_NONSMBD_OBJ
) \
1464 ######################################################################
1466 ######################################################################
1467 all:: SHOWFLAGS basics libs
$(SBIN_PROGS
) $(BIN_PROGS
) \
1468 $(MODULES
) $(NSS_MODULES
) $(PAM_MODULES
) \
1469 $(EXTRA_ALL_TARGETS
)
1473 nss_modules
:: $(NSS_MODULES
)
1475 pam_modules
:: $(PAM_MODULES
)
1477 pam_smbpass
: SHOWFLAGS bin
/pam_smbpass.@SHLIBEXT@
1479 pam_winbind
: SHOWFLAGS bin
/pam_winbind.@SHLIBEXT@
1481 gpext_modules
:: $(GPEXT_MODULES
)
1483 torture
:: SHOWFLAGS basics
$(TORTURE_PROGS
) @SMBTORTURE4@
1485 smbtorture
: SHOWFLAGS bin
/smbtorture@EXEEXT@
1487 masktest
: SHOWFLAGS bin
/masktest@EXEEXT@
1489 msgtest
: SHOWFLAGS bin
/msgtest@EXEEXT@
1491 locktest
: SHOWFLAGS bin
/locktest@EXEEXT@
1493 smbcacls
: SHOWFLAGS bin
/smbcacls@EXEEXT@
1495 smbcquotas
: SHOWFLAGS bin
/smbcquotas@EXEEXT@
1497 locktest2
: SHOWFLAGS bin
/locktest2@EXEEXT@
1499 debug2html
: SHOWFLAGS bin
/debug2html@EXEEXT@
1501 smbfilter
: SHOWFLAGS bin
/smbfilter@EXEEXT@
1503 eventlogadm
: SHOWFLAGS bin
/eventlogadm@EXEEXT@
1505 sharesec
: SHOWFLAGS bin
/sharesec@EXEEXT@
1507 talloctort
: SHOWFLAGS
$(TALLOCTORT
)
1509 replacetort
: SHOWFLAGS bin
/replacetort@EXEEXT@
1511 smbconftort
: SHOWFLAGS bin
/smbconftort@EXEEXT@
1513 timelimit
: SHOWFLAGS bin
/timelimit@EXEEXT@
1515 nsswitch
: SHOWFLAGS bin
/winbindd@EXEEXT@ bin
/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1516 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1517 bin
/pam_winbind.@SHLIBEXT@ bin
/smbcontrol@EXEEXT@
1519 wins
: SHOWFLAGS @WINBIND_WINS_NSS@
1521 modules
:: SHOWFLAGS
$(MODULES
)
1524 #####################################################################
1525 ## Perl IDL Compiler
1527 IDL_FILES
= librpc
/idl
/messaging.idl \
1528 librpc
/idl
/libnetapi.idl \
1529 librpc
/idl
/notify.idl \
1530 librpc
/idl
/wbint.idl \
1531 librpc
/idl
/perfcount.idl \
1532 librpc
/idl
/secrets.idl \
1533 librpc
/idl
/libnet_join.idl \
1537 @PIDL_OUTPUTDIR
="librpc/gen_ndr" PIDL_ARGS
="$(PIDL_ARGS)" CPP
="$(CPP)" PIDL
="../pidl/pidl" \
1538 srcdir="$(srcdir)" ..
/librpc
/build_idl.sh ..
/librpc
/idl
/*.idl
1539 @PIDL_OUTPUTDIR
="librpc/gen_ndr" PIDL_ARGS
="$(PIDL_ARGS)" CPP
="$(CPP)" PIDL
="../pidl/pidl" \
1540 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
$(IDL_FILES
)
1543 @PIDL_OUTPUTDIR
="librpc/gen_ndr" PIDL_ARGS
="$(PIDL_ARGS)" CPP
="$(CPP)" PIDL
="../pidl/pidl" \
1544 srcdir="$(srcdir)" ..
/librpc
/build_idl.sh
--full ..
/librpc
/idl
/*.idl
1545 @PIDL_OUTPUTDIR
="librpc/gen_ndr" PIDL_ARGS
="$(PIDL_ARGS)" CPP
="$(CPP)" PIDL
="../pidl/pidl" \
1546 srcdir="$(srcdir)" $(srcdir)/script
/build_idl.sh
--full
$(IDL_FILES
)
1548 #####################################################################
1551 everything
:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1555 .SUFFIXES
: .c .o .lo
1557 .PHONY
: showflags SHOWFLAGS
1559 showflags
: SHOWFLAGS
1562 @echo
"Using CFLAGS = $(CFLAGS)"
1563 @echo
" PICFLAG = $(PICFLAG)"
1564 @echo
" LIBS = $(LIBS)"
1565 @echo
" LDFLAGS = $(LDFLAGS)"
1566 @echo
" DYNEXP = $(DYNEXP)"
1567 @echo
" LDSHFLAGS = $(LDSHFLAGS)"
1568 @echo
" SHLIBEXT = @SHLIBEXT@"
1569 @echo
" SONAMEFLAG = @SONAMEFLAG@"
1571 # "showcflags" target for debuggin how CFLAGS are composed:
1573 .PHONY
: showcflags SHOWCFLAGS
1575 showcflags
: SHOWCFLAGS
1578 @echo
"CFLAGS = $(CFLAGS)"
1579 @echo
"FLAGS = $(FLAGS)"
1581 @echo
"FLAGS1 = @FLAGS1@"
1582 @echo
"SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1583 @echo
"CPPFLAGS = $(CPPFLAGS)"
1584 @echo
"ISA = $(ISA)"
1586 MAKEDIR
= || exec false
; \
1587 if
test -d
"$$dir"; then
:; else \
1588 echo mkdir
"$$dir"; \
1589 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
1590 test -d
"$$dir" || \
1592 exec false
; fi || exec false
1594 # Run a static checker.
1595 CHECK_CC
= $(CC_CHECKER
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1596 # Compile a source file.
1597 COMPILE_CC
= $(CC
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1598 # Compile a source file with the installation paths defined.
1599 COMPILE_CC_PATH
= $(CC
) $(PATH_FLAGS
) $(CFLAGS
) $(PICFLAG
) -c
$< -o
$@
1601 COMPILE
= $(COMPILE_CC
)
1604 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
1605 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
1606 @if
test -n
"$(CC_CHECKER)"; then \
1607 echo
"Checking $*.c with '$(CC_CHECKER)'";\
1610 @echo Compiling
$*.c
1611 @
$(COMPILE
) && exit
0;\
1612 echo
"The following command failed:" 1>&2;\
1613 echo
"$(subst ",\",$(COMPILE_CC
))" 1>&2;\
1614 $(COMPILE_CC) >/dev/null 2>&1
1615 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1617 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1619 # this adds support for precompiled headers. To use it, install a snapshot
1620 # of gcc-3.4 and run 'make pch' before you do the main build.
1622 rm -f $(PRECOMPILED_HEADER)
1623 $(MAKE) $(PRECOMPILED_HEADER)
1625 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1628 BINARY_PREREQS = bin/.dummy
1630 # These dependencies are only approximately correct: we want to make
1631 # sure Samba's paths are updated if ./configure is re-run. Really it
1632 # would be nice if "make
prefix=/opt
/samba
all" also rebuilt things,
1633 # but since we also require "make
install prefix=/opt
/samba
" *not* to
1634 # rebuild it's a bit hard.
1636 dynconfig.o: dynconfig.c Makefile
1637 @echo Compiling $*.c
1638 @$(COMPILE_CC_PATH) && exit 0;\
1639 echo "The following command failed
:" 1>&2;\
1640 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1641 $(COMPILE_CC_PATH) >/dev/null 2>&1
1643 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1644 @echo Compiling $*.c
1645 @$(COMPILE_CC_PATH) && exit 0;\
1646 echo "The following command failed
:" 1>&2;\
1647 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1648 $(COMPILE_CC_PATH) >/dev/null 2>&1
1650 ### Start section of object files that require PTHREAD_CFLAGS
1651 ../nsswitch/wins.o: ../nsswitch/wins.c
1652 @echo Compiling $*.c
1653 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1654 echo "The following command failed
:" 1>&2;\
1655 echo "$(COMPILE_CC
) $(PTHREAD_CFLAGS
)" 1>&2;\
1656 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1658 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1659 @echo Compiling $*.c
1660 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1661 echo "The following command failed
:" 1>&2;\
1662 echo "$(COMPILE_CC
) $(PTHREAD_CFLAGS
)" 1>&2;\
1663 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1665 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1666 @echo Compiling $*.c
1667 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1668 echo "The following command failed
:" 1>&2;\
1669 echo "$(COMPILE_CC
) $(PTHREAD_CFLAGS
)" 1>&2;\
1670 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1672 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1673 @echo Compiling $*.c
1674 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1675 echo "The following command failed
:" 1>&2;\
1676 echo "$(COMPILE_CC
) $(PTHREAD_CFLAGS
)" 1>&2;\
1677 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1678 ### End section of object files that require PTHREAD_CFLAGS
1680 localedir.o: localedir.c Makefile
1681 @echo Compiling $*.c
1682 @$(COMPILE_CC_PATH) && exit 0;\
1683 echo "The following command failed
:" 1>&2;\
1684 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1685 $(COMPILE_CC_PATH) >/dev/null 2>&1
1687 lib/pidfile.o: lib/pidfile.c
1688 @echo Compiling $*.c
1689 @$(COMPILE_CC_PATH) && exit 0;\
1690 echo "The following command failed
:" 1>&2;\
1691 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1692 $(COMPILE_CC_PATH) >/dev/null 2>&1
1694 lib/version.o: lib/version.c include/version.h
1695 @echo Compiling $*.c
1696 @$(COMPILE_CC_PATH) && exit 0;\
1697 echo "The following command failed
:" 1>&2;\
1698 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1699 $(COMPILE_CC_PATH) >/dev/null 2>&1
1701 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1702 @echo Compiling $*.c
1703 @$(COMPILE_CC_PATH) && exit 0;\
1704 echo "The following command failed
:" 1>&2;\
1705 echo "$(COMPILE_CC_PATH
)" 1>&2;\
1706 $(COMPILE_CC_PATH) >/dev/null 2>&1
1708 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1710 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1713 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1714 dir=bin $(MAKEDIR); fi
1715 @: >> $@ || : > $@ # what a fancy emoticon!
1717 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1719 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1720 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1721 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1722 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1723 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1725 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1727 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1728 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1729 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1730 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1732 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1734 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1735 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1736 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1738 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1740 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1741 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1742 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1743 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1745 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1747 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1748 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1749 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1750 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1752 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1754 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1755 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1756 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1757 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1760 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1762 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1763 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1765 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1767 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1768 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1769 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1771 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1773 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1774 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1776 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1778 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1779 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1781 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1783 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1784 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1786 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1788 @$(CC) -DUSING_SMBCONTROL -o $@ \
1789 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1790 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1791 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1793 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1795 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1796 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1797 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1799 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1801 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1802 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1803 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1805 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1807 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1808 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1809 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1811 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1813 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1814 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1815 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1817 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1819 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1820 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1822 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1824 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1825 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1826 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1828 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1830 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1831 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1832 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1834 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1836 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1837 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1839 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1841 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1842 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1843 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1845 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1847 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1848 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1849 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1850 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1852 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1854 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1855 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1856 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1858 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1860 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1861 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1862 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1864 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1866 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1867 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1868 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1870 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1872 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1873 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1875 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1877 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1878 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1880 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1882 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1883 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1884 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1885 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1887 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1889 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1891 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1893 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1894 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1895 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1897 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1899 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1900 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1901 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1902 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1903 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1905 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1907 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1908 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1909 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1911 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1913 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1914 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1916 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1918 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1919 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1920 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1921 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1923 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1925 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1926 $(LIBS) $(LIBTALLOC_LIBS)
1928 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1930 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1931 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1932 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1933 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1935 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1937 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1940 #####################################################################
1944 #####################################################################
1946 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1949 #-------------------------------------------------------------------
1953 #-------------------------------------------------------------------
1956 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1957 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1959 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1960 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1961 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1962 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1963 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1964 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1966 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1967 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1969 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1970 @echo Linking shared library $@
1971 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
1973 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1975 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1977 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1978 @echo Linking non-shared library $@
1979 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1980 libtalloc: $(LIBTALLOC)
1985 $(LIBTALLOC_STATIC_TARGET) \
1986 $(LIBTALLOC_SHARED_TARGET) \
1987 $(LIBTALLOC_SHARED_TARGET_SONAME)
1989 installlibtalloc:: installdirs libtalloc
1990 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1991 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1992 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1993 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1994 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1995 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
1997 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
1998 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
1999 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2001 uninstalllibtalloc::
2002 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2003 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2004 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2005 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2008 installlibs:: @INSTALL_LIBTALLOC@
2009 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2010 cleanlibs:: cleanlibtalloc
2011 shlibs test_shlibs: @LIBTALLOC_SHARED@
2015 @echo "LIBTALLOC_SHARED
= @LIBTALLOC_SHARED@
"
2016 @echo "LIBTALLOC_STATIC
= @LIBTALLOC_STATIC@
"
2017 @echo "LIBTALLOC_LIBS
= $(LIBTALLOC_LIBS
)"
2019 @echo "LIBTALLOC_SHARED_TARGET
= $(LIBTALLOC_SHARED_TARGET
)"
2020 @echo "LIBTALLOC_SOVER
= $(LIBTALLOC_SOVER
)"
2021 @echo "LIBTALLOC_SHARED TARGET_SONAME
= $(LIBTALLOC_SHARED_TARGET_SONAME
)"
2022 @echo "LIBTALLOC_STATIC_TARGET
= $(LIBTALLOC_STATIC_TARGET
)"
2023 @echo "LIBTALLOC
= $(LIBTALLOC
)"
2025 showlibs:: showlibtalloc
2027 #-------------------------------------------------------------------
2031 #-------------------------------------------------------------------
2033 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2034 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2036 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2037 LIBTDB_SOVER=@LIBTDB_SOVER@
2038 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
2039 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2040 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2041 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2043 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2044 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2046 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2047 @echo Linking shared library $@
2048 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2049 @SONAMEFLAG@`basename $@`
2051 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
2053 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2055 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2056 @echo Linking non-shared library $@
2057 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2064 $(LIBTDB_STATIC_TARGET) \
2065 $(LIBTDB_SHARED_TARGET) \
2066 $(LIBTDB_SHARED_TARGET_SONAME)
2069 installlibtdb:: installdirs libtdb
2070 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2071 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2072 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2073 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2074 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2075 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2077 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2078 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2079 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2082 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2083 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2084 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2085 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2088 installlibs:: @INSTALL_LIBTDB@
2089 uninstalllibs:: @UNINSTALL_LIBTDB@
2090 cleanlibs:: cleanlibtdb
2091 shlibs test_shlibs: @LIBTDB_SHARED@
2095 @echo "LIBTDB_SHARED
= @LIBTDB_SHARED@
"
2096 @echo "LIBTDB_STATIC
= @LIBTDB_STATIC@
"
2097 @echo "LIBTDB_LIBS
= $(LIBTDB_LIBS
)"
2099 @echo "LIBTDB_SHARED_TARGET
= $(LIBTDB_SHARED_TARGET
)"
2100 @echo "LIBTDB_SOVER
= $(LIBTDB_SOVER
)"
2101 @echo "LIBTDB_SHARED TARGET_SONAME
= $(LIBTDB_SHARED_TARGET_SONAME
)"
2102 @echo "LIBTDB_STATIC_TARGET
= $(LIBTDB_STATIC_TARGET
)"
2103 @echo "LIBTDB
= $(LIBTDB
)"
2105 showlibs:: showlibtdb
2107 #-------------------------------------------------------------------
2111 #-------------------------------------------------------------------
2113 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2114 ../nsswitch/libwbclient/wbc_util.o \
2115 ../nsswitch/libwbclient/wbc_pwd.o \
2116 ../nsswitch/libwbclient/wbc_idmap.o \
2117 ../nsswitch/libwbclient/wbc_sid.o \
2118 ../nsswitch/libwbclient/wbc_guid.o \
2119 ../nsswitch/libwbclient/wbc_pam.o
2121 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2124 ../lib/util/blocking.o \
2125 $(SOCKET_WRAPPER_OBJ)
2127 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2128 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2129 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
2130 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2131 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2132 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2134 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2135 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2137 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2138 @echo Linking shared library $@
2139 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2140 @SONAMEFLAG@`basename $@`
2142 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2144 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2146 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2147 @echo Linking non-shared library $@
2148 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2150 libwbclient: $(LIBWBCLIENT)
2154 $(LIBWBCLIENT_SYMS) \
2155 $(LIBWBCLIENT_STATIC_TARGET) \
2156 $(LIBWBCLIENT_SHARED_TARGET) \
2157 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2159 installlibwbclient:: installdirs libwbclient
2160 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2161 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2162 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2163 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2164 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2165 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2167 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2168 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2169 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2171 uninstalllibwbclient::
2172 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2173 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2174 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2175 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2178 installlibs:: @INSTALL_LIBWBCLIENT@
2179 uninstalllibs:: uninstalllibwbclient
2180 cleanlibs:: cleanlibwbclient
2181 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2185 @echo "LIBWBCLIENT_SHARED
= @LIBWBCLIENT_SHARED@
"
2186 @echo "LIBWBCLIENT_STATIC
= @LIBWBCLIENT_STATIC@
"
2187 @echo "LIBWBCLIENT_LIBS
= $(LIBWBCLIENT_LIBS
)"
2189 @echo "LIBWBCLIENT_SHARED_TARGET
= $(LIBWBCLIENT_SHARED_TARGET
)"
2190 @echo "LIBWBCLIENT_SOVER
= $(LIBWBCLIENT_SOVER
)"
2191 @echo "LIBWBCLIENT_SHARED TARGET_SONAME
= $(LIBWBCLIENT_SHARED_TARGET_SONAME
)"
2192 @echo "LIBWBCLIENT_STATIC_TARGET
= $(LIBWBCLIENT_STATIC_TARGET
)"
2193 @echo "LIBWBCLIENT
= $(LIBWBCLIENT
)"
2195 showlibs:: showlibwbclient
2198 #-------------------------------------------------------------------
2202 #-------------------------------------------------------------------
2205 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2206 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2207 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2208 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2209 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2210 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2211 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
2213 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2214 @echo Linking shared library $@
2215 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2216 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2217 @SONAMEFLAG@`basename $@`
2219 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2221 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2223 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2224 @echo Linking non-shared library $@
2225 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2227 libaddns: $(LIBADDNS)
2231 $(LIBADDNS_SHARED_TARGET) \
2232 $(LIBADDNS_SHARED_TARGET_SONAME) \
2233 $(LIBADDNS_STATIC_TARGET)
2235 installlibaddns:: installdirs libaddns
2236 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2237 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2238 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2239 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2240 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2241 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2243 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2246 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2247 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2248 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2251 installlibs:: @INSTALL_LIBADDNS@
2252 uninstalllibs:: @UNINSTALL_LIBADDNS@
2253 cleanlibs:: cleanlibaddns
2254 shlibs test_shlibs: @LIBADDNS_SHARED@
2258 @echo "LIBADDNS_SHARED
= @LIBADDNS_SHARED@
"
2259 @echo "LIBADDNS_STATIC
= @LIBADDNS_STATIC@
"
2260 @echo "LIBADDNS_LIBS
= $(LIBADDNS_LIBS
)"
2262 @echo "LIBADDNS_SHARED_TARGET
= $(LIBADDNS_SHARED_TARGET
)"
2263 @echo "LIBADDNS_SOVER
= $(LIBADDNS_SOVER
)"
2264 @echo "LIBADDNS_SHARED TARGET_SONAME
= $(LIBADDNS_SHARED_TARGET_SONAME
)"
2265 @echo "LIBADDNS_STATIC_TARGET
= $(LIBADDNS_STATIC_TARGET
)"
2266 @echo "LIBADDNS
= $(LIBADDNS
)"
2268 showlibs:: showlibaddns
2270 #-------------------------------------------------------------------
2274 #-------------------------------------------------------------------
2276 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2278 librpc/gen_ndr/ndr_libnetapi.o \
2279 lib/netapi/libnetapi.o \
2280 lib/netapi/joindomain.o \
2281 lib/netapi/serverinfo.o \
2282 lib/netapi/getdc.o \
2284 lib/netapi/group.o \
2285 lib/netapi/localgroup.o \
2288 lib/netapi/share.o \
2290 lib/netapi/shutdown.o \
2291 lib/netapi/netlogon.o
2293 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2295 $(REG_SMBCONF_OBJ) \
2296 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2297 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2298 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2299 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2300 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2302 $(LIBCLI_INITSHUTDOWN_OBJ) \
2303 $(LIBCLI_WKSSVC_OBJ) \
2304 $(LIBCLI_SRVSVC_OBJ) \
2306 $(LIBCLI_SAMR_OBJ) \
2307 $(LIBCLI_NETLOGON_OBJ) \
2308 $(RPC_CLIENT_SCHANNEL_OBJ) \
2309 rpc_client/init_netlogon.o \
2310 rpc_client/init_samr.o
2312 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2313 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2314 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2315 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2316 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2317 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2319 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2320 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2322 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2323 @echo Linking shared library $@
2324 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2325 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2326 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2327 @SONAMEFLAG@`basename $@`
2329 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2331 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2333 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2334 @echo Linking non-shared library $@
2335 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2337 libnetapi: $(LIBNETAPI)
2342 $(LIBNETAPI_STATIC_TARGET) \
2343 $(LIBNETAPI_SHARED_TARGET) \
2344 $(LIBNETAPI_SHARED_TARGET_SONAME)
2346 installlibnetapi:: installdirs libnetapi
2347 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2348 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2349 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2350 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2351 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2352 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2354 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2355 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2356 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2358 uninstalllibnetapi::
2359 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2360 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2361 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2362 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2365 installlibs:: @INSTALL_LIBNETAPI@
2366 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2367 cleanlibs:: cleanlibnetapi
2368 shlibs test_shlibs: @LIBNETAPI_SHARED@
2372 @echo "LIBNETAPI_SHARED
= @LIBNETAPI_SHARED@
"
2373 @echo "LIBNETAPI_STATIC
= @LIBNETAPI_STATIC@
"
2374 @echo "LIBNETAPI_LIBS
= $(LIBNETAPI_LIBS
)"
2376 @echo "LIBNETAPI_SHARED_TARGET
= $(LIBNETAPI_SHARED_TARGET
)"
2377 @echo "LIBNETAPI_SOVER
= $(LIBNETAPI_SOVER
)"
2378 @echo "LIBNETAPI_SHARED TARGET_SONAME
= $(LIBNETAPI_SHARED_TARGET_SONAME
)"
2379 @echo "LIBNETAPI_STATIC_TARGET
= $(LIBNETAPI_STATIC_TARGET
)"
2380 @echo "LIBNETAPI
= $(LIBNETAPI
)"
2382 showlibs:: showlibnetapi
2384 #-------------------------------------------------------------------
2388 #-------------------------------------------------------------------
2390 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2391 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2392 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2393 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2394 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2395 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2396 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2398 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2399 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2401 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2402 @echo Linking shared library $@
2403 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2404 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2405 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2406 @SONAMEFLAG@`basename $@`
2408 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2410 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2412 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2413 @echo Linking non-shared library $@
2414 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2416 libsmbclient: $(LIBSMBCLIENT)
2420 $(LIBSMBCLIENT_SHARED_TARGET) \
2421 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2422 $(LIBSMBCLIENT_STATIC_TARGET)
2424 installlibsmbclient:: installdirs libsmbclient
2425 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2426 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2427 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2428 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2429 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2430 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2432 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2433 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2434 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2436 installclientlib:: installlibsmbclient
2438 uninstalllibsmbclient::
2439 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2440 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2441 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2442 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2444 uninstallclientlib:: uninstalllibsmbclient
2447 installlibs:: @INSTALL_LIBSMBCLIENT@
2448 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2449 cleanlibs:: cleanlibsmbclient
2450 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2454 @echo "LIBSMBCLIENT_SHARED
= @LIBSMBCLIENT_SHARED@
"
2455 @echo "LIBSMBCLIENT_STATIC
= @LIBSMBCLIENT_STATIC@
"
2456 @echo "LIBSMBCLIENT_LIBS
= $(LIBSMBCLIENT_LIBS
)"
2458 @echo "LIBSMBCLIENT_SHARED_TARGET
= $(LIBSMBCLIENT_SHARED_TARGET
)"
2459 @echo "LIBSMBCLIENT_SOVER
= $(LIBSMBCLIENT_SOVER
)"
2460 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME
= $(LIBSMBCLIENT_SHARED_TARGET_SONAME
)"
2461 @echo "LIBSMBCLIENT_STATIC_TARGET
= $(LIBSMBCLIENT_STATIC_TARGET
)"
2462 @echo "LIBSMBCLIENT
= $(LIBSMBCLIENT
)"
2464 showlibs:: showlibsmbclient
2466 #-------------------------------------------------------------------
2470 #-------------------------------------------------------------------
2472 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2474 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2476 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2477 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2478 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2479 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2480 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2481 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2482 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2484 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2485 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2487 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2488 @echo Linking shared library $@
2489 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2490 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2491 @SONAMEFLAG@`basename $@`
2493 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2495 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2497 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2498 @echo Linking non-shared library $@
2499 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2501 libsmbsharemodes: $(LIBSMBSHAREMODES)
2503 cleanlibsmbsharemodes::
2505 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2506 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2507 $(LIBSMBSHAREMODES_STATIC_TARGET)
2509 installlibsmbsharemodes:: installdirs libsmbsharemodes
2510 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2511 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2512 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2513 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2514 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2515 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2517 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2518 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2519 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2521 uninstalllibsmbsharemodes::
2522 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2523 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2524 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2525 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2527 libs:: libsmbsharemodes
2528 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2529 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2530 cleanlibs:: cleanlibsmbsharemodes
2531 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2533 showlibsmbsharemodes:
2535 @echo "LIBSMBSHAREMODES_SHARED
= @LIBSMBSHAREMODES_SHARED@
"
2536 @echo "LIBSMBSHAREMODES_STATIC
= @LIBSMBSHAREMODES_STATIC@
"
2537 @echo "LIBSMBSHAREMODES_TARGET
= @LIBSMBSHAREMODES_TARGET@
"
2538 @echo "LIBSMBSHAREMODES_LIBS
= $(LIBSMBSHAREMODES_LIBS
)"
2540 @echo "LIBSMBSHAREMODES_SHARED_TARGET
= $(LIBSMBSHAREMODES_SHARED_TARGET
)"
2541 @echo "LIBSMBSHAREMODES_SOVER
= $(LIBSMBSHAREMODES_SOVER
)"
2542 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME
= $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME
)"
2543 @echo "LIBSMBSHAREMODES_STATIC_TARGET
= $(LIBSMBSHAREMODES_STATIC_TARGET
)"
2544 @echo "LIBSMBSHAREMODES
= $(LIBSMBSHAREMODES
)"
2546 showlibs:: showlibsmbsharemodes
2548 #-------------------------------------------------------------------
2552 #-------------------------------------------------------------------
2554 # This is probably wrong for anything other than the GNU linker.
2555 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2556 @echo Linking shared library $@
2557 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2558 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2559 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2560 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2561 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2563 # It would be nice to build a static bigballofmud too, but when I try
2564 # I get linker errors about dl_open and similar things. I'm not sure if
2565 # it can be fixed or if they just can't be called from a static
2568 #####################################################################
2572 #####################################################################
2574 # Linker command to link our shared libraries:
2575 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2576 -o $@ @SONAMEFLAG@`basename $@`
2577 # Linker command to link samba internal plugin modules:
2578 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2579 -o $@ @SONAMEFLAG@`basename $@`
2581 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSA_OBJ)
2583 @$(SHLD_LIBRARY) $(RPC_LSA_OBJ)
2585 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2587 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2589 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVC_OBJ)
2591 @$(SHLD_LIBRARY) $(RPC_SVC_OBJ)
2593 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2595 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2597 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2599 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2601 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKS_OBJ)
2603 @$(SHLD_LIBRARY) $(RPC_WKS_OBJ)
2605 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOG_OBJ)
2607 @$(SHLD_LIBRARY) $(RPC_NETLOG_OBJ)
2609 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_REG_OBJ)
2611 @$(SHLD_LIBRARY) $(RPC_REG_OBJ)
2613 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2615 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2617 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2619 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2621 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2623 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2625 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2627 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2629 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DFS_OBJ)
2631 @$(SHLD_LIBRARY) $(RPC_DFS_OBJ)
2633 bin/librpc_echo.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_ECHO_OBJ)
2635 @$(SHLD_LIBRARY) $(RPC_ECHO_OBJ)
2637 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2639 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2640 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2641 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2644 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2646 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2647 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2650 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2652 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2653 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2654 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2656 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2658 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2659 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2660 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2662 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2664 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2665 @SONAMEFLAG@`basename $@`
2667 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2668 @echo "Linking shared library
$@
"
2669 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2670 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2676 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2677 @echo "Building plugin
$@
"
2678 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2680 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2681 @echo "Building plugin
$@
"
2682 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2684 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2685 @echo "Building plugin
$@
"
2686 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2688 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2689 @echo "Building plugin
$@
"
2690 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2692 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2693 @echo "Building plugin
$@
"
2694 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2696 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2697 @echo "Building plugin
$@
"
2698 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2700 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2701 @echo "Building plugin
$@
"
2702 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2704 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2705 @echo "Building plugin
$@
"
2706 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2708 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2709 @echo "Building plugin
$@
"
2710 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2712 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2713 @echo "Building plugin
$@
"
2714 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2716 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2717 @echo "Building plugin
$@
"
2718 @$(SHLD_MODULE) passdb/pdb_ads.o
2720 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2721 @echo "Building plugin
$@
"
2722 @$(SHLD_MODULE) passdb/pdb_tdb.o
2724 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2725 @echo "Building plugin
$@
"
2726 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2728 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2729 @echo "Building plugin
$@
"
2730 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2732 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2733 @echo "Building plugin
$@
"
2734 @$(SHLD_MODULE) winbindd/idmap_rid.o
2736 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2737 @echo "Building plugin
$@
"
2738 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2740 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2741 @echo "Building plugin
$@
"
2742 @$(SHLD_MODULE) winbindd/idmap_ad.o
2744 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2745 @echo "Building plugin
$@
"
2746 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2748 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2749 @echo "Building plugin
$@
"
2750 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2752 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2753 @echo "Building plugin
$@
"
2754 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2756 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2757 @echo "Building plugin
$@
"
2758 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2760 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2761 @echo "Building plugin
$@
"
2762 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2764 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2765 @echo "Building plugin
$@
"
2766 @$(SHLD_MODULE) $(CP850_OBJ)
2768 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2769 @echo "Building plugin
$@
"
2770 @$(SHLD_MODULE) $(CP437_OBJ)
2772 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2773 @echo "Building plugin
$@
"
2774 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2776 # NOTE, there is no build rule for a dynamic default VFS module because
2777 # this one MUST MUST MUST be built statically.
2779 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2780 @echo "Building plugin
$@
"
2781 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2783 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2784 @echo "Building plugin
$@
"
2785 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2787 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2788 @echo "Building plugin
$@
"
2789 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2791 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2792 @echo "Building plugin
$@
"
2793 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2795 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2796 @echo "Building plugin
$@
"
2797 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2799 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2800 @echo "Building plugin
$@
"
2801 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2803 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2804 @echo "Building plugin
$@
"
2805 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2807 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2808 @echo "Building plugin
$@
"
2809 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2811 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2812 @echo "Building plugin
$@
"
2813 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2815 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2816 @echo "Building plugin
$@
"
2817 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2819 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2820 @echo "Building plugin
$@
"
2821 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2823 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2824 @echo "Building plugin
$@
"
2825 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2827 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2828 @echo "Building plugin
$@
"
2829 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2831 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2832 @echo "Building plugin
$@
"
2833 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2835 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2836 @echo "Building plugin
$@
"
2837 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2839 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2840 @echo "Building plugin
$@
"
2841 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2843 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2844 @echo "Building plugin
$@
"
2845 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2847 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2848 @echo "Building plugin
$@
"
2849 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2851 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2852 @echo "Building plugin
$@
"
2853 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2855 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2856 @echo "Building plugin
$@
"
2857 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2859 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2860 @echo "Building plugin
$@
"
2861 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2863 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2864 @echo "Building plugin
$@
"
2865 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2867 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2868 @echo "Building plugin
$@
"
2869 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2871 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2872 @echo "Building plugin
$@
"
2873 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2875 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2876 @echo "Building plugin
$@
"
2877 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2879 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2880 @echo "Building plugin
$@
"
2881 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2883 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2884 @echo "Building plugin
$@
"
2885 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2887 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2888 @echo "Building plugin
$@
"
2889 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2891 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2892 @echo "Building plugin
$@
"
2893 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2895 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2896 @echo "Building plugin
$@
"
2897 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2899 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2900 @echo "Building plugin
$@
"
2901 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2903 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2904 @echo "Building plugin
$@
"
2905 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2907 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2908 @echo "Building plugin
$@
"
2909 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2911 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2912 @echo "Building plugin
$@
"
2913 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2915 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2916 @echo "Building plugin
$@
"
2917 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2919 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2920 @echo "Building plugin
$@
"
2921 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2923 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2924 @echo "Building plugin
$@
"
2925 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2927 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2928 @echo "Building plugin
$@
"
2929 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2931 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2932 @echo "Building plugin
$@
"
2933 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2935 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2936 @echo "Building plugin
$@
"
2937 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2939 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2940 @echo "Building plugin
$@
"
2941 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2943 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2944 @echo "Building plugin
$@
"
2945 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2947 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2948 @echo "Building plugin
$@
"
2949 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2951 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2952 @echo "Building plugin
$@
"
2953 @$(SHLD_MODULE) libgpo/gpext/registry.o
2955 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2956 @echo "Building plugin
$@
"
2957 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2959 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2960 @echo "Building plugin
$@
"
2961 @$(SHLD_MODULE) libgpo/gpext/security.o
2963 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2964 @echo "Building plugin
$@
"
2965 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2967 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
2968 @echo "Building plugin
$@
"
2969 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
2971 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
2972 @echo "Building plugin
$@
"
2973 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
2975 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
2976 @echo "Building plugin
$@
"
2977 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
2979 #########################################################
2980 ## IdMap NSS plugins
2982 ## None here right now
2983 #########################################################
2985 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2987 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2988 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2991 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2992 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2994 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2995 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2996 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2997 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
2999 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3000 @echo "Linking shared library
$@
"
3001 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
3002 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3003 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3005 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3007 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3008 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3010 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3012 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3013 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3015 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTALLOC) $(LIBTDB)
3017 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
3018 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3020 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3022 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3023 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3025 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3026 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3027 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3029 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3030 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3031 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3033 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3034 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3035 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3037 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3038 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3039 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3041 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3043 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3045 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3047 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3048 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3049 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3051 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
3053 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3054 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3056 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3058 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3060 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3061 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3063 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3065 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3066 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3068 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3070 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3071 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3074 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3076 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3077 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3079 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
3081 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3082 $(LDFLAGS) $(DYNEXP) \
3083 $(LIBS) $(POPT_LIBS) \
3085 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3087 install:: installservers installbin installman \
3088 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3089 @INSTALL_PAM_MODULES@ installlibs installmo
3091 install-everything:: install installmodules
3093 # DESTDIR is used here to prevent packagers wasting their time
3094 # duplicating the Makefile. Remove it and you will have the privelege
3095 # of package each samba release for muliple versions of multiple
3096 # distributions and operating systems, or at least supplying patches
3097 # to all the packaging files required for this, prior to committing
3098 # the removal of DESTDIR. Do not remove it even though you think it
3102 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3103 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3104 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3105 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3107 installservers:: all installdirs
3108 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3110 installbin:: all installdirs
3111 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3113 # Some symlinks are required for the 'probing' of modules.
3114 # This mechanism should go at some point..
3115 installmodules:: modules installdirs
3116 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3117 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3118 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3119 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3120 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3121 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3122 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3123 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3124 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3125 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3126 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3127 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3128 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3129 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3130 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3131 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3132 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3133 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3134 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3136 installscripts:: installdirs
3137 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3139 installdat:: installdirs
3140 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3142 installmsg:: installdirs
3143 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3145 installswat:: installdirs installmsg
3146 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3148 installpammodules:: $(PAM_MODULES)
3149 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3150 @for module in $(PAM_MODULES); do \
3151 echo "Installing module
$${module} as $(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
3152 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3153 "$(DESTDIR
)/$(PAMMODULESDIR
)"; \
3156 # revert to the previously installed version
3158 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3159 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3161 installman:: installdirs
3162 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@
"
3164 installmo:: all installdirs
3165 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3170 @echo "Samba will be installed into
:"
3171 @echo " prefix: $(prefix)"
3172 @echo " bindir: $(BINDIR
)"
3173 @echo " sbindir
: $(SBINDIR
)"
3174 @echo " libdir: $(LIBDIR
)"
3175 @echo " modulesdir
: $(MODULESDIR
)"
3176 @echo " vardir
: $(VARDIR
)"
3177 @echo " mandir: $(MANDIR
)"
3178 @echo " privatedir
: $(PRIVATE_DIR
)"
3179 @echo " configdir
: $(CONFIGDIR
)"
3180 @echo " lockdir
: $(LOCKDIR
)"
3181 @echo " statedir: $(STATEDIR
)"
3182 @echo " cachedir
: $(CACHEDIR
)"
3183 @echo " piddir
: $(PIDDIR
)"
3184 @echo " swatdir
: $(SWATDIR
)"
3185 @echo " datadir: ${DATADIR}"
3186 @echo " codepagedir
: $(CODEPAGEDIR
)"
3189 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3192 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3195 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3198 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3201 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3204 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3205 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3206 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3207 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3208 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3209 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3210 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3211 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3214 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3217 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3220 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3222 uninstallswat:: uninstallmsg
3223 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3225 uninstallpammodules::
3226 @for module in $(PAM_MODULES); do \
3227 echo "Removing
$(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
3228 rm -f "$(DESTDIR
)/$(PAMMODULESDIR
)/$${module}.@SHLIBEXT@
"; \
3231 # Toplevel clean files
3232 TOPFILES=dynconfig.o localedir.o
3235 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3237 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3239 ../libgpo/*.o ../libgpo/*/*.o \
3240 ../libds/*.o ../libds/*/*.o
3243 -rm -f include/build_env.h
3244 -rm -f smbd/build_options.c
3245 -rm -f $(PRECOMPILED_HEADER)
3246 -rm -f core */*~ *~ \
3247 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3248 ../testsuite/*/*.o \
3249 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3251 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3252 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3253 $(MODULES) $(TORTURE_PROGS) \
3254 $(EVERYTHING_PROGS) \
3256 .headers.stamp */src/*.o
3259 include/build_env.h: script/build_env.sh
3260 @echo Building include/build_env.h
3261 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3262 > $(builddir)/include/build_env.h
3267 find $(srcdir)/.. -name "*.
[ch
]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3270 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.
[ch
]" | grep -v proto\.h`
3273 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3274 -rm -f script/installbin.sh script/uninstallbin.sh
3276 distclean:: realclean
3278 -rm -f include/config.h Makefile
3279 -rm -f config.status config.cache so_locations
3282 realdistclean:: distclean
3283 -rm -f include/config.h.in
3284 -rm -f include/version.h
3287 # this target is really just for my use. It only works on a limited
3288 # range of machines and is used to produce a list of potentially
3289 # dead (ie. unused) functions in the code. (tridge)
3291 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3292 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3293 comm -13 nmused.txt nmfns.txt
3296 # when configure.in is updated, reconfigure
3297 $(srcdir)/configure: $(srcdir)/configure.in
3298 @echo "WARNING
: you need to rerun .
/autogen.sh
"
3300 config.status: $(srcdir)/configure
3301 @echo "WARNING
: you need to run .
/configure
"
3303 Makefile: $(srcdir)/Makefile.in config.status
3304 @echo "WARNING
: you need to run .
/config.status
"
3306 ######################################################################
3307 # Samba Testing Framework
3309 # Check shared libs for unresolved symbols
3312 @$(LIB_PATH_VAR)=./bin && \
3313 export $(LIB_PATH_VAR) && \
3314 for module in $?; do \
3315 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3319 # Check for NSS module problems.
3320 test_nss_modules:: nss_modules
3321 @echo "Testing
$(NSS_MODULES
) "
3322 @$(LIB_PATH_VAR)=./bin && \
3323 export $(LIB_PATH_VAR) && \
3324 for module in $(NSS_MODULES); do \
3325 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3329 # Check for PAM module problems. Specifically, check that every module we
3330 # built can actually be loaded by a minimal PAM-aware application.
3331 test_pam_modules:: pam_modules
3332 @echo "Testing
$(PAM_MODULES
) "
3333 @$(LIB_PATH_VAR)=./bin && \
3334 export $(LIB_PATH_VAR) && \
3335 for module in $(PAM_MODULES); do \
3336 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3342 ## Targets for 'make test'
3345 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3347 oldtest:: all torture timelimit
3348 @echo Running Test suite
3349 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL
)" NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/@WINBIND_NSS@
" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3351 valgrindtest:: all torture timelimit
3352 @echo Running Test suite with valgrind
3353 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3354 NMBD_VALGRIND="xterm
-n nmbd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3355 WINBINDD_VALGRIND="xterm
-n winbindd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3356 SMBD_VALGRIND="xterm
-n smbd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3357 VALGRIND="valgrind
-q
--num-callers
=30 --log-file
=${selftest_prefix}/valgrind.log
" \
3358 PERL="$(PERL
)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3360 selftestdir = ../selftest
3362 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir
)/bin
:$$$(LIB_PATH_VAR
)"
3364 test:: all torture timelimit
3365 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3366 SAMBA4SHAREDDIR="$(builddir
)/bin
/shared
" SMBTORTURE4=$(smbtorture4_path) \
3367 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/..
/nsswitch
/libnss_winbind.so
" \
3368 SELFTESTDIR="$(selftestdir
)" SELFTESTPREFIX="$(selftest_prefix
)" \
3369 SOURCEDIR="$(srcdir)" \
3370 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM
)" \
3371 PERL="$(PERL
)" PYTHON="$(PYTHON
)" \
3372 $(selftestdir)/s3-selftest.sh
3375 $(MAKE) test TESTS=$*
3377 SELFTEST_TESTENV = dc
3380 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv
"
3383 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3384 NMBD_VALGRIND="xterm
-n nmbd
-title nmbd
-e
$(selftestdir
)/gdb_run
$(S3_LD_LIBPATH_OVERRIDE
)" \
3385 WINBINDD_VALGRIND="xterm
-n winbindd
-title winbindd
-e
$(selftestdir
)/gdb_run
$(S3_LD_LIBPATH_OVERRIDE
)" \
3386 SMBD_VALGRIND="xterm
-n smbd
-title smbd
-e
$(selftestdir
)/gdb_run
$(S3_LD_LIBPATH_OVERRIDE
)" \
3390 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3391 NMBD_VALGRIND="xterm
-n nmbd
-title nmbd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3392 WINBINDD_VALGRIND="xterm
-n winbindd
-title winbindd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3393 SMBD_VALGRIND="xterm
-n smbd
-title smbd
-e valgrind
-q
--db-attach
=yes
--num-callers
=30" \
3397 # Check for Winbind struct 32/64bit padding
3399 @echo "Testing winbind request
/response structure for
32/64bit padding
"
3400 @./script/tests/wb_pad.sh || exit 1;
3406 libsmbclient_examples: libsmbclient
3407 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3409 clean_libsmbclient_examples:
3410 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3412 libnetapi_examples: libnetapi
3413 $(MAKE) -C lib/netapi/examples
3415 clean_libnetapi_examples:
3416 $(MAKE) -C lib/netapi/examples clean
3418 ../source4/configure: ../buildtools/scripts/configure.waf
3419 cd ../source4 && ./autogen.sh
3421 samba4-configure: ../source4/configure
3422 @$(MAKE) -C ../source4 reconfigure || ( cd ../source4 && \
3423 ./configure.developer --nonshared-binary=smbtorture --enable-auto-reconfigure )
3425 .PHONY: samba4-configure
3427 bin/smbtorture4: $(BINARY_PREREQS) samba4-configure
3428 cd ../source4 && ../buildtools/bin/waf build --targets=smbtorture
3429 cp ../source4/bin/smbtorture bin/smbtorture4
3431 bin/ndrdump4: $(BINARY_PREREQS) samba4-configure
3432 cd ../source4 && ../buildtools/bin/waf build --targets=ndrdump
3433 cp ../source4/bin/ndrdump bin/ndrdump4
3435 .PHONY: bin/smbtorture4