s3:smbd only initialize kernel oplocks if they are enabled for a share
[Samba/vl.git] / source3 / Makefile.in
blobff223d9fdc2ef778aa3248c9f370abdb339fbc10
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 # the following vars come from ../dynconfig/config.m4
20 BINDIR=@BINDIR@
21 SBINDIR=@SBINDIR@
22 LIBDIR=@LIBDIR@
23 #LIBEXECDIR=@LIBEXECDIR@
24 MANDIR=@MANDIR@
25 DATADIR=@DATADIR@
26 LOCALEDIR=@LOCALEDIR@
27 #SCRIPTSBINDIR=@SCRIPTSBINDIR@
28 #PYTHONDIR=@PYTHONDIR@
29 #PYTHONARCHDIR=@PYTHONARCHDIR@
30 MODULESDIR=@MODULESDIR@
31 INCLUDEDIR=@INCLUDEDIR@
32 SETUPDIR=@SETUPDIR@
33 #PKGCONFIGDIR=@PKGCONFIGDIR@
34 SWATDIR=@SWATDIR@
35 CODEPAGEDIR=@CODEPAGEDIR@
36 PAMMODULESDIR=@PAMMODULESDIR@
37 CONFIGDIR=@CONFIGDIR@
38 PRIVATE_DIR=@PRIVATE_DIR@
39 LOCKDIR=@LOCKDIR@
40 PIDDIR=@PIDDIR@
41 STATEDIR=@STATEDIR@
42 CACHEDIR=@CACHEDIR@
43 LOGFILEBASE=@LOGFILEBASE@
44 SOCKET_DIR=@SOCKET_DIR@
45 PRIVILEGED_SOCKET_DIR=@PRIVILEGED_SOCKET_DIR@
46 WINBINDD_SOCKET_DIR=@WINBINDD_SOCKET_DIR@
47 WINBINDD_PRIVILEGED_SOCKET_DIR=@WINBINDD_PRIVILEGED_SOCKET_DIR@
48 NMBDSOCKETDIR=@NMBDSOCKETDIR@
49 #NTP_SIGND_SOCKET_DIR=@NTP_SIGND_SOCKET_DIR@
50 NCALRPCDIR=@NCALRPCDIR@
51 CONFIGFILE=@CONFIGFILE@
52 LMHOSTSFILE=@LMHOSTSFILE@
53 SMB_PASSWD_FILE=@SMB_PASSWD_FILE@
55 selftest_prefix=@selftest_prefix@
57 LIBS=@LIBS@
58 CC=@CC@
59 SHLD=@SHLD@
60 LIB_PATH_VAR=@LIB_PATH_VAR@
62 ## Dynamic shared libraries build settings
63 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
64 DSO_EXPORTS=@DSO_EXPORTS@
65 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
67 # The MODULE_EXPORTS variable contains the platform-specific linker flags
68 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
69 MODULE_EXPORTS=@MODULE_EXPORTS@
71 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
72 # (GCC) warnings. This is done automatically for --enable-developer,
73 # --enable-picky-developer and --enable-krb5developer.
74 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
75 CFLAGS=@CFLAGS@
76 CPP=@CPP@
77 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
78 PICFLAG=@PICFLAG@
80 AR=@AR@
81 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
82 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
83 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
85 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
86 AWK=@AWK@
87 DYNEXP=@DYNEXP@
88 PERL=@PERL@
89 PYTHON=@PYTHON@
90 LIBDL=@LIBDL@
92 PIDL_ARGS=@PIDL_ARGS@
94 TERMLDFLAGS=@TERMLDFLAGS@
95 TERMLIBS=@TERMLIBS@
96 PRINT_LIBS=@PRINT_LIBS@
97 ZLIB_LIBS=@ZLIB_LIBS@
98 AUTH_LIBS=@AUTH_LIBS@
99 ACL_LIBS=@ACL_LIBS@
100 PASSDB_LIBS=@PASSDB_LIBS@
101 IDMAP_LIBS=@IDMAP_LIBS@
102 KRB5LIBS=@KRB5_LIBS@
103 LDAP_LIBS=@LDAP_LIBS@
104 NSCD_LIBS=@NSCD_LIBS@
105 UUID_LIBS=@UUID_LIBS@
106 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
107 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
108 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
109 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
110 DNSSD_LIBS=@DNSSD_LIBS@
111 AVAHI_LIBS=@AVAHI_LIBS@
112 POPT_LIBS=@POPTLIBS@
113 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
114 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
115 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
116 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
117 LIBTDB_LIBS=@LIBTDB_LIBS@
118 TDB_DEPS=@TDB_DEPS@
119 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
120 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
121 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
122 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
124 TALLOCTORT = @TALLOCTORT@
126 TDBBACKUP = @TDBBACKUP@
127 TDBTOOL = @TDBTOOL@
128 TDBDUMP = @TDBDUMP@
129 TDBRESTORE = @TDBRESTORE@
130 TDBTORTURE = @TDBTORTURE@
131 PTHREADPOOLTEST = @PTHREADPOOLTEST@
133 INSTALLCMD=@INSTALL@
134 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
135 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
136 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
137 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
139 VPATH=@srcdir@
140 srcdir=@abs_srcdir@
141 builddir=@abs_builddir@
142 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
143 # will search for a POSIX-compliant shell, and that might not be
144 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
145 SHELL=/bin/sh
146 DESTDIR=/
148 # See the autoconf manual "Installation Directory Variables" for a
149 # discussion of the subtle use of these variables.
151 VFSLIBDIR = $(MODULESDIR)/vfs
152 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
153 PDBLIBDIR = $(MODULESDIR)/pdb
154 RPCLIBDIR = $(MODULESDIR)/rpc
155 IDMAPLIBDIR = $(MODULESDIR)/idmap
156 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
157 CHARSETLIBDIR = $(MODULESDIR)/charset
158 AUTHLIBDIR = $(MODULESDIR)/auth
159 CONFIGLIBDIR = $(MODULESDIR)/config
160 GPEXTLIBDIR = $(MODULESDIR)/gpext
161 VARDIR = @localstatedir@
163 # The permissions to give the executables and other data
164 INSTALLPERMS_BIN = 0755
165 INSTALLPERMS_DATA = 0644
167 FLAGS = -I. \
168 -I$(srcdir) \
169 @FLAGS1@ \
170 @SAMBA_CPPFLAGS@ \
171 $(CPPFLAGS) \
172 $(ISA) \
173 -I$(srcdir)/lib \
174 -I.. \
175 -I./../lib/ldb/include \
176 -D_SAMBA_BUILD_=3
178 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
179 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
180 -DCONFIGFILE=\"$(CONFIGFILE)\" \
181 -DSBINDIR=\"$(SBINDIR)\" \
182 -DBINDIR=\"$(BINDIR)\" \
183 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
184 -DSWATDIR=\"$(SWATDIR)\" \
185 -DLOCKDIR=\"$(LOCKDIR)\" \
186 -DPIDDIR=\"$(PIDDIR)\" \
187 -DLIBDIR=\"$(LIBDIR)\" \
188 -DMODULESDIR=\"$(MODULESDIR)\" \
189 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
190 -DSHLIBEXT=\"@SHLIBEXT@\" \
191 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
192 -DCONFIGDIR=\"$(CONFIGDIR)\" \
193 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
194 -DCACHEDIR=\"$(CACHEDIR)\" \
195 -DSTATEDIR=\"$(STATEDIR)\" \
196 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
197 -DWINBINDD_SOCKET_DIR=\"$(WINBINDD_SOCKET_DIR)\" \
198 -DWINBINDD_PRIVILEGED_SOCKET_DIR=\"$(WINBINDD_PRIVILEGED_SOCKET_DIR)\" \
199 -DLOCALEDIR=\"$(LOCALEDIR)\" \
200 -DDATADIR=\"$(DATADIR)\" \
201 -DSETUPDIR=\"$(SETUPDIR)\"
203 # Note that all executable programs now provide for an optional executable suffix.
205 SBIN_PROGS = bin/smbd bin/nmbd @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
207 BIN_PROGS1 = bin/smbclient bin/net bin/smbspool \
208 bin/testparm bin/smbstatus bin/smbget \
209 bin/smbta-util
210 BIN_PROGS2 = bin/smbcontrol bin/smbtree $(TDBBACKUP) \
211 bin/nmblookup bin/pdbedit $(TDBDUMP) \
212 $(TDBRESTORE) $(TDBTOOL) bin/dbwrap_tool
213 BIN_PROGS3 = bin/smbpasswd bin/rpcclient bin/smbcacls \
214 bin/profiles bin/ntlm_auth bin/sharesec \
215 bin/smbcquotas bin/eventlogadm
217 TORTURE_PROGS = bin/smbtorture bin/msgtest \
218 bin/masktest bin/locktest \
219 bin/locktest2 bin/nsstest bin/vfstest \
220 bin/pdbtest $(TALLOCTORT) bin/replacetort \
221 $(TDBTORTURE) $(PTHREADPOOLTEST) \
222 bin/smbconftort bin/vlp
224 BIN_PROGS = @EXTRA_BIN_PROGS@ \
225 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
227 EVERYTHING_PROGS = bin/debug2html bin/smbfilter \
228 $(TALLOCTORT) bin/replacetort \
229 bin/log2pcap \
230 bin/vlp \
231 bin/dbwrap_tool \
232 bin/dbwrap_torture
234 PAM_MODULES = @PAM_MODULES@
236 NSS_MODULES = @NSS_MODULES@
238 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
240 VFS_MODULES = @VFS_MODULES@
241 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
242 PDB_MODULES = @PDB_MODULES@
243 IDMAP_MODULES = @IDMAP_MODULES@
244 CHARSET_MODULES = @CHARSET_MODULES@
245 AUTH_MODULES = @AUTH_MODULES@
246 NSS_INFO_MODULES = @NSS_INFO_MODULES@
247 GPEXT_MODULES = @GPEXT_MODULES@
248 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
249 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
250 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
252 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
254 ######################################################################
255 # object file lists
256 ######################################################################
258 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
259 ../lib/tdb_wrap/tdb_wrap.o \
260 lib/dbwrap/dbwrap.o \
261 lib/dbwrap/dbwrap_open.o \
262 lib/dbwrap/dbwrap_tdb.o \
263 lib/dbwrap/dbwrap_ctdb.o \
264 lib/g_lock.o \
265 lib/dbwrap/dbwrap_rbt.o
267 TDB_VALIDATE_OBJ = lib/tdb_validate.o
269 SMBLDAP_OBJ = @SMBLDAP@
271 VERSION_OBJ = lib/version.o
273 WBCOMMON_OBJ = ../nsswitch/wb_common.o
275 AFS_OBJ = lib/afs.o
277 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
279 AVAHI_OBJ = @AVAHI_OBJ@
281 SERVER_MUTEX_OBJ = lib/server_mutex.o
283 PASSCHANGE_OBJ = libsmb/passchange.o
285 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
286 ../librpc/ndr/ndr_compression.o \
287 librpc/gen_ndr/ndr_drsuapi.o \
288 ../librpc/ndr/ndr_drsblobs.o \
289 librpc/gen_ndr/ndr_drsblobs.o
291 ZLIB_OBJ = @ZLIB_OBJS@
293 COMPRESSION_OBJ = ../lib/compression/lzxpress.o \
294 $(ZLIB_OBJ)
296 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
297 $(COMPRESSION_OBJ)
299 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
300 ../librpc/ndr/ndr_ntlmssp.o
302 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
303 ../librpc/ndr/ndr.o \
304 ../librpc/ndr/ndr_misc.o \
305 librpc/gen_ndr/ndr_misc.o \
306 librpc/gen_ndr/ndr_security.o \
307 ../librpc/ndr/ndr_sec_helper.o \
308 ../librpc/ndr/ndr_string.o \
309 ../librpc/ndr/uuid.o \
310 ../librpc/ndr/util.o \
311 librpc/gen_ndr/ndr_server_id.o \
312 librpc/gen_ndr/ndr_file_id.o \
313 librpc/gen_ndr/ndr_dcerpc.o
315 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
316 librpc/gen_ndr/ndr_lsa.o
318 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
319 ../librpc/ndr/ndr_netlogon.o
321 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
322 ../librpc/ndr/ndr_schannel.o
324 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
325 ../librpc/ndr/ndr_spoolss_buf.o
327 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
328 ../librpc/ndr/ndr_ntprinting.o \
330 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
331 ../librpc/ndr/ndr_preg.o
333 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
334 ../librpc/ndr/ndr_xattr.o
336 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss_c.o \
337 rpc_client/cli_spoolss.o \
338 rpc_client/init_spoolss.o \
339 rpc_client/cli_winreg_spoolss.o \
340 printing/nt_printing_os2.o
342 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/ndr_eventlog_c.o
344 LIBCLI_WINREG_OBJ = librpc/gen_ndr/ndr_winreg_c.o \
345 rpc_client/cli_winreg.o
347 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
348 rpc_client/cli_winreg_int.o
350 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/ndr_ntsvcs_c.o
352 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/ndr_drsuapi_c.o
354 LIBCLI_DFS_OBJ = librpc/gen_ndr/ndr_dfs_c.o
356 LIBCLI_ECHO_OBJ = librpc/gen_ndr/ndr_echo_c.o
358 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/ndr_initshutdown_c.o
360 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/ndr_dssetup_c.o
362 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/ndr_svcctl_c.o
364 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/ndr_wkssvc_c.o
366 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/ndr_srvsvc_c.o
368 LIBCLI_LSA_OBJ = librpc/gen_ndr/ndr_lsa_c.o \
369 rpc_client/cli_lsarpc.o \
370 rpc_client/init_lsa.o
372 LIBCLI_SAMR_OBJ = librpc/gen_ndr/ndr_samr_c.o \
373 rpc_client/cli_samr.o
375 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon_c.o \
376 rpc_client/cli_netlogon.o \
377 rpc_client/util_netlogon.o
379 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/ndr_epmapper_c.o
381 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
382 $(LIBNDR_GEN_OBJ0) \
383 librpc/gen_ndr/ndr_dfs.o \
384 librpc/gen_ndr/ndr_dfsblobs.o \
385 librpc/gen_ndr/ndr_echo.o \
386 librpc/gen_ndr/ndr_winreg.o \
387 librpc/gen_ndr/ndr_initshutdown.o \
388 librpc/gen_ndr/ndr_srvsvc.o \
389 librpc/gen_ndr/ndr_eventlog.o \
390 $(LIBNDR_NETLOGON_OBJ) \
391 librpc/gen_ndr/ndr_dssetup.o \
392 librpc/gen_ndr/ndr_epmapper.o \
393 librpc/gen_ndr/ndr_ntsvcs.o \
394 $(LIBNDR_SPOOLSS_OBJ)
396 # this includes only the low level parse code, not stuff
397 # that requires knowledge of security contexts
398 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
400 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
402 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
403 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
404 UID_WRAPPER_OBJ = @UID_WRAPPER_OBJS@
406 LIBSAMBAUTIL_OBJ = \
407 $(LIBREPLACE_OBJ) \
408 $(SOCKET_WRAPPER_OBJ) \
409 $(UID_WRAPPER_OBJ) \
410 $(NSS_WRAPPER_OBJ)
412 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
413 ../lib/util/xfile.o ../lib/util/util_strlist.o \
414 ../lib/util/util_file.o ../lib/util/data_blob.o \
415 ../lib/util/util.o ../lib/util/util_paths.o ../lib/util/fsusage.o \
416 ../lib/util/params.o ../lib/util/talloc_stack.o \
417 ../lib/util/genrand.o ../lib/util/util_net.o \
418 ../lib/util/become_daemon.o ../lib/util/system.o \
419 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
420 ../lib/util/tevent_werror.o \
421 ../lib/util/smb_threads.o ../lib/util/util_id.o \
422 ../lib/util/blocking.o ../lib/util/rfc1738.o \
423 ../lib/util/select.o ../lib/util/util_pw.o ../lib/util/server_id.o
425 CRYPTO_OBJ = ../lib/crypto/crc32.o @CRYPTO_MD5_OBJ@ \
426 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
427 ../lib/crypto/md4.o \
428 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
429 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o \
430 ../lib/crypto/aes_cmac_128.o
432 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) $(LIBTSOCKET_OBJ) \
433 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
434 lib/messages_ctdbd.o lib/ctdb_packet.o lib/ctdbd_conn.o \
435 lib/id_cache.o \
436 ../lib/socket/interfaces.o lib/memcache.o \
437 lib/talloc_dict.o \
438 lib/serverid.o \
439 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
440 lib/addrchange.o \
441 $(TDB_LIB_OBJ) \
442 $(VERSION_OBJ) lib/charcnv.o ../lib/util/charset/convert_string.o \
443 ../lib/util/charset/pull_push.o \
444 lib/fstring.o ../lib/util/debug.o ../lib/util/debug_s3.o ../lib/util/fault.o \
445 lib/interface.o lib/pidfile.o lib/dumpcore.o \
446 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
447 lib/username.o \
448 ../libds/common/flag_mapping.o \
449 lib/access.o lib/smbrun.o \
450 ../lib/util/bitmap.o ../lib/util/dprintf.o $(UTIL_REG_OBJ) \
451 lib/wins_srv.o lib/string_init.o \
452 lib/util_str.o ../lib/util/util_str_common.o \
453 ../lib/util/util_str.o \
454 ../lib/util/base64.o lib/util_sid.o \
455 ../lib/util/charset/util_unistr.o \
456 ../lib/util/charset/util_unistr_w.o ../lib/util/charset/codepoints.o ../lib/util/charset/util_str.o lib/util_file.o \
457 lib/util.o lib/util_malloc.o lib/namearray.o lib/util_cmdline.o lib/util_names.o \
458 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
459 lib/substitute.o lib/substitute_generic.o ../lib/util/substitute.o lib/dbwrap/dbwrap_util.o \
460 lib/ms_fnmatch.o ../lib/util/ms_fnmatch.o lib/errmap_unix.o ../libcli/util/errmap_unix.o \
461 lib/tallocmsg.o lib/dmallocmsg.o \
462 ../libcli/smb/smb_signing.o \
463 ../lib/util/charset/iconv.o ../lib/util/charset/weird.o \
464 ../lib/util/charset/charset_macosxfs.o intl/lang_tdb.o \
465 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
466 lib/sessionid_tdb.o \
467 ../lib/util/modules.o lib/events.o @LIBTEVENT_OBJ0@ \
468 @CCAN_OBJ@ \
469 lib/server_contexts.o \
470 lib/server_prefork.o \
471 lib/server_prefork_util.o \
472 lib/ldap_escape.o @CHARSET_STATIC@ \
473 ../libcli/security/secdesc.o ../libcli/security/access_check.o \
474 ../libcli/security/secace.o ../libcli/security/object_tree.o \
475 ../libcli/security/sddl.o ../libcli/security/session.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 \
482 ../libcli/smb/util.o
484 LIB_DUMMY_OBJ = lib/smbd_shim.o lib/dummyparam.o
485 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
487 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
489 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
490 # Be sure to include them into your application
491 POPT_LIB_OBJ = lib/popt_common.o
493 PARAM_WITHOUT_REG_OBJ = ../dynconfig/dynconfig.o param/loadparm.o param/loadparm_ctx.o ../lib/param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o ../lib/param/loadparm.o ../lib/param/util.o
494 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
495 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
497 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
499 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
500 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
501 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
503 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
505 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
506 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
507 libgpo/gpo_reg.o \
508 $(GPEXT_OBJ)
509 LIBGPO_OBJ = $(LIBGPO_OBJ0)
511 LIBADS_OBJ = libads/ldap.o \
512 libads/sasl.o libads/sasl_wrapping.o \
513 libads/krb5_setpw.o \
514 libads/kerberos_util.o \
515 libads/ldap_user.o \
516 libads/ads_struct.o libads/kerberos_keytab.o \
517 libads/disp_sec.o libads/ldap_utils.o \
518 libads/ldap_schema.o libads/util.o libads/ndr.o
520 LIBADS_SERVER_OBJ = libads/authdata.o ../auth/kerberos/kerberos_pac.o \
521 ../librpc/ndr/ndr_krb5pac.o \
522 librpc/gen_ndr/ndr_krb5pac.o
524 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
526 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
527 librpc/gen_ndr/ndr_secrets.o \
528 passdb/secrets_lsa.o
530 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
531 ../libcli/netlogon/netlogon.o \
532 librpc/gen_ndr/ndr_nbt.o \
533 ../librpc/ndr/ndr_nbt.o \
534 librpc/gen_ndr/ndr_svcctl.o \
535 ../librpc/ndr/ndr_svcctl.o
537 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
538 libsmb/namequery.o ../libcli/nbt/lmhosts.o ../libcli/dns/dns_hosts_file.o libsmb/conncache.o \
539 libads/dns.o libads/sitename_cache.o
541 NTERR_OBJ = ../libcli/util/nterr.o libsmb/smberr.o
542 DOSERR_OBJ = ../libcli/util/doserr.o
543 ERRORMAP_OBJ = ../libcli/util/errormap.o libsmb/errormap.o
544 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
546 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
548 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
550 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
551 $(SECRETS_OBJ)
553 LIBSMB_OBJ0 = \
554 ../lib/util/asn1.o \
555 ../libcli/auth/spnego_parse.o \
556 ../libcli/auth/ntlm_check.o \
557 ../libcli/auth/krb5_wrap.o \
558 libsmb/ntlmssp.o \
559 libsmb/ntlmssp_wrap.o \
560 libsmb/auth_generic.o \
561 libsmb/clikrb5.o \
562 libsmb/clispnego.o \
563 ../auth/gensec/gensec.o \
564 ../auth/gensec/gensec_start.o \
565 ../auth/gensec/gensec_util.o \
566 ../auth/gensec/spnego.o \
567 ../auth/credentials/credentials.o \
568 ../auth/credentials/credentials_ntlm.o \
569 ../auth/credentials/credentials_samba3.o \
570 ../auth/ntlmssp/ntlmssp.o \
571 ../auth/ntlmssp/ntlmssp_util.o \
572 ../auth/ntlmssp/ntlmssp_sign.o \
573 ../auth/ntlmssp/ntlmssp_client.o \
574 ../auth/ntlmssp/gensec_ntlmssp.o \
575 ../auth/ntlmssp/gensec_ntlmssp_server.o \
576 $(LIBNDR_NTLMSSP_OBJ) \
577 ../auth/ntlmssp/ntlmssp_ndr.o \
578 ../auth/ntlmssp/ntlmssp_server.o
580 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
581 $(LIBSMB_ERR_OBJ)
583 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
584 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o ../lib/ldb/common/ldb_parse.o
586 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
587 ../lib/tsocket/tsocket_helpers.o \
588 ../lib/tsocket/tsocket_bsd.o
590 CLDAP_OBJ = libads/cldap.o \
591 ../libcli/cldap/cldap.o \
592 ../lib/util/idtree.o \
593 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ)
595 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
597 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
598 ../libcli/auth/schannel_sign.o \
599 ../libcli/auth/schannel_state_tdb.o \
600 $(LIBNDR_SCHANNEL_OBJ)
602 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
603 libsmb/reparse_symlink.o \
604 libsmb/clisymlink.o \
605 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
606 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
607 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
608 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
609 libsmb/clioplock.o libsmb/clirap2.o \
610 libsmb/async_smb.o \
611 libsmb/clisigning.o \
612 ../libcli/smb/smb_seal.o \
613 ../libcli/smb/read_smb.o \
614 ../libcli/smb/smbXcli_base.o \
615 ../libcli/smb/smb1cli_trans.o \
616 ../libcli/smb/smb2_session.o \
617 libsmb/smb2cli_session.o \
618 libsmb/smb2cli_tcon.o \
619 libsmb/smb2cli_create.o \
620 ../libcli/smb/smb2_create_blob.o \
621 ../libcli/smb/smb2_signing.o \
622 libsmb/smb2cli_close.o \
623 libsmb/smb2cli_flush.o \
624 libsmb/smb2cli_read.o \
625 libsmb/smb2cli_write.o \
626 libsmb/smb2cli_query_directory.o \
627 libsmb/cli_np_tstream.o \
628 libsmb/smbsock_connect.o \
629 $(LIBSAMBA_OBJ) \
630 $(LIBNMB_OBJ) \
631 $(LIBNBT_OBJ) \
632 $(CLDAP_OBJ) \
633 $(DRSUAPI_OBJ)
635 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
636 rpc_client/cli_pipe.o \
637 librpc/crypto/gse_krb5.o \
638 librpc/crypto/gse.o \
639 ../auth/kerberos/gssapi_pac.o \
640 ../auth/kerberos/gssapi_parse.o \
641 librpc/rpc/rpc_common.o \
642 rpc_client/rpc_transport_np.o \
643 rpc_client/rpc_transport_sock.o \
644 rpc_client/rpc_transport_tstream.o \
645 ../librpc/rpc/binding.o \
646 ../librpc/rpc/dcerpc_util.o \
647 ../librpc/rpc/binding_handle.o \
648 librpc/rpc/dcerpc_helpers.o \
649 $(LIBCLI_EPMAPPER_OBJ)
651 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
654 # registry-related objects
656 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
658 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
659 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
660 REG_INIT_FULL_OBJ = registry/reg_init_full.o
662 REGFIO_OBJ = registry/regfio.o \
663 $(REG_PARSE_PRS_OBJ)
665 REG_API_REGF_OBJ = registry/reg_api_regf.o
667 REGOBJS_OBJ = registry/reg_objects.o
669 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
671 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
673 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
674 registry/reg_backend_shares.o \
675 registry/reg_backend_netlogon_params.o \
676 registry/reg_backend_prod_options.o \
677 registry/reg_backend_tcpip_params.o \
678 registry/reg_backend_hkpt_params.o \
679 registry/reg_backend_current_version.o \
680 registry/reg_backend_perflib.o
682 REG_BASE_OBJ = registry/reg_api.o \
683 registry/reg_dispatcher.o \
684 registry/reg_cachehook.o \
685 $(REGOBJS_OBJ) \
686 registry/reg_util_internal.o \
687 lib/util_nttoken.o \
688 $(REG_BACKENDS_BASE_OBJ) \
689 registry/reg_parse_internal.o \
690 lib/cbuf.o lib/srprs.o \
691 $(REG_INIT_BASIC_OBJ)
693 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
694 registry/reg_util_token.o \
695 registry/reg_api_util.o \
696 $(REG_BACKENDS_SMBCONF_OBJ) \
697 $(REG_INIT_SMBCONF_OBJ)
699 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
700 $(REG_BACKENDS_EXTRA_OBJ) \
701 $(REG_INIT_FULL_OBJ) \
702 registry/reg_perfcount.o \
703 librpc/gen_ndr/ndr_perfcount.o
705 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
707 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
709 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
710 librpc/gen_ndr/srv_lsa.o \
711 ../libcli/lsarpc/util_lsarpc.o
713 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
714 librpc/gen_ndr/srv_netlogon.o
716 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
717 rpc_server/samr/srv_samr_util.o \
718 rpc_server/samr/srv_samr_chgpasswd.o \
719 librpc/gen_ndr/srv_samr.o
721 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
723 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
724 librpc/gen_ndr/srv_winreg.o
726 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
728 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
729 librpc/gen_ndr/srv_srvsvc.o
731 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
732 rpc_server/wkssvc/srv_wkssvc_nt.o
734 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
735 rpc_server/svcctl/srv_svcctl_reg.o \
736 librpc/gen_ndr/srv_svcctl.o \
737 services/svc_winreg_glue.o \
738 services/svc_spoolss.o services/svc_rcinit.o \
739 services/svc_netlogon.o services/svc_winreg.o \
740 services/svc_wins.o
742 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
743 librpc/gen_ndr/srv_ntsvcs.o
745 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
746 rpc_server/dfs/srv_dfs_nt.o
748 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
749 rpc_server/spoolss/srv_spoolss_util.o \
750 librpc/gen_ndr/srv_spoolss.o
752 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
753 rpc_server/eventlog/srv_eventlog_reg.o \
754 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
756 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
757 librpc/gen_ndr/ndr_named_pipe_auth.o \
758 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o ../librpc/ndr/ndr_auth.o
760 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
761 rpc_server/rpc_handles.o rpc_server/rpc_contexts.o \
762 rpc_server/srv_access_check.o
764 RPC_CONFIG = rpc_server/rpc_config.o
766 RPC_SERVICE = rpc_server/rpc_server.o
768 RPC_CRYPTO = rpc_server/dcesrv_auth_generic.o
770 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
771 $(RPC_CONFIG) $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
773 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
775 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
777 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_register.o $(DCE_RPC_EP_OBJ)
779 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
780 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
781 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
782 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
783 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
784 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
785 $(LIBCLI_SPOOLSS_OBJ) \
786 $(LIBCLI_WINREG_INT_OBJ) \
787 $(LIBCLI_SRVSVC_OBJ) \
788 $(LIBCLI_LSA_OBJ) \
789 $(LIBCLI_SAMR_OBJ) \
790 $(LIBCLI_NETLOGON_OBJ) \
791 $(RPC_SERVER_REGISTER_OBJ) \
792 $(RPC_CLIENT_SCHANNEL_OBJ) \
793 rpc_server/rpc_sock_helper.o \
794 rpc_server/rpc_service_setup.o \
795 rpc_client/init_netlogon.o \
796 rpc_client/init_samr.o
798 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
800 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o \
801 librpc/gen_ndr/ndr_open_files.o locking/share_mode_lock.o
803 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
805 PRIVILEGES_OBJ = lib/privileges.o
807 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
809 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
810 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
811 lib/util_unixsids.o passdb/lookup_sid.o \
812 passdb/login_cache.o @PDB_STATIC@ \
813 passdb/account_pol.o $(PRIVILEGES_OBJ) \
814 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
815 passdb/pdb_util.o passdb/pdb_ldap_schema.o \
816 passdb/pdb_secrets.o
818 DEVEL_HELP_WEIRD_OBJ = ../lib/util/charset/weird.o
819 CHARSET_MACOSXFS_OBJ = ../lib/util/charset/charset_macosxfs.o
821 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
823 PROFILE_OBJ = profile/profile.o
824 PROFILES_OBJ = utils/profiles.o \
825 $(LIBSMB_ERR_OBJ) \
826 $(PARAM_OBJ) \
827 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
828 $(POPT_LIB_OBJ) \
829 $(REGFIO_OBJ)
831 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
832 smbd/oplock_onefs.o
834 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
835 librpc/gen_ndr/ndr_notify.o
837 FNAME_UTIL_OBJ = lib/filename_util.o
839 VFS_DEFAULT_OBJ = modules/vfs_default.o
840 VFS_AUDIT_OBJ = modules/vfs_audit.o
841 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
842 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
843 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
844 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
845 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
846 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
847 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
848 VFS_CAP_OBJ = modules/vfs_cap.o
849 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
850 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
851 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
852 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
853 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
854 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
855 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
856 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
857 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
858 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
859 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
860 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
861 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
862 VFS_CATIA_OBJ = modules/vfs_catia.o
863 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
864 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
865 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
866 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
867 VFS_COMMIT_OBJ = modules/vfs_commit.o
868 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
869 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
870 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
871 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
872 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
873 VFS_FILEID_OBJ = modules/vfs_fileid.o
874 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
875 VFS_AIO_PTHREAD_OBJ = modules/vfs_aio_pthread.o
876 VFS_AIO_LINUX_OBJ = modules/vfs_aio_linux.o
877 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
878 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
879 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
880 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
881 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
882 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
883 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
884 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
885 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
886 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
887 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
888 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
889 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
890 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
891 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
892 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
894 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
895 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
897 SLCACHE_OBJ = libsmb/samlogon_cache.o
899 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
901 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
902 AUTH_DOMAIN_OBJ = auth/auth_domain.o
903 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
904 AUTH_SERVER_OBJ = auth/auth_server.o
905 AUTH_UNIX_OBJ = auth/auth_unix.o
906 AUTH_WINBIND_OBJ = auth/auth_winbind.o
907 AUTH_WBC_OBJ = auth/auth_wbc.o
908 AUTH_SCRIPT_OBJ = auth/auth_script.o
909 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
911 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
912 auth/server_info.o \
913 auth/server_info_sam.o \
914 auth/user_info.o \
915 auth/user_util.o \
916 auth/user_krb5.o \
917 auth/auth_ntlmssp.o auth/auth_generic.o \
918 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
920 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
922 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
924 BUILDOPT_OBJ = smbd/build_options.o
926 SMBD_OBJ_SRV = smbd/server_reload.o \
927 smbd/files.o smbd/connection.o \
928 smbd/utmp.o smbd/session.o \
929 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/conn_idle.o smbd/conn_msg.o \
930 smbd/share_access.o smbd/fileio.o \
931 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
932 smbd/message.o smbd/nttrans.o smbd/pipes.o \
933 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
934 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
935 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
936 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
937 smbd/posix_acls.o lib/sysacls.o \
938 smbd/process.o smbd/service.o param/service.o smbd/error.o \
939 rpc_server/epmd.o \
940 rpc_server/lsasd.o \
941 printing/printspoolss.o printing/spoolssd.o \
942 lib/sysquotas.o lib/sysquotas_linux.o \
943 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
944 lib/sysquotas_nfs.o \
945 lib/smbd_shim.o \
946 smbd/fake_file.o \
947 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
948 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
949 smbd/dmapi.o smbd/signing.o \
950 smbd/file_access.o \
951 smbd/dnsregister.o smbd/globals.o \
952 smbd/smb2_server.o \
953 smbd/smb2_glue.o \
954 smbd/smb2_negprot.o \
955 smbd/smb2_sesssetup.o \
956 smbd/smb2_tcon.o \
957 smbd/smb2_create.o \
958 smbd/smb2_close.o \
959 smbd/smb2_flush.o \
960 smbd/smb2_read.o \
961 smbd/smb2_write.o \
962 smbd/smb2_lock.o \
963 smbd/smb2_ioctl.o \
964 smbd/smb2_keepalive.o \
965 smbd/smb2_find.o \
966 smbd/smb2_notify.o \
967 smbd/smb2_getinfo.o \
968 smbd/smb2_setinfo.o \
969 smbd/smb2_break.o \
970 $(MANGLE_OBJ) @VFS_STATIC@
972 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
973 $(RPC_SERVER_OBJ) \
974 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
975 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
976 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
977 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
978 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
979 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
980 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
981 $(LIBSMBCONF_OBJ) \
982 $(PRIVILEGES_BASIC_OBJ) \
983 $(REGFIO_OBJ) \
984 $(REG_API_REGF_OBJ) \
985 $(LIBNDR_XATTR_OBJ)
987 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
988 printing/print_cups.o printing/print_generic.o \
989 printing/lpq_parse.o printing/load.o \
990 printing/print_iprint.o printing/print_standard.o \
991 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
993 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
994 PRINTBACKEND_OBJ = printing/printing.o \
995 printing/nt_printing.o \
996 printing/nt_printing_tdb.o \
997 printing/nt_printing_migrate.o \
998 printing/nt_printing_migrate_internal.o \
999 printing/nt_printing_ads.o \
1000 librpc/gen_ndr/ndr_ntprinting.o \
1001 ../librpc/ndr/ndr_ntprinting.o \
1002 printing/queue_process.o \
1003 $(PRINTBASE_OBJ)
1005 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
1007 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
1008 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
1009 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
1010 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
1011 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
1012 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
1013 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
1014 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
1015 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
1016 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
1017 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
1018 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
1020 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1021 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1022 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1024 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
1025 web/swat.o web/neg_lang.o
1027 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
1028 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
1029 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
1030 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1031 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
1032 $(LIBCLI_SAMR_OBJ) \
1033 rpc_client/init_lsa.o
1035 STATUS_OBJ = utils/status.o utils/status_profile.o \
1036 $(LOCKING_OBJ) $(PARAM_OBJ) \
1037 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1038 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1040 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1041 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
1043 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
1044 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1045 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1046 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1047 $(LIBMSRPC_GEN_OBJ) \
1048 $(LIBMSRPC_OBJ) \
1049 $(LIBCLI_SRVSVC_OBJ)
1051 TESTPARM_OBJ = utils/testparm.o \
1052 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1053 $(LIBSMB_ERR_OBJ)
1055 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1056 $(LIB_NONSMBD_OBJ) \
1057 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1059 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1060 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1061 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1063 PASSWD_UTIL_OBJ = utils/passwd_util.o
1065 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1066 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1067 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1068 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1069 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1070 $(LIBCLI_SAMR_OBJ) \
1071 rpc_client/init_lsa.o
1073 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1074 $(AFS_SETTOKEN_OBJ) \
1075 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1076 $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) $(SECRETS_OBJ) \
1077 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1078 ../lib/util/asn1.o $(LIBCLI_LDAP_NDR_OBJ) \
1079 $(LIBNDR_DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) $(COMPRESSION_OBJ)
1081 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1083 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1085 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1086 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1087 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1088 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1089 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1090 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1091 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1092 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1093 rpcclient/cmd_winreg.o \
1094 $(DISPLAY_SEC_OBJ)
1096 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1097 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1098 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1099 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1100 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1101 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1102 $(LIBCLI_SPOOLSS_OBJ) \
1103 $(LIBCLI_EVENTLOG_OBJ) \
1104 $(LIBCLI_NTSVCS_OBJ) \
1105 $(LIBCLI_DRSUAPI_OBJ) \
1106 $(LIBCLI_DFS_OBJ) \
1107 $(LIBCLI_ECHO_OBJ) \
1108 $(LIBCLI_DSSETUP_OBJ) \
1109 $(LIBCLI_WKSSVC_OBJ) \
1110 $(LIBCLI_SRVSVC_OBJ) \
1111 $(LIBCLI_LSA_OBJ) \
1112 $(LIBCLI_SAMR_OBJ) \
1113 $(LIBCLI_WINREG_OBJ) \
1114 $(LIBCLI_NETLOGON_OBJ) \
1115 $(RPC_CLIENT_SCHANNEL_OBJ) \
1116 rpc_client/init_netlogon.o \
1117 rpc_client/init_samr.o
1119 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1120 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1122 LIBSMBCLIENT_THREAD_OBJ = \
1123 libsmb/libsmb_thread_impl.o \
1124 libsmb/libsmb_thread_posix.o
1126 LIBSMBCLIENT_OBJ0 = \
1127 libsmb/libsmb_cache.o \
1128 libsmb/libsmb_compat.o \
1129 libsmb/libsmb_context.o \
1130 libsmb/libsmb_dir.o \
1131 libsmb/libsmb_file.o \
1132 libsmb/libsmb_misc.o \
1133 libsmb/libsmb_path.o \
1134 libsmb/libsmb_printjob.o \
1135 libsmb/libsmb_server.o \
1136 libsmb/libsmb_stat.o \
1137 libsmb/libsmb_xattr.o \
1138 libsmb/libsmb_setget.o
1140 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1141 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1142 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1143 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1144 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1145 $(LIBCLI_SRVSVC_OBJ) \
1146 $(LIBCLI_LSA_OBJ)
1148 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1150 CLIENT_OBJ1 = client/client.o client/clitar.o \
1151 client/dnsbrowse.o \
1152 $(LIBMSRPC_OBJ)
1154 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1155 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1156 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1157 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1158 $(DISPLAY_SEC_OBJ) \
1159 $(LIBCLI_SRVSVC_OBJ)
1161 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1162 ../lib/smbconf/smbconf_util.o \
1163 ../lib/smbconf/smbconf_txt.o \
1164 lib/smbconf/smbconf_reg.o \
1165 lib/smbconf/smbconf_init.o
1167 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1169 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1170 $(LIB_NONSMBD_OBJ) \
1171 $(PARAM_OBJ) \
1172 $(LIBSMB_ERR_OBJ) \
1173 $(POPT_LIB_OBJ)
1175 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1176 lib/pthreadpool/tests.o
1178 LIBNET_OBJ = libnet/libnet_join.o \
1179 libnet/libnet_keytab.o \
1180 librpc/gen_ndr/ndr_libnet_join.o
1182 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1183 libnet/libnet_dssync_passdb.o \
1184 libnet/libnet_dssync_keytab.o \
1185 ../libcli/drsuapi/repl_decrypt.o
1187 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1188 libnet/libnet_samsync_ldif.o \
1189 libnet/libnet_samsync_passdb.o \
1190 libnet/libnet_samsync_display.o \
1191 libnet/libnet_samsync_keytab.o \
1192 ../libcli/samsync/decrypt.o
1194 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1195 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1196 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1197 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
1198 utils/net_idmap_check.o utils/interact.o \
1199 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1200 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1201 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1202 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1203 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1204 utils/net_conf.o utils/net_join.o utils/net_user.o \
1205 utils/net_group.o utils/net_file.o utils/net_registry.o utils/net_registry_check.o\
1206 auth/token_util.o utils/net_dom.o utils/net_share.o \
1207 utils/net_g_lock.o \
1208 utils/net_serverid.o \
1209 utils/net_eventlog.o \
1210 utils/net_printing.o \
1211 utils/net_rpc_trust.o \
1212 utils/net_rpc_conf.o\
1213 $(LIBNDR_NTPRINTING_OBJ) \
1214 $(LIBNDR_PREG_OBJ) \
1215 $(LIBCLI_SPOOLSS_OBJ) \
1216 $(LIBCLI_WINREG_OBJ) \
1217 $(LIBCLI_DRSUAPI_OBJ) \
1218 $(LIBCLI_INITSHUTDOWN_OBJ) \
1219 $(LIBCLI_DSSETUP_OBJ) \
1220 $(LIBCLI_SVCCTL_OBJ) \
1221 $(LIBCLI_WKSSVC_OBJ) \
1222 $(LIBCLI_SRVSVC_OBJ) \
1223 $(LIBCLI_LSA_OBJ) \
1224 $(LIBCLI_SAMR_OBJ) \
1225 $(LIBCLI_NETLOGON_OBJ) \
1226 $(RPC_CLIENT_SCHANNEL_OBJ) \
1227 rpc_client/init_netlogon.o \
1228 rpc_client/init_samr.o \
1229 registry/reg_parse.o registry/reg_format.o \
1230 registry/reg_import.o \
1231 printing/nt_printing_migrate.o
1233 # these are not processed by make proto
1234 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1236 NET_OBJ = $(NET_OBJ1) \
1237 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1238 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1239 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1240 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1241 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1242 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1243 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1244 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1245 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1246 $(REG_SMBCONF_OBJ) \
1247 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1248 $(LIBSMBCONF_OBJ) \
1249 $(REGFIO_OBJ) \
1250 $(PRIVILEGES_BASIC_OBJ) \
1251 $(LIB_EVENTLOG_OBJ)
1253 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1254 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1255 $(AFS_SETTOKEN_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1257 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1258 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1260 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1261 torture/denytest.o torture/mangle_test.o \
1262 torture/nbench.o \
1263 torture/test_async_echo.o \
1264 torture/test_smbsock_any_connect.o \
1265 torture/test_nttrans_create.o \
1266 torture/test_nttrans_fsctl.o \
1267 torture/test_notify_online.o \
1268 torture/test_addrchange.o \
1269 torture/test_case_insensitive.o \
1270 torture/test_posix_append.o \
1271 torture/test_smb2.o \
1272 torture/test_chain3.o \
1273 torture/test_authinfo_structs.o \
1274 torture/test_cleanup.o \
1275 torture/t_strappend.o
1277 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1278 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1279 @LIBWBCLIENT_STATIC@ \
1280 torture/wbc_async.o \
1281 ../nsswitch/wb_reqtrans.o \
1282 ../libcli/lsarpc/util_lsarpc.o \
1283 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1285 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1286 $(LIB_NONSMBD_OBJ) \
1287 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1289 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1290 $(LIB_NONSMBD_OBJ) \
1291 $(LIBNDR_GEN_OBJ0)
1293 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1294 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1295 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(FNAME_UTIL_OBJ)
1297 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1299 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1300 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1301 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1302 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1304 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ) \
1305 torture/vfstest_chain.o
1307 LOG2PCAP_OBJ = utils/log2pcaphex.o
1309 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1310 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1311 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(FNAME_UTIL_OBJ)
1313 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1314 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1315 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1316 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1317 $(LIBCLI_LSA_OBJ)
1319 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1320 $(PARAM_OBJ) \
1321 $(LIB_NONSMBD_OBJ) \
1322 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1323 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1324 $(LIBCLI_LSA_OBJ)
1326 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1328 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1329 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1330 librpc/gen_ndr/ndr_eventlog.o \
1331 librpc/gen_ndr/ndr_lsa.o
1333 SHARESEC_OBJ0 = utils/sharesec.o
1334 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1335 $(LIBSMB_ERR_OBJ) \
1336 $(POPT_LIB_OBJ)
1338 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1339 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1341 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1342 @libreplacedir@/test/getifaddrs.o \
1343 @libreplacedir@/test/os2_delete.o \
1344 @libreplacedir@/test/strptime.o \
1345 @libreplacedir@/test/main.o \
1346 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1348 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1350 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1351 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1352 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1354 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1355 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1357 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1358 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
1359 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1360 $(SMBLDAP_OBJ) \
1361 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1362 $(AFS_SETTOKEN_OBJ) \
1363 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1364 $(PAM_ERRORS_OBJ)
1366 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1368 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1370 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1372 IDMAP_HASH_OBJ = \
1373 winbindd/idmap_hash/idmap_hash.o \
1374 winbindd/idmap_hash/mapfile.o
1376 IDMAP_ADEX_OBJ = \
1377 winbindd/idmap_adex/idmap_adex.o \
1378 winbindd/idmap_adex/cell_util.o \
1379 winbindd/idmap_adex/likewise_cell.o \
1380 winbindd/idmap_adex/provider_unified.o \
1381 winbindd/idmap_adex/gc_util.o \
1382 winbindd/idmap_adex/domain_util.o
1384 WINBINDD_OBJ1 = \
1385 winbindd/winbindd.o \
1386 winbindd/winbindd_group.o \
1387 winbindd/winbindd_util.o \
1388 winbindd/winbindd_cache.o \
1389 winbindd/winbindd_pam.o \
1390 winbindd/winbindd_misc.o \
1391 winbindd/winbindd_cm.o \
1392 winbindd/winbindd_wins_byip.o \
1393 winbindd/winbindd_wins_byname.o \
1394 winbindd/winbindd_msrpc.o \
1395 winbindd/winbindd_rpc.o \
1396 winbindd/winbindd_reconnect.o \
1397 winbindd/winbindd_ads.o \
1398 winbindd/winbindd_samr.o \
1399 winbindd/winbindd_dual.o \
1400 winbindd/winbindd_dual_ndr.o \
1401 winbindd/winbindd_dual_srv.o \
1402 librpc/gen_ndr/ndr_wbint_c.o \
1403 librpc/gen_ndr/srv_wbint.o \
1404 librpc/gen_ndr/ndr_wbint.o \
1405 librpc/gen_ndr/ndr_idmap.o \
1406 winbindd/winbindd_async.o \
1407 winbindd/winbindd_creds.o \
1408 winbindd/winbindd_cred_cache.o \
1409 winbindd/winbindd_ccache_access.o \
1410 winbindd/winbindd_domain.o \
1411 winbindd/winbindd_idmap.o \
1412 winbindd/winbindd_locator.o \
1413 winbindd/winbindd_ndr.o \
1414 winbindd/wb_ping.o \
1415 winbindd/wb_lookupsid.o \
1416 winbindd/wb_lookupsids.o \
1417 winbindd/wb_lookupname.o \
1418 winbindd/wb_sid2uid.o \
1419 winbindd/wb_sid2gid.o \
1420 winbindd/wb_uid2sid.o \
1421 winbindd/wb_gid2sid.o \
1422 winbindd/wb_queryuser.o \
1423 winbindd/wb_lookupuseraliases.o \
1424 winbindd/wb_lookupusergroups.o \
1425 winbindd/wb_getpwsid.o \
1426 winbindd/wb_gettoken.o \
1427 winbindd/wb_seqnum.o \
1428 winbindd/wb_seqnums.o \
1429 winbindd/wb_group_members.o \
1430 winbindd/wb_getgrsid.o \
1431 winbindd/wb_query_user_list.o \
1432 winbindd/wb_fill_pwent.o \
1433 winbindd/wb_next_pwent.o \
1434 winbindd/wb_next_grent.o \
1435 winbindd/wb_dsgetdcname.o \
1436 winbindd/winbindd_lookupsid.o \
1437 winbindd/winbindd_lookupsids.o \
1438 winbindd/winbindd_lookupname.o \
1439 winbindd/winbindd_sid_to_uid.o \
1440 winbindd/winbindd_sid_to_gid.o \
1441 winbindd/winbindd_uid_to_sid.o \
1442 winbindd/winbindd_gid_to_sid.o \
1443 winbindd/winbindd_sids_to_xids.o \
1444 winbindd/winbindd_allocate_uid.o \
1445 winbindd/winbindd_allocate_gid.o \
1446 winbindd/winbindd_getpwsid.o \
1447 winbindd/winbindd_getpwnam.o \
1448 winbindd/winbindd_getpwuid.o \
1449 winbindd/winbindd_getsidaliases.o \
1450 winbindd/winbindd_getuserdomgroups.o \
1451 winbindd/winbindd_getgroups.o \
1452 winbindd/winbindd_show_sequence.o \
1453 winbindd/winbindd_getgrgid.o \
1454 winbindd/winbindd_getgrnam.o \
1455 winbindd/winbindd_getusersids.o \
1456 winbindd/winbindd_lookuprids.o \
1457 winbindd/winbindd_setpwent.o \
1458 winbindd/winbindd_getpwent.o \
1459 winbindd/winbindd_endpwent.o \
1460 winbindd/winbindd_setgrent.o \
1461 winbindd/winbindd_getgrent.o \
1462 winbindd/winbindd_endgrent.o \
1463 winbindd/winbindd_dsgetdcname.o \
1464 winbindd/winbindd_getdcname.o \
1465 winbindd/winbindd_list_users.o \
1466 winbindd/winbindd_list_groups.o \
1467 winbindd/winbindd_check_machine_acct.o \
1468 winbindd/winbindd_change_machine_acct.o \
1469 winbindd/winbindd_ping_dc.o \
1470 winbindd/winbindd_pam_auth.o \
1471 winbindd/winbindd_pam_auth_crap.o \
1472 winbindd/winbindd_pam_chauthtok.o \
1473 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1474 winbindd/winbindd_pam_logoff.o \
1475 auth/auth_util.o \
1476 auth/token_util.o \
1477 auth/user_util.o \
1478 auth/check_samsec.o \
1479 auth/server_info.o \
1480 auth/server_info_sam.o \
1481 auth/user_info.o \
1482 auth/pampass.o \
1483 ../nsswitch/wb_reqtrans.o
1485 WINBINDD_OBJ = \
1486 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1487 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1488 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1489 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1490 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1491 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1492 $(RPC_CONFIG) $(RPC_NCACN_NP) \
1493 $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1494 $(NPA_TSTREAM_OBJ) \
1495 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1496 $(LIBADS_SERVER_OBJ) \
1497 $(TDB_VALIDATE_OBJ) \
1498 $(LIBCLI_DSSETUP_OBJ) \
1499 $(LIBCLI_LSA_OBJ) \
1500 $(LIBCLI_SAMR_OBJ) \
1501 $(LIBCLI_NETLOGON_OBJ) \
1502 rpc_client/init_netlogon.o \
1503 rpc_client/init_samr.o \
1504 $(PAM_ERRORS_OBJ)
1506 WBINFO_OBJ = ../nsswitch/wbinfo.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1507 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1508 lib/winbind_util.o $(WBCOMMON_OBJ) \
1509 $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) $(SECRETS_OBJ)
1511 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1513 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1514 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1516 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1517 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1519 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1520 ../lib/iniparser_build/strlib.o
1522 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1523 $(SOCKET_WRAPPER_OBJ)
1525 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1526 $(SOCKET_WRAPPER_OBJ)
1528 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1529 $(SOCKET_WRAPPER_OBJ)
1531 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1532 $(SOCKET_WRAPPER_OBJ)
1534 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1535 $(SOCKET_WRAPPER_OBJ)
1538 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1540 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} \
1541 ${LIBADS_SERVER_OBJ} \
1542 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1543 $(WBCOMMON_OBJ) \
1544 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1545 $(AFS_SETTOKEN_OBJ) \
1546 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1547 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) @BUILD_INIPARSER@
1550 VLP_OBJ = printing/tests/vlp.o \
1551 ../lib/util/util_tdb.o \
1552 $(LIBSAMBAUTIL_OBJ) \
1553 param/util.o
1555 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1556 $(LIBSMB_OBJ) \
1557 $(PARAM_OBJ) \
1558 $(PASSDB_OBJ) \
1559 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1560 $(LIB_NONSMBD_OBJ) \
1561 $(KRBCLIENT_OBJ) \
1562 $(LIBMSRPC_OBJ) \
1563 $(LIBMSRPC_GEN_OBJ)
1565 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1566 $(PARAM_OBJ) \
1567 $(LIB_NONSMBD_OBJ) \
1568 $(LIBSMB_ERR_OBJ) \
1569 $(POPT_LIB_OBJ)
1571 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1572 $(PARAM_OBJ) \
1573 $(LIB_NONSMBD_OBJ) \
1574 $(LIBSMB_ERR_OBJ) \
1575 $(POPT_LIB_OBJ)
1577 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1578 $(PARAM_OBJ) \
1579 $(LIB_NONSMBD_OBJ) \
1580 $(POPT_LIB_OBJ) \
1581 $(LIBSAMBA_OBJ)
1583 ######################################################################
1584 # now the rules...
1585 ######################################################################
1586 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1587 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1588 $(EXTRA_ALL_TARGETS)
1590 basics:: samba3-idl mkparam
1592 nss_modules:: $(NSS_MODULES)
1594 pam_modules:: $(PAM_MODULES)
1596 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1598 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1600 gpext_modules:: $(GPEXT_MODULES)
1602 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1604 smbtorture : SHOWFLAGS bin/smbtorture
1606 masktest : SHOWFLAGS bin/masktest
1608 msgtest : SHOWFLAGS bin/msgtest
1610 locktest : SHOWFLAGS bin/locktest
1612 smbcacls : SHOWFLAGS bin/smbcacls
1614 smbcquotas : SHOWFLAGS bin/smbcquotas
1616 locktest2 : SHOWFLAGS bin/locktest2
1618 debug2html : SHOWFLAGS bin/debug2html
1620 smbfilter : SHOWFLAGS bin/smbfilter
1622 eventlogadm: SHOWFLAGS bin/eventlogadm
1624 sharesec: SHOWFLAGS bin/sharesec
1626 talloctort : SHOWFLAGS $(TALLOCTORT)
1628 replacetort : SHOWFLAGS bin/replacetort
1630 smbconftort : SHOWFLAGS bin/smbconftort
1632 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest
1634 timelimit : SHOWFLAGS bin/timelimit
1636 nsswitch : SHOWFLAGS bin/winbindd bin/wbinfo @WINBIND_NSS@ \
1637 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1638 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol
1640 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1642 modules:: SHOWFLAGS $(MODULES)
1645 #####################################################################
1646 ## Perl IDL Compiler
1648 IDL_FILES = librpc/idl/messaging.idl \
1649 librpc/idl/libnetapi.idl \
1650 librpc/idl/wbint.idl \
1651 librpc/idl/perfcount.idl \
1652 librpc/idl/secrets.idl \
1653 librpc/idl/open_files.idl \
1654 librpc/idl/libnet_join.idl
1656 samba3-idl::
1657 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1658 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1659 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1660 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1662 idl_full::
1663 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1664 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1665 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1666 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1668 mkparam: ../lib/param/param_local.h ../lib/param/param_global.h param/param_global.h ../lib/param/param_proto.h ../lib/param/s3_param.h
1670 ../lib/param/param_local.h:
1671 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c --file ../lib/param/param_local.h --generate-scope=LOCAL
1672 ../lib/param/param_global.h:
1673 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/loadparm.c --file ../lib/param/param_global.h --generate-scope=GLOBAL
1674 param/param_global.h:
1675 $(PERL) ../script/mkparamdefs.pl $(srcdir)/param/loadparm.c --file param/param_global.h --generate-scope=GLOBAL
1676 ../lib/param/param_proto.h:
1677 $(PERL) ../source4/script/mkproto.pl $(srcdir)/../lib/param/loadparm.c --public ../lib/param/param_proto.h --private ../lib/param/param_proto.h
1678 ../lib/param/s3_param.h:
1679 $(PERL) ../script/mks3param.pl $(srcdir)/../lib/param/loadparm.c --file ../lib/param/s3_param.h
1682 #####################################################################
1685 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1686 $(EVERYTHING_PROGS) \
1687 vfs_examples
1689 .SUFFIXES:
1690 .SUFFIXES: .c .o .lo
1692 .PHONY: showflags SHOWFLAGS
1694 showflags: SHOWFLAGS
1696 SHOWFLAGS::
1697 @echo "Using CFLAGS = $(CFLAGS)"
1698 @echo " PICFLAG = $(PICFLAG)"
1699 @echo " LIBS = $(LIBS)"
1700 @echo " LDFLAGS = $(LDFLAGS)"
1701 @echo " DYNEXP = $(DYNEXP)"
1702 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1703 @echo " SHLIBEXT = @SHLIBEXT@"
1704 @echo " SONAMEFLAG = @SONAMEFLAG@"
1706 # "showcflags" target for debuggin how CFLAGS are composed:
1708 .PHONY: showcflags SHOWCFLAGS
1710 showcflags: SHOWCFLAGS
1712 SHOWCFLAGS::
1713 @echo "CFLAGS = $(CFLAGS)"
1714 @echo "FLAGS = $(FLAGS)"
1715 @echo ""
1716 @echo "FLAGS1 = @FLAGS1@"
1717 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1718 @echo "CPPFLAGS = $(CPPFLAGS)"
1719 @echo "ISA = $(ISA)"
1721 MAKEDIR = || exec false; \
1722 if test -d "$$dir"; then :; else \
1723 echo mkdir "$$dir"; \
1724 mkdir -p "$$dir" >/dev/null 2>&1 || \
1725 test -d "$$dir" || \
1726 mkdir "$$dir" || \
1727 exec false; fi || exec false
1729 # Run a static checker.
1730 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1731 # Compile a source file.
1732 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1733 # Compile a source file with the installation paths defined.
1734 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1736 COMPILE = $(COMPILE_CC)
1738 .c.o:
1739 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1740 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1741 @if test -n "$(CC_CHECKER)"; then \
1742 echo "Checking $*.c with '$(CC_CHECKER)'";\
1743 $(CHECK_CC); \
1745 @echo Compiling $*.c
1746 @$(COMPILE) && exit 0;\
1747 echo "The following command failed:" 1>&2;\
1748 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1749 $(COMPILE_CC) >/dev/null 2>&1
1750 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1752 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1754 # this adds support for precompiled headers. To use it, install a snapshot
1755 # of gcc-3.4 and run 'make pch' before you do the main build.
1756 pch::
1757 rm -f $(PRECOMPILED_HEADER)
1758 $(MAKE) $(PRECOMPILED_HEADER)
1760 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1761 $(COMPILE)
1763 BINARY_PREREQS = bin/.dummy
1765 # These dependencies are only approximately correct: we want to make
1766 # sure Samba's paths are updated if ./configure is re-run. Really it
1767 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1768 # but since we also require "make install prefix=/opt/samba" *not* to
1769 # rebuild it's a bit hard.
1771 ../dynconfig/dynconfig.o: ../dynconfig/dynconfig.c Makefile
1772 @echo Compiling $*.c
1773 @$(COMPILE_CC_PATH) && exit 0;\
1774 echo "The following command failed:" 1>&2;\
1775 echo "$(COMPILE_CC_PATH)" 1>&2;\
1776 $(COMPILE_CC_PATH) >/dev/null 2>&1
1778 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1779 @echo Compiling $*.c
1780 @$(COMPILE_CC_PATH) && exit 0;\
1781 echo "The following command failed:" 1>&2;\
1782 echo "$(COMPILE_CC_PATH)" 1>&2;\
1783 $(COMPILE_CC_PATH) >/dev/null 2>&1
1785 ../nsswitch/wb_common.o: ../nsswitch/wb_common.c Makefile
1786 @echo Compiling $*.c
1787 @$(COMPILE_CC_PATH) && exit 0;\
1788 echo "The following command failed:" 1>&2;\
1789 echo "$(COMPILE_CC_PATH)" 1>&2;\
1790 $(COMPILE_CC_PATH) >/dev/null 2>&1
1792 ### Start section of object files that require PTHREAD_CFLAGS
1793 ../nsswitch/wins.o: ../nsswitch/wins.c
1794 @echo Compiling $*.c
1795 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1796 echo "The following command failed:" 1>&2;\
1797 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1798 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1800 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1801 @echo Compiling $*.c
1802 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1803 echo "The following command failed:" 1>&2;\
1804 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1805 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1807 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1808 @echo Compiling $*.c
1809 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1810 echo "The following command failed:" 1>&2;\
1811 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1812 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1814 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1815 @echo Compiling $*.c
1816 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1817 echo "The following command failed:" 1>&2;\
1818 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1819 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1820 ### End section of object files that require PTHREAD_CFLAGS
1822 lib/pidfile.o: lib/pidfile.c
1823 @echo Compiling $*.c
1824 @$(COMPILE_CC_PATH) && exit 0;\
1825 echo "The following command failed:" 1>&2;\
1826 echo "$(COMPILE_CC_PATH)" 1>&2;\
1827 $(COMPILE_CC_PATH) >/dev/null 2>&1
1829 lib/version.o: lib/version.c include/version.h
1830 @echo Compiling $*.c
1831 @$(COMPILE_CC_PATH) && exit 0;\
1832 echo "The following command failed:" 1>&2;\
1833 echo "$(COMPILE_CC_PATH)" 1>&2;\
1834 $(COMPILE_CC_PATH) >/dev/null 2>&1
1836 smbd/build_options.o: smbd/build_options.c Makefile include/autoconf/config.h include/build_env.h include/proto.h
1837 @echo Compiling $*.c
1838 @$(COMPILE_CC_PATH) && exit 0;\
1839 echo "The following command failed:" 1>&2;\
1840 echo "$(COMPILE_CC_PATH)" 1>&2;\
1841 $(COMPILE_CC_PATH) >/dev/null 2>&1
1843 smbd/build_options.c: include/autoconf/config.h.in script/mkbuildoptions.awk
1844 @echo Generating $@
1845 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/autoconf/config.h.in
1847 bin/.dummy:
1848 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1849 dir=bin $(MAKEDIR); fi
1850 @: >> $@ || : > $@ # what a fancy emoticon!
1852 bin/smbd: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1853 @echo Linking $@
1854 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1855 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1856 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1857 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1858 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1860 bin/nmbd: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1861 @echo Linking $@
1862 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1863 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1864 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1865 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1867 bin/swat: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1868 @echo Linking $@
1869 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1870 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1871 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1873 bin/rpcclient: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1874 @echo Linking $@
1875 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1876 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1877 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1878 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1880 bin/smbclient: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1881 @echo Linking $@
1882 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1883 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1884 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1885 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1887 bin/net: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1888 @echo Linking $@
1889 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1890 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1891 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1892 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1893 $(ZLIB_LIBS)
1895 bin/profiles: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1896 @echo Linking $@
1897 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1898 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1900 bin/smbspool: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1901 @echo Linking $@
1902 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1903 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1904 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1906 bin/testparm: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1907 @echo Linking $@
1908 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1909 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1911 bin/smbta-util: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1912 @echo Linking $@
1913 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1914 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1916 bin/smbstatus: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1917 @echo Linking $@
1918 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1919 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1921 bin/smbcontrol: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1922 @echo Linking $@
1923 @$(CC) -DUSING_SMBCONTROL -o $@ \
1924 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1925 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1926 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1928 bin/smbtree: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1929 @echo Linking $@
1930 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1931 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1932 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1934 bin/smbpasswd: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1935 @echo Linking $@
1936 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1937 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1938 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1940 bin/pdbedit: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1941 @echo Linking $@
1942 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1943 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1944 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1946 bin/smbget: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1947 @echo Linking $@
1948 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1949 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1950 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1952 bin/nmblookup: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1953 @echo Linking $@
1954 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1955 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1957 bin/smbtorture: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1958 @echo Linking $@
1959 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1960 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1961 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1963 bin/talloctort: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1964 @echo Linking $@
1965 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1966 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1967 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1969 bin/replacetort: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1970 @echo Linking $@
1971 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1972 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1974 bin/smbconftort: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1975 @echo Linking $@
1976 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1977 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1978 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1980 bin/pthreadpooltest: $(PTHREADPOOLTEST_OBJ)
1981 @echo Linking $@
1982 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) $(LIBS) $(PTHREAD_LDFLAGS)
1984 bin/masktest: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1985 @echo Linking $@
1986 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1987 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1988 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1989 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1991 bin/msgtest: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1992 @echo Linking $@
1993 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1994 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1995 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1997 bin/smbcacls: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1998 @echo Linking $@
1999 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
2000 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2001 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2003 bin/smbcquotas: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2004 @echo Linking $@
2005 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
2006 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2007 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2009 bin/eventlogadm: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
2010 @echo Linking $@
2011 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
2012 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2014 bin/sharesec: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
2015 @echo Linking $@
2016 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
2017 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2019 bin/locktest: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2020 @echo Linking $@
2021 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2022 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2023 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2024 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2026 bin/nsstest: $(BINARY_PREREQS) $(NSSTEST_OBJ) $(LIBTALLOC)
2027 @echo Linking $@
2028 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2029 $(LIBTALLOC_LIBS)
2031 bin/pdbtest: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2032 @echo Linking $@
2033 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2034 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
2035 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2037 bin/vfstest: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2038 @echo Linking $@
2039 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
2040 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
2041 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2042 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2043 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2045 bin/log2pcap: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2046 @echo Linking $@
2047 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
2048 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
2050 bin/locktest2: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2051 @echo Linking $@
2052 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
2053 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2054 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2055 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2057 bin/debug2html: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2058 @echo Linking $@
2059 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
2060 $(LIBS) $(LIBTALLOC_LIBS)
2062 bin/smbfilter: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2063 @echo Linking $@
2064 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2065 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2066 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2067 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2069 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2070 @echo Linking $@
2071 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2074 #####################################################################
2076 # libraries
2078 #####################################################################
2080 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2083 #-------------------------------------------------------------------
2085 # libtalloc
2087 #-------------------------------------------------------------------
2090 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2091 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2093 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2094 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2095 LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@
2096 LIBTALLOC_SHARED_TARGET_SONAME=@LIBTALLOC_SHARED_TARGET_SOVER@
2097 LIBTALLOC_SHARED_TARGET_FULLVER=@LIBTALLOC_SHARED_TARGET_FULLVER@
2098 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2099 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2100 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2102 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2103 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2105 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2106 @echo Linking shared library $@
2107 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2109 $(LIBTALLOC_SHARED_TARGET_FULLVER): $(LIBTALLOC_SHARED_TARGET_SONAME)
2110 @rm -f $@
2111 @mv -f $(LIBTALLOC_SHARED_TARGET_SONAME) $@
2112 @ln -f -s `basename $@` $(LIBTALLOC_SHARED_TARGET_SONAME)
2114 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_FULLVER)
2115 @rm -f $@
2116 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2118 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2119 @echo Linking non-shared library $@
2120 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2121 libtalloc: $(LIBTALLOC)
2123 cleanlibtalloc::
2124 -rm -f \
2125 $(LIBTALLOC_SYMS) \
2126 $(LIBTALLOC_STATIC_TARGET) \
2127 $(LIBTALLOC_SHARED_TARGET) \
2128 $(LIBTALLOC_SHARED_TARGET_SONAME)
2130 installlibtalloc:: installdirs libtalloc
2131 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2132 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2133 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2134 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2135 -if test -r $(LIBTALLOC_SHARED_TARGET_FULLVER) ; then \
2136 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_FULLVER)` \
2137 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` ; \
2139 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2140 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2141 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2143 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2144 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2145 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2147 uninstalllibtalloc::
2148 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2149 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2150 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2151 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2153 libs:: libtalloc
2154 installlibs:: @INSTALL_LIBTALLOC@
2155 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2156 cleanlibs:: cleanlibtalloc
2157 shlibs test_shlibs: @LIBTALLOC_SHARED@
2159 showlibtalloc:
2160 @echo ""
2161 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2162 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2163 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2164 @echo ""
2165 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2166 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2167 @echo "LIBTALLOC_FULLVER = $(LIBTALLOC_FULLVER)"
2168 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2169 @echo "LIBTALLOC_SHARED TARGET_FULLVER = $(LIBTALLOC_SHARED_TARGET_FULLVER)"
2170 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2171 @echo "LIBTALLOC = $(LIBTALLOC)"
2173 showlibs:: showlibtalloc
2175 #-------------------------------------------------------------------
2177 # libtdb
2179 #-------------------------------------------------------------------
2181 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2182 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2184 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2185 LIBTDB_SOVER=@LIBTDB_SOVER@
2186 LIBTDB_FULLVER=@LIBTDB_FULLVER@
2187 LIBTDB_SHARED_TARGET_SONAME=@LIBTDB_SHARED_TARGET_SOVER@
2188 LIBTDB_SHARED_TARGET_FULLVER=@LIBTDB_SHARED_TARGET_FULLVER@
2189 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2190 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2191 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2193 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2194 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2197 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2198 @echo Linking shared library $@
2199 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2200 @SONAMEFLAG@`basename $@`
2202 $(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME)
2203 @rm -f $@
2204 @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER)
2205 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME)
2207 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER)
2208 @rm -f $@
2209 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2211 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2212 @echo Linking non-shared library $@
2213 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2215 libtdb: $(LIBTDB)
2217 cleanlibtdb::
2218 -rm -f \
2219 $(LIBTDB_SYMS) \
2220 $(LIBTDB_STATIC_TARGET) \
2221 $(LIBTDB_SHARED_TARGET) \
2222 $(LIBTDB_SHARED_TARGET_SONAME)
2225 installlibtdb:: installdirs libtdb
2226 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2227 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2228 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2229 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2230 -if test -r $(LIBTDB_SHARED_TARGET_FULLVER) ; then \
2231 ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` \
2232 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)` ; \
2234 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2235 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2236 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2238 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2239 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2240 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2242 uninstalllibtdb::
2243 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2244 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2245 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2246 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2248 libs:: libtdb
2249 installlibs:: @INSTALL_LIBTDB@
2250 uninstalllibs:: @UNINSTALL_LIBTDB@
2251 cleanlibs:: cleanlibtdb
2252 shlibs test_shlibs: @LIBTDB_SHARED@
2254 showlibtdb:
2255 @echo ""
2256 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2257 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2258 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2259 @echo ""
2260 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2261 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2262 @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)"
2263 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2264 @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)"
2265 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2266 @echo "LIBTDB = $(LIBTDB)"
2268 showlibs:: showlibtdb
2270 #-------------------------------------------------------------------
2272 # libwbclient
2274 #-------------------------------------------------------------------
2276 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2277 ../nsswitch/libwbclient/wbc_util.o \
2278 ../nsswitch/libwbclient/wbc_pwd.o \
2279 ../nsswitch/libwbclient/wbc_idmap.o \
2280 ../nsswitch/libwbclient/wbc_sid.o \
2281 ../nsswitch/libwbclient/wbc_guid.o \
2282 ../nsswitch/libwbclient/wbc_pam.o
2284 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2285 $(WBCOMMON_OBJ) \
2286 $(LIBREPLACE_OBJ) \
2287 ../lib/util/blocking.o \
2288 $(SOCKET_WRAPPER_OBJ)
2290 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2291 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2292 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2293 LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@
2294 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2295 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2296 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2298 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2299 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2301 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2302 @echo Linking shared library $@
2303 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2304 @SONAMEFLAG@`basename $@`
2306 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2307 @rm -f $@
2308 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2310 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2311 @echo Linking non-shared library $@
2312 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2314 libwbclient: $(LIBWBCLIENT)
2316 cleanlibwbclient::
2317 -rm -f \
2318 $(LIBWBCLIENT_SYMS) \
2319 $(LIBWBCLIENT_STATIC_TARGET) \
2320 $(LIBWBCLIENT_SHARED_TARGET) \
2321 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2323 installlibwbclient:: installdirs libwbclient
2324 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2325 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2326 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2327 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2328 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2329 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2331 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2332 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2333 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2335 uninstalllibwbclient::
2336 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2337 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2338 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2339 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2341 libs:: libwbclient
2342 installlibs:: @INSTALL_LIBWBCLIENT@
2343 uninstalllibs:: uninstalllibwbclient
2344 cleanlibs:: cleanlibwbclient
2345 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2347 showlibwbclient:
2348 @echo ""
2349 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2350 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2351 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2352 @echo ""
2353 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2354 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2355 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2356 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2357 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2358 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2360 showlibs:: showlibwbclient
2363 #-------------------------------------------------------------------
2365 # libaddns
2367 #-------------------------------------------------------------------
2370 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2371 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2372 LIBADDNS_FULLVER=@LIBADDNS_FULLVER@
2373 LIBADDNS_SHARED_TARGET_SONAME=@LIBADDNS_SHARED_TARGET_SOVER@
2374 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2375 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2376 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2378 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2379 @echo Linking shared library $@
2380 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2381 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2382 @SONAMEFLAG@`basename $@`
2384 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2385 @rm -f $@
2386 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2388 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2389 @echo Linking non-shared library $@
2390 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2392 libaddns: $(LIBADDNS)
2394 cleanlibaddns::
2395 -rm -f \
2396 $(LIBADDNS_SHARED_TARGET) \
2397 $(LIBADDNS_SHARED_TARGET_SONAME) \
2398 $(LIBADDNS_STATIC_TARGET)
2400 installlibaddns:: installdirs libaddns
2401 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2402 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2403 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2404 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2405 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2406 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2408 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2410 uninstalllibaddns::
2411 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2412 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2413 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2415 libs:: libaddns
2416 installlibs:: @INSTALL_LIBADDNS@
2417 uninstalllibs:: @UNINSTALL_LIBADDNS@
2418 cleanlibs:: cleanlibaddns
2419 shlibs test_shlibs: @LIBADDNS_SHARED@
2421 showlibaddns:
2422 @echo ""
2423 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2424 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2425 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2426 @echo ""
2427 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2428 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2429 @echo "LIBADDNS_FULLVER = $(LIBADDNS_FULLVER)"
2430 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2431 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2432 @echo "LIBADDNS = $(LIBADDNS)"
2434 showlibs:: showlibaddns
2436 #-------------------------------------------------------------------
2438 # libnetapi
2440 #-------------------------------------------------------------------
2442 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2443 lib/netapi/cm.o \
2444 librpc/gen_ndr/ndr_libnetapi.o \
2445 lib/netapi/libnetapi.o \
2446 lib/netapi/joindomain.o \
2447 lib/netapi/serverinfo.o \
2448 lib/netapi/getdc.o \
2449 lib/netapi/user.o \
2450 lib/netapi/group.o \
2451 lib/netapi/localgroup.o \
2452 lib/netapi/samr.o \
2453 lib/netapi/sid.o \
2454 lib/netapi/share.o \
2455 lib/netapi/file.o \
2456 lib/netapi/shutdown.o \
2457 lib/netapi/netlogon.o
2459 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2460 $(LIBSMBCONF_OBJ) \
2461 $(REG_SMBCONF_OBJ) \
2462 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2463 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2464 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2465 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2466 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2467 auth/token_util.o \
2468 $(LIBCLI_INITSHUTDOWN_OBJ) \
2469 $(LIBCLI_WKSSVC_OBJ) \
2470 $(LIBCLI_SRVSVC_OBJ) \
2471 $(LIBCLI_LSA_OBJ) \
2472 $(LIBCLI_SAMR_OBJ) \
2473 $(LIBCLI_NETLOGON_OBJ) \
2474 $(RPC_CLIENT_SCHANNEL_OBJ) \
2475 rpc_client/init_netlogon.o \
2476 rpc_client/init_samr.o
2478 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2479 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2480 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2481 LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@
2482 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2483 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2484 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2486 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2487 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2489 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2490 @echo Linking shared library $@
2491 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2492 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2493 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2494 @SONAMEFLAG@`basename $@`
2496 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2497 @rm -f $@
2498 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2500 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2501 @echo Linking non-shared library $@
2502 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2504 libnetapi: $(LIBNETAPI)
2506 cleanlibnetapi::
2507 -rm -f \
2508 $(LIBNETAPI_SYMS) \
2509 $(LIBNETAPI_STATIC_TARGET) \
2510 $(LIBNETAPI_SHARED_TARGET) \
2511 $(LIBNETAPI_SHARED_TARGET_SONAME)
2513 installlibnetapi:: installdirs libnetapi
2514 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2515 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2516 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2517 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2518 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2519 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2521 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2522 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2523 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2525 uninstalllibnetapi::
2526 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2527 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2528 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2529 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2531 libs:: libnetapi
2532 installlibs:: @INSTALL_LIBNETAPI@
2533 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2534 cleanlibs:: cleanlibnetapi
2535 shlibs test_shlibs: @LIBNETAPI_SHARED@
2537 showlibnetapi:
2538 @echo ""
2539 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2540 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2541 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2542 @echo ""
2543 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2544 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2545 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2546 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2547 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2548 @echo "LIBNETAPI = $(LIBNETAPI)"
2550 showlibs:: showlibnetapi
2552 #-------------------------------------------------------------------
2554 # libsmbclient
2556 #-------------------------------------------------------------------
2558 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2559 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2560 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2561 LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@
2562 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2563 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2564 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2565 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2567 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2568 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2570 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2571 @echo Linking shared library $@
2572 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2573 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2574 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2575 @SONAMEFLAG@`basename $@`
2577 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2578 @rm -f $@
2579 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2581 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2582 @echo Linking non-shared library $@
2583 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2585 libsmbclient: $(LIBSMBCLIENT)
2587 cleanlibsmbclient::
2588 -rm -f \
2589 $(LIBSMBCLIENT_SHARED_TARGET) \
2590 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2591 $(LIBSMBCLIENT_STATIC_TARGET)
2593 installlibsmbclient:: installdirs libsmbclient
2594 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2595 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2596 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2597 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2598 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2599 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2601 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2602 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2603 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2605 installclientlib:: installlibsmbclient
2607 uninstalllibsmbclient::
2608 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2609 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2610 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2611 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2613 uninstallclientlib:: uninstalllibsmbclient
2615 libs:: libsmbclient
2616 installlibs:: @INSTALL_LIBSMBCLIENT@
2617 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2618 cleanlibs:: cleanlibsmbclient
2619 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2621 showlibsmbclient:
2622 @echo ""
2623 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2624 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2625 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2626 @echo ""
2627 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2628 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2629 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2630 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2631 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2632 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2634 showlibs:: showlibsmbclient
2636 #-------------------------------------------------------------------
2638 # libsmbsharemodes
2640 #-------------------------------------------------------------------
2642 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o ../lib/ccan/hash/hash.o
2644 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2646 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2647 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2648 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2649 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@
2650 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2651 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2652 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2653 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2655 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2656 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2658 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2659 @echo Linking shared library $@
2660 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2661 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2662 @SONAMEFLAG@`basename $@`
2664 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2665 @rm -f $@
2666 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2668 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2669 @echo Linking non-shared library $@
2670 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2672 libsmbsharemodes: $(LIBSMBSHAREMODES)
2674 cleanlibsmbsharemodes::
2675 -rm -f \
2676 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2677 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2678 $(LIBSMBSHAREMODES_STATIC_TARGET)
2680 installlibsmbsharemodes:: installdirs libsmbsharemodes
2681 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2682 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2683 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2684 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2685 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2686 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2688 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2689 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2690 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2692 uninstalllibsmbsharemodes::
2693 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2694 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2695 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2696 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2698 libs:: libsmbsharemodes
2699 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2700 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2701 cleanlibs:: cleanlibsmbsharemodes
2702 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2704 showlibsmbsharemodes:
2705 @echo ""
2706 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2707 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2708 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2709 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2710 @echo ""
2711 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2712 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2713 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2714 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2715 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2716 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2718 showlibs:: showlibsmbsharemodes
2720 #####################################################################
2722 # shared modules
2724 #####################################################################
2726 # Linker command to link our shared libraries:
2727 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2728 -o $@ @SONAMEFLAG@`basename $@`
2729 # Linker command to link samba internal plugin modules:
2730 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2731 -o $@ @SONAMEFLAG@`basename $@`
2733 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2734 @echo "Linking $@"
2735 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2737 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2738 @echo "Linking $@"
2739 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2741 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2742 @echo "Linking $@"
2743 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2745 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2746 @echo "Linking $@"
2747 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2749 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2750 @echo "Linking $@"
2751 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2753 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2754 @echo "Linking $@"
2755 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2757 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2758 @echo "Linking $@"
2759 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2761 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2762 @echo "Linking $@"
2763 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2765 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2766 @echo "Linking $@"
2767 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2769 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2770 @echo "Linking $@"
2771 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2773 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2774 @echo "Linking $@"
2775 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2777 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2778 @echo "Linking $@"
2779 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2781 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2782 @echo "Linking $@"
2783 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2785 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2786 @echo "Linking $@"
2787 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2789 bin/winbindd: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2790 @echo "Linking $@"
2791 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2792 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2793 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2794 $(ZLIB_LIBS)
2796 bin/vlp: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB) $(LIBTALLOC)
2797 @echo "Linking $@"
2798 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2799 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2800 $(LIBTALLOC_LIBS) \
2801 $(LIBTDB_LIBS)
2803 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2804 @echo "Linking $@"
2805 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2806 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2807 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2809 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2810 @echo "Linking $@"
2811 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2812 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2813 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2815 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2816 @echo "Linking $@"
2817 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2818 @SONAMEFLAG@`basename $@`
2820 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2821 @echo "Linking shared library $@"
2822 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2823 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2825 ##########
2826 # Plugins:
2827 ##########
2829 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2830 @echo "Building plugin $@"
2831 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2833 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2834 @echo "Building plugin $@"
2835 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2837 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2838 @echo "Building plugin $@"
2839 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2841 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2842 @echo "Building plugin $@"
2843 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2845 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2846 @echo "Building plugin $@"
2847 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2849 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2850 @echo "Building plugin $@"
2851 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2853 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2854 @echo "Building plugin $@"
2855 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2857 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2858 @echo "Building plugin $@"
2859 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2861 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2862 @echo "Building plugin $@"
2863 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2865 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2866 passdb/pdb_ipa.o passdb/pdb_ldap_util.o
2867 @echo "Building plugin $@"
2868 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2869 passdb/pdb_ldap_util.o $(LDAP_LIBS)
2871 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2872 @echo "Building plugin $@"
2873 @$(SHLD_MODULE) passdb/pdb_ads.o
2875 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2876 @echo "Building plugin $@"
2877 @$(SHLD_MODULE) passdb/pdb_tdb.o
2879 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2880 @echo "Building plugin $@"
2881 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2883 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2884 @echo "Building plugin $@"
2885 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2887 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2888 @echo "Building plugin $@"
2889 @$(SHLD_MODULE) winbindd/idmap_rid.o
2891 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2892 @echo "Building plugin $@"
2893 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2895 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2896 @echo "Building plugin $@"
2897 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2899 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2900 @echo "Building plugin $@"
2901 @$(SHLD_MODULE) winbindd/idmap_ad.o
2903 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2904 @echo "Building plugin $@"
2905 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2907 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2908 @echo "Building plugin $@"
2909 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2911 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2912 @echo "Building plugin $@"
2913 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2915 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2916 @echo "Building plugin $@"
2917 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2919 # NOTE, there is no build rule for a dynamic default VFS module because
2920 # this one MUST MUST MUST be built statically.
2922 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2923 @echo "Building plugin $@"
2924 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2926 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2927 @echo "Building plugin $@"
2928 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2930 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2931 @echo "Building plugin $@"
2932 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2934 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2935 @echo "Building plugin $@"
2936 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2938 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2939 @echo "Building plugin $@"
2940 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2942 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2943 @echo "Building plugin $@"
2944 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2946 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2947 @echo "Building plugin $@"
2948 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2950 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2951 @echo "Building plugin $@"
2952 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2954 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2955 @echo "Building plugin $@"
2956 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2958 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2959 @echo "Building plugin $@"
2960 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2962 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2963 @echo "Building plugin $@"
2964 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2966 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2967 @echo "Building plugin $@"
2968 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2970 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2971 @echo "Building plugin $@"
2972 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2974 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2975 @echo "Building plugin $@"
2976 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2978 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2979 @echo "Building plugin $@"
2980 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2982 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2983 @echo "Building plugin $@"
2984 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2986 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2987 @echo "Building plugin $@"
2988 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2990 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2991 @echo "Building plugin $@"
2992 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2994 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2995 @echo "Building plugin $@"
2996 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2998 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2999 @echo "Building plugin $@"
3000 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
3002 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
3003 @echo "Building plugin $@"
3004 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
3006 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
3007 @echo "Building plugin $@"
3008 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
3010 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
3011 @echo "Building plugin $@"
3012 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
3014 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
3015 @echo "Building plugin $@"
3016 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
3018 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
3019 @echo "Building plugin $@"
3020 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
3022 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
3023 @echo "Building plugin $@"
3024 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
3026 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
3027 @echo "Building plugin $@"
3028 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
3030 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
3031 @echo "Building plugin $@"
3032 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
3034 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
3035 @echo "Building plugin $@"
3036 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
3038 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
3039 @echo "Building plugin $@"
3040 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
3042 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3043 @echo "Building plugin $@"
3044 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3046 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
3047 @echo "Building plugin $@"
3048 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
3050 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
3051 @echo "Building plugin $@"
3052 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
3054 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
3055 @echo "Building plugin $@"
3056 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
3058 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
3059 @echo "Building plugin $@"
3060 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
3062 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
3063 @echo "Building plugin $@"
3064 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
3066 bin/aio_pthread.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_PTHREAD_OBJ)
3067 @echo "Building plugin $@"
3068 @$(SHLD_MODULE) $(VFS_AIO_PTHREAD_OBJ)
3070 bin/aio_linux.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_LINUX_OBJ)
3071 @echo "Building plugin $@"
3072 @$(SHLD_MODULE) $(VFS_AIO_LINUX_OBJ)
3074 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
3075 @echo "Building plugin $@"
3076 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
3078 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3079 @echo "Building plugin $@"
3080 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3082 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3083 @echo "Building plugin $@"
3084 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3086 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3087 @echo "Building plugin $@"
3088 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3090 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3091 @echo "Building plugin $@"
3092 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3094 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3095 @echo "Building plugin $@"
3096 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3098 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3099 @echo "Building plugin $@"
3100 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3102 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3103 @echo "Building plugin $@"
3104 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3106 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3107 @echo "Building plugin $@"
3108 @$(SHLD_MODULE) libgpo/gpext/registry.o
3110 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3111 @echo "Building plugin $@"
3112 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3114 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3115 @echo "Building plugin $@"
3116 @$(SHLD_MODULE) libgpo/gpext/security.o
3118 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3119 @echo "Building plugin $@"
3120 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3122 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3123 @echo "Building plugin $@"
3124 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3126 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3127 @echo "Building plugin $@"
3128 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3130 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3131 @echo "Building plugin $@"
3132 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3134 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3135 @echo "Building plugin $@"
3136 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3138 #########################################################
3139 ## IdMap NSS plugins
3141 ## None here right now
3142 #########################################################
3144 bin/wbinfo: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3145 @echo Linking $@
3146 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3147 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3148 $(LIBWBCLIENT_LIBS)
3150 bin/ntlm_auth: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3151 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3152 @echo Linking $@
3153 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3154 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) $(ZLIB_LIBS) \
3155 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3156 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3158 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3159 @echo "Linking shared library $@"
3160 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
3161 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(KRB5LIBS) $(ZLIB_LIBS) \
3162 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3164 bin/tdbbackup: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3165 @echo Linking $@
3166 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3167 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3169 bin/tdbtool: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3170 @echo Linking $@
3171 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3172 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3174 bin/tdbdump: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3175 @echo Linking $@
3176 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3178 bin/tdbrestore: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3179 @echo Linking $@
3180 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3182 bin/tdbtorture: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3183 @echo Linking $@
3184 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3185 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3187 bin/timelimit: script/tests/timelimit.o
3188 @echo Linking $@
3189 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o $(LDFLAGS)
3191 bin/rpc_open_tcp: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3192 @echo "Linking $@"
3193 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3194 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3195 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3197 bin/test_lp_load: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3198 @echo "Linking $@"
3199 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3200 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3201 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3202 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3204 bin/dbwrap_tool: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3205 @echo "Linking $@"
3206 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3207 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3208 $(LDAP_LIBS) \
3209 $(POPT_LIBS) \
3210 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3212 install-dbwrap_tool:: bin/dbwrap_tool
3213 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3215 bin/dbwrap_torture: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3216 @echo "Linking $@"
3217 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3218 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3219 $(LDAP_LIBS) \
3220 $(POPT_LIBS) \
3221 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3223 install-dbwrap_torture:: bin/dbwrap_torture
3224 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3226 bin/split_tokens: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3227 @echo "Linking $@"
3228 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3229 $(LDFLAGS) $(DYNEXP) \
3230 $(LIBS) $(POPT_LIBS) \
3231 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3232 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3234 install:: installservers installbin installman \
3235 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3236 @INSTALL_PAM_MODULES@ installlibs installmo
3238 install-everything:: install installmodules
3240 # DESTDIR is used here to prevent packagers wasting their time
3241 # duplicating the Makefile. Remove it and you will have the privelege
3242 # of package each samba release for muliple versions of multiple
3243 # distributions and operating systems, or at least supplying patches
3244 # to all the packaging files required for this, prior to committing
3245 # the removal of DESTDIR. Do not remove it even though you think it
3246 # is not used
3248 installdirs::
3249 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3250 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3251 $(VARDIR) $(PRIVATE_DIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3252 $(NMBDSOCKETDIR) $(WINBINDD_SOCKET_DIR) $(WINBINDD_PRIVILEGED_SOCKET_DIR) \
3253 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3255 installservers:: all installdirs
3256 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3258 installbin:: all installdirs
3259 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3261 # Some symlinks are required for the 'probing' of modules.
3262 # This mechanism should go at some point..
3263 installmodules:: modules installdirs
3264 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3265 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3266 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3267 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3268 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3269 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3270 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3271 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3272 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3273 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3274 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3275 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3276 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3277 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3278 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3279 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3280 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3281 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3283 installscripts:: installdirs
3284 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3286 installdat:: installdirs
3287 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3289 installmsg:: installdirs
3290 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3292 installswat:: installdirs installmsg
3293 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3295 installpammodules:: $(PAM_MODULES)
3296 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3297 @for module in $(PAM_MODULES); do \
3298 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3299 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3300 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3301 done
3303 # revert to the previously installed version
3304 revert::
3305 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3306 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3308 installman:: installdirs
3309 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3311 installmo:: all installdirs
3312 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3314 .PHONY: showlayout
3316 showlayout::
3317 @echo "Samba will be installed into:"
3318 @echo " prefix: $(prefix)"
3319 @echo " exec_prefix: $(exec_prefix)"
3320 @echo " sysconfdir: $(sysconfdir)"
3321 @echo " localstatedir: $(localstatedir)"
3322 @echo " datarootdir: $(datarootdir)"
3323 @echo " BINDIR: $(BINDIR)"
3324 @echo " SBINDIR: $(SBINDIR)"
3325 @echo " LIBDIR: $(LIBDIR)"
3326 # @echo " LIBEXECDIR: $(LIBEXECDIR)"
3327 @echo " MANDIR: $(MANDIR)"
3328 @echo " DATADIR: $(DATADIR)"
3329 @echo " LOCALEDIR: $(LOCALEDIR)"
3330 # @echo " SCRIPTSBINDIR: $(SCRIPTSBINDIR)"
3331 # @echo " PYTHONDIR: $(PYTHONDIR)"
3332 # @echo " PYTHONARCHDIR: $(PYTHONARCHDIR)"
3333 @echo " MODULESDIR: $(MODULESDIR)"
3334 @echo " INCLUDEDIR: $(INCLUDEDIR)"
3335 @echo " SETUPDIR: $(SETUPDIR)"
3336 # @echo " PKGCONFIGDIR: $(PKGCONFIGDIR)"
3337 @echo " SWATDIR: $(SWATDIR)"
3338 @echo " CODEPAGEDIR: $(CODEPAGEDIR)"
3339 @echo " PAMMODULESDIR: $(PAMMODULESDIR)"
3340 @echo " CONFIGDIR: $(CONFIGDIR)"
3341 @echo " PRIVATE_DIR: $(PRIVATE_DIR)"
3342 @echo " LOCKDIR: $(LOCKDIR)"
3343 @echo " PIDDIR: $(PIDDIR)"
3344 @echo " STATEDIR: $(STATEDIR)"
3345 @echo " CACHEDIR: $(CACHEDIR)"
3346 @echo " LOGFILEBASE: $(LOGFILEBASE)"
3347 @echo " SOCKET_DIR: $(SOCKET_DIR)"
3348 @echo " PRIVILEGED_SOCKET_DIR: $(PRIVILEGED_SOCKET_DIR)"
3349 @echo " WINBINDD_SOCKET_DIR: $(WINBINDD_SOCKET_DIR)"
3350 @echo " WINBINDD_PRIVILEGED_SOCKET_DIR: $(WINBINDD_PRIVILEGED_SOCKET_DIR)"
3351 @echo " NMBDSOCKETDIR: $(NMBDSOCKETDIR)"
3352 # @echo " NTP_SIGND_SOCKET_DIR: $(NTP_SIGND_SOCKET_DIR)"
3353 @echo " NCALRPCDIR: $(NCALRPCDIR)"
3354 @echo " CONFIGFILE: $(CONFIGFILE)"
3355 @echo " LMHOSTSFILE: $(LMHOSTSFILE)"
3356 @echo " SMB_PASSWD_FILE: $(SMB_PASSWD_FILE)"
3359 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3361 uninstallmo::
3362 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3364 uninstallman::
3365 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3367 uninstallservers::
3368 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3370 uninstallbin::
3371 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3373 uninstallmodules::
3374 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3375 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3376 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3377 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3378 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3379 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3380 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3382 uninstallscripts::
3383 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3385 uninstalldat::
3386 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3388 uninstallmsg::
3389 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3391 uninstallswat:: uninstallmsg
3392 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3394 uninstallpammodules::
3395 @for module in $(PAM_MODULES); do \
3396 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3397 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3398 done
3400 cleanlibs::
3401 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3402 ../lib/*/*.ho \
3403 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3404 ../librpc/*/*.o \
3405 ../libgpo/*.o ../libgpo/*/*.o \
3406 ../libds/*.o ../libds/*/*.o ../dynconfig/*.o ../auth/*.o ../auth/*/*.o
3408 clean:: cleanlibs
3409 -rm -f include/build_env.h
3410 -rm -f smbd/build_options.c
3411 -rm -f param/param_local.h
3412 -rm -f param/param_global.h
3413 -rm -f ../lib/param/param_local.h
3414 -rm -f ../lib/param/param_global.h
3415 -rm -f ../lib/param/param_proto.h
3416 -rm -f ../lib/param/s3_param.h
3417 -rm -f $(PRECOMPILED_HEADER)
3418 -rm -f core */*~ *~ \
3419 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3420 ../testsuite/*/*.o \
3421 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3422 ../client/*.o \
3423 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3424 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3425 $(MODULES) $(TORTURE_PROGS) \
3426 $(EVERYTHING_PROGS) \
3427 bin/timelimit \
3428 .headers.stamp */src/*.o
3429 -rm -rf t_dir
3431 include/build_env.h: script/build_env.sh
3432 @echo Building include/build_env.h
3433 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3434 > $(builddir)/include/build_env.h
3436 proto::
3438 etags::
3439 rm -f TAGS
3440 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3442 ctags::
3443 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3445 realclean:: clean
3446 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3447 -rm -f script/installbin.sh script/uninstallbin.sh
3449 distclean:: realclean
3450 -rm -f smbadduser
3451 -rm -f include/autoconf/config.h Makefile
3452 -rm -f config.status config.cache so_locations
3453 -rm -rf .deps TAGS
3455 realdistclean:: distclean
3456 -rm -f include/autoconf/config.h.in
3457 -rm -f include/version.h
3458 -rm -f configure
3460 # this target is really just for my use. It only works on a limited
3461 # range of machines and is used to produce a list of potentially
3462 # dead (ie. unused) functions in the code. (tridge)
3463 finddead::
3464 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3465 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3466 comm -13 nmused.txt nmfns.txt
3469 # when configure.in is updated, reconfigure
3470 $(srcdir)/configure: $(srcdir)/configure.in
3471 @echo "WARNING: you need to rerun ./autogen.sh"
3473 config.status: $(srcdir)/configure
3474 @echo "WARNING: you need to run ./configure"
3476 Makefile: $(srcdir)/Makefile.in config.status
3477 @echo "WARNING: you need to run ./config.status"
3479 ######################################################################
3480 # Samba Testing Framework
3482 # Check shared libs for unresolved symbols
3483 test_shlibs:
3484 @echo "Testing $? "
3485 @$(LIB_PATH_VAR)=./bin && \
3486 export $(LIB_PATH_VAR) && \
3487 for module in $?; do \
3488 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3489 || exit 1; \
3490 done
3492 # Check for NSS module problems.
3493 test_nss_modules:: nss_modules
3494 @echo "Testing $(NSS_MODULES) "
3495 @$(LIB_PATH_VAR)=./bin && \
3496 export $(LIB_PATH_VAR) && \
3497 for module in $(NSS_MODULES); do \
3498 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3499 || exit 1; \
3500 done
3502 # Check for PAM module problems. Specifically, check that every module we
3503 # built can actually be loaded by a minimal PAM-aware application.
3504 test_pam_modules:: pam_modules
3505 @echo "Testing $(PAM_MODULES) "
3506 @$(LIB_PATH_VAR)=./bin && \
3507 export $(LIB_PATH_VAR) && \
3508 for module in $(PAM_MODULES); do \
3509 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3510 || exit 1; \
3511 done
3515 ## Targets for 'make test'
3518 valgrindtest:: all torture timelimit
3519 @echo Running Test suite with valgrind
3520 @$(MAKE) test \
3521 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3522 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3523 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3524 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3526 selftestdir = ../selftest
3528 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3530 test:: all torture timelimit
3531 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3532 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3533 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3534 SOURCEDIR="$(srcdir)" \
3535 VFSLIBDIR="$(builddir)/bin" \
3536 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3537 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3538 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3539 $(srcdir)/selftest/s3-selftest.sh
3541 test-%:
3542 $(MAKE) test TESTS=$*
3544 buildfarm-test:
3545 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3547 subunit-test:
3548 $(MAKE) test SUBUNIT_FORMATTER=cat
3550 SELFTEST_TESTENV = s3dc
3552 testenv:
3553 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3555 gdbtestenv:
3556 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3557 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3558 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3559 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3560 TESTS="--testenv"
3562 valgrindtestenv:
3563 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3564 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3565 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3566 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3567 TESTS="--testenv"
3570 # Check for Winbind struct 32/64bit padding
3571 test_wbpad:
3572 @echo "Testing winbind request/response structure for 32/64bit padding"
3573 @./script/tests/wb_pad.sh || exit 1;
3576 ## Examples:
3579 libsmbclient_examples: libsmbclient
3580 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3582 clean_libsmbclient_examples:
3583 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3585 libnetapi_examples: libnetapi
3586 $(MAKE) -C lib/netapi/examples
3588 clean_libnetapi_examples:
3589 $(MAKE) -C lib/netapi/examples clean
3591 .PHONY: bin/smbtorture4 bin/ndrdump4
3593 bin/smbtorture4: $(BINARY_PREREQS)
3594 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3596 bin/ndrdump4: $(BINARY_PREREQS)
3597 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
3599 .PHONY: vfs_examples
3601 vfs_examples:
3603 cd ../examples/VFS && \
3604 ./autogen.sh && \
3605 ./configure && \
3606 make clean && \
3607 make \