WHATSNEW: Start release notes for Samba 3.6.18.
[Samba.git] / source3 / Makefile.in
blob9e8e03d57a7f9d27b2156734069132fdbfe3c136
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 selftest_shrdir=@selftest_shrdir@
21 smbtorture4_path=@smbtorture4_path@
22 smbtorture4_option=@smbtorture4_option@
23 selftest_custom_conf=@selftest_custom_conf@
25 LIBS=@LIBS@
26 CC=@CC@
27 SHLD=@SHLD@
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]*$$:.@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@
43 CFLAGS=@CFLAGS@
44 CPP=@CPP@
45 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
46 PICFLAG=@PICFLAG@
48 EXEEXT=@EXEEXT@
49 AR=@AR@
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@
55 AWK=@AWK@
56 DYNEXP=@DYNEXP@
57 PERL=@PERL@
58 PYTHON=@PYTHON@
59 LIBDL=@LIBDL@
61 PIDL_ARGS=@PIDL_ARGS@
63 TERMLDFLAGS=@TERMLDFLAGS@
64 TERMLIBS=@TERMLIBS@
65 PRINT_LIBS=@PRINT_LIBS@
66 ZLIB_LIBS=@ZLIB_LIBS@
67 AUTH_LIBS=@AUTH_LIBS@
68 ACL_LIBS=@ACL_LIBS@
69 PASSDB_LIBS=@PASSDB_LIBS@
70 IDMAP_LIBS=@IDMAP_LIBS@
71 KRB5LIBS=@KRB5_LIBS@
72 LDAP_LIBS=@LDAP_LIBS@
73 NSCD_LIBS=@NSCD_LIBS@
74 UUID_LIBS=@UUID_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@
81 POPT_LIBS=@POPTLIBS@
82 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
83 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
84 LIBTEVENT=@LIBTEVENT_STATIC@ @LIBTEVENT_SHARED@
85 LIBTEVENT_LIBS=@LIBTEVENT_LIBS@
86 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
87 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
88 LIBTDB_LIBS=@LIBTDB_LIBS@
89 TDB_DEPS=@TDB_DEPS@
90 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
91 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
92 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
93 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
95 TALLOCTORT = @TALLOCTORT@
97 TDBBACKUP = @TDBBACKUP@
98 TDBTOOL = @TDBTOOL@
99 TDBDUMP = @TDBDUMP@
100 TDBRESTORE = @TDBRESTORE@
101 TDBTORTURE = @TDBTORTURE@
102 PTHREADPOOLTEST = @PTHREADPOOLTEST@
104 INSTALLCMD=@INSTALL@
105 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
106 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
107 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
108 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
110 VPATH=@srcdir@
111 srcdir=@abs_srcdir@
112 builddir=@abs_builddir@
113 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
114 # will search for a POSIX-compliant shell, and that might not be
115 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
116 SHELL=/bin/sh
117 DESTDIR=/
119 # See the autoconf manual "Installation Directory Variables" for a
120 # discussion of the subtle use of these variables.
122 BASEDIR= @prefix@
123 BINDIR = @bindir@
124 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
125 SBINDIR = @sbindir@
126 ROOTSBINDIR = @rootsbindir@
127 LIBDIR = @libdir@
128 MODULESDIR = @modulesdir@
129 INCLUDEDIR=@includedir@
130 PAMMODULESDIR = @pammodulesdir@
131 VFSLIBDIR = $(MODULESDIR)/vfs
132 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
133 PDBLIBDIR = $(MODULESDIR)/pdb
134 RPCLIBDIR = $(MODULESDIR)/rpc
135 IDMAPLIBDIR = $(MODULESDIR)/idmap
136 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
137 CHARSETLIBDIR = $(MODULESDIR)/charset
138 AUTHLIBDIR = $(MODULESDIR)/auth
139 CONFIGLIBDIR = $(MODULESDIR)/config
140 GPEXTLIBDIR = $(MODULESDIR)/gpext
141 CONFIGDIR = @configdir@
142 VARDIR = @localstatedir@
143 MANDIR = @mandir@
144 DATADIR = @datadir@
146 # The permissions to give the executables and other data
147 INSTALLPERMS_BIN = 0755
148 INSTALLPERMS_DATA = 0644
150 # set these to where to find various files
151 # These can be overridden by command line switches (see smbd(8))
152 # or in smb.conf (see smb.conf(5))
153 LOGFILEBASE = @logfilebase@
154 CONFIGFILE = $(CONFIGDIR)/smb.conf
155 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
156 NCALRPCDIR = @ncalrpcdir@
158 # This is where smbpasswd et al go
159 PRIVATEDIR = @privatedir@
161 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
162 PRIVATE_DIR = $(PRIVATEDIR)
164 # This is where SWAT images and help files go
165 SWATDIR = @swatdir@
167 # This is where locale(mo) files go
168 LOCALEDIR= @localedir@
170 # the directory where lock files go
171 LOCKDIR = @lockdir@
173 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
174 CACHEDIR = @cachedir@
175 STATEDIR = @statedir@
177 # Where to look for (and install) codepage databases.
178 CODEPAGEDIR = @codepagedir@
180 # the directory where pid files go
181 PIDDIR = @piddir@
183 # the directory where nmbd listens on the unexpected socket
184 NMBDSOCKETDIR = @nmbdsocketdir@
186 FLAGS = -I. \
187 -I$(srcdir) \
188 @FLAGS1@ \
189 @SAMBA_CPPFLAGS@ \
190 $(CPPFLAGS) \
191 $(ISA) \
192 -I$(srcdir)/lib \
193 -I.. \
194 -D_SAMBA_BUILD_=3
196 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
197 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
198 -DCONFIGFILE=\"$(CONFIGFILE)\" \
199 -DSBINDIR=\"$(SBINDIR)\" \
200 -DBINDIR=\"$(BINDIR)\" \
201 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
202 -DSWATDIR=\"$(SWATDIR)\" \
203 -DLOCKDIR=\"$(LOCKDIR)\" \
204 -DPIDDIR=\"$(PIDDIR)\" \
205 -DLIBDIR=\"$(LIBDIR)\" \
206 -DMODULESDIR=\"$(MODULESDIR)\" \
207 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
208 -DSHLIBEXT=\"@SHLIBEXT@\" \
209 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
210 -DCONFIGDIR=\"$(CONFIGDIR)\" \
211 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
212 -DCACHEDIR=\"$(CACHEDIR)\" \
213 -DSTATEDIR=\"$(STATEDIR)\" \
214 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
215 -DLOCALEDIR=\"$(LOCALEDIR)\"
217 # Note that all executable programs now provide for an optional executable suffix.
219 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
221 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
222 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
223 bin/smbta-util@EXEEXT@
224 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
225 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
226 $(TDBRESTORE) \
227 $(TDBTOOL)
228 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
229 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
230 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
232 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
233 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
234 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
235 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
236 $(TDBTORTURE) $(PTHREADPOOLTEST) \
237 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
239 BIN_PROGS = @EXTRA_BIN_PROGS@ \
240 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
242 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
243 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
244 bin/log2pcap@EXEEXT@ \
245 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
246 bin/dbwrap_tool@EXEEXT@ \
247 bin/dbwrap_torture@EXEEXT@
249 PAM_MODULES = @PAM_MODULES@
251 NSS_MODULES = @NSS_MODULES@
253 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
255 VFS_MODULES = @VFS_MODULES@
256 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
257 PDB_MODULES = @PDB_MODULES@
258 IDMAP_MODULES = @IDMAP_MODULES@
259 CHARSET_MODULES = @CHARSET_MODULES@
260 AUTH_MODULES = @AUTH_MODULES@
261 NSS_INFO_MODULES = @NSS_INFO_MODULES@
262 GPEXT_MODULES = @GPEXT_MODULES@
263 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
264 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
265 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
267 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
269 ######################################################################
270 # object file lists
271 ######################################################################
273 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
274 ../lib/util/tdb_wrap.o \
275 lib/dbwrap.o lib/dbwrap_tdb.o \
276 lib/dbwrap_ctdb.o \
277 lib/g_lock.o \
278 lib/dbwrap_rbt.o
280 TDB_VALIDATE_OBJ = lib/tdb_validate.o
282 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
284 VERSION_OBJ = lib/version.o
286 WBCOMMON_OBJ = ../nsswitch/wb_common.o
288 AFS_OBJ = lib/afs.o
290 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
292 AVAHI_OBJ = @AVAHI_OBJ@
294 SERVER_MUTEX_OBJ = lib/server_mutex.o
296 PASSCHANGE_OBJ = libsmb/passchange.o
298 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
299 ../librpc/ndr/ndr_compression.o \
300 librpc/gen_ndr/ndr_drsuapi.o \
301 ../librpc/ndr/ndr_drsblobs.o \
302 librpc/gen_ndr/ndr_drsblobs.o
304 ZLIB_OBJ = @ZLIB_OBJS@
306 COMPRESSION_OBJ = ../lib/compression/mszip.o \
307 ../lib/compression/lzxpress.o \
308 $(ZLIB_OBJ)
310 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
311 $(COMPRESSION_OBJ)
313 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
314 ../librpc/ndr/ndr_ntlmssp.o
316 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
317 ../librpc/ndr/ndr.o \
318 ../librpc/ndr/ndr_misc.o \
319 librpc/gen_ndr/ndr_misc.o \
320 librpc/gen_ndr/ndr_security.o \
321 ../librpc/ndr/ndr_sec_helper.o \
322 ../librpc/ndr/ndr_string.o \
323 ../librpc/ndr/uuid.o \
324 librpc/ndr/util.o \
325 librpc/gen_ndr/ndr_server_id.o \
326 librpc/gen_ndr/ndr_dcerpc.o
328 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
329 librpc/gen_ndr/ndr_lsa.o
331 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
332 ../librpc/ndr/ndr_netlogon.o
334 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
335 ../librpc/ndr/ndr_schannel.o
337 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
338 ../librpc/ndr/ndr_spoolss_buf.o
340 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
341 ../librpc/ndr/ndr_ntprinting.o
343 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
344 ../librpc/ndr/ndr_preg.o
346 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
347 ../librpc/ndr/ndr_xattr.o
349 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss_c.o \
350 rpc_client/cli_spoolss.o \
351 rpc_client/init_spoolss.o \
352 rpc_client/cli_winreg_spoolss.o \
353 printing/nt_printing_os2.o
355 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/ndr_eventlog_c.o
357 LIBCLI_WINREG_OBJ = librpc/gen_ndr/ndr_winreg_c.o \
358 rpc_client/cli_winreg.o
360 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
361 rpc_client/cli_winreg_int.o
363 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/ndr_ntsvcs_c.o
365 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/ndr_drsuapi_c.o
367 LIBCLI_DFS_OBJ = librpc/gen_ndr/ndr_dfs_c.o
369 LIBCLI_ECHO_OBJ = librpc/gen_ndr/ndr_echo_c.o
371 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/ndr_initshutdown_c.o
373 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/ndr_dssetup_c.o
375 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/ndr_svcctl_c.o
377 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/ndr_wkssvc_c.o
379 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/ndr_srvsvc_c.o
381 LIBCLI_LSA_OBJ = librpc/gen_ndr/ndr_lsa_c.o \
382 rpc_client/cli_lsarpc.o \
383 rpc_client/init_lsa.o
385 LIBCLI_SAMR_OBJ = librpc/gen_ndr/ndr_samr_c.o \
386 rpc_client/cli_samr.o
388 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon_c.o \
389 rpc_client/cli_netlogon.o \
390 rpc_client/util_netlogon.o
392 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/ndr_epmapper_c.o
394 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
395 $(LIBNDR_GEN_OBJ0) \
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_epmapper.o \
405 librpc/gen_ndr/ndr_ntsvcs.o \
406 $(LIBNDR_SPOOLSS_OBJ)
408 # this includes only the low level parse code, not stuff
409 # that requires knowledge of security contexts
410 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
412 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
414 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
415 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
417 LIBSAMBAUTIL_OBJ = \
418 $(LIBREPLACE_OBJ) \
419 $(SOCKET_WRAPPER_OBJ) \
420 $(NSS_WRAPPER_OBJ)
422 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
423 ../lib/util/xfile.o ../lib/util/util_strlist.o \
424 ../lib/util/util_file.o ../lib/util/data_blob.o \
425 ../lib/util/util.o ../lib/util/fsusage.o \
426 ../lib/util/params.o ../lib/util/talloc_stack.o \
427 ../lib/util/genrand.o ../lib/util/util_net.o \
428 ../lib/util/become_daemon.o ../lib/util/system.o \
429 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
430 ../lib/util/tevent_werror.o \
431 ../lib/util/smb_threads.o ../lib/util/util_id.o \
432 ../lib/util/blocking.o ../lib/util/rfc1738.o \
433 ../lib/util/select.o ../lib/util/util_pw.o
435 CRYPTO_OBJ = ../lib/crypto/crc32.o @CRYPTO_MD5_OBJ@ \
436 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
437 ../lib/crypto/md4.o \
438 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
439 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
441 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
442 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
443 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
444 lib/interfaces.o lib/memcache.o \
445 lib/talloc_dict.o \
446 lib/serverid.o \
447 lib/util_sconn.o \
448 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
449 lib/addrchange.o \
450 $(TDB_LIB_OBJ) \
451 $(VERSION_OBJ) lib/charcnv.o ../lib/util/debug.o ../lib/util/debug_s3.o lib/fault.o \
452 lib/interface.o lib/pidfile.o \
453 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
454 lib/username.o \
455 ../libds/common/flag_mapping.o \
456 lib/access.o lib/smbrun.o \
457 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
458 lib/wins_srv.o \
459 lib/util_str.o lib/clobber.o lib/util_sid.o \
460 lib/util_unistr.o ../lib/util/charset/codepoints.o lib/util_file.o \
461 lib/util.o lib/util_cmdline.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/errmap_unix.o \
465 lib/tallocmsg.o lib/dmallocmsg.o \
466 libsmb/clisigning.o libsmb/smb_signing.o \
467 ../lib/util/charset/iconv.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 \
471 lib/server_contexts.o \
472 lib/ldap_escape.o @CHARSET_STATIC@ \
473 lib/secdesc.o ../libcli/security/access_check.o \
474 ../libcli/security/secace.o ../libcli/security/object_tree.o \
475 ../libcli/security/sddl.o \
476 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
477 lib/fncall.o \
478 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
479 lib/file_id.o lib/idmap_cache.o \
480 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
481 ../libcli/security/security_token.o ../libcli/security/util_sid.o
483 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
484 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
486 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
488 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
489 # Be sure to include them into your application
490 POPT_LIB_OBJ = lib/popt_common.o
492 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
493 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
494 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
496 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
498 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
499 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
500 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
502 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
504 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
505 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
506 libgpo/gpo_reg.o \
507 $(GPEXT_OBJ)
508 LIBGPO_OBJ = $(LIBGPO_OBJ0)
510 LIBADS_OBJ = libads/ldap.o \
511 libads/sasl.o libads/sasl_wrapping.o \
512 libads/krb5_setpw.o \
513 libads/kerberos_util.o \
514 libads/ldap_user.o \
515 libads/ads_struct.o libads/kerberos_keytab.o \
516 libads/disp_sec.o libads/ldap_utils.o \
517 libads/ldap_schema.o libads/util.o libads/ndr.o
519 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
520 ../librpc/ndr/ndr_krb5pac.o \
521 librpc/gen_ndr/ndr_krb5pac.o
523 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
525 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
526 librpc/gen_ndr/ndr_secrets.o
528 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
529 ../libcli/netlogon/netlogon.o \
530 ../libcli/netlogon/ndr_netlogon.o \
531 librpc/gen_ndr/ndr_nbt.o \
532 librpc/gen_ndr/ndr_svcctl.o \
533 ../librpc/ndr/ndr_svcctl.o
535 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
536 libsmb/namequery.o ../libcli/nbt/lmhosts.o libsmb/conncache.o \
537 libads/dns.o libads/sitename_cache.o
539 NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
540 DOSERR_OBJ = ../libcli/util/doserr.o
541 ERRORMAP_OBJ = libsmb/errormap.o
542 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
544 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
546 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
548 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
549 $(SECRETS_OBJ)
551 LIBSMB_OBJ0 = \
552 ../libcli/auth/ntlm_check.o \
553 libsmb/ntlmssp.o \
554 libsmb/ntlmssp_wrap.o \
555 ../libcli/auth/ntlmssp.o \
556 ../libcli/auth/ntlmssp_sign.o \
557 $(LIBNDR_NTLMSSP_OBJ) \
558 ../libcli/auth/ntlmssp_ndr.o \
559 ../libcli/auth/ntlmssp_server.o
561 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
562 $(LIBSMB_ERR_OBJ)
564 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
565 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o lib/ldb_compat.o
567 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
568 ../lib/tsocket/tsocket_helpers.o \
569 ../lib/tsocket/tsocket_bsd.o
571 CLDAP_OBJ = libads/cldap.o \
572 ../libcli/cldap/cldap.o \
573 ../lib/util/idtree.o \
574 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
576 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
578 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
579 ../libcli/auth/schannel_sign.o \
580 ../libcli/auth/schannel_state_tdb.o \
581 $(LIBNDR_SCHANNEL_OBJ)
583 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
584 libsmb/clikrb5.o libsmb/clispnego.o \
585 ../libcli/auth/spnego_parse.o \
586 ../lib/util/asn1.o \
587 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
588 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
589 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
590 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
591 libsmb/clioplock.o libsmb/clirap2.o \
592 libsmb/smb_seal.o libsmb/async_smb.o \
593 libsmb/cli_np_tstream.o \
594 libsmb/smbsock_connect.o \
595 $(LIBSAMBA_OBJ) \
596 $(LIBNMB_OBJ) \
597 $(LIBNBT_OBJ) \
598 $(CLDAP_OBJ) \
599 $(DRSUAPI_OBJ)
601 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
602 rpc_client/cli_pipe.o \
603 librpc/crypto/gse_krb5.o \
604 librpc/crypto/gse.o \
605 librpc/crypto/cli_spnego.o \
606 librpc/rpc/rpc_common.o \
607 rpc_client/rpc_transport_np.o \
608 rpc_client/rpc_transport_sock.o \
609 rpc_client/rpc_transport_tstream.o \
610 ../librpc/rpc/binding.o \
611 ../librpc/rpc/dcerpc_util.o \
612 ../librpc/rpc/binding_handle.o \
613 librpc/rpc/dcerpc_helpers.o \
614 $(LIBCLI_EPMAPPER_OBJ)
616 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
619 # registry-related objects
621 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
623 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
624 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
625 REG_INIT_FULL_OBJ = registry/reg_init_full.o
627 REGFIO_OBJ = registry/regfio.o \
628 $(REG_PARSE_PRS_OBJ)
630 REG_API_REGF_OBJ = registry/reg_api_regf.o
632 REGOBJS_OBJ = registry/reg_objects.o
634 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
636 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
638 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
639 registry/reg_backend_shares.o \
640 registry/reg_backend_netlogon_params.o \
641 registry/reg_backend_prod_options.o \
642 registry/reg_backend_tcpip_params.o \
643 registry/reg_backend_hkpt_params.o \
644 registry/reg_backend_current_version.o \
645 registry/reg_backend_perflib.o
647 REG_BASE_OBJ = registry/reg_api.o \
648 registry/reg_dispatcher.o \
649 registry/reg_cachehook.o \
650 $(REGOBJS_OBJ) \
651 registry/reg_util_internal.o \
652 lib/util_nttoken.o \
653 $(REG_BACKENDS_BASE_OBJ) \
654 $(REG_INIT_BASIC_OBJ)
656 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
657 registry/reg_util_token.o \
658 registry/reg_api_util.o \
659 $(REG_BACKENDS_SMBCONF_OBJ) \
660 $(REG_INIT_SMBCONF_OBJ)
662 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
663 $(REG_BACKENDS_EXTRA_OBJ) \
664 $(REG_INIT_FULL_OBJ) \
665 registry/reg_perfcount.o \
666 librpc/gen_ndr/ndr_perfcount.o
668 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
670 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
672 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
673 librpc/gen_ndr/srv_lsa.o
675 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
676 librpc/gen_ndr/srv_netlogon.o
678 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
679 rpc_server/samr/srv_samr_util.o \
680 rpc_server/samr/srv_samr_chgpasswd.o \
681 librpc/gen_ndr/srv_samr.o
683 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
685 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
686 librpc/gen_ndr/srv_winreg.o
688 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
690 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
691 librpc/gen_ndr/srv_srvsvc.o
693 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
694 rpc_server/wkssvc/srv_wkssvc_nt.o
696 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
697 rpc_server/svcctl/srv_svcctl_reg.o \
698 librpc/gen_ndr/srv_svcctl.o \
699 services/svc_winreg_glue.o \
700 services/svc_spoolss.o services/svc_rcinit.o \
701 services/svc_netlogon.o services/svc_winreg.o \
702 services/svc_wins.o
704 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
705 librpc/gen_ndr/srv_ntsvcs.o
707 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
708 rpc_server/dfs/srv_dfs_nt.o
710 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
711 rpc_server/spoolss/srv_spoolss_util.o \
712 librpc/gen_ndr/srv_spoolss.o
714 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
715 rpc_server/eventlog/srv_eventlog_reg.o \
716 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
718 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
719 librpc/gen_ndr/ndr_named_pipe_auth.o \
720 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o
722 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
723 rpc_server/rpc_handles.o rpc_server/srv_access_check.o
725 RPC_SERVICE = rpc_server/rpc_server.o
727 RPC_CRYPTO = rpc_server/dcesrv_ntlmssp.o \
728 rpc_server/dcesrv_gssapi.o \
729 rpc_server/dcesrv_spnego.o
731 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
732 $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
734 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
736 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
738 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_setup.o $(DCE_RPC_EP_OBJ)
740 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
741 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
742 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
743 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
744 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
745 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
746 $(LIBCLI_SPOOLSS_OBJ) \
747 $(LIBCLI_WINREG_INT_OBJ) \
748 $(LIBCLI_SRVSVC_OBJ) \
749 $(LIBCLI_LSA_OBJ) \
750 $(LIBCLI_SAMR_OBJ) \
751 $(LIBCLI_NETLOGON_OBJ) \
752 $(RPC_SERVER_REGISTER_OBJ) \
753 $(RPC_CLIENT_SCHANNEL_OBJ) \
754 rpc_client/init_netlogon.o \
755 rpc_client/init_samr.o
757 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
759 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
761 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
763 PRIVILEGES_OBJ = lib/privileges.o
765 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
767 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
768 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
769 lib/util_unixsids.o passdb/lookup_sid.o \
770 passdb/login_cache.o @PDB_STATIC@ \
771 passdb/account_pol.o $(PRIVILEGES_OBJ) \
772 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
773 passdb/pdb_util.o
775 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
776 CP850_OBJ = modules/CP850.o
777 CP437_OBJ = modules/CP437.o
778 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
780 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
782 PROFILE_OBJ = profile/profile.o
783 PROFILES_OBJ = utils/profiles.o \
784 $(LIBSMB_ERR_OBJ) \
785 $(PARAM_OBJ) \
786 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
787 $(POPT_LIB_OBJ) \
788 $(REGFIO_OBJ)
790 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
791 smbd/oplock_onefs.o
793 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
794 librpc/gen_ndr/ndr_notify.o librpc/gen_ndr/ndr_file_id.o
796 FNAME_UTIL_OBJ = lib/filename_util.o
798 VFS_DEFAULT_OBJ = modules/vfs_default.o
799 VFS_AUDIT_OBJ = modules/vfs_audit.o
800 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
801 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
802 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
803 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
804 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
805 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
806 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
807 VFS_CAP_OBJ = modules/vfs_cap.o
808 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
809 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
810 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
811 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
812 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
813 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
814 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
815 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
816 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
817 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
818 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
819 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
820 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
821 VFS_CATIA_OBJ = modules/vfs_catia.o
822 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
823 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
824 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
825 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
826 VFS_COMMIT_OBJ = modules/vfs_commit.o
827 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
828 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
829 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
830 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
831 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
832 VFS_FILEID_OBJ = modules/vfs_fileid.o
833 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
834 VFS_AIO_PTHREAD_OBJ = modules/vfs_aio_pthread.o
835 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
836 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
837 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
838 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
839 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
840 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
841 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
842 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
843 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
844 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
845 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
846 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
847 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
848 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
849 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
850 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
852 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
853 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
855 SLCACHE_OBJ = libsmb/samlogon_cache.o
857 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
859 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
860 AUTH_DOMAIN_OBJ = auth/auth_domain.o
861 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
862 AUTH_SERVER_OBJ = auth/auth_server.o
863 AUTH_UNIX_OBJ = auth/auth_unix.o
864 AUTH_WINBIND_OBJ = auth/auth_winbind.o
865 AUTH_WBC_OBJ = auth/auth_wbc.o
866 AUTH_SCRIPT_OBJ = auth/auth_script.o
867 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
869 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
870 auth/server_info.o \
871 auth/server_info_sam.o \
872 auth/user_info.o \
873 auth/user_util.o \
874 auth/user_krb5.o \
875 auth/auth_compat.o auth/auth_ntlmssp.o \
876 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
878 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
880 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o smbd/msg_idmap.o
882 BUILDOPT_OBJ = smbd/build_options.o
884 SMBD_OBJ_SRV = smbd/server_reload.o \
885 smbd/files.o smbd/connection.o \
886 smbd/utmp.o smbd/session.o \
887 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
888 smbd/share_access.o smbd/fileio.o \
889 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
890 smbd/message.o smbd/nttrans.o smbd/pipes.o \
891 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
892 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
893 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
894 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
895 smbd/posix_acls.o lib/sysacls.o \
896 smbd/process.o smbd/service.o smbd/error.o \
897 rpc_server/epmd.o \
898 printing/printspoolss.o printing/spoolssd.o \
899 lib/sysquotas.o lib/sysquotas_linux.o \
900 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
901 lib/sysquotas_nfs.o \
902 smbd/fake_file.o \
903 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
904 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
905 smbd/dmapi.o smbd/signing.o \
906 smbd/file_access.o \
907 smbd/dnsregister.o smbd/globals.o \
908 smbd/smb2_server.o \
909 smbd/smb2_signing.o \
910 smbd/smb2_glue.o \
911 smbd/smb2_negprot.o \
912 smbd/smb2_sesssetup.o \
913 smbd/smb2_tcon.o \
914 smbd/smb2_create.o \
915 smbd/smb2_close.o \
916 smbd/smb2_flush.o \
917 smbd/smb2_read.o \
918 smbd/smb2_write.o \
919 smbd/smb2_lock.o \
920 smbd/smb2_ioctl.o \
921 smbd/smb2_keepalive.o \
922 smbd/smb2_find.o \
923 smbd/smb2_notify.o \
924 smbd/smb2_getinfo.o \
925 smbd/smb2_setinfo.o \
926 smbd/smb2_break.o \
927 ../libcli/smb/smb2_create_blob.o \
928 $(MANGLE_OBJ) @VFS_STATIC@
930 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
931 $(RPC_SERVER_OBJ) \
932 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
933 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
934 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
935 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
936 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
937 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
938 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
939 $(LIBSMBCONF_OBJ) \
940 $(PRIVILEGES_BASIC_OBJ) \
941 $(REGFIO_OBJ) \
942 $(REG_API_REGF_OBJ) \
943 $(LIBNDR_XATTR_OBJ)
945 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
946 printing/print_cups.o printing/print_generic.o \
947 printing/lpq_parse.o printing/load.o \
948 printing/print_iprint.o printing/print_standard.o \
949 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
951 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
952 PRINTBACKEND_OBJ = printing/printing.o \
953 printing/nt_printing.o \
954 printing/nt_printing_tdb.o \
955 printing/nt_printing_migrate.o \
956 printing/nt_printing_migrate_internal.o \
957 printing/nt_printing_ads.o \
958 librpc/gen_ndr/ndr_ntprinting.o \
959 ../librpc/ndr/ndr_ntprinting.o \
960 $(PRINTBASE_OBJ)
962 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
964 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
965 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
966 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
967 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
968 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
969 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
970 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
971 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
972 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
973 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
974 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
975 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
977 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
978 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
979 $(LIBNDR_GEN_OBJ0)
981 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
982 web/swat.o web/neg_lang.o
984 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
985 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
986 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
987 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
988 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
989 $(LIBCLI_SAMR_OBJ) \
990 rpc_client/init_lsa.o
992 STATUS_OBJ = utils/status.o utils/status_profile.o \
993 $(LOCKING_OBJ) $(PARAM_OBJ) \
994 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
995 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
997 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
998 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
1000 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
1001 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1002 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1003 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1004 $(LIBMSRPC_GEN_OBJ) \
1005 $(LIBMSRPC_OBJ) \
1006 $(LIBCLI_SRVSVC_OBJ)
1008 TESTPARM_OBJ = utils/testparm.o \
1009 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1010 $(LIBSMB_ERR_OBJ)
1012 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1013 $(LIB_NONSMBD_OBJ) \
1014 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1016 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1017 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1018 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1020 PASSWD_UTIL_OBJ = utils/passwd_util.o
1022 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1023 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1024 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1025 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1026 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1027 $(LIBCLI_SAMR_OBJ) \
1028 rpc_client/init_lsa.o
1030 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1031 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
1032 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1033 $(LIBCLI_LDAP_NDR_OBJ) \
1034 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1036 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1038 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1040 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1041 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1042 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1043 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1044 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1045 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1046 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1047 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1048 rpcclient/cmd_winreg.o \
1049 $(DISPLAY_SEC_OBJ)
1051 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1052 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1053 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1054 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1055 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1056 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1057 $(LIBCLI_SPOOLSS_OBJ) \
1058 $(LIBCLI_EVENTLOG_OBJ) \
1059 $(LIBCLI_NTSVCS_OBJ) \
1060 $(LIBCLI_DRSUAPI_OBJ) \
1061 $(LIBCLI_DFS_OBJ) \
1062 $(LIBCLI_ECHO_OBJ) \
1063 $(LIBCLI_DSSETUP_OBJ) \
1064 $(LIBCLI_WKSSVC_OBJ) \
1065 $(LIBCLI_SRVSVC_OBJ) \
1066 $(LIBCLI_LSA_OBJ) \
1067 $(LIBCLI_SAMR_OBJ) \
1068 $(LIBCLI_WINREG_OBJ) \
1069 $(LIBCLI_NETLOGON_OBJ) \
1070 $(RPC_CLIENT_SCHANNEL_OBJ) \
1071 rpc_client/init_netlogon.o \
1072 rpc_client/init_samr.o
1074 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1075 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1077 LIBSMBCLIENT_THREAD_OBJ = \
1078 libsmb/libsmb_thread_impl.o \
1079 libsmb/libsmb_thread_posix.o
1081 LIBSMBCLIENT_OBJ0 = \
1082 libsmb/libsmb_cache.o \
1083 libsmb/libsmb_compat.o \
1084 libsmb/libsmb_context.o \
1085 libsmb/libsmb_dir.o \
1086 libsmb/libsmb_file.o \
1087 libsmb/libsmb_misc.o \
1088 libsmb/libsmb_path.o \
1089 libsmb/libsmb_printjob.o \
1090 libsmb/libsmb_server.o \
1091 libsmb/libsmb_stat.o \
1092 libsmb/libsmb_xattr.o \
1093 libsmb/libsmb_setget.o
1095 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1096 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1097 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1098 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1099 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1100 $(LIBCLI_SRVSVC_OBJ) \
1101 $(LIBCLI_LSA_OBJ)
1103 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1105 # This shared library is intended for linking with unit test programs
1106 # to test Samba internals. It's called libbigballofmud.so to
1107 # discourage casual usage.
1109 LIBBIGBALLOFMUD_MAJOR = 0
1111 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1112 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1113 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1115 CLIENT_OBJ1 = client/client.o client/clitar.o \
1116 client/dnsbrowse.o \
1117 $(LIBMSRPC_OBJ)
1119 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1120 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1121 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1122 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1123 $(DISPLAY_SEC_OBJ) \
1124 $(LIBCLI_SRVSVC_OBJ)
1126 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1127 ../lib/smbconf/smbconf_util.o \
1128 ../lib/smbconf/smbconf_txt.o \
1129 lib/smbconf/smbconf_reg.o \
1130 lib/smbconf/smbconf_init.o
1132 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1134 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1135 $(LIB_NONSMBD_OBJ) \
1136 $(PARAM_OBJ) \
1137 $(LIBSMB_ERR_OBJ) \
1138 $(POPT_LIB_OBJ)
1140 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1141 lib/pthreadpool/tests.o
1143 LIBNET_OBJ = libnet/libnet_join.o \
1144 libnet/libnet_keytab.o \
1145 librpc/gen_ndr/ndr_libnet_join.o
1147 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1148 libnet/libnet_dssync_passdb.o \
1149 libnet/libnet_dssync_keytab.o \
1150 ../libcli/drsuapi/repl_decrypt.o
1152 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1153 libnet/libnet_samsync_ldif.o \
1154 libnet/libnet_samsync_passdb.o \
1155 libnet/libnet_samsync_display.o \
1156 libnet/libnet_samsync_keytab.o \
1157 ../libcli/samsync/decrypt.o
1159 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1160 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1161 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1162 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o utils/net_idmap_check.o\
1163 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1164 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1165 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1166 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1167 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1168 utils/net_conf.o utils/net_join.o utils/net_user.o \
1169 utils/net_group.o utils/net_file.o utils/net_registry.o \
1170 auth/token_util.o utils/net_dom.o utils/net_share.o \
1171 utils/net_g_lock.o \
1172 utils/net_serverid.o \
1173 utils/net_eventlog.o \
1174 utils/net_printing.o \
1175 utils/net_rpc_trust.o \
1176 $(LIBNDR_NTPRINTING_OBJ) \
1177 $(LIBNDR_PREG_OBJ) \
1178 $(LIBCLI_SPOOLSS_OBJ) \
1179 $(LIBCLI_WINREG_OBJ) \
1180 $(LIBCLI_DRSUAPI_OBJ) \
1181 $(LIBCLI_INITSHUTDOWN_OBJ) \
1182 $(LIBCLI_DSSETUP_OBJ) \
1183 $(LIBCLI_SVCCTL_OBJ) \
1184 $(LIBCLI_WKSSVC_OBJ) \
1185 $(LIBCLI_SRVSVC_OBJ) \
1186 $(LIBCLI_LSA_OBJ) \
1187 $(LIBCLI_SAMR_OBJ) \
1188 $(LIBCLI_NETLOGON_OBJ) \
1189 $(RPC_CLIENT_SCHANNEL_OBJ) \
1190 rpc_client/init_netlogon.o \
1191 rpc_client/init_samr.o \
1192 registry/reg_parse.o registry/reg_format.o \
1193 registry/reg_parse_internal.o registry/reg_import.o \
1194 lib/cbuf.o lib/srprs.o printing/nt_printing_migrate.o
1196 # these are not processed by make proto
1197 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1199 NET_OBJ = $(NET_OBJ1) \
1200 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1201 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1202 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1203 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1204 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1205 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1206 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1207 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1208 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1209 $(REG_SMBCONF_OBJ) \
1210 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1211 $(LIBSMBCONF_OBJ) \
1212 $(REGFIO_OBJ) \
1213 $(PRIVILEGES_BASIC_OBJ) \
1214 $(LIB_EVENTLOG_OBJ)
1216 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1217 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1218 $(LIBNDR_GEN_OBJ0)
1220 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1221 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1223 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1224 torture/denytest.o torture/mangle_test.o \
1225 torture/nbench.o \
1226 torture/test_async_echo.o \
1227 torture/test_smbsock_any_connect.o \
1228 torture/test_addrchange.o \
1229 torture/test_posix_append.o
1231 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1232 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1233 @LIBWBCLIENT_STATIC@ \
1234 torture/wbc_async.o \
1235 ../nsswitch/wb_reqtrans.o \
1236 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1238 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1239 $(LIB_NONSMBD_OBJ) \
1240 $(LIBNDR_GEN_OBJ0)
1242 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1243 $(LIB_NONSMBD_OBJ) \
1244 $(LIBNDR_GEN_OBJ0)
1246 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1247 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1248 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1250 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1252 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1253 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1254 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1255 $(LIBNDR_GEN_OBJ0)
1257 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1259 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1261 LOG2PCAP_OBJ = utils/log2pcaphex.o
1263 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1264 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1265 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1267 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1268 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1269 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1270 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1271 $(LIBCLI_LSA_OBJ)
1273 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1274 $(PARAM_OBJ) \
1275 $(LIB_NONSMBD_OBJ) \
1276 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1277 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1278 $(LIBCLI_LSA_OBJ)
1280 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1282 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1283 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1284 librpc/gen_ndr/ndr_eventlog.o \
1285 librpc/gen_ndr/ndr_lsa.o
1287 SHARESEC_OBJ0 = utils/sharesec.o
1288 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1289 $(LIBSMB_ERR_OBJ) \
1290 $(POPT_LIB_OBJ)
1292 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1293 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1295 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1296 @libreplacedir@/test/getifaddrs.o \
1297 @libreplacedir@/test/os2_delete.o \
1298 @libreplacedir@/test/strptime.o \
1299 @libreplacedir@/test/main.o \
1300 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1302 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1304 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1305 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1306 $(LIBNDR_GEN_OBJ0)
1308 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1309 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1311 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1312 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1313 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1314 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1315 $(LIBTSOCKET_OBJ) $(PAM_ERRORS_OBJ)
1317 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1319 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1321 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1323 IDMAP_HASH_OBJ = \
1324 winbindd/idmap_hash/idmap_hash.o \
1325 winbindd/idmap_hash/mapfile.o
1327 IDMAP_ADEX_OBJ = \
1328 winbindd/idmap_adex/idmap_adex.o \
1329 winbindd/idmap_adex/cell_util.o \
1330 winbindd/idmap_adex/likewise_cell.o \
1331 winbindd/idmap_adex/provider_unified.o \
1332 winbindd/idmap_adex/gc_util.o \
1333 winbindd/idmap_adex/domain_util.o
1335 WINBINDD_OBJ1 = \
1336 winbindd/winbindd.o \
1337 winbindd/winbindd_group.o \
1338 winbindd/winbindd_util.o \
1339 winbindd/winbindd_cache.o \
1340 winbindd/winbindd_pam.o \
1341 winbindd/winbindd_misc.o \
1342 winbindd/winbindd_cm.o \
1343 winbindd/winbindd_wins.o \
1344 winbindd/winbindd_msrpc.o \
1345 winbindd/winbindd_rpc.o \
1346 winbindd/winbindd_reconnect.o \
1347 winbindd/winbindd_ads.o \
1348 winbindd/winbindd_samr.o \
1349 winbindd/winbindd_dual.o \
1350 winbindd/winbindd_dual_ndr.o \
1351 winbindd/winbindd_dual_srv.o \
1352 librpc/gen_ndr/ndr_wbint_c.o \
1353 librpc/gen_ndr/srv_wbint.o \
1354 librpc/gen_ndr/ndr_wbint.o \
1355 librpc/gen_ndr/ndr_idmap.o \
1356 winbindd/winbindd_async.o \
1357 winbindd/winbindd_creds.o \
1358 winbindd/winbindd_cred_cache.o \
1359 winbindd/winbindd_ccache_access.o \
1360 winbindd/winbindd_domain.o \
1361 winbindd/winbindd_idmap.o \
1362 winbindd/winbindd_locator.o \
1363 winbindd/winbindd_ndr.o \
1364 winbindd/wb_ping.o \
1365 winbindd/wb_lookupsid.o \
1366 winbindd/wb_lookupsids.o \
1367 winbindd/wb_lookupname.o \
1368 winbindd/wb_sid2uid.o \
1369 winbindd/wb_sid2gid.o \
1370 winbindd/wb_uid2sid.o \
1371 winbindd/wb_gid2sid.o \
1372 winbindd/wb_queryuser.o \
1373 winbindd/wb_lookupuseraliases.o \
1374 winbindd/wb_lookupusergroups.o \
1375 winbindd/wb_getpwsid.o \
1376 winbindd/wb_gettoken.o \
1377 winbindd/wb_seqnum.o \
1378 winbindd/wb_seqnums.o \
1379 winbindd/wb_group_members.o \
1380 winbindd/wb_getgrsid.o \
1381 winbindd/wb_query_user_list.o \
1382 winbindd/wb_fill_pwent.o \
1383 winbindd/wb_next_pwent.o \
1384 winbindd/wb_next_grent.o \
1385 winbindd/wb_dsgetdcname.o \
1386 winbindd/winbindd_lookupsid.o \
1387 winbindd/winbindd_lookupsids.o \
1388 winbindd/winbindd_lookupname.o \
1389 winbindd/winbindd_sid_to_uid.o \
1390 winbindd/winbindd_sid_to_gid.o \
1391 winbindd/winbindd_uid_to_sid.o \
1392 winbindd/winbindd_gid_to_sid.o \
1393 winbindd/winbindd_sids_to_xids.o \
1394 winbindd/winbindd_allocate_uid.o \
1395 winbindd/winbindd_allocate_gid.o \
1396 winbindd/winbindd_getpwsid.o \
1397 winbindd/winbindd_getpwnam.o \
1398 winbindd/winbindd_getpwuid.o \
1399 winbindd/winbindd_getsidaliases.o \
1400 winbindd/winbindd_getuserdomgroups.o \
1401 winbindd/winbindd_getgroups.o \
1402 winbindd/winbindd_show_sequence.o \
1403 winbindd/winbindd_getgrgid.o \
1404 winbindd/winbindd_getgrnam.o \
1405 winbindd/winbindd_getusersids.o \
1406 winbindd/winbindd_lookuprids.o \
1407 winbindd/winbindd_setpwent.o \
1408 winbindd/winbindd_getpwent.o \
1409 winbindd/winbindd_endpwent.o \
1410 winbindd/winbindd_setgrent.o \
1411 winbindd/winbindd_getgrent.o \
1412 winbindd/winbindd_endgrent.o \
1413 winbindd/winbindd_dsgetdcname.o \
1414 winbindd/winbindd_getdcname.o \
1415 winbindd/winbindd_list_users.o \
1416 winbindd/winbindd_list_groups.o \
1417 winbindd/winbindd_check_machine_acct.o \
1418 winbindd/winbindd_change_machine_acct.o \
1419 winbindd/winbindd_ping_dc.o \
1420 winbindd/winbindd_pam_auth.o \
1421 winbindd/winbindd_pam_auth_crap.o \
1422 winbindd/winbindd_pam_chauthtok.o \
1423 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1424 winbindd/winbindd_pam_logoff.o \
1425 auth/auth_util.o \
1426 auth/token_util.o \
1427 auth/user_util.o \
1428 auth/check_samsec.o \
1429 auth/server_info.o \
1430 auth/server_info_sam.o \
1431 auth/user_info.o \
1432 auth/pampass.o \
1433 ../nsswitch/wb_reqtrans.o
1435 WINBINDD_OBJ = \
1436 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1437 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1438 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1439 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1440 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1441 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1442 $(RPC_NCACN_NP) $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1443 $(NPA_TSTREAM_OBJ) \
1444 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1445 $(LIBADS_SERVER_OBJ) \
1446 $(TDB_VALIDATE_OBJ) \
1447 $(LIBCLI_DSSETUP_OBJ) \
1448 $(LIBCLI_LSA_OBJ) \
1449 $(LIBCLI_SAMR_OBJ) \
1450 $(LIBCLI_NETLOGON_OBJ) \
1451 rpc_client/init_netlogon.o \
1452 rpc_client/init_samr.o \
1453 $(PAM_ERRORS_OBJ)
1455 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1456 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1457 lib/winbind_util.o $(WBCOMMON_OBJ)
1459 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1461 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1462 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1464 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1465 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1467 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1468 ../lib/iniparser_build/strlib.o
1470 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1471 $(SOCKET_WRAPPER_OBJ)
1473 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1474 $(SOCKET_WRAPPER_OBJ)
1476 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1477 $(SOCKET_WRAPPER_OBJ)
1479 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1480 $(SOCKET_WRAPPER_OBJ)
1482 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1483 $(SOCKET_WRAPPER_OBJ)
1486 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1488 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1489 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o libads/kerberos.o \
1490 libsmb/samlogon_cache.o \
1491 $(LIBADS_SERVER_OBJ) \
1492 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1493 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1494 $(WBCOMMON_OBJ) \
1495 $(LIBCLI_LDAP_NDR_OBJ) \
1496 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1499 VLP_OBJ = printing/tests/vlp.o \
1500 ../lib/util/util_tdb.o \
1501 $(LIBSAMBAUTIL_OBJ) \
1502 param/util.o
1504 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1505 $(LIBSMB_OBJ) \
1506 $(PARAM_OBJ) \
1507 $(PASSDB_OBJ) \
1508 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1509 $(LIB_NONSMBD_OBJ) \
1510 $(KRBCLIENT_OBJ) \
1511 $(LIBMSRPC_OBJ) \
1512 $(LIBMSRPC_GEN_OBJ)
1514 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1515 $(PARAM_OBJ) \
1516 $(LIB_NONSMBD_OBJ) \
1517 $(LIBSMB_ERR_OBJ)
1519 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1520 $(PARAM_OBJ) \
1521 $(LIB_NONSMBD_OBJ) \
1522 $(LIBSMB_ERR_OBJ) \
1523 $(POPT_LIB_OBJ)
1525 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1526 $(PARAM_OBJ) \
1527 $(LIB_NONSMBD_OBJ) \
1528 $(POPT_LIB_OBJ) \
1529 $(LIBSAMBA_OBJ)
1531 ######################################################################
1532 # now the rules...
1533 ######################################################################
1534 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1535 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1536 $(EXTRA_ALL_TARGETS)
1538 basics:: samba3-idl
1540 nss_modules:: $(NSS_MODULES)
1542 pam_modules:: $(PAM_MODULES)
1544 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1546 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1548 gpext_modules:: $(GPEXT_MODULES)
1550 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1552 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1554 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1556 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1558 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1560 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1562 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1564 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1566 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1568 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1570 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1572 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1574 talloctort : SHOWFLAGS $(TALLOCTORT)
1576 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1578 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1580 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest@EXEEXT@
1582 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1584 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1585 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1586 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1588 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1590 modules:: SHOWFLAGS $(MODULES)
1593 #####################################################################
1594 ## Perl IDL Compiler
1596 IDL_FILES = librpc/idl/messaging.idl \
1597 librpc/idl/libnetapi.idl \
1598 librpc/idl/notify.idl \
1599 librpc/idl/wbint.idl \
1600 librpc/idl/perfcount.idl \
1601 librpc/idl/secrets.idl \
1602 librpc/idl/libnet_join.idl \
1603 librpc/idl/server_id.idl
1605 samba3-idl::
1606 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1607 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1608 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1609 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1611 idl_full::
1612 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1613 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1614 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1615 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1617 #####################################################################
1620 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1621 $(EVERYTHING_PROGS) \
1622 vfs_examples
1624 .SUFFIXES:
1625 .SUFFIXES: .c .o .lo
1627 .PHONY: showflags SHOWFLAGS
1629 showflags: SHOWFLAGS
1631 SHOWFLAGS::
1632 @echo "Using CFLAGS = $(CFLAGS)"
1633 @echo " PICFLAG = $(PICFLAG)"
1634 @echo " LIBS = $(LIBS)"
1635 @echo " LDFLAGS = $(LDFLAGS)"
1636 @echo " DYNEXP = $(DYNEXP)"
1637 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1638 @echo " SHLIBEXT = @SHLIBEXT@"
1639 @echo " SONAMEFLAG = @SONAMEFLAG@"
1641 # "showcflags" target for debuggin how CFLAGS are composed:
1643 .PHONY: showcflags SHOWCFLAGS
1645 showcflags: SHOWCFLAGS
1647 SHOWCFLAGS::
1648 @echo "CFLAGS = $(CFLAGS)"
1649 @echo "FLAGS = $(FLAGS)"
1650 @echo ""
1651 @echo "FLAGS1 = @FLAGS1@"
1652 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1653 @echo "CPPFLAGS = $(CPPFLAGS)"
1654 @echo "ISA = $(ISA)"
1656 MAKEDIR = || exec false; \
1657 if test -d "$$dir"; then :; else \
1658 echo mkdir "$$dir"; \
1659 mkdir -p "$$dir" >/dev/null 2>&1 || \
1660 test -d "$$dir" || \
1661 mkdir "$$dir" || \
1662 exec false; fi || exec false
1664 # Run a static checker.
1665 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1666 # Compile a source file.
1667 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1668 # Compile a source file with the installation paths defined.
1669 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1671 COMPILE = $(COMPILE_CC)
1673 .c.o:
1674 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1675 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1676 @if test -n "$(CC_CHECKER)"; then \
1677 echo "Checking $*.c with '$(CC_CHECKER)'";\
1678 $(CHECK_CC); \
1680 @echo Compiling $*.c
1681 @$(COMPILE) && exit 0;\
1682 echo "The following command failed:" 1>&2;\
1683 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1684 $(COMPILE_CC) >/dev/null 2>&1
1685 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1687 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1689 # this adds support for precompiled headers. To use it, install a snapshot
1690 # of gcc-3.4 and run 'make pch' before you do the main build.
1691 pch::
1692 rm -f $(PRECOMPILED_HEADER)
1693 $(MAKE) $(PRECOMPILED_HEADER)
1695 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1696 $(COMPILE)
1698 BINARY_PREREQS = bin/.dummy
1700 # These dependencies are only approximately correct: we want to make
1701 # sure Samba's paths are updated if ./configure is re-run. Really it
1702 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1703 # but since we also require "make install prefix=/opt/samba" *not* to
1704 # rebuild it's a bit hard.
1706 dynconfig.o: dynconfig.c Makefile
1707 @echo Compiling $*.c
1708 @$(COMPILE_CC_PATH) && exit 0;\
1709 echo "The following command failed:" 1>&2;\
1710 echo "$(COMPILE_CC_PATH)" 1>&2;\
1711 $(COMPILE_CC_PATH) >/dev/null 2>&1
1713 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1714 @echo Compiling $*.c
1715 @$(COMPILE_CC_PATH) && exit 0;\
1716 echo "The following command failed:" 1>&2;\
1717 echo "$(COMPILE_CC_PATH)" 1>&2;\
1718 $(COMPILE_CC_PATH) >/dev/null 2>&1
1720 ### Start section of object files that require PTHREAD_CFLAGS
1721 ../nsswitch/wins.o: ../nsswitch/wins.c
1722 @echo Compiling $*.c
1723 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1724 echo "The following command failed:" 1>&2;\
1725 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1726 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1728 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1729 @echo Compiling $*.c
1730 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1731 echo "The following command failed:" 1>&2;\
1732 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1733 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1735 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1736 @echo Compiling $*.c
1737 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1738 echo "The following command failed:" 1>&2;\
1739 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1740 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1742 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1743 @echo Compiling $*.c
1744 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1745 echo "The following command failed:" 1>&2;\
1746 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1747 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1748 ### End section of object files that require PTHREAD_CFLAGS
1750 lib/pidfile.o: lib/pidfile.c
1751 @echo Compiling $*.c
1752 @$(COMPILE_CC_PATH) && exit 0;\
1753 echo "The following command failed:" 1>&2;\
1754 echo "$(COMPILE_CC_PATH)" 1>&2;\
1755 $(COMPILE_CC_PATH) >/dev/null 2>&1
1757 lib/version.o: lib/version.c include/version.h
1758 @echo Compiling $*.c
1759 @$(COMPILE_CC_PATH) && exit 0;\
1760 echo "The following command failed:" 1>&2;\
1761 echo "$(COMPILE_CC_PATH)" 1>&2;\
1762 $(COMPILE_CC_PATH) >/dev/null 2>&1
1764 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1765 @echo Compiling $*.c
1766 @$(COMPILE_CC_PATH) && exit 0;\
1767 echo "The following command failed:" 1>&2;\
1768 echo "$(COMPILE_CC_PATH)" 1>&2;\
1769 $(COMPILE_CC_PATH) >/dev/null 2>&1
1771 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1772 @echo Generating $@
1773 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1775 bin/.dummy:
1776 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1777 dir=bin $(MAKEDIR); fi
1778 @: >> $@ || : > $@ # what a fancy emoticon!
1780 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1781 @echo Linking $@
1782 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1783 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1784 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1785 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) \
1786 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1788 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1789 @echo Linking $@
1790 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1791 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1792 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1793 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1795 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1796 @echo Linking $@
1797 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1798 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1799 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1801 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1802 @echo Linking $@
1803 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1804 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1805 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) \
1806 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1808 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1809 @echo Linking $@
1810 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1811 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1812 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1813 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1815 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1816 @echo Linking $@
1817 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1818 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1819 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1820 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1821 $(ZLIB_LIBS)
1823 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1824 @echo Linking $@
1825 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1826 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1828 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1829 @echo Linking $@
1830 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1831 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1832 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1834 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1835 @echo Linking $@
1836 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1837 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1839 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1840 @echo Linking $@
1841 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1842 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1844 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1845 @echo Linking $@
1846 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1847 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1849 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1850 @echo Linking $@
1851 @$(CC) -DUSING_SMBCONTROL -o $@ \
1852 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1853 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1854 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1856 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1857 @echo Linking $@
1858 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1859 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1860 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1862 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1863 @echo Linking $@
1864 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1865 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1866 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1868 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1869 @echo Linking $@
1870 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1871 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1872 $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1874 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1875 @echo Linking $@
1876 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1877 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1878 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1880 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1881 @echo Linking $@
1882 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1883 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1885 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1886 @echo Linking $@
1887 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1888 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1889 $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1891 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1892 @echo Linking $@
1893 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1894 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1895 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1897 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1898 @echo Linking $@
1899 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1900 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1902 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1903 @echo Linking $@
1904 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1905 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1906 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1908 bin/pthreadpooltest@EXEEXT@: $(PTHREADPOOLTEST_OBJ)
1909 @echo Linking $@
1910 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) -lpthread
1912 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1913 @echo Linking $@
1914 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1915 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1916 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1917 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1919 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1920 @echo Linking $@
1921 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1922 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1923 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1925 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1926 @echo Linking $@
1927 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1928 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1929 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1931 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1932 @echo Linking $@
1933 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1934 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1935 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1937 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1938 @echo Linking $@
1939 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1940 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1942 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1943 @echo Linking $@
1944 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1945 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1947 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1948 @echo Linking $@
1949 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1950 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1951 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1952 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1954 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1955 @echo Linking $@
1956 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1958 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1959 @echo Linking $@
1960 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1961 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1962 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1964 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1965 @echo Linking $@
1966 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1967 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1968 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1969 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) \
1970 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1972 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
1973 @echo Linking $@
1974 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1975 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1976 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
1978 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1979 @echo Linking $@
1980 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1981 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1983 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1984 @echo Linking $@
1985 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1986 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1987 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1988 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1990 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1991 @echo Linking $@
1992 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1993 $(LIBS) $(LIBTALLOC_LIBS)
1995 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
1996 @echo Linking $@
1997 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1998 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1999 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2000 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2002 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2003 @echo Linking $@
2004 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2007 #####################################################################
2009 # libraries
2011 #####################################################################
2013 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2016 #-------------------------------------------------------------------
2018 # libtalloc
2020 #-------------------------------------------------------------------
2023 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2024 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2026 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2027 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2028 LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@
2029 LIBTALLOC_SHARED_TARGET_SONAME=@LIBTALLOC_SHARED_TARGET_SOVER@
2030 LIBTALLOC_SHARED_TARGET_FULLVER=@LIBTALLOC_SHARED_TARGET_FULLVER@
2031 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2032 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2033 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2035 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2036 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2038 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2039 @echo Linking shared library $@
2040 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2042 $(LIBTALLOC_SHARED_TARGET_FULLVER): $(LIBTALLOC_SHARED_TARGET_SONAME)
2043 @rm -f $@
2044 @mv -f $(LIBTALLOC_SHARED_TARGET_SONAME) $@
2045 @ln -f -s `basename $@` $(LIBTALLOC_SHARED_TARGET_SONAME)
2047 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_FULLVER)
2048 @rm -f $@
2049 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2051 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2052 @echo Linking non-shared library $@
2053 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2054 libtalloc: $(LIBTALLOC)
2056 cleanlibtalloc::
2057 -rm -f \
2058 $(LIBTALLOC_SYMS) \
2059 $(LIBTALLOC_STATIC_TARGET) \
2060 $(LIBTALLOC_SHARED_TARGET) \
2061 $(LIBTALLOC_SHARED_TARGET_SONAME)
2063 installlibtalloc:: installdirs libtalloc
2064 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2065 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2066 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2067 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2068 -if test -r $(LIBTALLOC_SHARED_TARGET_FULLVER) ; then \
2069 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_FULLVER)` \
2070 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` ; \
2072 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2073 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2074 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2076 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2077 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2078 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2080 uninstalllibtalloc::
2081 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2082 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2083 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2084 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2086 libs:: libtalloc
2087 installlibs:: @INSTALL_LIBTALLOC@
2088 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2089 cleanlibs:: cleanlibtalloc
2090 shlibs test_shlibs: @LIBTALLOC_SHARED@
2092 showlibtalloc:
2093 @echo ""
2094 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2095 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2096 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2097 @echo ""
2098 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2099 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2100 @echo "LIBTALLOC_FULLVER = $(LIBTALLOC_FULLVER)"
2101 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2102 @echo "LIBTALLOC_SHARED TARGET_FULLVER = $(LIBTALLOC_SHARED_TARGET_FULLVER)"
2103 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2104 @echo "LIBTALLOC = $(LIBTALLOC)"
2106 showlibs:: showlibtalloc
2108 #-------------------------------------------------------------------
2110 # libtevent
2112 #-------------------------------------------------------------------
2114 LIBTEVENT_OBJ0 = @LIBTEVENT_OBJ0@
2115 LIBTEVENT_OBJ = $(LIBTEVENT_OBJ0) $(LIBREPLACE_OBJ)
2117 LIBTEVENT_SHARED_TARGET=@LIBTEVENT_SHARED_TARGET@
2118 LIBTEVENT_SOVER=@LIBTEVENT_SOVER@
2119 LIBTEVENT_FULLVER=@LIBTEVENT_FULLVER@
2120 LIBTEVENT_SHARED_TARGET_SONAME=@LIBTEVENT_SHARED_TARGET_SOVER@
2121 LIBTEVENT_SHARED_TARGET_FULLVER=@LIBTEVENT_SHARED_TARGET_FULLVER@
2122 LIBTEVENT_STATIC_TARGET=@LIBTEVENT_STATIC_TARGET@
2123 LIBTEVENT_SYMS=$(srcdir)/exports/libtevent.@SYMSEXT@
2124 LIBTEVENT_HEADERS=$(srcdir)/@teventdir@/tevent.h $(srcdir)/@teventdir@/tevent_internal.h
2126 $(LIBTEVENT_SYMS): $(LIBTEVENT_HEADERS)
2127 @$(MKSYMS_SH) $(AWK) $@ $(LIBTEVENT_HEADERS)
2129 $(LIBTEVENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTEVENT_OBJ) $(LIBTEVENT_SYMS) $(LIBTALLOC)
2130 @echo Linking shared library $@
2131 @$(SHLD_DSO) $(LIBTEVENT_OBJ) $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) @SONAMEFLAG@`basename $@`
2133 $(LIBTEVENT_SHARED_TARGET_FULLVER): $(LIBTEVENT_SHARED_TARGET_SONAME)
2134 @rm -f $@
2135 @mv -f $(LIBTEVENT_SHARED_TARGET_SONAME) $@
2136 @ln -f -s `basename $@` $(LIBTEVENT_SHARED_TARGET_SONAME)
2138 $(LIBTEVENT_SHARED_TARGET): $(LIBTEVENT_SHARED_TARGET_FULLVER)
2139 @rm -f $@
2140 @ln -f -s `basename $(LIBTEVENT_SHARED_TARGET_SONAME)` $@
2142 $(LIBTEVENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTEVENT_OBJ0)
2143 @echo Linking non-shared library $@
2144 @-$(AR) -rc $@ $(LIBTEVENT_OBJ0)
2145 libtevent: $(LIBTEVENT)
2147 cleanlibtevent::
2148 -rm -f \
2149 $(LIBTEVENT_SYMS) \
2150 $(LIBTEVENT_STATIC_TARGET) \
2151 $(LIBTEVENT_SHARED_TARGET) \
2152 $(LIBTEVENT_SHARED_TARGET_SONAME)
2154 installlibtevent:: installdirs libtevent
2155 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2156 -$(INSTALLLIBCMD_SH) $(LIBTEVENT_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2157 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTEVENT_SHARED_TARGET)`
2158 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTEVENT_SHARED_TARGET_SONAME)`
2159 -if test -r $(LIBTEVENT_SHARED_TARGET_FULLVER) ; then \
2160 ln -f -s `basename $(LIBTEVENT_SHARED_TARGET_FULLVER)` \
2161 $(DESTDIR)$(LIBDIR)/`basename $(LIBTEVENT_SHARED_TARGET_SONAME)` ; \
2163 -if test -r $(LIBTEVENT_SHARED_TARGET_SONAME) ; then \
2164 ln -f -s `basename $(LIBTEVENT_SHARED_TARGET_SONAME)` \
2165 $(DESTDIR)$(LIBDIR)/`basename $(LIBTEVENT_SHARED_TARGET)` ; \
2167 -$(INSTALLLIBCMD_A) $(LIBTEVENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2168 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2169 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTEVENT_HEADERS) $(DESTDIR)${prefix}/include
2171 uninstalllibtevent::
2172 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTEVENT_SHARED_TARGET)`
2173 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTEVENT_SHARED_TARGET_SONAME)`
2174 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTEVENT_STATIC_TARGET)`
2175 -rm -f $(DESTDIR)${prefix}/include/tevent.h
2177 libs:: libtevent
2178 installlibs:: @INSTALL_LIBTEVENT@
2179 uninstalllibs:: @UNINSTALL_LIBTEVENT@
2180 cleanlibs:: cleanlibtevent
2181 shlibs test_shlibs: @LIBTEVENT_SHARED@
2183 showlibtevent:
2184 @echo ""
2185 @echo "LIBTEVENT_SHARED = @LIBTEVENT_SHARED@"
2186 @echo "LIBTEVENT_STATIC = @LIBTEVENT_STATIC@"
2187 @echo "LIBTEVENT_LIBS = $(LIBTEVENT_LIBS)"
2188 @echo ""
2189 @echo "LIBTEVENT_SHARED_TARGET = $(LIBTEVENT_SHARED_TARGET)"
2190 @echo "LIBTEVENT_SOVER = $(LIBTEVENT_SOVER)"
2191 @echo "LIBTEVENT_FULLVER = $(LIBTEVENT_FULLVER)"
2192 @echo "LIBTEVENT_SHARED TARGET_SONAME = $(LIBTEVENT_SHARED_TARGET_SONAME)"
2193 @echo "LIBTEVENT_SHARED TARGET_FULLVER = $(LIBTEVENT_SHARED_TARGET_FULLVER)"
2194 @echo "LIBTEVENT_STATIC_TARGET = $(LIBTEVENT_STATIC_TARGET)"
2195 @echo "LIBTEVENT = $(LIBTEVENT)"
2197 showlibs:: showlibtevent
2199 #-------------------------------------------------------------------
2201 # libtdb
2203 #-------------------------------------------------------------------
2205 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2206 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2208 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2209 LIBTDB_SOVER=@LIBTDB_SOVER@
2210 LIBTDB_FULLVER=@LIBTDB_FULLVER@
2211 LIBTDB_SHARED_TARGET_SONAME=@LIBTDB_SHARED_TARGET_SOVER@
2212 LIBTDB_SHARED_TARGET_FULLVER=@LIBTDB_SHARED_TARGET_FULLVER@
2213 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2214 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2215 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2217 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2218 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2221 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2222 @echo Linking shared library $@
2223 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2224 @SONAMEFLAG@`basename $@`
2226 $(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME)
2227 @rm -f $@
2228 @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER)
2229 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME)
2231 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER)
2232 @rm -f $@
2233 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2235 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2236 @echo Linking non-shared library $@
2237 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2239 libtdb: $(LIBTDB)
2241 cleanlibtdb::
2242 -rm -f \
2243 $(LIBTDB_SYMS) \
2244 $(LIBTDB_STATIC_TARGET) \
2245 $(LIBTDB_SHARED_TARGET) \
2246 $(LIBTDB_SHARED_TARGET_SONAME)
2249 installlibtdb:: installdirs libtdb
2250 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2251 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2252 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2253 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2254 -if test -r $(LIBTDB_SHARED_TARGET_FULLVER) ; then \
2255 ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` \
2256 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)` ; \
2258 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2259 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2260 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2262 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2263 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2264 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2266 uninstalllibtdb::
2267 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2268 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2269 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2270 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2272 libs:: libtdb
2273 installlibs:: @INSTALL_LIBTDB@
2274 uninstalllibs:: @UNINSTALL_LIBTDB@
2275 cleanlibs:: cleanlibtdb
2276 shlibs test_shlibs: @LIBTDB_SHARED@
2278 showlibtdb:
2279 @echo ""
2280 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2281 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2282 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2283 @echo ""
2284 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2285 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2286 @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)"
2287 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2288 @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)"
2289 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2290 @echo "LIBTDB = $(LIBTDB)"
2292 showlibs:: showlibtdb
2294 #-------------------------------------------------------------------
2296 # libwbclient
2298 #-------------------------------------------------------------------
2300 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2301 ../nsswitch/libwbclient/wbc_util.o \
2302 ../nsswitch/libwbclient/wbc_pwd.o \
2303 ../nsswitch/libwbclient/wbc_idmap.o \
2304 ../nsswitch/libwbclient/wbc_sid.o \
2305 ../nsswitch/libwbclient/wbc_guid.o \
2306 ../nsswitch/libwbclient/wbc_pam.o
2308 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2309 $(WBCOMMON_OBJ) \
2310 $(LIBREPLACE_OBJ) \
2311 ../lib/util/blocking.o \
2312 $(SOCKET_WRAPPER_OBJ)
2314 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2315 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2316 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2317 LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@
2318 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2319 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2320 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2322 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2323 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2325 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2326 @echo Linking shared library $@
2327 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2328 @SONAMEFLAG@`basename $@`
2330 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2331 @rm -f $@
2332 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2334 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2335 @echo Linking non-shared library $@
2336 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2338 libwbclient: $(LIBWBCLIENT)
2340 cleanlibwbclient::
2341 -rm -f \
2342 $(LIBWBCLIENT_SYMS) \
2343 $(LIBWBCLIENT_STATIC_TARGET) \
2344 $(LIBWBCLIENT_SHARED_TARGET) \
2345 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2347 installlibwbclient:: installdirs libwbclient
2348 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2349 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2350 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2351 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2352 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2353 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2355 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2356 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2357 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2359 uninstalllibwbclient::
2360 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2361 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2362 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2363 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2365 libs:: libwbclient
2366 installlibs:: @INSTALL_LIBWBCLIENT@
2367 uninstalllibs:: uninstalllibwbclient
2368 cleanlibs:: cleanlibwbclient
2369 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2371 showlibwbclient:
2372 @echo ""
2373 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2374 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2375 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2376 @echo ""
2377 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2378 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2379 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2380 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2381 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2382 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2384 showlibs:: showlibwbclient
2387 #-------------------------------------------------------------------
2389 # libaddns
2391 #-------------------------------------------------------------------
2394 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2395 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2396 LIBADDNS_FULLVER=@LIBADDNS_FULLVER@
2397 LIBADDNS_SHARED_TARGET_SONAME=@LIBADDNS_SHARED_TARGET_SOVER@
2398 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2399 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2400 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2401 LIBADDNS_HEADERS=$(srcdir)/../lib/addns/addns.h
2403 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2404 @echo Linking shared library $@
2405 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2406 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2407 @SONAMEFLAG@`basename $@`
2409 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2410 @rm -f $@
2411 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2413 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2414 @echo Linking non-shared library $@
2415 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2417 libaddns: $(LIBADDNS)
2419 cleanlibaddns::
2420 -rm -f \
2421 $(LIBADDNS_SHARED_TARGET) \
2422 $(LIBADDNS_SHARED_TARGET_SONAME) \
2423 $(LIBADDNS_STATIC_TARGET)
2425 installlibaddns:: installdirs libaddns
2426 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2427 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2428 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2429 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2430 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2431 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2433 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2435 uninstalllibaddns::
2436 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2437 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2438 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2440 libs:: libaddns
2441 installlibs:: @INSTALL_LIBADDNS@
2442 uninstalllibs:: @UNINSTALL_LIBADDNS@
2443 cleanlibs:: cleanlibaddns
2444 shlibs test_shlibs: @LIBADDNS_SHARED@
2446 showlibaddns:
2447 @echo ""
2448 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2449 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2450 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2451 @echo ""
2452 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2453 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2454 @echo "LIBADDNS_FULLVER = $(LIBADDNS_FULLVER)"
2455 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2456 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2457 @echo "LIBADDNS = $(LIBADDNS)"
2459 showlibs:: showlibaddns
2461 #-------------------------------------------------------------------
2463 # libnetapi
2465 #-------------------------------------------------------------------
2467 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2468 lib/netapi/cm.o \
2469 librpc/gen_ndr/ndr_libnetapi.o \
2470 lib/netapi/libnetapi.o \
2471 lib/netapi/joindomain.o \
2472 lib/netapi/serverinfo.o \
2473 lib/netapi/getdc.o \
2474 lib/netapi/user.o \
2475 lib/netapi/group.o \
2476 lib/netapi/localgroup.o \
2477 lib/netapi/samr.o \
2478 lib/netapi/sid.o \
2479 lib/netapi/share.o \
2480 lib/netapi/file.o \
2481 lib/netapi/shutdown.o \
2482 lib/netapi/netlogon.o
2484 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2485 $(LIBSMBCONF_OBJ) \
2486 $(REG_SMBCONF_OBJ) \
2487 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2488 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2489 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2490 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2491 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2492 auth/token_util.o \
2493 $(LIBCLI_INITSHUTDOWN_OBJ) \
2494 $(LIBCLI_WKSSVC_OBJ) \
2495 $(LIBCLI_SRVSVC_OBJ) \
2496 $(LIBCLI_LSA_OBJ) \
2497 $(LIBCLI_SAMR_OBJ) \
2498 $(LIBCLI_NETLOGON_OBJ) \
2499 $(RPC_CLIENT_SCHANNEL_OBJ) \
2500 rpc_client/init_netlogon.o \
2501 rpc_client/init_samr.o
2503 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2504 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2505 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2506 LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@
2507 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2508 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2509 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2511 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2512 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2514 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
2515 @echo Linking shared library $@
2516 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2517 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2518 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2519 @SONAMEFLAG@`basename $@`
2521 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2522 @rm -f $@
2523 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2525 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2526 @echo Linking non-shared library $@
2527 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2529 libnetapi: $(LIBNETAPI)
2531 cleanlibnetapi::
2532 -rm -f \
2533 $(LIBNETAPI_SYMS) \
2534 $(LIBNETAPI_STATIC_TARGET) \
2535 $(LIBNETAPI_SHARED_TARGET) \
2536 $(LIBNETAPI_SHARED_TARGET_SONAME)
2538 installlibnetapi:: installdirs libnetapi
2539 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2540 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2541 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2542 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2543 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2544 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2546 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2547 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2548 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2550 uninstalllibnetapi::
2551 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2552 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2553 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2554 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2556 libs:: libnetapi
2557 installlibs:: @INSTALL_LIBNETAPI@
2558 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2559 cleanlibs:: cleanlibnetapi
2560 shlibs test_shlibs: @LIBNETAPI_SHARED@
2562 showlibnetapi:
2563 @echo ""
2564 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2565 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2566 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2567 @echo ""
2568 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2569 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2570 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2571 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2572 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2573 @echo "LIBNETAPI = $(LIBNETAPI)"
2575 showlibs:: showlibnetapi
2577 #-------------------------------------------------------------------
2579 # libsmbclient
2581 #-------------------------------------------------------------------
2583 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2584 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2585 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2586 LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@
2587 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2588 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2589 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2590 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2592 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2593 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2595 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
2596 @echo Linking shared library $@
2597 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2598 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2599 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2600 @SONAMEFLAG@`basename $@`
2602 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2603 @rm -f $@
2604 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2606 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2607 @echo Linking non-shared library $@
2608 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2610 libsmbclient: $(LIBSMBCLIENT)
2612 cleanlibsmbclient::
2613 -rm -f \
2614 $(LIBSMBCLIENT_SHARED_TARGET) \
2615 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2616 $(LIBSMBCLIENT_STATIC_TARGET)
2618 installlibsmbclient:: installdirs libsmbclient
2619 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2620 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2621 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2622 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2623 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2624 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2626 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2627 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2628 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2630 installclientlib:: installlibsmbclient
2632 uninstalllibsmbclient::
2633 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2634 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2635 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2636 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2638 uninstallclientlib:: uninstalllibsmbclient
2640 libs:: libsmbclient
2641 installlibs:: @INSTALL_LIBSMBCLIENT@
2642 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2643 cleanlibs:: cleanlibsmbclient
2644 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2646 showlibsmbclient:
2647 @echo ""
2648 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2649 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2650 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2651 @echo ""
2652 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2653 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2654 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2655 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2656 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2657 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2659 showlibs:: showlibsmbclient
2661 #-------------------------------------------------------------------
2663 # libsmbsharemodes
2665 #-------------------------------------------------------------------
2667 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2669 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2671 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2672 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2673 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2674 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@
2675 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2676 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2677 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2678 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2680 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2681 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2683 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2684 @echo Linking shared library $@
2685 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2686 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2687 @SONAMEFLAG@`basename $@`
2689 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2690 @rm -f $@
2691 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2693 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2694 @echo Linking non-shared library $@
2695 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2697 libsmbsharemodes: $(LIBSMBSHAREMODES)
2699 cleanlibsmbsharemodes::
2700 -rm -f \
2701 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2702 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2703 $(LIBSMBSHAREMODES_STATIC_TARGET)
2705 installlibsmbsharemodes:: installdirs libsmbsharemodes
2706 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2707 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2708 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2709 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2710 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2711 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2713 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2714 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2715 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2717 uninstalllibsmbsharemodes::
2718 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2719 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2720 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2721 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2723 libs:: libsmbsharemodes
2724 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2725 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2726 cleanlibs:: cleanlibsmbsharemodes
2727 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2729 showlibsmbsharemodes:
2730 @echo ""
2731 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2732 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2733 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2734 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2735 @echo ""
2736 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2737 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2738 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2739 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2740 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2741 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2743 showlibs:: showlibsmbsharemodes
2745 #-------------------------------------------------------------------
2747 # libbigballofmud
2749 #-------------------------------------------------------------------
2751 # This is probably wrong for anything other than the GNU linker.
2752 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2753 @echo Linking shared library $@
2754 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2755 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2756 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2757 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2758 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2760 # It would be nice to build a static bigballofmud too, but when I try
2761 # I get linker errors about dl_open and similar things. I'm not sure if
2762 # it can be fixed or if they just can't be called from a static
2763 # library.
2765 #####################################################################
2767 # shared modules
2769 #####################################################################
2771 # Linker command to link our shared libraries:
2772 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2773 -o $@ @SONAMEFLAG@`basename $@`
2774 # Linker command to link samba internal plugin modules:
2775 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2776 -o $@ @SONAMEFLAG@`basename $@`
2778 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2779 @echo "Linking $@"
2780 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2782 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2783 @echo "Linking $@"
2784 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2786 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2787 @echo "Linking $@"
2788 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2790 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2791 @echo "Linking $@"
2792 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2794 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2795 @echo "Linking $@"
2796 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2798 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2799 @echo "Linking $@"
2800 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2802 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2803 @echo "Linking $@"
2804 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2806 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2807 @echo "Linking $@"
2808 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2810 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2811 @echo "Linking $@"
2812 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2814 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2815 @echo "Linking $@"
2816 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2818 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2819 @echo "Linking $@"
2820 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2822 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2823 @echo "Linking $@"
2824 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2826 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2827 @echo "Linking $@"
2828 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2830 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2831 @echo "Linking $@"
2832 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2834 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
2835 @echo "Linking $@"
2836 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2837 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2838 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2839 $(ZLIB_LIBS)
2841 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2842 @echo "Linking $@"
2843 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2844 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2845 $(LIBTDB_LIBS)
2847 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2848 @echo "Linking $@"
2849 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2850 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2851 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2853 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB)
2854 @echo "Linking $@"
2855 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2856 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2857 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2859 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2860 @echo "Linking $@"
2861 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2862 $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2864 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBTEVENT) $(LIBWBCLIENT)
2865 @echo "Linking shared library $@"
2866 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2867 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2869 ##########
2870 # Plugins:
2871 ##########
2873 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2874 @echo "Building plugin $@"
2875 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2877 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2878 @echo "Building plugin $@"
2879 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2881 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2882 @echo "Building plugin $@"
2883 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2885 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2886 @echo "Building plugin $@"
2887 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2889 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2890 @echo "Building plugin $@"
2891 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2893 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2894 @echo "Building plugin $@"
2895 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2897 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2898 @echo "Building plugin $@"
2899 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2901 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2902 @echo "Building plugin $@"
2903 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2905 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2906 @echo "Building plugin $@"
2907 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2909 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2910 passdb/pdb_ipa.o
2911 @echo "Building plugin $@"
2912 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2913 $(LDAP_LIBS)
2915 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2916 @echo "Building plugin $@"
2917 @$(SHLD_MODULE) passdb/pdb_ads.o
2919 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2920 @echo "Building plugin $@"
2921 @$(SHLD_MODULE) passdb/pdb_tdb.o
2923 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2924 @echo "Building plugin $@"
2925 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2927 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2928 @echo "Building plugin $@"
2929 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2931 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2932 @echo "Building plugin $@"
2933 @$(SHLD_MODULE) winbindd/idmap_rid.o
2935 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2936 @echo "Building plugin $@"
2937 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2939 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2940 @echo "Building plugin $@"
2941 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2943 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2944 @echo "Building plugin $@"
2945 @$(SHLD_MODULE) winbindd/idmap_ad.o
2947 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2948 @echo "Building plugin $@"
2949 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2951 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2952 @echo "Building plugin $@"
2953 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2955 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2956 @echo "Building plugin $@"
2957 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2959 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2960 @echo "Building plugin $@"
2961 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2963 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2964 @echo "Building plugin $@"
2965 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2967 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2968 @echo "Building plugin $@"
2969 @$(SHLD_MODULE) $(CP850_OBJ)
2971 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2972 @echo "Building plugin $@"
2973 @$(SHLD_MODULE) $(CP437_OBJ)
2975 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2976 @echo "Building plugin $@"
2977 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2979 # NOTE, there is no build rule for a dynamic default VFS module because
2980 # this one MUST MUST MUST be built statically.
2982 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2983 @echo "Building plugin $@"
2984 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2986 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2987 @echo "Building plugin $@"
2988 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2990 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2991 @echo "Building plugin $@"
2992 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2994 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2995 @echo "Building plugin $@"
2996 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2998 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2999 @echo "Building plugin $@"
3000 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
3002 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
3003 @echo "Building plugin $@"
3004 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
3006 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
3007 @echo "Building plugin $@"
3008 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
3010 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
3011 @echo "Building plugin $@"
3012 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
3014 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
3015 @echo "Building plugin $@"
3016 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
3018 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
3019 @echo "Building plugin $@"
3020 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
3022 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
3023 @echo "Building plugin $@"
3024 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
3026 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
3027 @echo "Building plugin $@"
3028 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
3030 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
3031 @echo "Building plugin $@"
3032 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
3034 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
3035 @echo "Building plugin $@"
3036 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
3038 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
3039 @echo "Building plugin $@"
3040 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
3042 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
3043 @echo "Building plugin $@"
3044 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
3046 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
3047 @echo "Building plugin $@"
3048 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
3050 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
3051 @echo "Building plugin $@"
3052 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
3054 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
3055 @echo "Building plugin $@"
3056 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
3058 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
3059 @echo "Building plugin $@"
3060 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
3062 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
3063 @echo "Building plugin $@"
3064 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
3066 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
3067 @echo "Building plugin $@"
3068 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
3070 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
3071 @echo "Building plugin $@"
3072 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
3074 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
3075 @echo "Building plugin $@"
3076 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
3078 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
3079 @echo "Building plugin $@"
3080 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
3082 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
3083 @echo "Building plugin $@"
3084 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
3086 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
3087 @echo "Building plugin $@"
3088 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
3090 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
3091 @echo "Building plugin $@"
3092 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
3094 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
3095 @echo "Building plugin $@"
3096 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
3098 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
3099 @echo "Building plugin $@"
3100 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
3102 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3103 @echo "Building plugin $@"
3104 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3106 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
3107 @echo "Building plugin $@"
3108 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
3110 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
3111 @echo "Building plugin $@"
3112 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
3114 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
3115 @echo "Building plugin $@"
3116 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
3118 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
3119 @echo "Building plugin $@"
3120 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
3122 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
3123 @echo "Building plugin $@"
3124 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
3126 bin/aio_pthread.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_PTHREAD_OBJ) lib/pthreadpool/pthreadpool.o
3127 @echo "Building plugin $@"
3128 @$(SHLD_MODULE) $(VFS_AIO_PTHREAD_OBJ) lib/pthreadpool/pthreadpool.o -lpthread
3130 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
3131 @echo "Building plugin $@"
3132 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
3134 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3135 @echo "Building plugin $@"
3136 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3138 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3139 @echo "Building plugin $@"
3140 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3142 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3143 @echo "Building plugin $@"
3144 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3146 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3147 @echo "Building plugin $@"
3148 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3150 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3151 @echo "Building plugin $@"
3152 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3154 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3155 @echo "Building plugin $@"
3156 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3158 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3159 @echo "Building plugin $@"
3160 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3162 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3163 @echo "Building plugin $@"
3164 @$(SHLD_MODULE) libgpo/gpext/registry.o
3166 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3167 @echo "Building plugin $@"
3168 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3170 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3171 @echo "Building plugin $@"
3172 @$(SHLD_MODULE) libgpo/gpext/security.o
3174 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3175 @echo "Building plugin $@"
3176 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3178 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3179 @echo "Building plugin $@"
3180 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3182 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3183 @echo "Building plugin $@"
3184 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3186 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3187 @echo "Building plugin $@"
3188 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3190 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3191 @echo "Building plugin $@"
3192 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3194 #########################################################
3195 ## IdMap NSS plugins
3197 ## None here right now
3198 #########################################################
3200 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
3201 @echo Linking $@
3202 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3203 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) \
3204 $(LIBWBCLIENT_LIBS)
3206 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3207 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
3208 @echo Linking $@
3209 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3210 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
3211 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3212 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3214 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBTEVENT) $(LIBWBCLIENT) $(LIBTDB)
3215 @echo "Linking shared library $@"
3216 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3217 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3218 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3220 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3221 @echo Linking $@
3222 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3223 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3225 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3226 @echo Linking $@
3227 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3228 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3230 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3231 @echo Linking $@
3232 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3234 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3235 @echo Linking $@
3236 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3238 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3239 @echo Linking $@
3240 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3241 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3243 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3244 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3245 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3247 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3248 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3249 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3251 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3252 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3253 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3255 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3256 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3257 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3259 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3260 @echo Linking $@
3261 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3263 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
3264 @echo "Linking $@"
3265 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3266 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBWBCLIENT_LIBS) \
3267 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3269 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
3270 @echo "Linking $@"
3271 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3272 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3273 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3274 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
3276 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBTEVENT)
3277 @echo "Linking $@"
3278 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3279 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3280 $(LDAP_LIBS) \
3281 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBTEVENT_LIBS)
3283 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3284 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3286 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBTEVENT)
3287 @echo "Linking $@"
3288 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3289 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3290 $(LDAP_LIBS) \
3291 $(POPT_LIBS) \
3292 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBTEVENT_LIBS)
3294 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3295 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3297 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
3298 @echo "Linking $@"
3299 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3300 $(LDFLAGS) $(DYNEXP) \
3301 $(LIBS) $(POPT_LIBS) \
3302 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3303 $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS)
3305 install:: installservers installbin installman \
3306 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3307 @INSTALL_PAM_MODULES@ installlibs installmo
3309 install-everything:: install installmodules
3311 # DESTDIR is used here to prevent packagers wasting their time
3312 # duplicating the Makefile. Remove it and you will have the privelege
3313 # of package each samba release for muliple versions of multiple
3314 # distributions and operating systems, or at least supplying patches
3315 # to all the packaging files required for this, prior to committing
3316 # the removal of DESTDIR. Do not remove it even though you think it
3317 # is not used
3319 installdirs::
3320 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3321 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3322 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3323 $(NMBDSOCKETDIR) \
3324 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3326 installservers:: all installdirs
3327 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3329 installbin:: all installdirs
3330 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3332 # Some symlinks are required for the 'probing' of modules.
3333 # This mechanism should go at some point..
3334 installmodules:: modules installdirs
3335 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3336 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3337 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3338 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3339 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3340 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3341 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3342 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3343 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3344 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3345 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3346 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3347 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3348 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3349 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3350 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3351 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3352 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3354 installscripts:: installdirs
3355 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3357 installdat:: installdirs
3358 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3360 installmsg:: installdirs
3361 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3363 installswat:: installdirs installmsg
3364 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3366 installpammodules:: $(PAM_MODULES)
3367 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3368 @for module in $(PAM_MODULES); do \
3369 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3370 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3371 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3372 done
3374 # revert to the previously installed version
3375 revert::
3376 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3377 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3379 installman:: installdirs
3380 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3382 installmo:: all installdirs
3383 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3385 .PHONY: showlayout
3387 showlayout::
3388 @echo "Samba will be installed into:"
3389 @echo " prefix: $(prefix)"
3390 @echo " bindir: $(BINDIR)"
3391 @echo " sbindir: $(SBINDIR)"
3392 @echo " libdir: $(LIBDIR)"
3393 @echo " modulesdir: $(MODULESDIR)"
3394 @echo " vardir: $(VARDIR)"
3395 @echo " mandir: $(MANDIR)"
3396 @echo " privatedir: $(PRIVATE_DIR)"
3397 @echo " configdir: $(CONFIGDIR)"
3398 @echo " lockdir: $(LOCKDIR)"
3399 @echo " statedir: $(STATEDIR)"
3400 @echo " cachedir: $(CACHEDIR)"
3401 @echo " piddir: $(PIDDIR)"
3402 @echo " nmbdsocketdir: $(NMBSOCKETDIR)"
3403 @echo " swatdir: $(SWATDIR)"
3404 @echo " datadir: ${DATADIR}"
3405 @echo " codepagedir: $(CODEPAGEDIR)"
3408 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3410 uninstallmo::
3411 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3413 uninstallman::
3414 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3416 uninstallservers::
3417 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3419 uninstallbin::
3420 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3422 uninstallmodules::
3423 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3424 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3425 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3426 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3427 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3428 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3429 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3431 uninstallscripts::
3432 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3434 uninstalldat::
3435 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3437 uninstallmsg::
3438 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3440 uninstallswat:: uninstallmsg
3441 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3443 uninstallpammodules::
3444 @for module in $(PAM_MODULES); do \
3445 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3446 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3447 done
3449 # Toplevel clean files
3450 TOPFILES=dynconfig.o localedir.o
3452 cleanlibs::
3453 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3454 ../lib/*/*.ho \
3455 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3456 ../librpc/*/*.o \
3457 ../libgpo/*.o ../libgpo/*/*.o \
3458 ../libds/*.o ../libds/*/*.o
3460 clean:: cleanlibs
3461 -rm -f include/build_env.h
3462 -rm -f smbd/build_options.c
3463 -rm -f $(PRECOMPILED_HEADER)
3464 -rm -f core */*~ *~ \
3465 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3466 ../testsuite/*/*.o \
3467 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3468 ../client/*.o \
3469 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3470 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3471 $(MODULES) $(TORTURE_PROGS) \
3472 $(EVERYTHING_PROGS) \
3473 bin/timelimit \
3474 .headers.stamp */src/*.o
3475 -rm -rf t_dir
3477 include/build_env.h: script/build_env.sh
3478 @echo Building include/build_env.h
3479 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3480 > $(builddir)/include/build_env.h
3482 proto::
3484 etags::
3485 rm -f TAGS
3486 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3488 ctags::
3489 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3491 realclean:: clean
3492 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3493 -rm -f script/installbin.sh script/uninstallbin.sh
3495 distclean:: realclean
3496 -rm -f smbadduser
3497 -rm -f include/config.h Makefile
3498 -rm -f config.status config.cache so_locations
3499 -rm -rf .deps TAGS
3501 realdistclean:: distclean
3502 -rm -f include/config.h.in
3503 -rm -f include/version.h
3504 -rm -f configure
3506 # this target is really just for my use. It only works on a limited
3507 # range of machines and is used to produce a list of potentially
3508 # dead (ie. unused) functions in the code. (tridge)
3509 finddead::
3510 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3511 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3512 comm -13 nmused.txt nmfns.txt
3515 # when configure.in is updated, reconfigure
3516 $(srcdir)/configure: $(srcdir)/configure.in
3517 @echo "WARNING: you need to rerun ./autogen.sh"
3519 config.status: $(srcdir)/configure
3520 @echo "WARNING: you need to run ./configure"
3522 Makefile: $(srcdir)/Makefile.in config.status
3523 @echo "WARNING: you need to run ./config.status"
3525 ######################################################################
3526 # Samba Testing Framework
3528 # Check shared libs for unresolved symbols
3529 test_shlibs:
3530 @echo "Testing $? "
3531 @$(LIB_PATH_VAR)=./bin && \
3532 export $(LIB_PATH_VAR) && \
3533 for module in $?; do \
3534 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3535 || exit 1; \
3536 done
3538 # Check for NSS module problems.
3539 test_nss_modules:: nss_modules
3540 @echo "Testing $(NSS_MODULES) "
3541 @$(LIB_PATH_VAR)=./bin && \
3542 export $(LIB_PATH_VAR) && \
3543 for module in $(NSS_MODULES); do \
3544 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3545 || exit 1; \
3546 done
3548 # Check for PAM module problems. Specifically, check that every module we
3549 # built can actually be loaded by a minimal PAM-aware application.
3550 test_pam_modules:: pam_modules
3551 @echo "Testing $(PAM_MODULES) "
3552 @$(LIB_PATH_VAR)=./bin && \
3553 export $(LIB_PATH_VAR) && \
3554 for module in $(PAM_MODULES); do \
3555 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3556 || exit 1; \
3557 done
3561 ## Targets for 'make test'
3564 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3566 valgrindtest:: all torture timelimit
3567 @echo Running Test suite with valgrind
3568 @$(MAKE) test \
3569 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3570 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3571 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3572 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3574 selftestdir = ../selftest
3576 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3578 test:: all torture timelimit
3579 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3580 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3581 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3582 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3583 SOURCEDIR="$(srcdir)" \
3584 VFSLIBDIR="$(builddir)/bin" \
3585 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3586 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3587 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3588 $(srcdir)/selftest/s3-selftest.sh
3590 test-%:
3591 $(MAKE) test TESTS=$*
3593 buildfarm-test:
3594 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3596 subunit-test:
3597 $(MAKE) test SUBUNIT_FORMATTER=cat
3599 SELFTEST_TESTENV = s3dc
3601 testenv:
3602 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3604 gdbtestenv:
3605 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3606 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3607 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3608 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3609 TESTS="--testenv"
3611 valgrindtestenv:
3612 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3613 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3614 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3615 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3616 TESTS="--testenv"
3619 # Check for Winbind struct 32/64bit padding
3620 test_wbpad:
3621 @echo "Testing winbind request/response structure for 32/64bit padding"
3622 @./script/tests/wb_pad.sh || exit 1;
3625 ## Examples:
3628 libsmbclient_examples: libsmbclient
3629 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3631 clean_libsmbclient_examples:
3632 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3634 libnetapi_examples: libnetapi
3635 $(MAKE) -C lib/netapi/examples
3637 clean_libnetapi_examples:
3638 $(MAKE) -C lib/netapi/examples clean
3640 .PHONY: bin/smbtorture4 bin/ndrdump4
3642 bin/smbtorture4: $(BINARY_PREREQS)
3643 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3645 bin/ndrdump4: $(BINARY_PREREQS)
3646 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
3648 .PHONY: vfs_examples
3650 vfs_examples:
3652 cd ../examples/VFS && \
3653 ./configure && \
3654 make clean && \
3655 make \