s4-provision set passdb backend to 'samba4' in template smb.conf files
[Samba.git] / source3 / Makefile.in
blob39e62cce39960065e6b00458ee3c8288fd73933c
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@
56 selftest_shrdir=@selftest_shrdir@
57 smbtorture4_path=@smbtorture4_path@
58 smbtorture4_option=@smbtorture4_option@
59 selftest_custom_conf=@selftest_custom_conf@
61 LIBS=@LIBS@
62 CC=@CC@
63 SHLD=@SHLD@
64 LIB_PATH_VAR=@LIB_PATH_VAR@
66 ## Dynamic shared libraries build settings
67 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
68 DSO_EXPORTS=@DSO_EXPORTS@
69 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
71 # The MODULE_EXPORTS variable contains the platform-specific linker flags
72 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
73 MODULE_EXPORTS=@MODULE_EXPORTS@
75 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
76 # (GCC) warnings. This is done automatically for --enable-developer,
77 # --enable-picky-developer and --enable-krb5developer.
78 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
79 CFLAGS=@CFLAGS@
80 CPP=@CPP@
81 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
82 PICFLAG=@PICFLAG@
84 EXEEXT=@EXEEXT@
85 AR=@AR@
86 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
87 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
88 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
90 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
91 AWK=@AWK@
92 DYNEXP=@DYNEXP@
93 PERL=@PERL@
94 PYTHON=@PYTHON@
95 LIBDL=@LIBDL@
97 PIDL_ARGS=@PIDL_ARGS@
99 TERMLDFLAGS=@TERMLDFLAGS@
100 TERMLIBS=@TERMLIBS@
101 PRINT_LIBS=@PRINT_LIBS@
102 ZLIB_LIBS=@ZLIB_LIBS@
103 AUTH_LIBS=@AUTH_LIBS@
104 ACL_LIBS=@ACL_LIBS@
105 PASSDB_LIBS=@PASSDB_LIBS@
106 IDMAP_LIBS=@IDMAP_LIBS@
107 KRB5LIBS=@KRB5_LIBS@
108 LDAP_LIBS=@LDAP_LIBS@
109 NSCD_LIBS=@NSCD_LIBS@
110 UUID_LIBS=@UUID_LIBS@
111 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
112 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
113 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
114 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
115 DNSSD_LIBS=@DNSSD_LIBS@
116 AVAHI_LIBS=@AVAHI_LIBS@
117 POPT_LIBS=@POPTLIBS@
118 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
119 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
120 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
121 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
122 LIBTDB_LIBS=@LIBTDB_LIBS@
123 TDB_DEPS=@TDB_DEPS@
124 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
125 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
126 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
127 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
129 TALLOCTORT = @TALLOCTORT@
131 TDBBACKUP = @TDBBACKUP@
132 TDBTOOL = @TDBTOOL@
133 TDBDUMP = @TDBDUMP@
134 TDBRESTORE = @TDBRESTORE@
135 TDBTORTURE = @TDBTORTURE@
136 PTHREADPOOLTEST = @PTHREADPOOLTEST@
138 INSTALLCMD=@INSTALL@
139 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
140 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
141 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
142 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
144 VPATH=@srcdir@
145 srcdir=@abs_srcdir@
146 builddir=@abs_builddir@
147 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
148 # will search for a POSIX-compliant shell, and that might not be
149 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
150 SHELL=/bin/sh
151 DESTDIR=/
153 # See the autoconf manual "Installation Directory Variables" for a
154 # discussion of the subtle use of these variables.
156 VFSLIBDIR = $(MODULESDIR)/vfs
157 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
158 PDBLIBDIR = $(MODULESDIR)/pdb
159 RPCLIBDIR = $(MODULESDIR)/rpc
160 IDMAPLIBDIR = $(MODULESDIR)/idmap
161 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
162 CHARSETLIBDIR = $(MODULESDIR)/charset
163 AUTHLIBDIR = $(MODULESDIR)/auth
164 CONFIGLIBDIR = $(MODULESDIR)/config
165 GPEXTLIBDIR = $(MODULESDIR)/gpext
166 VARDIR = @localstatedir@
168 # The permissions to give the executables and other data
169 INSTALLPERMS_BIN = 0755
170 INSTALLPERMS_DATA = 0644
172 FLAGS = -I. \
173 -I$(srcdir) \
174 @FLAGS1@ \
175 @SAMBA_CPPFLAGS@ \
176 $(CPPFLAGS) \
177 $(ISA) \
178 -I$(srcdir)/lib \
179 -I.. \
180 -D_SAMBA_BUILD_=3
182 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
183 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
184 -DCONFIGFILE=\"$(CONFIGFILE)\" \
185 -DSBINDIR=\"$(SBINDIR)\" \
186 -DBINDIR=\"$(BINDIR)\" \
187 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
188 -DSWATDIR=\"$(SWATDIR)\" \
189 -DLOCKDIR=\"$(LOCKDIR)\" \
190 -DPIDDIR=\"$(PIDDIR)\" \
191 -DLIBDIR=\"$(LIBDIR)\" \
192 -DMODULESDIR=\"$(MODULESDIR)\" \
193 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
194 -DSHLIBEXT=\"@SHLIBEXT@\" \
195 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
196 -DCONFIGDIR=\"$(CONFIGDIR)\" \
197 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
198 -DCACHEDIR=\"$(CACHEDIR)\" \
199 -DSTATEDIR=\"$(STATEDIR)\" \
200 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
201 -DLOCALEDIR=\"$(LOCALEDIR)\" \
202 -DDATADIR=\"$(DATADIR)\" \
203 -DSETUPDIR=\"$(SETUPDIR)\"
205 # Note that all executable programs now provide for an optional executable suffix.
207 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
209 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
210 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
211 bin/smbta-util@EXEEXT@
212 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
213 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
214 $(TDBRESTORE) \
215 $(TDBTOOL)
216 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
217 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
218 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
220 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
221 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
222 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
223 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
224 $(TDBTORTURE) $(PTHREADPOOLTEST) \
225 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
227 BIN_PROGS = @EXTRA_BIN_PROGS@ \
228 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
230 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
231 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
232 bin/log2pcap@EXEEXT@ \
233 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
234 bin/dbwrap_tool@EXEEXT@ \
235 bin/dbwrap_torture@EXEEXT@
237 PAM_MODULES = @PAM_MODULES@
239 NSS_MODULES = @NSS_MODULES@
241 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
243 VFS_MODULES = @VFS_MODULES@
244 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
245 PDB_MODULES = @PDB_MODULES@
246 IDMAP_MODULES = @IDMAP_MODULES@
247 CHARSET_MODULES = @CHARSET_MODULES@
248 AUTH_MODULES = @AUTH_MODULES@
249 NSS_INFO_MODULES = @NSS_INFO_MODULES@
250 GPEXT_MODULES = @GPEXT_MODULES@
251 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
252 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
253 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
255 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
257 ######################################################################
258 # object file lists
259 ######################################################################
261 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
262 ../lib/util/tdb_wrap.o \
263 lib/dbwrap/dbwrap.o \
264 lib/dbwrap/dbwrap_open.o \
265 lib/dbwrap/dbwrap_tdb.o \
266 lib/dbwrap/dbwrap_ctdb.o \
267 lib/g_lock.o \
268 lib/dbwrap/dbwrap_rbt.o
270 TDB_VALIDATE_OBJ = lib/tdb_validate.o
272 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
274 VERSION_OBJ = lib/version.o
276 WBCOMMON_OBJ = ../nsswitch/wb_common.o
278 AFS_OBJ = lib/afs.o
280 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
282 AVAHI_OBJ = @AVAHI_OBJ@
284 SERVER_MUTEX_OBJ = lib/server_mutex.o
286 PASSCHANGE_OBJ = libsmb/passchange.o
288 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
289 ../librpc/ndr/ndr_compression.o \
290 librpc/gen_ndr/ndr_drsuapi.o \
291 ../librpc/ndr/ndr_drsblobs.o \
292 librpc/gen_ndr/ndr_drsblobs.o
294 ZLIB_OBJ = @ZLIB_OBJS@
296 COMPRESSION_OBJ = ../lib/compression/mszip.o \
297 ../lib/compression/lzxpress.o \
298 $(ZLIB_OBJ)
300 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
301 $(COMPRESSION_OBJ)
303 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
304 ../librpc/ndr/ndr_ntlmssp.o
306 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
307 ../librpc/ndr/ndr.o \
308 ../librpc/ndr/ndr_misc.o \
309 librpc/gen_ndr/ndr_misc.o \
310 librpc/gen_ndr/ndr_security.o \
311 ../librpc/ndr/ndr_sec_helper.o \
312 ../librpc/ndr/ndr_string.o \
313 ../librpc/ndr/uuid.o \
314 ../librpc/ndr/util.o \
315 librpc/gen_ndr/ndr_server_id.o \
316 librpc/gen_ndr/ndr_dcerpc.o
318 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
319 librpc/gen_ndr/ndr_lsa.o
321 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
322 ../librpc/ndr/ndr_netlogon.o
324 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
325 ../librpc/ndr/ndr_schannel.o
327 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
328 ../librpc/ndr/ndr_spoolss_buf.o
330 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
331 ../librpc/ndr/ndr_ntprinting.o \
333 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
334 ../librpc/ndr/ndr_preg.o
336 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
337 ../librpc/ndr/ndr_xattr.o
339 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss_c.o \
340 rpc_client/cli_spoolss.o \
341 rpc_client/init_spoolss.o \
342 rpc_client/cli_winreg_spoolss.o \
343 printing/nt_printing_os2.o
345 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/ndr_eventlog_c.o
347 LIBCLI_WINREG_OBJ = librpc/gen_ndr/ndr_winreg_c.o \
348 rpc_client/cli_winreg.o
350 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
351 rpc_client/cli_winreg_int.o
353 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/ndr_ntsvcs_c.o
355 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/ndr_drsuapi_c.o
357 LIBCLI_DFS_OBJ = librpc/gen_ndr/ndr_dfs_c.o
359 LIBCLI_ECHO_OBJ = librpc/gen_ndr/ndr_echo_c.o
361 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/ndr_initshutdown_c.o
363 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/ndr_dssetup_c.o
365 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/ndr_svcctl_c.o
367 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/ndr_wkssvc_c.o
369 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/ndr_srvsvc_c.o
371 LIBCLI_LSA_OBJ = librpc/gen_ndr/ndr_lsa_c.o \
372 rpc_client/cli_lsarpc.o \
373 rpc_client/init_lsa.o
375 LIBCLI_SAMR_OBJ = librpc/gen_ndr/ndr_samr_c.o \
376 rpc_client/cli_samr.o
378 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon_c.o \
379 rpc_client/cli_netlogon.o \
380 rpc_client/util_netlogon.o
382 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/ndr_epmapper_c.o
384 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
385 $(LIBNDR_GEN_OBJ0) \
386 librpc/gen_ndr/ndr_dfs.o \
387 librpc/gen_ndr/ndr_echo.o \
388 librpc/gen_ndr/ndr_winreg.o \
389 librpc/gen_ndr/ndr_initshutdown.o \
390 librpc/gen_ndr/ndr_srvsvc.o \
391 librpc/gen_ndr/ndr_eventlog.o \
392 $(LIBNDR_NETLOGON_OBJ) \
393 librpc/gen_ndr/ndr_dssetup.o \
394 librpc/gen_ndr/ndr_epmapper.o \
395 librpc/gen_ndr/ndr_ntsvcs.o \
396 $(LIBNDR_SPOOLSS_OBJ)
398 # this includes only the low level parse code, not stuff
399 # that requires knowledge of security contexts
400 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
402 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
404 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
405 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
407 LIBSAMBAUTIL_OBJ = \
408 $(LIBREPLACE_OBJ) \
409 $(SOCKET_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 ../lib/crypto/md5.o \
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
431 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) $(LIBTSOCKET_OBJ) \
432 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
433 lib/messages_ctdbd.o lib/ctdb_packet.o lib/ctdbd_conn.o \
434 lib/id_cache.o \
435 ../lib/socket/interfaces.o lib/memcache.o \
436 lib/talloc_dict.o \
437 lib/serverid.o \
438 lib/util_sconn.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 libsmb/clisigning.o libsmb/smb_signing.o \
463 ../lib/util/charset/iconv.o intl/lang_tdb.o \
464 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
465 lib/sessionid_tdb.o \
466 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
467 @CCAN_OBJ@ \
468 lib/server_contexts.o \
469 lib/server_prefork.o \
470 lib/server_prefork_util.o \
471 lib/ldap_escape.o @CHARSET_STATIC@ \
472 ../libcli/security/secdesc.o ../libcli/security/access_check.o \
473 ../libcli/security/secace.o ../libcli/security/object_tree.o \
474 ../libcli/security/sddl.o ../libcli/security/session.o \
475 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
476 lib/fncall.o \
477 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
478 lib/file_id.o lib/idmap_cache.o \
479 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
480 ../libcli/security/security_token.o ../libcli/security/util_sid.o \
481 ../libcli/smb/util.o
483 LIB_DUMMY_OBJ = lib/smbd_shim.o lib/dummyparam.o
484 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
486 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
488 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
489 # Be sure to include them into your application
490 POPT_LIB_OBJ = lib/popt_common.o
492 PARAM_WITHOUT_REG_OBJ = ../dynconfig/dynconfig.o param/loadparm.o param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
493 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
494 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
496 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
498 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
499 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
500 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
502 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
504 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
505 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
506 libgpo/gpo_reg.o \
507 $(GPEXT_OBJ)
508 LIBGPO_OBJ = $(LIBGPO_OBJ0)
510 LIBADS_OBJ = libads/ldap.o \
511 libads/sasl.o libads/sasl_wrapping.o \
512 libads/krb5_setpw.o \
513 libads/kerberos_util.o \
514 libads/ldap_user.o \
515 libads/ads_struct.o libads/kerberos_keytab.o \
516 libads/disp_sec.o libads/ldap_utils.o \
517 libads/ldap_schema.o libads/util.o libads/ndr.o
519 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o ../auth/kerberos/kerberos_pac.o \
520 ../librpc/ndr/ndr_krb5pac.o \
521 librpc/gen_ndr/ndr_krb5pac.o
523 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
525 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
526 librpc/gen_ndr/ndr_secrets.o \
527 passdb/secrets_lsa.o
529 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
530 ../libcli/netlogon/netlogon.o \
531 ../libcli/netlogon/ndr_netlogon.o \
532 librpc/gen_ndr/ndr_nbt.o \
533 librpc/gen_ndr/ndr_svcctl.o \
534 ../librpc/ndr/ndr_svcctl.o
536 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
537 libsmb/namequery.o ../libcli/nbt/lmhosts.o ../libcli/dns/dns_hosts_file.o libsmb/conncache.o \
538 libads/dns.o libads/sitename_cache.o
540 NTERR_OBJ = ../libcli/util/nterr.o libsmb/smberr.o
541 DOSERR_OBJ = ../libcli/util/doserr.o
542 ERRORMAP_OBJ = ../libcli/util/errormap.o libsmb/errormap.o
543 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
545 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
547 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
549 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
550 $(SECRETS_OBJ)
552 LIBSMB_OBJ0 = \
553 ../libcli/auth/ntlm_check.o \
554 libsmb/ntlmssp.o \
555 libsmb/ntlmssp_wrap.o \
556 ../auth/gensec/gensec.o \
557 ../libcli/auth/ntlmssp.o \
558 ../libcli/auth/ntlmssp_sign.o \
559 $(LIBNDR_NTLMSSP_OBJ) \
560 ../libcli/auth/ntlmssp_ndr.o \
561 ../libcli/auth/ntlmssp_server.o
563 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
564 $(LIBSMB_ERR_OBJ)
566 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
567 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o lib/ldb_compat.o
569 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
570 ../lib/tsocket/tsocket_helpers.o \
571 ../lib/tsocket/tsocket_bsd.o
573 CLDAP_OBJ = libads/cldap.o \
574 ../libcli/cldap/cldap.o \
575 ../lib/util/idtree.o \
576 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ)
578 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
580 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
581 ../libcli/auth/schannel_sign.o \
582 ../libcli/auth/schannel_state_tdb.o \
583 $(LIBNDR_SCHANNEL_OBJ)
585 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
586 libsmb/clikrb5.o ../libcli/auth/krb5_wrap.o libsmb/clispnego.o \
587 ../libcli/auth/spnego_parse.o \
588 ../lib/util/asn1.o \
589 libsmb/reparse_symlink.o \
590 libsmb/clisymlink.o \
591 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
592 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
593 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
594 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
595 libsmb/clioplock.o libsmb/clirap2.o \
596 libsmb/smb_seal.o libsmb/async_smb.o \
597 libsmb/read_smb.o \
598 libsmb/smb2cli_base.o \
599 libsmb/smb2cli_negprot.o \
600 libsmb/smb2cli_session.o \
601 libsmb/smb2cli_tcon.o \
602 libsmb/smb2cli_create.o \
603 ../libcli/smb/smb2_create_blob.o \
604 libsmb/smb2cli_close.o \
605 libsmb/smb2cli_flush.o \
606 libsmb/smb2cli_read.o \
607 libsmb/smb2cli_write.o \
608 libsmb/smb2cli_query_directory.o \
609 libsmb/cli_np_tstream.o \
610 libsmb/smbsock_connect.o \
611 $(LIBSAMBA_OBJ) \
612 $(LIBNMB_OBJ) \
613 $(LIBNBT_OBJ) \
614 $(CLDAP_OBJ) \
615 $(DRSUAPI_OBJ)
617 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
618 rpc_client/cli_pipe.o \
619 librpc/crypto/gse_krb5.o \
620 librpc/crypto/gse.o \
621 ../auth/kerberos/gssapi_pac.o \
622 librpc/crypto/cli_spnego.o \
623 librpc/rpc/rpc_common.o \
624 rpc_client/rpc_transport_np.o \
625 rpc_client/rpc_transport_sock.o \
626 rpc_client/rpc_transport_tstream.o \
627 ../librpc/rpc/binding.o \
628 ../librpc/rpc/dcerpc_util.o \
629 ../librpc/rpc/binding_handle.o \
630 librpc/rpc/dcerpc_helpers.o \
631 $(LIBCLI_EPMAPPER_OBJ)
633 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
636 # registry-related objects
638 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
640 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
641 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
642 REG_INIT_FULL_OBJ = registry/reg_init_full.o
644 REGFIO_OBJ = registry/regfio.o \
645 $(REG_PARSE_PRS_OBJ)
647 REG_API_REGF_OBJ = registry/reg_api_regf.o
649 REGOBJS_OBJ = registry/reg_objects.o
651 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
653 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
655 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
656 registry/reg_backend_shares.o \
657 registry/reg_backend_netlogon_params.o \
658 registry/reg_backend_prod_options.o \
659 registry/reg_backend_tcpip_params.o \
660 registry/reg_backend_hkpt_params.o \
661 registry/reg_backend_current_version.o \
662 registry/reg_backend_perflib.o
664 REG_BASE_OBJ = registry/reg_api.o \
665 registry/reg_dispatcher.o \
666 registry/reg_cachehook.o \
667 $(REGOBJS_OBJ) \
668 registry/reg_util_internal.o \
669 lib/util_nttoken.o \
670 $(REG_BACKENDS_BASE_OBJ) \
671 $(REG_INIT_BASIC_OBJ)
673 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
674 registry/reg_util_token.o \
675 registry/reg_api_util.o \
676 $(REG_BACKENDS_SMBCONF_OBJ) \
677 $(REG_INIT_SMBCONF_OBJ)
679 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
680 $(REG_BACKENDS_EXTRA_OBJ) \
681 $(REG_INIT_FULL_OBJ) \
682 registry/reg_perfcount.o \
683 librpc/gen_ndr/ndr_perfcount.o
685 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
687 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
689 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
690 librpc/gen_ndr/srv_lsa.o
692 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
693 librpc/gen_ndr/srv_netlogon.o
695 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
696 rpc_server/samr/srv_samr_util.o \
697 rpc_server/samr/srv_samr_chgpasswd.o \
698 librpc/gen_ndr/srv_samr.o
700 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
702 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
703 librpc/gen_ndr/srv_winreg.o
705 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
707 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
708 librpc/gen_ndr/srv_srvsvc.o
710 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
711 rpc_server/wkssvc/srv_wkssvc_nt.o
713 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
714 rpc_server/svcctl/srv_svcctl_reg.o \
715 librpc/gen_ndr/srv_svcctl.o \
716 services/svc_winreg_glue.o \
717 services/svc_spoolss.o services/svc_rcinit.o \
718 services/svc_netlogon.o services/svc_winreg.o \
719 services/svc_wins.o
721 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
722 librpc/gen_ndr/srv_ntsvcs.o
724 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
725 rpc_server/dfs/srv_dfs_nt.o
727 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
728 rpc_server/spoolss/srv_spoolss_util.o \
729 librpc/gen_ndr/srv_spoolss.o
731 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
732 rpc_server/eventlog/srv_eventlog_reg.o \
733 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
735 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
736 librpc/gen_ndr/ndr_named_pipe_auth.o \
737 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o ../librpc/ndr/ndr_auth.o
739 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
740 rpc_server/rpc_handles.o rpc_server/rpc_contexts.o \
741 rpc_server/srv_access_check.o
743 RPC_CONFIG = rpc_server/rpc_config.o
745 RPC_SERVICE = rpc_server/rpc_server.o
747 RPC_CRYPTO = rpc_server/dcesrv_ntlmssp.o \
748 rpc_server/dcesrv_gssapi.o \
749 rpc_server/dcesrv_spnego.o
751 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
752 $(RPC_CONFIG) $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
754 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
756 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
758 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_register.o $(DCE_RPC_EP_OBJ)
760 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
761 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
762 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
763 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
764 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
765 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
766 $(LIBCLI_SPOOLSS_OBJ) \
767 $(LIBCLI_WINREG_INT_OBJ) \
768 $(LIBCLI_SRVSVC_OBJ) \
769 $(LIBCLI_LSA_OBJ) \
770 $(LIBCLI_SAMR_OBJ) \
771 $(LIBCLI_NETLOGON_OBJ) \
772 $(RPC_SERVER_REGISTER_OBJ) \
773 $(RPC_CLIENT_SCHANNEL_OBJ) \
774 rpc_server/rpc_sock_helper.o \
775 rpc_server/rpc_service_setup.o \
776 rpc_client/init_netlogon.o \
777 rpc_client/init_samr.o
779 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
781 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
783 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
785 PRIVILEGES_OBJ = lib/privileges.o
787 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
789 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
790 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
791 lib/util_unixsids.o passdb/lookup_sid.o \
792 passdb/login_cache.o @PDB_STATIC@ \
793 passdb/account_pol.o $(PRIVILEGES_OBJ) \
794 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
795 passdb/pdb_util.o
797 DEVEL_HELP_WEIRD_OBJ = ../lib/util/charset/weird.o
798 CP850_OBJ = ../lib/util/charset/CP850.o
799 CP437_OBJ = ../lib/util/charset/CP437.o
800 CHARSET_MACOSXFS_OBJ = ../lib/util/charset/charset_macosxfs.o
802 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
804 PROFILE_OBJ = profile/profile.o
805 PROFILES_OBJ = utils/profiles.o \
806 $(LIBSMB_ERR_OBJ) \
807 $(PARAM_OBJ) \
808 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
809 $(POPT_LIB_OBJ) \
810 $(REGFIO_OBJ)
812 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
813 smbd/oplock_onefs.o
815 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
816 librpc/gen_ndr/ndr_notify.o librpc/gen_ndr/ndr_file_id.o
818 FNAME_UTIL_OBJ = lib/filename_util.o
820 VFS_DEFAULT_OBJ = modules/vfs_default.o
821 VFS_AUDIT_OBJ = modules/vfs_audit.o
822 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
823 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
824 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
825 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
826 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
827 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
828 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
829 VFS_CAP_OBJ = modules/vfs_cap.o
830 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
831 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
832 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
833 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
834 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
835 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
836 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
837 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
838 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
839 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
840 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
841 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
842 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
843 VFS_CATIA_OBJ = modules/vfs_catia.o
844 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
845 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
846 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
847 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
848 VFS_COMMIT_OBJ = modules/vfs_commit.o
849 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
850 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
851 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
852 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
853 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
854 VFS_FILEID_OBJ = modules/vfs_fileid.o
855 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
856 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
857 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
858 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
859 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
860 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
861 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
862 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
863 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
864 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
865 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
866 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
867 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
868 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
869 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
870 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
871 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
873 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
874 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
876 SLCACHE_OBJ = libsmb/samlogon_cache.o
878 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
880 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
881 AUTH_DOMAIN_OBJ = auth/auth_domain.o
882 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
883 AUTH_SERVER_OBJ = auth/auth_server.o
884 AUTH_UNIX_OBJ = auth/auth_unix.o
885 AUTH_WINBIND_OBJ = auth/auth_winbind.o
886 AUTH_WBC_OBJ = auth/auth_wbc.o
887 AUTH_SCRIPT_OBJ = auth/auth_script.o
888 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
890 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
891 auth/server_info.o \
892 auth/server_info_sam.o \
893 auth/user_info.o \
894 auth/user_util.o \
895 auth/user_krb5.o \
896 auth/auth_compat.o auth/auth_ntlmssp.o \
897 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
899 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
901 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o smbd/msg_idmap.o
903 BUILDOPT_OBJ = smbd/build_options.o
905 SMBD_OBJ_SRV = smbd/server_reload.o \
906 smbd/files.o smbd/connection.o \
907 smbd/utmp.o smbd/session.o \
908 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/conn_idle.o smbd/conn_msg.o \
909 smbd/share_access.o smbd/fileio.o \
910 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
911 smbd/message.o smbd/nttrans.o smbd/pipes.o \
912 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
913 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
914 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
915 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
916 smbd/posix_acls.o lib/sysacls.o \
917 smbd/process.o smbd/service.o param/service.o smbd/error.o \
918 rpc_server/epmd.o \
919 rpc_server/lsasd.o \
920 printing/printspoolss.o printing/spoolssd.o \
921 lib/sysquotas.o lib/sysquotas_linux.o \
922 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
923 lib/sysquotas_nfs.o \
924 lib/smbd_shim.o \
925 smbd/fake_file.o \
926 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
927 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
928 smbd/dmapi.o smbd/signing.o \
929 smbd/file_access.o \
930 smbd/dnsregister.o smbd/globals.o \
931 smbd/smb2_server.o \
932 smbd/smb2_signing.o \
933 smbd/smb2_glue.o \
934 smbd/smb2_negprot.o \
935 smbd/smb2_sesssetup.o \
936 smbd/smb2_tcon.o \
937 smbd/smb2_create.o \
938 smbd/smb2_close.o \
939 smbd/smb2_flush.o \
940 smbd/smb2_read.o \
941 smbd/smb2_write.o \
942 smbd/smb2_lock.o \
943 smbd/smb2_ioctl.o \
944 smbd/smb2_keepalive.o \
945 smbd/smb2_find.o \
946 smbd/smb2_notify.o \
947 smbd/smb2_getinfo.o \
948 smbd/smb2_setinfo.o \
949 smbd/smb2_break.o \
950 $(MANGLE_OBJ) @VFS_STATIC@
952 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
953 $(RPC_SERVER_OBJ) \
954 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
955 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
956 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
957 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
958 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
959 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
960 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
961 $(LIBSMBCONF_OBJ) \
962 $(PRIVILEGES_BASIC_OBJ) \
963 $(REGFIO_OBJ) \
964 $(REG_API_REGF_OBJ) \
965 $(LIBNDR_XATTR_OBJ)
967 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
968 printing/print_cups.o printing/print_generic.o \
969 printing/lpq_parse.o printing/load.o \
970 printing/print_iprint.o printing/print_standard.o \
971 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
973 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
974 PRINTBACKEND_OBJ = printing/printing.o \
975 printing/nt_printing.o \
976 printing/nt_printing_tdb.o \
977 printing/nt_printing_migrate.o \
978 printing/nt_printing_migrate_internal.o \
979 printing/nt_printing_ads.o \
980 librpc/gen_ndr/ndr_ntprinting.o \
981 ../librpc/ndr/ndr_ntprinting.o \
982 printing/queue_process.o \
983 $(PRINTBASE_OBJ)
985 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
987 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
988 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
989 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
990 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
991 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
992 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
993 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
994 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
995 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
996 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
997 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
998 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
1000 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1001 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1002 $(LIBNDR_GEN_OBJ0)
1004 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
1005 web/swat.o web/neg_lang.o
1007 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
1008 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
1009 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
1010 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1011 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
1012 $(LIBCLI_SAMR_OBJ) \
1013 rpc_client/init_lsa.o
1015 STATUS_OBJ = utils/status.o utils/status_profile.o \
1016 $(LOCKING_OBJ) $(PARAM_OBJ) \
1017 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1018 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1020 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1021 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
1023 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
1024 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1025 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1026 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1027 $(LIBMSRPC_GEN_OBJ) \
1028 $(LIBMSRPC_OBJ) \
1029 $(LIBCLI_SRVSVC_OBJ)
1031 TESTPARM_OBJ = utils/testparm.o \
1032 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1033 $(LIBSMB_ERR_OBJ)
1035 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1036 $(LIB_NONSMBD_OBJ) \
1037 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1039 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1040 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1041 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1043 PASSWD_UTIL_OBJ = utils/passwd_util.o
1045 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1046 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1047 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1048 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1049 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1050 $(LIBCLI_SAMR_OBJ) \
1051 rpc_client/init_lsa.o
1053 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1054 $(LIBSAMBA_OBJ) \
1055 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1056 $(LIBCLI_LDAP_NDR_OBJ) \
1057 $(DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) \
1058 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1060 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1062 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1064 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1065 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1066 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1067 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1068 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1069 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1070 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1071 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1072 rpcclient/cmd_winreg.o \
1073 $(DISPLAY_SEC_OBJ)
1075 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1076 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1077 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1078 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1079 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1080 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1081 $(LIBCLI_SPOOLSS_OBJ) \
1082 $(LIBCLI_EVENTLOG_OBJ) \
1083 $(LIBCLI_NTSVCS_OBJ) \
1084 $(LIBCLI_DRSUAPI_OBJ) \
1085 $(LIBCLI_DFS_OBJ) \
1086 $(LIBCLI_ECHO_OBJ) \
1087 $(LIBCLI_DSSETUP_OBJ) \
1088 $(LIBCLI_WKSSVC_OBJ) \
1089 $(LIBCLI_SRVSVC_OBJ) \
1090 $(LIBCLI_LSA_OBJ) \
1091 $(LIBCLI_SAMR_OBJ) \
1092 $(LIBCLI_WINREG_OBJ) \
1093 $(LIBCLI_NETLOGON_OBJ) \
1094 $(RPC_CLIENT_SCHANNEL_OBJ) \
1095 rpc_client/init_netlogon.o \
1096 rpc_client/init_samr.o
1098 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1099 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1101 LIBSMBCLIENT_THREAD_OBJ = \
1102 libsmb/libsmb_thread_impl.o \
1103 libsmb/libsmb_thread_posix.o
1105 LIBSMBCLIENT_OBJ0 = \
1106 libsmb/libsmb_cache.o \
1107 libsmb/libsmb_compat.o \
1108 libsmb/libsmb_context.o \
1109 libsmb/libsmb_dir.o \
1110 libsmb/libsmb_file.o \
1111 libsmb/libsmb_misc.o \
1112 libsmb/libsmb_path.o \
1113 libsmb/libsmb_printjob.o \
1114 libsmb/libsmb_server.o \
1115 libsmb/libsmb_stat.o \
1116 libsmb/libsmb_xattr.o \
1117 libsmb/libsmb_setget.o
1119 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1120 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1121 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1122 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1123 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1124 $(LIBCLI_SRVSVC_OBJ) \
1125 $(LIBCLI_LSA_OBJ)
1127 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1129 # This shared library is intended for linking with unit test programs
1130 # to test Samba internals. It's called libbigballofmud.so to
1131 # discourage casual usage.
1133 LIBBIGBALLOFMUD_MAJOR = 0
1135 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1136 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1137 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1139 CLIENT_OBJ1 = client/client.o client/clitar.o \
1140 client/dnsbrowse.o \
1141 $(LIBMSRPC_OBJ)
1143 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1144 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1145 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1146 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1147 $(DISPLAY_SEC_OBJ) \
1148 $(LIBCLI_SRVSVC_OBJ)
1150 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1151 ../lib/smbconf/smbconf_util.o \
1152 ../lib/smbconf/smbconf_txt.o \
1153 lib/smbconf/smbconf_reg.o \
1154 lib/smbconf/smbconf_init.o
1156 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1158 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1159 $(LIB_NONSMBD_OBJ) \
1160 $(PARAM_OBJ) \
1161 $(LIBSMB_ERR_OBJ) \
1162 $(POPT_LIB_OBJ)
1164 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1165 lib/pthreadpool/tests.o
1167 LIBNET_OBJ = libnet/libnet_join.o \
1168 libnet/libnet_keytab.o \
1169 librpc/gen_ndr/ndr_libnet_join.o
1171 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1172 libnet/libnet_dssync_passdb.o \
1173 libnet/libnet_dssync_keytab.o \
1174 ../libcli/drsuapi/repl_decrypt.o
1176 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1177 libnet/libnet_samsync_ldif.o \
1178 libnet/libnet_samsync_passdb.o \
1179 libnet/libnet_samsync_display.o \
1180 libnet/libnet_samsync_keytab.o \
1181 ../libcli/samsync/decrypt.o
1183 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1184 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1185 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1186 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o utils/net_idmap_check.o\
1187 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1188 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1189 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1190 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1191 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1192 utils/net_conf.o utils/net_join.o utils/net_user.o \
1193 utils/net_group.o utils/net_file.o utils/net_registry.o \
1194 auth/token_util.o utils/net_dom.o utils/net_share.o \
1195 utils/net_g_lock.o \
1196 utils/net_serverid.o \
1197 utils/net_eventlog.o \
1198 utils/net_printing.o \
1199 utils/net_rpc_trust.o \
1200 $(LIBNDR_NTPRINTING_OBJ) \
1201 $(LIBNDR_PREG_OBJ) \
1202 $(LIBCLI_SPOOLSS_OBJ) \
1203 $(LIBCLI_WINREG_OBJ) \
1204 $(LIBCLI_DRSUAPI_OBJ) \
1205 $(LIBCLI_INITSHUTDOWN_OBJ) \
1206 $(LIBCLI_DSSETUP_OBJ) \
1207 $(LIBCLI_SVCCTL_OBJ) \
1208 $(LIBCLI_WKSSVC_OBJ) \
1209 $(LIBCLI_SRVSVC_OBJ) \
1210 $(LIBCLI_LSA_OBJ) \
1211 $(LIBCLI_SAMR_OBJ) \
1212 $(LIBCLI_NETLOGON_OBJ) \
1213 $(RPC_CLIENT_SCHANNEL_OBJ) \
1214 rpc_client/init_netlogon.o \
1215 rpc_client/init_samr.o \
1216 registry/reg_parse.o registry/reg_format.o \
1217 registry/reg_parse_internal.o registry/reg_import.o \
1218 lib/cbuf.o lib/srprs.o printing/nt_printing_migrate.o
1220 # these are not processed by make proto
1221 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1223 NET_OBJ = $(NET_OBJ1) \
1224 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1225 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1226 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1227 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1228 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1229 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1230 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1231 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1232 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1233 $(REG_SMBCONF_OBJ) \
1234 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1235 $(LIBSMBCONF_OBJ) \
1236 $(REGFIO_OBJ) \
1237 $(PRIVILEGES_BASIC_OBJ) \
1238 $(LIB_EVENTLOG_OBJ)
1240 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1241 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1242 $(LIBNDR_GEN_OBJ0)
1244 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1245 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1247 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1248 torture/denytest.o torture/mangle_test.o \
1249 torture/nbench.o \
1250 torture/test_async_echo.o \
1251 torture/test_smbsock_any_connect.o \
1252 torture/test_nttrans_create.o \
1253 torture/test_notify_online.o \
1254 torture/test_addrchange.o \
1255 torture/test_case_insensitive.o \
1256 torture/test_posix_append.o \
1257 torture/test_smb2.o
1259 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1260 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1261 @LIBWBCLIENT_STATIC@ \
1262 torture/wbc_async.o \
1263 ../nsswitch/wb_reqtrans.o \
1264 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1266 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1267 $(LIB_NONSMBD_OBJ) \
1268 $(LIBNDR_GEN_OBJ0)
1270 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1271 $(LIB_NONSMBD_OBJ) \
1272 $(LIBNDR_GEN_OBJ0)
1274 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1275 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1276 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1278 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1280 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1281 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1282 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1283 $(LIBNDR_GEN_OBJ0)
1285 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1287 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1289 LOG2PCAP_OBJ = utils/log2pcaphex.o
1291 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1292 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1293 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1295 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1296 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1297 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1298 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1299 $(LIBCLI_LSA_OBJ)
1301 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1302 $(PARAM_OBJ) \
1303 $(LIB_NONSMBD_OBJ) \
1304 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1305 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1306 $(LIBCLI_LSA_OBJ)
1308 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1310 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1311 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1312 librpc/gen_ndr/ndr_eventlog.o \
1313 librpc/gen_ndr/ndr_lsa.o
1315 SHARESEC_OBJ0 = utils/sharesec.o
1316 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1317 $(LIBSMB_ERR_OBJ) \
1318 $(POPT_LIB_OBJ)
1320 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1321 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1323 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1324 @libreplacedir@/test/getifaddrs.o \
1325 @libreplacedir@/test/os2_delete.o \
1326 @libreplacedir@/test/strptime.o \
1327 @libreplacedir@/test/main.o \
1328 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1330 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1332 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1333 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1334 $(LIBNDR_GEN_OBJ0)
1336 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1337 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1339 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1340 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1341 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1342 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1343 $(DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) \
1344 $(PAM_ERRORS_OBJ)
1346 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1348 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1350 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1352 IDMAP_HASH_OBJ = \
1353 winbindd/idmap_hash/idmap_hash.o \
1354 winbindd/idmap_hash/mapfile.o
1356 IDMAP_ADEX_OBJ = \
1357 winbindd/idmap_adex/idmap_adex.o \
1358 winbindd/idmap_adex/cell_util.o \
1359 winbindd/idmap_adex/likewise_cell.o \
1360 winbindd/idmap_adex/provider_unified.o \
1361 winbindd/idmap_adex/gc_util.o \
1362 winbindd/idmap_adex/domain_util.o
1364 WINBINDD_OBJ1 = \
1365 winbindd/winbindd.o \
1366 winbindd/winbindd_group.o \
1367 winbindd/winbindd_util.o \
1368 winbindd/winbindd_cache.o \
1369 winbindd/winbindd_pam.o \
1370 winbindd/winbindd_misc.o \
1371 winbindd/winbindd_cm.o \
1372 winbindd/winbindd_wins_byip.o \
1373 winbindd/winbindd_wins_byname.o \
1374 winbindd/winbindd_msrpc.o \
1375 winbindd/winbindd_rpc.o \
1376 winbindd/winbindd_reconnect.o \
1377 winbindd/winbindd_ads.o \
1378 winbindd/winbindd_samr.o \
1379 winbindd/winbindd_dual.o \
1380 winbindd/winbindd_dual_ndr.o \
1381 winbindd/winbindd_dual_srv.o \
1382 librpc/gen_ndr/ndr_wbint_c.o \
1383 librpc/gen_ndr/srv_wbint.o \
1384 librpc/gen_ndr/ndr_wbint.o \
1385 librpc/gen_ndr/ndr_idmap.o \
1386 winbindd/winbindd_async.o \
1387 winbindd/winbindd_creds.o \
1388 winbindd/winbindd_cred_cache.o \
1389 winbindd/winbindd_ccache_access.o \
1390 winbindd/winbindd_domain.o \
1391 winbindd/winbindd_idmap.o \
1392 winbindd/winbindd_locator.o \
1393 winbindd/winbindd_ndr.o \
1394 winbindd/wb_ping.o \
1395 winbindd/wb_lookupsid.o \
1396 winbindd/wb_lookupsids.o \
1397 winbindd/wb_lookupname.o \
1398 winbindd/wb_sid2uid.o \
1399 winbindd/wb_sid2gid.o \
1400 winbindd/wb_uid2sid.o \
1401 winbindd/wb_gid2sid.o \
1402 winbindd/wb_queryuser.o \
1403 winbindd/wb_lookupuseraliases.o \
1404 winbindd/wb_lookupusergroups.o \
1405 winbindd/wb_getpwsid.o \
1406 winbindd/wb_gettoken.o \
1407 winbindd/wb_seqnum.o \
1408 winbindd/wb_seqnums.o \
1409 winbindd/wb_group_members.o \
1410 winbindd/wb_getgrsid.o \
1411 winbindd/wb_query_user_list.o \
1412 winbindd/wb_fill_pwent.o \
1413 winbindd/wb_next_pwent.o \
1414 winbindd/wb_next_grent.o \
1415 winbindd/wb_dsgetdcname.o \
1416 winbindd/winbindd_lookupsid.o \
1417 winbindd/winbindd_lookupsids.o \
1418 winbindd/winbindd_lookupname.o \
1419 winbindd/winbindd_sid_to_uid.o \
1420 winbindd/winbindd_sid_to_gid.o \
1421 winbindd/winbindd_uid_to_sid.o \
1422 winbindd/winbindd_gid_to_sid.o \
1423 winbindd/winbindd_sids_to_xids.o \
1424 winbindd/winbindd_allocate_uid.o \
1425 winbindd/winbindd_allocate_gid.o \
1426 winbindd/winbindd_getpwsid.o \
1427 winbindd/winbindd_getpwnam.o \
1428 winbindd/winbindd_getpwuid.o \
1429 winbindd/winbindd_getsidaliases.o \
1430 winbindd/winbindd_getuserdomgroups.o \
1431 winbindd/winbindd_getgroups.o \
1432 winbindd/winbindd_show_sequence.o \
1433 winbindd/winbindd_getgrgid.o \
1434 winbindd/winbindd_getgrnam.o \
1435 winbindd/winbindd_getusersids.o \
1436 winbindd/winbindd_lookuprids.o \
1437 winbindd/winbindd_setpwent.o \
1438 winbindd/winbindd_getpwent.o \
1439 winbindd/winbindd_endpwent.o \
1440 winbindd/winbindd_setgrent.o \
1441 winbindd/winbindd_getgrent.o \
1442 winbindd/winbindd_endgrent.o \
1443 winbindd/winbindd_dsgetdcname.o \
1444 winbindd/winbindd_getdcname.o \
1445 winbindd/winbindd_list_users.o \
1446 winbindd/winbindd_list_groups.o \
1447 winbindd/winbindd_check_machine_acct.o \
1448 winbindd/winbindd_change_machine_acct.o \
1449 winbindd/winbindd_ping_dc.o \
1450 winbindd/winbindd_pam_auth.o \
1451 winbindd/winbindd_pam_auth_crap.o \
1452 winbindd/winbindd_pam_chauthtok.o \
1453 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1454 winbindd/winbindd_pam_logoff.o \
1455 auth/auth_util.o \
1456 auth/token_util.o \
1457 auth/user_util.o \
1458 auth/check_samsec.o \
1459 auth/server_info.o \
1460 auth/server_info_sam.o \
1461 auth/user_info.o \
1462 auth/pampass.o \
1463 ../nsswitch/wb_reqtrans.o
1465 WINBINDD_OBJ = \
1466 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1467 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1468 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1469 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1470 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1471 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1472 $(RPC_CONFIG) $(RPC_NCACN_NP) \
1473 $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1474 $(NPA_TSTREAM_OBJ) \
1475 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1476 $(LIBADS_SERVER_OBJ) \
1477 $(TDB_VALIDATE_OBJ) \
1478 $(LIBCLI_DSSETUP_OBJ) \
1479 $(LIBCLI_LSA_OBJ) \
1480 $(LIBCLI_SAMR_OBJ) \
1481 $(LIBCLI_NETLOGON_OBJ) \
1482 rpc_client/init_netlogon.o \
1483 rpc_client/init_samr.o \
1484 $(PAM_ERRORS_OBJ)
1486 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1487 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1488 lib/winbind_util.o $(WBCOMMON_OBJ)
1490 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1492 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1493 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1495 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1496 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1498 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1499 ../lib/iniparser_build/strlib.o
1501 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1502 $(SOCKET_WRAPPER_OBJ)
1504 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1505 $(SOCKET_WRAPPER_OBJ)
1507 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1508 $(SOCKET_WRAPPER_OBJ)
1510 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1511 $(SOCKET_WRAPPER_OBJ)
1513 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1514 $(SOCKET_WRAPPER_OBJ)
1517 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1519 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1520 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o ../libcli/auth/krb5_wrap.o libads/kerberos.o \
1521 libsmb/samlogon_cache.o \
1522 $(LIBADS_SERVER_OBJ) \
1523 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1524 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1525 $(WBCOMMON_OBJ) \
1526 $(LIBCLI_LDAP_NDR_OBJ) \
1527 $(DRSUAPI_OBJ) \
1528 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1531 VLP_OBJ = printing/tests/vlp.o \
1532 ../lib/util/util_tdb.o \
1533 $(LIBSAMBAUTIL_OBJ) \
1534 param/util.o
1536 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1537 $(LIBSMB_OBJ) \
1538 $(PARAM_OBJ) \
1539 $(PASSDB_OBJ) \
1540 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1541 $(LIB_NONSMBD_OBJ) \
1542 $(KRBCLIENT_OBJ) \
1543 $(LIBMSRPC_OBJ) \
1544 $(LIBMSRPC_GEN_OBJ)
1546 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1547 $(PARAM_OBJ) \
1548 $(LIB_NONSMBD_OBJ) \
1549 $(LIBSMB_ERR_OBJ)
1551 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1552 $(PARAM_OBJ) \
1553 $(LIB_NONSMBD_OBJ) \
1554 $(LIBSMB_ERR_OBJ) \
1555 $(POPT_LIB_OBJ)
1557 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1558 $(PARAM_OBJ) \
1559 $(LIB_NONSMBD_OBJ) \
1560 $(POPT_LIB_OBJ) \
1561 $(LIBSAMBA_OBJ)
1563 ######################################################################
1564 # now the rules...
1565 ######################################################################
1566 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1567 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1568 $(EXTRA_ALL_TARGETS)
1570 basics:: samba3-idl mkparam
1572 nss_modules:: $(NSS_MODULES)
1574 pam_modules:: $(PAM_MODULES)
1576 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1578 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1580 gpext_modules:: $(GPEXT_MODULES)
1582 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1584 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1586 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1588 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1590 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1592 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1594 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1596 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1598 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1600 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1602 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1604 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1606 talloctort : SHOWFLAGS $(TALLOCTORT)
1608 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1610 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1612 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest@EXEEXT@
1614 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1616 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1617 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1618 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1620 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1622 modules:: SHOWFLAGS $(MODULES)
1625 #####################################################################
1626 ## Perl IDL Compiler
1628 IDL_FILES = librpc/idl/messaging.idl \
1629 librpc/idl/libnetapi.idl \
1630 librpc/idl/wbint.idl \
1631 librpc/idl/perfcount.idl \
1632 librpc/idl/secrets.idl \
1633 librpc/idl/libnet_join.idl
1635 samba3-idl::
1636 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1637 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1638 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1639 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1641 idl_full::
1642 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1643 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1644 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1645 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1647 mkparam:
1648 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c --file ../lib/param/param_local.h --generate-scope=LOCAL
1649 $(PERL) ../script/mkparamdefs.pl $(srcdir)/param/loadparm.c --file param/param_global.h --generate-scope=GLOBAL
1651 #####################################################################
1654 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1655 $(EVERYTHING_PROGS) \
1656 vfs_examples
1658 .SUFFIXES:
1659 .SUFFIXES: .c .o .lo
1661 .PHONY: showflags SHOWFLAGS
1663 showflags: SHOWFLAGS
1665 SHOWFLAGS::
1666 @echo "Using CFLAGS = $(CFLAGS)"
1667 @echo " PICFLAG = $(PICFLAG)"
1668 @echo " LIBS = $(LIBS)"
1669 @echo " LDFLAGS = $(LDFLAGS)"
1670 @echo " DYNEXP = $(DYNEXP)"
1671 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1672 @echo " SHLIBEXT = @SHLIBEXT@"
1673 @echo " SONAMEFLAG = @SONAMEFLAG@"
1675 # "showcflags" target for debuggin how CFLAGS are composed:
1677 .PHONY: showcflags SHOWCFLAGS
1679 showcflags: SHOWCFLAGS
1681 SHOWCFLAGS::
1682 @echo "CFLAGS = $(CFLAGS)"
1683 @echo "FLAGS = $(FLAGS)"
1684 @echo ""
1685 @echo "FLAGS1 = @FLAGS1@"
1686 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1687 @echo "CPPFLAGS = $(CPPFLAGS)"
1688 @echo "ISA = $(ISA)"
1690 MAKEDIR = || exec false; \
1691 if test -d "$$dir"; then :; else \
1692 echo mkdir "$$dir"; \
1693 mkdir -p "$$dir" >/dev/null 2>&1 || \
1694 test -d "$$dir" || \
1695 mkdir "$$dir" || \
1696 exec false; fi || exec false
1698 # Run a static checker.
1699 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1700 # Compile a source file.
1701 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1702 # Compile a source file with the installation paths defined.
1703 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1705 COMPILE = $(COMPILE_CC)
1707 .c.o:
1708 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1709 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1710 @if test -n "$(CC_CHECKER)"; then \
1711 echo "Checking $*.c with '$(CC_CHECKER)'";\
1712 $(CHECK_CC); \
1714 @echo Compiling $*.c
1715 @$(COMPILE) && exit 0;\
1716 echo "The following command failed:" 1>&2;\
1717 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1718 $(COMPILE_CC) >/dev/null 2>&1
1719 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1721 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1723 # this adds support for precompiled headers. To use it, install a snapshot
1724 # of gcc-3.4 and run 'make pch' before you do the main build.
1725 pch::
1726 rm -f $(PRECOMPILED_HEADER)
1727 $(MAKE) $(PRECOMPILED_HEADER)
1729 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1730 $(COMPILE)
1732 BINARY_PREREQS = bin/.dummy
1734 # These dependencies are only approximately correct: we want to make
1735 # sure Samba's paths are updated if ./configure is re-run. Really it
1736 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1737 # but since we also require "make install prefix=/opt/samba" *not* to
1738 # rebuild it's a bit hard.
1740 ../dynconfig/dynconfig.o: ../dynconfig/dynconfig.c Makefile
1741 @echo Compiling $*.c
1742 @$(COMPILE_CC_PATH) && exit 0;\
1743 echo "The following command failed:" 1>&2;\
1744 echo "$(COMPILE_CC_PATH)" 1>&2;\
1745 $(COMPILE_CC_PATH) >/dev/null 2>&1
1747 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1748 @echo Compiling $*.c
1749 @$(COMPILE_CC_PATH) && exit 0;\
1750 echo "The following command failed:" 1>&2;\
1751 echo "$(COMPILE_CC_PATH)" 1>&2;\
1752 $(COMPILE_CC_PATH) >/dev/null 2>&1
1754 ### Start section of object files that require PTHREAD_CFLAGS
1755 ../nsswitch/wins.o: ../nsswitch/wins.c
1756 @echo Compiling $*.c
1757 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1758 echo "The following command failed:" 1>&2;\
1759 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1760 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1762 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1763 @echo Compiling $*.c
1764 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1765 echo "The following command failed:" 1>&2;\
1766 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1767 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1769 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1770 @echo Compiling $*.c
1771 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1772 echo "The following command failed:" 1>&2;\
1773 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1774 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1776 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1777 @echo Compiling $*.c
1778 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1779 echo "The following command failed:" 1>&2;\
1780 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1781 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1782 ### End section of object files that require PTHREAD_CFLAGS
1784 lib/pidfile.o: lib/pidfile.c
1785 @echo Compiling $*.c
1786 @$(COMPILE_CC_PATH) && exit 0;\
1787 echo "The following command failed:" 1>&2;\
1788 echo "$(COMPILE_CC_PATH)" 1>&2;\
1789 $(COMPILE_CC_PATH) >/dev/null 2>&1
1791 lib/version.o: lib/version.c include/version.h
1792 @echo Compiling $*.c
1793 @$(COMPILE_CC_PATH) && exit 0;\
1794 echo "The following command failed:" 1>&2;\
1795 echo "$(COMPILE_CC_PATH)" 1>&2;\
1796 $(COMPILE_CC_PATH) >/dev/null 2>&1
1798 smbd/build_options.o: smbd/build_options.c Makefile include/autoconf/config.h include/build_env.h include/proto.h
1799 @echo Compiling $*.c
1800 @$(COMPILE_CC_PATH) && exit 0;\
1801 echo "The following command failed:" 1>&2;\
1802 echo "$(COMPILE_CC_PATH)" 1>&2;\
1803 $(COMPILE_CC_PATH) >/dev/null 2>&1
1805 smbd/build_options.c: include/autoconf/config.h.in script/mkbuildoptions.awk
1806 @echo Generating $@
1807 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/autoconf/config.h.in
1809 bin/.dummy:
1810 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1811 dir=bin $(MAKEDIR); fi
1812 @: >> $@ || : > $@ # what a fancy emoticon!
1814 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1815 @echo Linking $@
1816 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1817 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1818 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1819 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1820 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1822 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1823 @echo Linking $@
1824 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1825 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1826 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1827 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1829 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1830 @echo Linking $@
1831 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1832 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1833 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1835 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1836 @echo Linking $@
1837 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1838 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1839 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1840 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1842 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1843 @echo Linking $@
1844 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1845 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1846 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1847 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1849 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1850 @echo Linking $@
1851 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1852 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1853 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1854 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1855 $(ZLIB_LIBS)
1857 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1858 @echo Linking $@
1859 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1860 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1862 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1863 @echo Linking $@
1864 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1865 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1866 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1868 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1869 @echo Linking $@
1870 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1871 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1873 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1874 @echo Linking $@
1875 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1876 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1878 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1879 @echo Linking $@
1880 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1881 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1883 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1884 @echo Linking $@
1885 @$(CC) -DUSING_SMBCONTROL -o $@ \
1886 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1887 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1888 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1890 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1891 @echo Linking $@
1892 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1893 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1894 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1896 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1897 @echo Linking $@
1898 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1899 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1900 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1902 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1903 @echo Linking $@
1904 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1905 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1906 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1908 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1909 @echo Linking $@
1910 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1911 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1912 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1914 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1915 @echo Linking $@
1916 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1917 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1919 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1920 @echo Linking $@
1921 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1922 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1923 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1925 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1926 @echo Linking $@
1927 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1928 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1929 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1931 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1932 @echo Linking $@
1933 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1934 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1936 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1937 @echo Linking $@
1938 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1939 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1940 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1942 bin/pthreadpooltest@EXEEXT@: $(PTHREADPOOLTEST_OBJ)
1943 @echo Linking $@
1944 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) $(LIBS) $(PTHREAD_LDFLAGS)
1946 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1947 @echo Linking $@
1948 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1949 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1950 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1951 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1953 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1954 @echo Linking $@
1955 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1956 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1957 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1959 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1960 @echo Linking $@
1961 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1962 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1963 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1965 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1966 @echo Linking $@
1967 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1968 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1969 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1971 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1972 @echo Linking $@
1973 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1974 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1976 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1977 @echo Linking $@
1978 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1979 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1981 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1982 @echo Linking $@
1983 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1984 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1985 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1986 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1988 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1989 @echo Linking $@
1990 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1992 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1993 @echo Linking $@
1994 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1995 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1996 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1998 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1999 @echo Linking $@
2000 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
2001 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
2002 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2003 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2004 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2006 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
2007 @echo Linking $@
2008 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
2009 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2010 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2012 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2013 @echo Linking $@
2014 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
2015 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
2017 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2018 @echo Linking $@
2019 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
2020 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2021 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2022 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2024 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2025 @echo Linking $@
2026 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
2027 $(LIBS) $(LIBTALLOC_LIBS)
2029 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2030 @echo Linking $@
2031 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2032 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2033 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2034 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2036 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2037 @echo Linking $@
2038 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2041 #####################################################################
2043 # libraries
2045 #####################################################################
2047 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2050 #-------------------------------------------------------------------
2052 # libtalloc
2054 #-------------------------------------------------------------------
2057 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2058 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2060 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2061 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2062 LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@
2063 LIBTALLOC_SHARED_TARGET_SONAME=@LIBTALLOC_SHARED_TARGET_SOVER@
2064 LIBTALLOC_SHARED_TARGET_FULLVER=@LIBTALLOC_SHARED_TARGET_FULLVER@
2065 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2066 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2067 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2069 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2070 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2072 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2073 @echo Linking shared library $@
2074 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2076 $(LIBTALLOC_SHARED_TARGET_FULLVER): $(LIBTALLOC_SHARED_TARGET_SONAME)
2077 @rm -f $@
2078 @mv -f $(LIBTALLOC_SHARED_TARGET_SONAME) $@
2079 @ln -f -s `basename $@` $(LIBTALLOC_SHARED_TARGET_SONAME)
2081 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_FULLVER)
2082 @rm -f $@
2083 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2085 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2086 @echo Linking non-shared library $@
2087 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2088 libtalloc: $(LIBTALLOC)
2090 cleanlibtalloc::
2091 -rm -f \
2092 $(LIBTALLOC_SYMS) \
2093 $(LIBTALLOC_STATIC_TARGET) \
2094 $(LIBTALLOC_SHARED_TARGET) \
2095 $(LIBTALLOC_SHARED_TARGET_SONAME)
2097 installlibtalloc:: installdirs libtalloc
2098 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2099 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2100 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2101 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2102 -if test -r $(LIBTALLOC_SHARED_TARGET_FULLVER) ; then \
2103 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_FULLVER)` \
2104 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` ; \
2106 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2107 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2108 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2110 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2111 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2112 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2114 uninstalllibtalloc::
2115 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2116 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2117 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2118 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2120 libs:: libtalloc
2121 installlibs:: @INSTALL_LIBTALLOC@
2122 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2123 cleanlibs:: cleanlibtalloc
2124 shlibs test_shlibs: @LIBTALLOC_SHARED@
2126 showlibtalloc:
2127 @echo ""
2128 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2129 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2130 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2131 @echo ""
2132 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2133 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2134 @echo "LIBTALLOC_FULLVER = $(LIBTALLOC_FULLVER)"
2135 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2136 @echo "LIBTALLOC_SHARED TARGET_FULLVER = $(LIBTALLOC_SHARED_TARGET_FULLVER)"
2137 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2138 @echo "LIBTALLOC = $(LIBTALLOC)"
2140 showlibs:: showlibtalloc
2142 #-------------------------------------------------------------------
2144 # libtdb
2146 #-------------------------------------------------------------------
2148 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2149 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2151 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2152 LIBTDB_SOVER=@LIBTDB_SOVER@
2153 LIBTDB_FULLVER=@LIBTDB_FULLVER@
2154 LIBTDB_SHARED_TARGET_SONAME=@LIBTDB_SHARED_TARGET_SOVER@
2155 LIBTDB_SHARED_TARGET_FULLVER=@LIBTDB_SHARED_TARGET_FULLVER@
2156 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2157 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2158 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2160 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2161 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2164 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2165 @echo Linking shared library $@
2166 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2167 @SONAMEFLAG@`basename $@`
2169 $(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME)
2170 @rm -f $@
2171 @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER)
2172 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME)
2174 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER)
2175 @rm -f $@
2176 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2178 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2179 @echo Linking non-shared library $@
2180 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2182 libtdb: $(LIBTDB)
2184 cleanlibtdb::
2185 -rm -f \
2186 $(LIBTDB_SYMS) \
2187 $(LIBTDB_STATIC_TARGET) \
2188 $(LIBTDB_SHARED_TARGET) \
2189 $(LIBTDB_SHARED_TARGET_SONAME)
2192 installlibtdb:: installdirs libtdb
2193 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2194 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2195 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2196 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2197 -if test -r $(LIBTDB_SHARED_TARGET_FULLVER) ; then \
2198 ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` \
2199 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)` ; \
2201 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2202 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2203 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2205 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2206 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2207 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2209 uninstalllibtdb::
2210 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2211 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2212 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2213 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2215 libs:: libtdb
2216 installlibs:: @INSTALL_LIBTDB@
2217 uninstalllibs:: @UNINSTALL_LIBTDB@
2218 cleanlibs:: cleanlibtdb
2219 shlibs test_shlibs: @LIBTDB_SHARED@
2221 showlibtdb:
2222 @echo ""
2223 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2224 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2225 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2226 @echo ""
2227 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2228 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2229 @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)"
2230 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2231 @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)"
2232 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2233 @echo "LIBTDB = $(LIBTDB)"
2235 showlibs:: showlibtdb
2237 #-------------------------------------------------------------------
2239 # libwbclient
2241 #-------------------------------------------------------------------
2243 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2244 ../nsswitch/libwbclient/wbc_util.o \
2245 ../nsswitch/libwbclient/wbc_pwd.o \
2246 ../nsswitch/libwbclient/wbc_idmap.o \
2247 ../nsswitch/libwbclient/wbc_sid.o \
2248 ../nsswitch/libwbclient/wbc_guid.o \
2249 ../nsswitch/libwbclient/wbc_pam.o
2251 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2252 $(WBCOMMON_OBJ) \
2253 $(LIBREPLACE_OBJ) \
2254 ../lib/util/blocking.o \
2255 $(SOCKET_WRAPPER_OBJ)
2257 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2258 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2259 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2260 LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@
2261 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2262 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2263 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2265 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2266 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2268 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2269 @echo Linking shared library $@
2270 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2271 @SONAMEFLAG@`basename $@`
2273 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2274 @rm -f $@
2275 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2277 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2278 @echo Linking non-shared library $@
2279 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2281 libwbclient: $(LIBWBCLIENT)
2283 cleanlibwbclient::
2284 -rm -f \
2285 $(LIBWBCLIENT_SYMS) \
2286 $(LIBWBCLIENT_STATIC_TARGET) \
2287 $(LIBWBCLIENT_SHARED_TARGET) \
2288 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2290 installlibwbclient:: installdirs libwbclient
2291 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2292 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2293 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2294 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2295 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2296 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2298 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2299 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2300 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2302 uninstalllibwbclient::
2303 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2304 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2305 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2306 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2308 libs:: libwbclient
2309 installlibs:: @INSTALL_LIBWBCLIENT@
2310 uninstalllibs:: uninstalllibwbclient
2311 cleanlibs:: cleanlibwbclient
2312 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2314 showlibwbclient:
2315 @echo ""
2316 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2317 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2318 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2319 @echo ""
2320 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2321 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2322 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2323 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2324 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2325 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2327 showlibs:: showlibwbclient
2330 #-------------------------------------------------------------------
2332 # libaddns
2334 #-------------------------------------------------------------------
2337 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2338 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2339 LIBADDNS_FULLVER=@LIBADDNS_FULLVER@
2340 LIBADDNS_SHARED_TARGET_SONAME=@LIBADDNS_SHARED_TARGET_SOVER@
2341 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2342 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2343 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2344 LIBADDNS_HEADERS=$(srcdir)/../lib/addns/addns.h
2346 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2347 @echo Linking shared library $@
2348 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2349 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2350 @SONAMEFLAG@`basename $@`
2352 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2353 @rm -f $@
2354 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2356 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2357 @echo Linking non-shared library $@
2358 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2360 libaddns: $(LIBADDNS)
2362 cleanlibaddns::
2363 -rm -f \
2364 $(LIBADDNS_SHARED_TARGET) \
2365 $(LIBADDNS_SHARED_TARGET_SONAME) \
2366 $(LIBADDNS_STATIC_TARGET)
2368 installlibaddns:: installdirs libaddns
2369 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2370 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2371 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2372 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2373 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2374 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2376 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2378 uninstalllibaddns::
2379 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2380 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2381 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2383 libs:: libaddns
2384 installlibs:: @INSTALL_LIBADDNS@
2385 uninstalllibs:: @UNINSTALL_LIBADDNS@
2386 cleanlibs:: cleanlibaddns
2387 shlibs test_shlibs: @LIBADDNS_SHARED@
2389 showlibaddns:
2390 @echo ""
2391 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2392 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2393 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2394 @echo ""
2395 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2396 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2397 @echo "LIBADDNS_FULLVER = $(LIBADDNS_FULLVER)"
2398 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2399 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2400 @echo "LIBADDNS = $(LIBADDNS)"
2402 showlibs:: showlibaddns
2404 #-------------------------------------------------------------------
2406 # libnetapi
2408 #-------------------------------------------------------------------
2410 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2411 lib/netapi/cm.o \
2412 librpc/gen_ndr/ndr_libnetapi.o \
2413 lib/netapi/libnetapi.o \
2414 lib/netapi/joindomain.o \
2415 lib/netapi/serverinfo.o \
2416 lib/netapi/getdc.o \
2417 lib/netapi/user.o \
2418 lib/netapi/group.o \
2419 lib/netapi/localgroup.o \
2420 lib/netapi/samr.o \
2421 lib/netapi/sid.o \
2422 lib/netapi/share.o \
2423 lib/netapi/file.o \
2424 lib/netapi/shutdown.o \
2425 lib/netapi/netlogon.o
2427 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2428 $(LIBSMBCONF_OBJ) \
2429 $(REG_SMBCONF_OBJ) \
2430 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2431 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2432 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2433 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2434 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2435 auth/token_util.o \
2436 $(LIBCLI_INITSHUTDOWN_OBJ) \
2437 $(LIBCLI_WKSSVC_OBJ) \
2438 $(LIBCLI_SRVSVC_OBJ) \
2439 $(LIBCLI_LSA_OBJ) \
2440 $(LIBCLI_SAMR_OBJ) \
2441 $(LIBCLI_NETLOGON_OBJ) \
2442 $(RPC_CLIENT_SCHANNEL_OBJ) \
2443 rpc_client/init_netlogon.o \
2444 rpc_client/init_samr.o
2446 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2447 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2448 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2449 LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@
2450 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2451 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2452 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2454 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2455 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2457 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2458 @echo Linking shared library $@
2459 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2460 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2461 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2462 @SONAMEFLAG@`basename $@`
2464 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2465 @rm -f $@
2466 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2468 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2469 @echo Linking non-shared library $@
2470 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2472 libnetapi: $(LIBNETAPI)
2474 cleanlibnetapi::
2475 -rm -f \
2476 $(LIBNETAPI_SYMS) \
2477 $(LIBNETAPI_STATIC_TARGET) \
2478 $(LIBNETAPI_SHARED_TARGET) \
2479 $(LIBNETAPI_SHARED_TARGET_SONAME)
2481 installlibnetapi:: installdirs libnetapi
2482 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2483 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2484 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2485 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2486 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2487 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2489 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2490 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2491 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2493 uninstalllibnetapi::
2494 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2495 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2496 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2497 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2499 libs:: libnetapi
2500 installlibs:: @INSTALL_LIBNETAPI@
2501 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2502 cleanlibs:: cleanlibnetapi
2503 shlibs test_shlibs: @LIBNETAPI_SHARED@
2505 showlibnetapi:
2506 @echo ""
2507 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2508 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2509 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2510 @echo ""
2511 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2512 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2513 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2514 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2515 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2516 @echo "LIBNETAPI = $(LIBNETAPI)"
2518 showlibs:: showlibnetapi
2520 #-------------------------------------------------------------------
2522 # libsmbclient
2524 #-------------------------------------------------------------------
2526 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2527 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2528 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2529 LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@
2530 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2531 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2532 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2533 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2535 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2536 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2538 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2539 @echo Linking shared library $@
2540 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2541 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2542 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2543 @SONAMEFLAG@`basename $@`
2545 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2546 @rm -f $@
2547 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2549 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2550 @echo Linking non-shared library $@
2551 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2553 libsmbclient: $(LIBSMBCLIENT)
2555 cleanlibsmbclient::
2556 -rm -f \
2557 $(LIBSMBCLIENT_SHARED_TARGET) \
2558 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2559 $(LIBSMBCLIENT_STATIC_TARGET)
2561 installlibsmbclient:: installdirs libsmbclient
2562 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2563 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2564 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2565 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2566 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2567 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2569 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2570 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2571 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2573 installclientlib:: installlibsmbclient
2575 uninstalllibsmbclient::
2576 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2577 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2578 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2579 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2581 uninstallclientlib:: uninstalllibsmbclient
2583 libs:: libsmbclient
2584 installlibs:: @INSTALL_LIBSMBCLIENT@
2585 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2586 cleanlibs:: cleanlibsmbclient
2587 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2589 showlibsmbclient:
2590 @echo ""
2591 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2592 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2593 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2594 @echo ""
2595 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2596 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2597 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2598 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2599 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2600 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2602 showlibs:: showlibsmbclient
2604 #-------------------------------------------------------------------
2606 # libsmbsharemodes
2608 #-------------------------------------------------------------------
2610 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o ../lib/ccan/hash/hash.o
2612 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2614 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2615 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2616 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2617 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@
2618 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2619 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2620 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2621 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2623 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2624 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2626 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2627 @echo Linking shared library $@
2628 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2629 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2630 @SONAMEFLAG@`basename $@`
2632 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2633 @rm -f $@
2634 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2636 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2637 @echo Linking non-shared library $@
2638 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2640 libsmbsharemodes: $(LIBSMBSHAREMODES)
2642 cleanlibsmbsharemodes::
2643 -rm -f \
2644 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2645 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2646 $(LIBSMBSHAREMODES_STATIC_TARGET)
2648 installlibsmbsharemodes:: installdirs libsmbsharemodes
2649 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2650 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2651 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2652 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2653 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2654 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2656 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2657 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2658 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2660 uninstalllibsmbsharemodes::
2661 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2662 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2663 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2664 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2666 libs:: libsmbsharemodes
2667 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2668 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2669 cleanlibs:: cleanlibsmbsharemodes
2670 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2672 showlibsmbsharemodes:
2673 @echo ""
2674 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2675 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2676 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2677 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2678 @echo ""
2679 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2680 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2681 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2682 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2683 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2684 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2686 showlibs:: showlibsmbsharemodes
2688 #-------------------------------------------------------------------
2690 # libbigballofmud
2692 #-------------------------------------------------------------------
2694 # This is probably wrong for anything other than the GNU linker.
2695 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2696 @echo Linking shared library $@
2697 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2698 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2699 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2700 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2701 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2703 # It would be nice to build a static bigballofmud too, but when I try
2704 # I get linker errors about dl_open and similar things. I'm not sure if
2705 # it can be fixed or if they just can't be called from a static
2706 # library.
2708 #####################################################################
2710 # shared modules
2712 #####################################################################
2714 # Linker command to link our shared libraries:
2715 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2716 -o $@ @SONAMEFLAG@`basename $@`
2717 # Linker command to link samba internal plugin modules:
2718 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2719 -o $@ @SONAMEFLAG@`basename $@`
2721 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2722 @echo "Linking $@"
2723 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2725 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2726 @echo "Linking $@"
2727 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2729 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2730 @echo "Linking $@"
2731 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2733 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2734 @echo "Linking $@"
2735 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2737 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2738 @echo "Linking $@"
2739 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2741 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2742 @echo "Linking $@"
2743 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2745 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2746 @echo "Linking $@"
2747 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2749 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2750 @echo "Linking $@"
2751 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2753 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2754 @echo "Linking $@"
2755 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2757 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2758 @echo "Linking $@"
2759 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2761 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2762 @echo "Linking $@"
2763 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2765 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2766 @echo "Linking $@"
2767 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2769 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2770 @echo "Linking $@"
2771 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2773 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2774 @echo "Linking $@"
2775 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2777 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2778 @echo "Linking $@"
2779 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2780 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2781 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2782 $(ZLIB_LIBS)
2784 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2785 @echo "Linking $@"
2786 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2787 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2788 $(LIBTDB_LIBS)
2790 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2791 @echo "Linking $@"
2792 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2793 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2794 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2796 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2797 @echo "Linking $@"
2798 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2799 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2800 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2802 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2803 @echo "Linking $@"
2804 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2805 @SONAMEFLAG@`basename $@`
2807 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2808 @echo "Linking shared library $@"
2809 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2810 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2812 ##########
2813 # Plugins:
2814 ##########
2816 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2817 @echo "Building plugin $@"
2818 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2820 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2821 @echo "Building plugin $@"
2822 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2824 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2825 @echo "Building plugin $@"
2826 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2828 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2829 @echo "Building plugin $@"
2830 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2832 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2833 @echo "Building plugin $@"
2834 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2836 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2837 @echo "Building plugin $@"
2838 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2840 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2841 @echo "Building plugin $@"
2842 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2844 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2845 @echo "Building plugin $@"
2846 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2848 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2849 @echo "Building plugin $@"
2850 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2852 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2853 passdb/pdb_ipa.o
2854 @echo "Building plugin $@"
2855 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2856 $(LDAP_LIBS)
2858 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2859 @echo "Building plugin $@"
2860 @$(SHLD_MODULE) passdb/pdb_ads.o
2862 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2863 @echo "Building plugin $@"
2864 @$(SHLD_MODULE) passdb/pdb_tdb.o
2866 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2867 @echo "Building plugin $@"
2868 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2870 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2871 @echo "Building plugin $@"
2872 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2874 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2875 @echo "Building plugin $@"
2876 @$(SHLD_MODULE) winbindd/idmap_rid.o
2878 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2879 @echo "Building plugin $@"
2880 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2882 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2883 @echo "Building plugin $@"
2884 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2886 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2887 @echo "Building plugin $@"
2888 @$(SHLD_MODULE) winbindd/idmap_ad.o
2890 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2891 @echo "Building plugin $@"
2892 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2894 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2895 @echo "Building plugin $@"
2896 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2898 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2899 @echo "Building plugin $@"
2900 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2902 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2903 @echo "Building plugin $@"
2904 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2906 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2907 @echo "Building plugin $@"
2908 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2910 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2911 @echo "Building plugin $@"
2912 @$(SHLD_MODULE) $(CP850_OBJ)
2914 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2915 @echo "Building plugin $@"
2916 @$(SHLD_MODULE) $(CP437_OBJ)
2918 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2919 @echo "Building plugin $@"
2920 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2922 # NOTE, there is no build rule for a dynamic default VFS module because
2923 # this one MUST MUST MUST be built statically.
2925 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2926 @echo "Building plugin $@"
2927 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2929 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2930 @echo "Building plugin $@"
2931 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2933 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2934 @echo "Building plugin $@"
2935 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2937 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2938 @echo "Building plugin $@"
2939 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2941 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2942 @echo "Building plugin $@"
2943 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2945 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2946 @echo "Building plugin $@"
2947 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2949 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2950 @echo "Building plugin $@"
2951 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2953 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2954 @echo "Building plugin $@"
2955 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2957 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2958 @echo "Building plugin $@"
2959 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2961 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2962 @echo "Building plugin $@"
2963 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2965 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2966 @echo "Building plugin $@"
2967 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2969 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2970 @echo "Building plugin $@"
2971 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2973 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2974 @echo "Building plugin $@"
2975 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2977 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2978 @echo "Building plugin $@"
2979 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2981 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2982 @echo "Building plugin $@"
2983 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2985 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2986 @echo "Building plugin $@"
2987 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2989 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2990 @echo "Building plugin $@"
2991 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2993 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2994 @echo "Building plugin $@"
2995 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2997 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2998 @echo "Building plugin $@"
2999 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
3001 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
3002 @echo "Building plugin $@"
3003 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
3005 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
3006 @echo "Building plugin $@"
3007 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
3009 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
3010 @echo "Building plugin $@"
3011 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
3013 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
3014 @echo "Building plugin $@"
3015 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
3017 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
3018 @echo "Building plugin $@"
3019 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
3021 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
3022 @echo "Building plugin $@"
3023 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
3025 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
3026 @echo "Building plugin $@"
3027 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
3029 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
3030 @echo "Building plugin $@"
3031 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
3033 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
3034 @echo "Building plugin $@"
3035 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
3037 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
3038 @echo "Building plugin $@"
3039 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
3041 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
3042 @echo "Building plugin $@"
3043 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
3045 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3046 @echo "Building plugin $@"
3047 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3049 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
3050 @echo "Building plugin $@"
3051 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
3053 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
3054 @echo "Building plugin $@"
3055 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
3057 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
3058 @echo "Building plugin $@"
3059 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
3061 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
3062 @echo "Building plugin $@"
3063 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
3065 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
3066 @echo "Building plugin $@"
3067 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
3069 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
3070 @echo "Building plugin $@"
3071 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
3073 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3074 @echo "Building plugin $@"
3075 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3077 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3078 @echo "Building plugin $@"
3079 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3081 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3082 @echo "Building plugin $@"
3083 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3085 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3086 @echo "Building plugin $@"
3087 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3089 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3090 @echo "Building plugin $@"
3091 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3093 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3094 @echo "Building plugin $@"
3095 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3097 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3098 @echo "Building plugin $@"
3099 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3101 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3102 @echo "Building plugin $@"
3103 @$(SHLD_MODULE) libgpo/gpext/registry.o
3105 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3106 @echo "Building plugin $@"
3107 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3109 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3110 @echo "Building plugin $@"
3111 @$(SHLD_MODULE) libgpo/gpext/security.o
3113 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3114 @echo "Building plugin $@"
3115 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3117 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3118 @echo "Building plugin $@"
3119 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3121 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3122 @echo "Building plugin $@"
3123 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3125 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3126 @echo "Building plugin $@"
3127 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3129 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3130 @echo "Building plugin $@"
3131 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3133 #########################################################
3134 ## IdMap NSS plugins
3136 ## None here right now
3137 #########################################################
3139 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3140 @echo Linking $@
3141 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3142 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3143 $(LIBWBCLIENT_LIBS)
3145 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3146 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3147 @echo Linking $@
3148 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3149 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) $(ZLIB_LIBS) \
3150 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3151 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3153 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3154 @echo "Linking shared library $@"
3155 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3156 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
3157 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3159 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3160 @echo Linking $@
3161 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3162 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3164 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3165 @echo Linking $@
3166 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3167 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3169 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3170 @echo Linking $@
3171 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3173 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3174 @echo Linking $@
3175 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3177 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3178 @echo Linking $@
3179 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3180 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3182 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3183 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3184 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3186 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3187 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3188 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3190 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3191 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3192 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3194 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3195 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3196 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3198 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3199 @echo Linking $@
3200 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3202 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3203 @echo "Linking $@"
3204 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3205 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3206 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3208 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3209 @echo "Linking $@"
3210 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3211 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3212 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3213 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3215 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3216 @echo "Linking $@"
3217 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3218 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3219 $(LDAP_LIBS) \
3220 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3222 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3223 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3225 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3226 @echo "Linking $@"
3227 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3228 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3229 $(LDAP_LIBS) \
3230 $(POPT_LIBS) \
3231 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3233 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3234 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3236 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3237 @echo "Linking $@"
3238 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3239 $(LDFLAGS) $(DYNEXP) \
3240 $(LIBS) $(POPT_LIBS) \
3241 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3242 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3244 install:: installservers installbin installman \
3245 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3246 @INSTALL_PAM_MODULES@ installlibs installmo
3248 install-everything:: install installmodules
3250 # DESTDIR is used here to prevent packagers wasting their time
3251 # duplicating the Makefile. Remove it and you will have the privelege
3252 # of package each samba release for muliple versions of multiple
3253 # distributions and operating systems, or at least supplying patches
3254 # to all the packaging files required for this, prior to committing
3255 # the removal of DESTDIR. Do not remove it even though you think it
3256 # is not used
3258 installdirs::
3259 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3260 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3261 $(VARDIR) $(PRIVATE_DIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3262 $(NMBDSOCKETDIR) \
3263 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3265 installservers:: all installdirs
3266 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3268 installbin:: all installdirs
3269 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3271 # Some symlinks are required for the 'probing' of modules.
3272 # This mechanism should go at some point..
3273 installmodules:: modules installdirs
3274 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3275 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3276 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3277 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3278 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3279 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3280 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3281 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3282 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3283 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3284 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3285 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3286 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3287 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3288 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3289 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3290 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3291 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3293 installscripts:: installdirs
3294 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3296 installdat:: installdirs
3297 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3299 installmsg:: installdirs
3300 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3302 installswat:: installdirs installmsg
3303 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3305 installpammodules:: $(PAM_MODULES)
3306 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3307 @for module in $(PAM_MODULES); do \
3308 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3309 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3310 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3311 done
3313 # revert to the previously installed version
3314 revert::
3315 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3316 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3318 installman:: installdirs
3319 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3321 installmo:: all installdirs
3322 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3324 .PHONY: showlayout
3326 showlayout::
3327 @echo "Samba will be installed into:"
3328 @echo " prefix: $(prefix)"
3329 @echo " exec_prefix: $(exec_prefix)"
3330 @echo " sysconfdir: $(sysconfdir)"
3331 @echo " localstatedir: $(localstatedir)"
3332 @echo " datarootdir: $(datarootdir)"
3333 @echo " BINDIR: $(BINDIR)"
3334 @echo " SBINDIR: $(SBINDIR)"
3335 @echo " LIBDIR: $(LIBDIR)"
3336 # @echo " LIBEXECDIR: $(LIBEXECDIR)"
3337 @echo " MANDIR: $(MANDIR)"
3338 @echo " DATADIR: $(DATADIR)"
3339 @echo " LOCALEDIR: $(LOCALEDIR)"
3340 # @echo " SCRIPTSBINDIR: $(SCRIPTSBINDIR)"
3341 # @echo " PYTHONDIR: $(PYTHONDIR)"
3342 # @echo " PYTHONARCHDIR: $(PYTHONARCHDIR)"
3343 @echo " MODULESDIR: $(MODULESDIR)"
3344 @echo " INCLUDEDIR: $(INCLUDEDIR)"
3345 @echo " SETUPDIR: $(SETUPDIR)"
3346 # @echo " PKGCONFIGDIR: $(PKGCONFIGDIR)"
3347 @echo " SWATDIR: $(SWATDIR)"
3348 @echo " CODEPAGEDIR: $(CODEPAGEDIR)"
3349 @echo " PAMMODULESDIR: $(PAMMODULESDIR)"
3350 @echo " CONFIGDIR: $(CONFIGDIR)"
3351 @echo " PRIVATE_DIR: $(PRIVATE_DIR)"
3352 @echo " LOCKDIR: $(LOCKDIR)"
3353 @echo " PIDDIR: $(PIDDIR)"
3354 @echo " STATEDIR: $(STATEDIR)"
3355 @echo " CACHEDIR: $(CACHEDIR)"
3356 @echo " LOGFILEBASE: $(LOGFILEBASE)"
3357 @echo " SOCKET_DIR: $(SOCKET_DIR)"
3358 @echo " PRIVILEGED_SOCKET_DIR: $(PRIVILEGED_SOCKET_DIR)"
3359 # @echo " WINBINDD_SOCKET_DIR: $(WINBINDD_SOCKET_DIR)"
3360 # @echo " WINBINDD_PRIVILEGED_SOCKET_DIR: $(WINBINDD_PRIVILEGED_SOCKET_DIR)"
3361 @echo " NMBDSOCKETDIR: $(NMBDSOCKETDIR)"
3362 # @echo " NTP_SIGND_SOCKET_DIR: $(NTP_SIGND_SOCKET_DIR)"
3363 @echo " NCALRPCDIR: $(NCALRPCDIR)"
3364 @echo " CONFIGFILE: $(CONFIGFILE)"
3365 @echo " LMHOSTSFILE: $(LMHOSTSFILE)"
3366 @echo " SMB_PASSWD_FILE: $(SMB_PASSWD_FILE)"
3369 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3371 uninstallmo::
3372 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3374 uninstallman::
3375 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3377 uninstallservers::
3378 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3380 uninstallbin::
3381 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3383 uninstallmodules::
3384 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3385 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3386 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3387 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3388 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3389 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3390 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3392 uninstallscripts::
3393 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3395 uninstalldat::
3396 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3398 uninstallmsg::
3399 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3401 uninstallswat:: uninstallmsg
3402 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3404 uninstallpammodules::
3405 @for module in $(PAM_MODULES); do \
3406 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3407 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3408 done
3410 cleanlibs::
3411 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3412 ../lib/*/*.ho \
3413 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3414 ../librpc/*/*.o \
3415 ../libgpo/*.o ../libgpo/*/*.o \
3416 ../libds/*.o ../libds/*/*.o ../dynconfig/*.o
3418 clean:: cleanlibs
3419 -rm -f include/build_env.h
3420 -rm -f smbd/build_options.c
3421 -rm -f param/param_local.h
3422 -rm -f param/param_global.h
3423 -rm -f $(PRECOMPILED_HEADER)
3424 -rm -f core */*~ *~ \
3425 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3426 ../testsuite/*/*.o \
3427 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3428 ../client/*.o \
3429 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3430 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3431 $(MODULES) $(TORTURE_PROGS) \
3432 $(EVERYTHING_PROGS) \
3433 bin/timelimit \
3434 .headers.stamp */src/*.o
3435 -rm -rf t_dir
3437 include/build_env.h: script/build_env.sh
3438 @echo Building include/build_env.h
3439 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3440 > $(builddir)/include/build_env.h
3442 proto::
3444 etags::
3445 rm -f TAGS
3446 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3448 ctags::
3449 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3451 realclean:: clean
3452 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3453 -rm -f script/installbin.sh script/uninstallbin.sh
3455 distclean:: realclean
3456 -rm -f smbadduser
3457 -rm -f include/autoconf/config.h Makefile
3458 -rm -f config.status config.cache so_locations
3459 -rm -rf .deps TAGS
3461 realdistclean:: distclean
3462 -rm -f include/autoconf/config.h.in
3463 -rm -f include/version.h
3464 -rm -f configure
3466 # this target is really just for my use. It only works on a limited
3467 # range of machines and is used to produce a list of potentially
3468 # dead (ie. unused) functions in the code. (tridge)
3469 finddead::
3470 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3471 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3472 comm -13 nmused.txt nmfns.txt
3475 # when configure.in is updated, reconfigure
3476 $(srcdir)/configure: $(srcdir)/configure.in
3477 @echo "WARNING: you need to rerun ./autogen.sh"
3479 config.status: $(srcdir)/configure
3480 @echo "WARNING: you need to run ./configure"
3482 Makefile: $(srcdir)/Makefile.in config.status
3483 @echo "WARNING: you need to run ./config.status"
3485 ######################################################################
3486 # Samba Testing Framework
3488 # Check shared libs for unresolved symbols
3489 test_shlibs:
3490 @echo "Testing $? "
3491 @$(LIB_PATH_VAR)=./bin && \
3492 export $(LIB_PATH_VAR) && \
3493 for module in $?; do \
3494 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3495 || exit 1; \
3496 done
3498 # Check for NSS module problems.
3499 test_nss_modules:: nss_modules
3500 @echo "Testing $(NSS_MODULES) "
3501 @$(LIB_PATH_VAR)=./bin && \
3502 export $(LIB_PATH_VAR) && \
3503 for module in $(NSS_MODULES); do \
3504 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3505 || exit 1; \
3506 done
3508 # Check for PAM module problems. Specifically, check that every module we
3509 # built can actually be loaded by a minimal PAM-aware application.
3510 test_pam_modules:: pam_modules
3511 @echo "Testing $(PAM_MODULES) "
3512 @$(LIB_PATH_VAR)=./bin && \
3513 export $(LIB_PATH_VAR) && \
3514 for module in $(PAM_MODULES); do \
3515 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3516 || exit 1; \
3517 done
3521 ## Targets for 'make test'
3524 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3526 valgrindtest:: all torture timelimit
3527 @echo Running Test suite with valgrind
3528 @$(MAKE) test \
3529 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3530 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3531 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3532 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3534 selftestdir = ../selftest
3536 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3538 test:: all torture timelimit
3539 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3540 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3541 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3542 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3543 SOURCEDIR="$(srcdir)" \
3544 VFSLIBDIR="$(builddir)/bin" \
3545 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3546 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3547 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3548 $(srcdir)/selftest/s3-selftest.sh
3550 test-%:
3551 $(MAKE) test TESTS=$*
3553 buildfarm-test:
3554 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3556 subunit-test:
3557 $(MAKE) test SUBUNIT_FORMATTER=cat
3559 SELFTEST_TESTENV = s3dc
3561 testenv:
3562 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3564 gdbtestenv:
3565 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3566 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3567 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3568 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3569 TESTS="--testenv"
3571 valgrindtestenv:
3572 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3573 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3574 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3575 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3576 TESTS="--testenv"
3579 # Check for Winbind struct 32/64bit padding
3580 test_wbpad:
3581 @echo "Testing winbind request/response structure for 32/64bit padding"
3582 @./script/tests/wb_pad.sh || exit 1;
3585 ## Examples:
3588 libsmbclient_examples: libsmbclient
3589 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3591 clean_libsmbclient_examples:
3592 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3594 libnetapi_examples: libnetapi
3595 $(MAKE) -C lib/netapi/examples
3597 clean_libnetapi_examples:
3598 $(MAKE) -C lib/netapi/examples clean
3600 .PHONY: bin/smbtorture4 bin/ndrdump4
3602 bin/smbtorture4: $(BINARY_PREREQS)
3603 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3605 bin/ndrdump4: $(BINARY_PREREQS)
3606 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
3608 .PHONY: vfs_examples
3610 vfs_examples:
3612 cd ../examples/VFS && \
3613 ./autogen.sh && \
3614 ./configure && \
3615 make clean && \
3616 make \