shares: Remove dependencies on share modules.
[Samba/gebeck_regimport.git] / source3 / Makefile.in
blob51b0a7cb67db728bf28ea4df774e68a27fcb715e
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.o lib/dbwrap_tdb.o \
264 lib/dbwrap_ctdb.o \
265 lib/g_lock.o \
266 lib/dbwrap_rbt.o
268 TDB_VALIDATE_OBJ = lib/tdb_validate.o
270 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
272 VERSION_OBJ = lib/version.o
274 WBCOMMON_OBJ = ../nsswitch/wb_common.o
276 AFS_OBJ = lib/afs.o
278 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
280 AVAHI_OBJ = @AVAHI_OBJ@
282 SERVER_MUTEX_OBJ = lib/server_mutex.o
284 PASSCHANGE_OBJ = libsmb/passchange.o
286 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
287 ../librpc/ndr/ndr_compression.o \
288 librpc/gen_ndr/ndr_drsuapi.o \
289 ../librpc/ndr/ndr_drsblobs.o \
290 librpc/gen_ndr/ndr_drsblobs.o
292 ZLIB_OBJ = @ZLIB_OBJS@
294 COMPRESSION_OBJ = ../lib/compression/mszip.o \
295 ../lib/compression/lzxpress.o \
296 $(ZLIB_OBJ)
298 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
299 $(COMPRESSION_OBJ)
301 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
302 ../librpc/ndr/ndr_ntlmssp.o
304 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
305 ../librpc/ndr/ndr.o \
306 ../librpc/ndr/ndr_misc.o \
307 librpc/gen_ndr/ndr_misc.o \
308 librpc/gen_ndr/ndr_security.o \
309 ../librpc/ndr/ndr_sec_helper.o \
310 ../librpc/ndr/ndr_string.o \
311 ../librpc/ndr/uuid.o \
312 ../librpc/ndr/util.o \
313 librpc/gen_ndr/ndr_server_id.o \
314 librpc/gen_ndr/ndr_dcerpc.o
316 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
317 librpc/gen_ndr/ndr_lsa.o
319 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
320 ../librpc/ndr/ndr_netlogon.o
322 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
323 ../librpc/ndr/ndr_schannel.o
325 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
326 ../librpc/ndr/ndr_spoolss_buf.o
328 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
329 ../librpc/ndr/ndr_ntprinting.o \
331 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
332 ../librpc/ndr/ndr_preg.o
334 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
335 ../librpc/ndr/ndr_xattr.o
337 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss_c.o \
338 rpc_client/cli_spoolss.o \
339 rpc_client/init_spoolss.o \
340 rpc_client/cli_winreg_spoolss.o \
341 printing/nt_printing_os2.o
343 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/ndr_eventlog_c.o
345 LIBCLI_WINREG_OBJ = librpc/gen_ndr/ndr_winreg_c.o \
346 rpc_client/cli_winreg.o
348 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
349 rpc_client/cli_winreg_int.o
351 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/ndr_ntsvcs_c.o
353 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/ndr_drsuapi_c.o
355 LIBCLI_DFS_OBJ = librpc/gen_ndr/ndr_dfs_c.o
357 LIBCLI_ECHO_OBJ = librpc/gen_ndr/ndr_echo_c.o
359 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/ndr_initshutdown_c.o
361 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/ndr_dssetup_c.o
363 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/ndr_svcctl_c.o
365 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/ndr_wkssvc_c.o
367 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/ndr_srvsvc_c.o
369 LIBCLI_LSA_OBJ = librpc/gen_ndr/ndr_lsa_c.o \
370 rpc_client/cli_lsarpc.o \
371 rpc_client/init_lsa.o
373 LIBCLI_SAMR_OBJ = librpc/gen_ndr/ndr_samr_c.o \
374 rpc_client/cli_samr.o
376 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon_c.o \
377 rpc_client/cli_netlogon.o \
378 rpc_client/util_netlogon.o
380 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/ndr_epmapper_c.o
382 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
383 $(LIBNDR_GEN_OBJ0) \
384 librpc/gen_ndr/ndr_dfs.o \
385 librpc/gen_ndr/ndr_echo.o \
386 librpc/gen_ndr/ndr_winreg.o \
387 librpc/gen_ndr/ndr_initshutdown.o \
388 librpc/gen_ndr/ndr_srvsvc.o \
389 librpc/gen_ndr/ndr_eventlog.o \
390 $(LIBNDR_NETLOGON_OBJ) \
391 librpc/gen_ndr/ndr_dssetup.o \
392 librpc/gen_ndr/ndr_epmapper.o \
393 librpc/gen_ndr/ndr_ntsvcs.o \
394 $(LIBNDR_SPOOLSS_OBJ)
396 # this includes only the low level parse code, not stuff
397 # that requires knowledge of security contexts
398 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
400 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
402 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
403 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
405 LIBSAMBAUTIL_OBJ = \
406 $(LIBREPLACE_OBJ) \
407 $(SOCKET_WRAPPER_OBJ) \
408 $(NSS_WRAPPER_OBJ)
410 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
411 ../lib/util/xfile.o ../lib/util/util_strlist.o \
412 ../lib/util/util_file.o ../lib/util/data_blob.o \
413 ../lib/util/util.o ../lib/util/util_paths.o ../lib/util/fsusage.o \
414 ../lib/util/params.o ../lib/util/talloc_stack.o \
415 ../lib/util/genrand.o ../lib/util/util_net.o \
416 ../lib/util/become_daemon.o ../lib/util/system.o \
417 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
418 ../lib/util/tevent_werror.o \
419 ../lib/util/smb_threads.o ../lib/util/util_id.o \
420 ../lib/util/blocking.o ../lib/util/rfc1738.o \
421 ../lib/util/select.o ../lib/util/util_pw.o ../lib/util/server_id.o
423 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
424 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
425 ../lib/crypto/md4.o \
426 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
427 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
429 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) $(LIBTSOCKET_OBJ) \
430 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
431 lib/messages_ctdbd.o lib/ctdb_packet.o lib/ctdbd_conn.o \
432 ../lib/socket/interfaces.o lib/memcache.o \
433 lib/talloc_dict.o \
434 lib/serverid.o \
435 lib/util_sconn.o \
436 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
437 lib/addrchange.o \
438 $(TDB_LIB_OBJ) \
439 $(VERSION_OBJ) lib/charcnv.o ../lib/util/charset/convert_string.o \
440 ../lib/util/charset/pull_push.o \
441 lib/fstring.o ../lib/util/debug.o ../lib/util/debug_s3.o ../lib/util/fault.o \
442 lib/interface.o lib/pidfile.o lib/dumpcore.o \
443 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
444 lib/username.o \
445 ../libds/common/flag_mapping.o \
446 lib/access.o lib/smbrun.o \
447 ../lib/util/bitmap.o ../lib/util/dprintf.o $(UTIL_REG_OBJ) \
448 lib/wins_srv.o lib/string_init.o \
449 lib/util_str.o ../lib/util/util_str_common.o \
450 ../lib/util/util_str.o \
451 ../lib/util/base64.o lib/util_sid.o \
452 ../lib/util/charset/util_unistr.o \
453 ../lib/util/charset/util_unistr_w.o ../lib/util/charset/codepoints.o ../lib/util/charset/util_str.o lib/util_file.o \
454 lib/util.o lib/util_malloc.o lib/namearray.o lib/util_cmdline.o lib/util_names.o \
455 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
456 lib/substitute.o lib/substitute_generic.o ../lib/util/substitute.o lib/dbwrap_util.o \
457 lib/ms_fnmatch.o ../lib/util/ms_fnmatch.o lib/errmap_unix.o ../libcli/util/errmap_unix.o \
458 lib/tallocmsg.o lib/dmallocmsg.o \
459 libsmb/clisigning.o libsmb/smb_signing.o \
460 ../lib/util/charset/iconv.o intl/lang_tdb.o \
461 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
462 lib/sessionid_tdb.o \
463 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
464 @CCAN_OBJ@ \
465 lib/server_contexts.o \
466 lib/ldap_escape.o @CHARSET_STATIC@ \
467 ../libcli/security/secdesc.o ../libcli/security/access_check.o \
468 ../libcli/security/secace.o ../libcli/security/object_tree.o \
469 ../libcli/security/sddl.o ../libcli/security/session.o \
470 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
471 lib/fncall.o \
472 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
473 lib/file_id.o lib/idmap_cache.o \
474 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
475 ../libcli/security/security_token.o ../libcli/security/util_sid.o \
476 ../libcli/smb/util.o
478 LIB_DUMMY_OBJ = lib/smbd_shim.o lib/dummyparam.o
479 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
481 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
483 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
484 # Be sure to include them into your application
485 POPT_LIB_OBJ = lib/popt_common.o
487 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
488 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
489 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
491 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
493 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
494 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
495 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
497 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
499 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
500 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
501 libgpo/gpo_reg.o \
502 $(GPEXT_OBJ)
503 LIBGPO_OBJ = $(LIBGPO_OBJ0)
505 LIBADS_OBJ = libads/ldap.o \
506 libads/sasl.o libads/sasl_wrapping.o \
507 libads/krb5_setpw.o \
508 libads/kerberos_util.o \
509 libads/ldap_user.o \
510 libads/ads_struct.o libads/kerberos_keytab.o \
511 libads/disp_sec.o libads/ldap_utils.o \
512 libads/ldap_schema.o libads/util.o libads/ndr.o
514 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o ../auth/kerberos/kerberos_pac.o \
515 ../librpc/ndr/ndr_krb5pac.o \
516 librpc/gen_ndr/ndr_krb5pac.o
518 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
520 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
521 librpc/gen_ndr/ndr_secrets.o
523 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
524 ../libcli/netlogon/netlogon.o \
525 ../libcli/netlogon/ndr_netlogon.o \
526 librpc/gen_ndr/ndr_nbt.o \
527 librpc/gen_ndr/ndr_svcctl.o \
528 ../librpc/ndr/ndr_svcctl.o
530 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
531 libsmb/namequery.o ../libcli/nbt/lmhosts.o ../libcli/dns/dns_hosts_file.o libsmb/conncache.o \
532 libads/dns.o libads/sitename_cache.o
534 NTERR_OBJ = ../libcli/util/nterr.o libsmb/smberr.o
535 DOSERR_OBJ = ../libcli/util/doserr.o
536 ERRORMAP_OBJ = ../libcli/util/errormap.o libsmb/errormap.o
537 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
539 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
541 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
543 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
544 $(SECRETS_OBJ)
546 LIBSMB_OBJ0 = \
547 ../libcli/auth/ntlm_check.o \
548 libsmb/ntlmssp.o \
549 libsmb/ntlmssp_wrap.o \
550 ../libcli/auth/ntlmssp.o \
551 ../libcli/auth/ntlmssp_sign.o \
552 $(LIBNDR_NTLMSSP_OBJ) \
553 ../libcli/auth/ntlmssp_ndr.o \
554 ../libcli/auth/ntlmssp_server.o
556 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
557 $(LIBSMB_ERR_OBJ)
559 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
560 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o lib/ldb_compat.o
562 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
563 ../lib/tsocket/tsocket_helpers.o \
564 ../lib/tsocket/tsocket_bsd.o
566 CLDAP_OBJ = libads/cldap.o \
567 ../libcli/cldap/cldap.o \
568 ../lib/util/idtree.o \
569 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ)
571 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
573 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
574 ../libcli/auth/schannel_sign.o \
575 ../libcli/auth/schannel_state_tdb.o \
576 $(LIBNDR_SCHANNEL_OBJ)
578 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
579 libsmb/clikrb5.o ../libcli/auth/krb5_wrap.o libsmb/clispnego.o \
580 ../libcli/auth/spnego_parse.o \
581 ../lib/util/asn1.o \
582 libsmb/reparse_symlink.o \
583 libsmb/clisymlink.o \
584 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
585 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
586 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
587 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
588 libsmb/clioplock.o libsmb/clirap2.o \
589 libsmb/smb_seal.o libsmb/async_smb.o \
590 libsmb/read_smb.o \
591 libsmb/smb2cli_base.o \
592 libsmb/smb2cli_negprot.o \
593 libsmb/smb2cli_session.o \
594 libsmb/smb2cli_tcon.o \
595 libsmb/smb2cli_create.o \
596 ../libcli/smb/smb2_create_blob.o \
597 libsmb/smb2cli_close.o \
598 libsmb/smb2cli_flush.o \
599 libsmb/smb2cli_read.o \
600 libsmb/smb2cli_write.o \
601 libsmb/smb2cli_query_directory.o \
602 libsmb/cli_np_tstream.o \
603 libsmb/smbsock_connect.o \
604 $(LIBSAMBA_OBJ) \
605 $(LIBNMB_OBJ) \
606 $(LIBNBT_OBJ) \
607 $(CLDAP_OBJ) \
608 $(DRSUAPI_OBJ)
610 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
611 rpc_client/cli_pipe.o \
612 librpc/crypto/gse_krb5.o \
613 librpc/crypto/gse.o \
614 ../auth/kerberos/gssapi_pac.o \
615 librpc/crypto/cli_spnego.o \
616 librpc/rpc/rpc_common.o \
617 rpc_client/rpc_transport_np.o \
618 rpc_client/rpc_transport_sock.o \
619 rpc_client/rpc_transport_tstream.o \
620 ../librpc/rpc/binding.o \
621 ../librpc/rpc/dcerpc_util.o \
622 ../librpc/rpc/binding_handle.o \
623 librpc/rpc/dcerpc_helpers.o \
624 $(LIBCLI_EPMAPPER_OBJ)
626 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
629 # registry-related objects
631 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
633 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
634 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
635 REG_INIT_FULL_OBJ = registry/reg_init_full.o
637 REGFIO_OBJ = registry/regfio.o \
638 $(REG_PARSE_PRS_OBJ)
640 REG_API_REGF_OBJ = registry/reg_api_regf.o
642 REGOBJS_OBJ = registry/reg_objects.o
644 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
646 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
648 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
649 registry/reg_backend_shares.o \
650 registry/reg_backend_netlogon_params.o \
651 registry/reg_backend_prod_options.o \
652 registry/reg_backend_tcpip_params.o \
653 registry/reg_backend_hkpt_params.o \
654 registry/reg_backend_current_version.o \
655 registry/reg_backend_perflib.o
657 REG_BASE_OBJ = registry/reg_api.o \
658 registry/reg_dispatcher.o \
659 registry/reg_cachehook.o \
660 $(REGOBJS_OBJ) \
661 registry/reg_util_internal.o \
662 lib/util_nttoken.o \
663 $(REG_BACKENDS_BASE_OBJ) \
664 $(REG_INIT_BASIC_OBJ)
666 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
667 registry/reg_util_token.o \
668 registry/reg_api_util.o \
669 $(REG_BACKENDS_SMBCONF_OBJ) \
670 $(REG_INIT_SMBCONF_OBJ)
672 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
673 $(REG_BACKENDS_EXTRA_OBJ) \
674 $(REG_INIT_FULL_OBJ) \
675 registry/reg_perfcount.o \
676 librpc/gen_ndr/ndr_perfcount.o
678 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
680 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
682 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
683 librpc/gen_ndr/srv_lsa.o
685 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
686 librpc/gen_ndr/srv_netlogon.o
688 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
689 rpc_server/samr/srv_samr_util.o \
690 rpc_server/samr/srv_samr_chgpasswd.o \
691 librpc/gen_ndr/srv_samr.o
693 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
695 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
696 librpc/gen_ndr/srv_winreg.o
698 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
700 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
701 librpc/gen_ndr/srv_srvsvc.o
703 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
704 rpc_server/wkssvc/srv_wkssvc_nt.o
706 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
707 rpc_server/svcctl/srv_svcctl_reg.o \
708 librpc/gen_ndr/srv_svcctl.o \
709 services/svc_winreg_glue.o \
710 services/svc_spoolss.o services/svc_rcinit.o \
711 services/svc_netlogon.o services/svc_winreg.o \
712 services/svc_wins.o
714 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
715 librpc/gen_ndr/srv_ntsvcs.o
717 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
718 rpc_server/dfs/srv_dfs_nt.o
720 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
721 rpc_server/spoolss/srv_spoolss_util.o \
722 librpc/gen_ndr/srv_spoolss.o
724 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
725 rpc_server/eventlog/srv_eventlog_reg.o \
726 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
728 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
729 librpc/gen_ndr/ndr_named_pipe_auth.o \
730 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o ../librpc/ndr/ndr_auth.o
732 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
733 rpc_server/rpc_handles.o rpc_server/rpc_contexts.o \
734 rpc_server/srv_access_check.o
736 RPC_SERVICE = rpc_server/rpc_server.o
738 RPC_CRYPTO = rpc_server/dcesrv_ntlmssp.o \
739 rpc_server/dcesrv_gssapi.o \
740 rpc_server/dcesrv_spnego.o
742 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
743 $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
745 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
747 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
749 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_setup.o $(DCE_RPC_EP_OBJ)
751 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
752 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
753 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
754 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
755 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
756 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
757 $(LIBCLI_SPOOLSS_OBJ) \
758 $(LIBCLI_WINREG_INT_OBJ) \
759 $(LIBCLI_SRVSVC_OBJ) \
760 $(LIBCLI_LSA_OBJ) \
761 $(LIBCLI_SAMR_OBJ) \
762 $(LIBCLI_NETLOGON_OBJ) \
763 $(RPC_SERVER_REGISTER_OBJ) \
764 $(RPC_CLIENT_SCHANNEL_OBJ) \
765 rpc_client/init_netlogon.o \
766 rpc_client/init_samr.o
768 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
770 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
772 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
774 PRIVILEGES_OBJ = lib/privileges.o
776 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
778 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
779 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
780 lib/util_unixsids.o passdb/lookup_sid.o \
781 passdb/login_cache.o @PDB_STATIC@ \
782 passdb/account_pol.o $(PRIVILEGES_OBJ) \
783 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
784 passdb/pdb_util.o
786 DEVEL_HELP_WEIRD_OBJ = ../lib/util/charset/weird.o
787 CP850_OBJ = ../lib/util/charset/CP850.o
788 CP437_OBJ = ../lib/util/charset/CP437.o
789 CHARSET_MACOSXFS_OBJ = ../lib/util/charset/charset_macosxfs.o
791 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
793 PROFILE_OBJ = profile/profile.o
794 PROFILES_OBJ = utils/profiles.o \
795 $(LIBSMB_ERR_OBJ) \
796 $(PARAM_OBJ) \
797 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
798 $(POPT_LIB_OBJ) \
799 $(REGFIO_OBJ)
801 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
802 smbd/oplock_onefs.o
804 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
805 librpc/gen_ndr/ndr_notify.o librpc/gen_ndr/ndr_file_id.o
807 FNAME_UTIL_OBJ = lib/filename_util.o
809 VFS_DEFAULT_OBJ = modules/vfs_default.o
810 VFS_AUDIT_OBJ = modules/vfs_audit.o
811 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
812 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
813 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
814 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
815 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
816 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
817 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
818 VFS_CAP_OBJ = modules/vfs_cap.o
819 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
820 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
821 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
822 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
823 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
824 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
825 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
826 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
827 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
828 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
829 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
830 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
831 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
832 VFS_CATIA_OBJ = modules/vfs_catia.o
833 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
834 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
835 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
836 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
837 VFS_COMMIT_OBJ = modules/vfs_commit.o
838 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
839 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
840 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
841 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
842 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
843 VFS_FILEID_OBJ = modules/vfs_fileid.o
844 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
845 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
846 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
847 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
848 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
849 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
850 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
851 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
852 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
853 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
854 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
855 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
856 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
857 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
858 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
859 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
860 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
862 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
863 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
865 SLCACHE_OBJ = libsmb/samlogon_cache.o
867 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
869 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
870 AUTH_DOMAIN_OBJ = auth/auth_domain.o
871 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
872 AUTH_SERVER_OBJ = auth/auth_server.o
873 AUTH_UNIX_OBJ = auth/auth_unix.o
874 AUTH_WINBIND_OBJ = auth/auth_winbind.o
875 AUTH_WBC_OBJ = auth/auth_wbc.o
876 AUTH_SCRIPT_OBJ = auth/auth_script.o
877 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
879 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
880 auth/server_info.o \
881 auth/server_info_sam.o \
882 auth/user_info.o \
883 auth/user_util.o \
884 auth/user_krb5.o \
885 auth/auth_compat.o auth/auth_ntlmssp.o \
886 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
888 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
890 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o smbd/msg_idmap.o
892 BUILDOPT_OBJ = smbd/build_options.o
894 SMBD_OBJ_SRV = smbd/server_reload.o \
895 smbd/files.o smbd/connection.o \
896 smbd/utmp.o smbd/session.o \
897 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/conn_idle.o smbd/conn_msg.o \
898 smbd/share_access.o smbd/fileio.o \
899 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
900 smbd/message.o smbd/nttrans.o smbd/pipes.o \
901 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
902 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
903 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
904 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
905 smbd/posix_acls.o lib/sysacls.o \
906 smbd/process.o smbd/service.o param/service.o smbd/error.o \
907 rpc_server/epmd.o \
908 printing/printspoolss.o printing/spoolssd.o \
909 lib/sysquotas.o lib/sysquotas_linux.o \
910 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
911 lib/sysquotas_nfs.o \
912 lib/smbd_shim.o \
913 smbd/fake_file.o \
914 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
915 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
916 smbd/dmapi.o smbd/signing.o \
917 smbd/file_access.o \
918 smbd/dnsregister.o smbd/globals.o \
919 smbd/smb2_server.o \
920 smbd/smb2_signing.o \
921 smbd/smb2_glue.o \
922 smbd/smb2_negprot.o \
923 smbd/smb2_sesssetup.o \
924 smbd/smb2_tcon.o \
925 smbd/smb2_create.o \
926 smbd/smb2_close.o \
927 smbd/smb2_flush.o \
928 smbd/smb2_read.o \
929 smbd/smb2_write.o \
930 smbd/smb2_lock.o \
931 smbd/smb2_ioctl.o \
932 smbd/smb2_keepalive.o \
933 smbd/smb2_find.o \
934 smbd/smb2_notify.o \
935 smbd/smb2_getinfo.o \
936 smbd/smb2_setinfo.o \
937 smbd/smb2_break.o \
938 $(MANGLE_OBJ) @VFS_STATIC@
940 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
941 $(RPC_SERVER_OBJ) \
942 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
943 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
944 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
945 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
946 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
947 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
948 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
949 $(LIBSMBCONF_OBJ) \
950 $(PRIVILEGES_BASIC_OBJ) \
951 $(REGFIO_OBJ) \
952 $(REG_API_REGF_OBJ) \
953 $(LIBNDR_XATTR_OBJ)
955 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
956 printing/print_cups.o printing/print_generic.o \
957 printing/lpq_parse.o printing/load.o \
958 printing/print_iprint.o printing/print_standard.o \
959 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
961 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
962 PRINTBACKEND_OBJ = printing/printing.o \
963 printing/nt_printing.o \
964 printing/nt_printing_tdb.o \
965 printing/nt_printing_migrate.o \
966 printing/nt_printing_migrate_internal.o \
967 printing/nt_printing_ads.o \
968 librpc/gen_ndr/ndr_ntprinting.o \
969 ../librpc/ndr/ndr_ntprinting.o \
970 $(PRINTBASE_OBJ)
972 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
974 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
975 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
976 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
977 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
978 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
979 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
980 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
981 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
982 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
983 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
984 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
985 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
987 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
988 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
989 $(LIBNDR_GEN_OBJ0)
991 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
992 web/swat.o web/neg_lang.o
994 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
995 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
996 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
997 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
998 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
999 $(LIBCLI_SAMR_OBJ) \
1000 rpc_client/init_lsa.o
1002 STATUS_OBJ = utils/status.o utils/status_profile.o \
1003 $(LOCKING_OBJ) $(PARAM_OBJ) \
1004 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1005 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1007 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1008 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
1010 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
1011 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1012 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1013 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1014 $(LIBMSRPC_GEN_OBJ) \
1015 $(LIBMSRPC_OBJ) \
1016 $(LIBCLI_SRVSVC_OBJ)
1018 TESTPARM_OBJ = utils/testparm.o \
1019 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1020 $(LIBSMB_ERR_OBJ)
1022 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1023 $(LIB_NONSMBD_OBJ) \
1024 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1026 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1027 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1028 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1030 PASSWD_UTIL_OBJ = utils/passwd_util.o
1032 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1033 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1034 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1035 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1036 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1037 $(LIBCLI_SAMR_OBJ) \
1038 rpc_client/init_lsa.o
1040 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1041 $(LIBSAMBA_OBJ) \
1042 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1043 $(LIBCLI_LDAP_NDR_OBJ) \
1044 $(DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) \
1045 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1047 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1049 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1051 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1052 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1053 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1054 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1055 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1056 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1057 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1058 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1059 rpcclient/cmd_winreg.o \
1060 $(DISPLAY_SEC_OBJ)
1062 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1063 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1064 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1065 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1066 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1067 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1068 $(LIBCLI_SPOOLSS_OBJ) \
1069 $(LIBCLI_EVENTLOG_OBJ) \
1070 $(LIBCLI_NTSVCS_OBJ) \
1071 $(LIBCLI_DRSUAPI_OBJ) \
1072 $(LIBCLI_DFS_OBJ) \
1073 $(LIBCLI_ECHO_OBJ) \
1074 $(LIBCLI_DSSETUP_OBJ) \
1075 $(LIBCLI_WKSSVC_OBJ) \
1076 $(LIBCLI_SRVSVC_OBJ) \
1077 $(LIBCLI_LSA_OBJ) \
1078 $(LIBCLI_SAMR_OBJ) \
1079 $(LIBCLI_WINREG_OBJ) \
1080 $(LIBCLI_NETLOGON_OBJ) \
1081 $(RPC_CLIENT_SCHANNEL_OBJ) \
1082 rpc_client/init_netlogon.o \
1083 rpc_client/init_samr.o
1085 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1086 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1088 LIBSMBCLIENT_THREAD_OBJ = \
1089 libsmb/libsmb_thread_impl.o \
1090 libsmb/libsmb_thread_posix.o
1092 LIBSMBCLIENT_OBJ0 = \
1093 libsmb/libsmb_cache.o \
1094 libsmb/libsmb_compat.o \
1095 libsmb/libsmb_context.o \
1096 libsmb/libsmb_dir.o \
1097 libsmb/libsmb_file.o \
1098 libsmb/libsmb_misc.o \
1099 libsmb/libsmb_path.o \
1100 libsmb/libsmb_printjob.o \
1101 libsmb/libsmb_server.o \
1102 libsmb/libsmb_stat.o \
1103 libsmb/libsmb_xattr.o \
1104 libsmb/libsmb_setget.o
1106 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1107 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1108 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1109 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1110 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1111 $(LIBCLI_SRVSVC_OBJ) \
1112 $(LIBCLI_LSA_OBJ)
1114 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1116 # This shared library is intended for linking with unit test programs
1117 # to test Samba internals. It's called libbigballofmud.so to
1118 # discourage casual usage.
1120 LIBBIGBALLOFMUD_MAJOR = 0
1122 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1123 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1124 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1126 CLIENT_OBJ1 = client/client.o client/clitar.o \
1127 client/dnsbrowse.o \
1128 $(LIBMSRPC_OBJ)
1130 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1131 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1132 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1133 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1134 $(DISPLAY_SEC_OBJ) \
1135 $(LIBCLI_SRVSVC_OBJ)
1137 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1138 ../lib/smbconf/smbconf_util.o \
1139 ../lib/smbconf/smbconf_txt.o \
1140 lib/smbconf/smbconf_reg.o \
1141 lib/smbconf/smbconf_init.o
1143 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1145 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1146 $(LIB_NONSMBD_OBJ) \
1147 $(PARAM_OBJ) \
1148 $(LIBSMB_ERR_OBJ) \
1149 $(POPT_LIB_OBJ)
1151 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1152 lib/pthreadpool/tests.o
1154 LIBNET_OBJ = libnet/libnet_join.o \
1155 libnet/libnet_keytab.o \
1156 librpc/gen_ndr/ndr_libnet_join.o
1158 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1159 libnet/libnet_dssync_passdb.o \
1160 libnet/libnet_dssync_keytab.o \
1161 ../libcli/drsuapi/repl_decrypt.o
1163 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1164 libnet/libnet_samsync_ldif.o \
1165 libnet/libnet_samsync_passdb.o \
1166 libnet/libnet_samsync_display.o \
1167 libnet/libnet_samsync_keytab.o \
1168 ../libcli/samsync/decrypt.o
1170 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1171 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1172 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1173 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o utils/net_idmap_check.o\
1174 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1175 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1176 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1177 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1178 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1179 utils/net_conf.o utils/net_join.o utils/net_user.o \
1180 utils/net_group.o utils/net_file.o utils/net_registry.o \
1181 auth/token_util.o utils/net_dom.o utils/net_share.o \
1182 utils/net_g_lock.o \
1183 utils/net_serverid.o \
1184 utils/net_eventlog.o \
1185 utils/net_printing.o \
1186 utils/net_rpc_trust.o \
1187 $(LIBNDR_NTPRINTING_OBJ) \
1188 $(LIBNDR_PREG_OBJ) \
1189 $(LIBCLI_SPOOLSS_OBJ) \
1190 $(LIBCLI_WINREG_OBJ) \
1191 $(LIBCLI_DRSUAPI_OBJ) \
1192 $(LIBCLI_INITSHUTDOWN_OBJ) \
1193 $(LIBCLI_DSSETUP_OBJ) \
1194 $(LIBCLI_SVCCTL_OBJ) \
1195 $(LIBCLI_WKSSVC_OBJ) \
1196 $(LIBCLI_SRVSVC_OBJ) \
1197 $(LIBCLI_LSA_OBJ) \
1198 $(LIBCLI_SAMR_OBJ) \
1199 $(LIBCLI_NETLOGON_OBJ) \
1200 $(RPC_CLIENT_SCHANNEL_OBJ) \
1201 rpc_client/init_netlogon.o \
1202 rpc_client/init_samr.o \
1203 registry/reg_parse.o registry/reg_format.o \
1204 registry/reg_parse_internal.o registry/reg_import.o \
1205 lib/cbuf.o lib/srprs.o printing/nt_printing_migrate.o
1207 # these are not processed by make proto
1208 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1210 NET_OBJ = $(NET_OBJ1) \
1211 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1212 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1213 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1214 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1215 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1216 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1217 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1218 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1219 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1220 $(REG_SMBCONF_OBJ) \
1221 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1222 $(LIBSMBCONF_OBJ) \
1223 $(REGFIO_OBJ) \
1224 $(PRIVILEGES_BASIC_OBJ) \
1225 $(LIB_EVENTLOG_OBJ)
1227 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1228 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1229 $(LIBNDR_GEN_OBJ0)
1231 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1232 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1234 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1235 torture/denytest.o torture/mangle_test.o \
1236 torture/nbench.o \
1237 torture/test_async_echo.o \
1238 torture/test_smbsock_any_connect.o \
1239 torture/test_nttrans_create.o \
1240 torture/test_notify_online.o \
1241 torture/test_addrchange.o \
1242 torture/test_case_insensitive.o \
1243 torture/test_posix_append.o \
1244 torture/test_smb2.o
1246 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1247 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1248 @LIBWBCLIENT_STATIC@ \
1249 torture/wbc_async.o \
1250 ../nsswitch/wb_reqtrans.o \
1251 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1253 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1254 $(LIB_NONSMBD_OBJ) \
1255 $(LIBNDR_GEN_OBJ0)
1257 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1258 $(LIB_NONSMBD_OBJ) \
1259 $(LIBNDR_GEN_OBJ0)
1261 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1262 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1263 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1265 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1267 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1268 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1269 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1270 $(LIBNDR_GEN_OBJ0)
1272 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1274 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1276 LOG2PCAP_OBJ = utils/log2pcaphex.o
1278 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1279 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1280 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1282 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1283 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1284 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1285 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1286 $(LIBCLI_LSA_OBJ)
1288 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1289 $(PARAM_OBJ) \
1290 $(LIB_NONSMBD_OBJ) \
1291 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1292 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1293 $(LIBCLI_LSA_OBJ)
1295 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1297 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1298 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1299 librpc/gen_ndr/ndr_eventlog.o \
1300 librpc/gen_ndr/ndr_lsa.o
1302 SHARESEC_OBJ0 = utils/sharesec.o
1303 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1304 $(LIBSMB_ERR_OBJ) \
1305 $(POPT_LIB_OBJ)
1307 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1308 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1310 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1311 @libreplacedir@/test/getifaddrs.o \
1312 @libreplacedir@/test/os2_delete.o \
1313 @libreplacedir@/test/strptime.o \
1314 @libreplacedir@/test/main.o \
1315 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1317 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1319 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1320 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1321 $(LIBNDR_GEN_OBJ0)
1323 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1324 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1326 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1327 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1328 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1329 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1330 $(DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) \
1331 $(PAM_ERRORS_OBJ)
1333 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1335 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1337 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1339 IDMAP_HASH_OBJ = \
1340 winbindd/idmap_hash/idmap_hash.o \
1341 winbindd/idmap_hash/mapfile.o
1343 IDMAP_ADEX_OBJ = \
1344 winbindd/idmap_adex/idmap_adex.o \
1345 winbindd/idmap_adex/cell_util.o \
1346 winbindd/idmap_adex/likewise_cell.o \
1347 winbindd/idmap_adex/provider_unified.o \
1348 winbindd/idmap_adex/gc_util.o \
1349 winbindd/idmap_adex/domain_util.o
1351 WINBINDD_OBJ1 = \
1352 winbindd/winbindd.o \
1353 winbindd/winbindd_group.o \
1354 winbindd/winbindd_util.o \
1355 winbindd/winbindd_cache.o \
1356 winbindd/winbindd_pam.o \
1357 winbindd/winbindd_misc.o \
1358 winbindd/winbindd_cm.o \
1359 winbindd/winbindd_wins_byip.o \
1360 winbindd/winbindd_wins_byname.o \
1361 winbindd/winbindd_msrpc.o \
1362 winbindd/winbindd_rpc.o \
1363 winbindd/winbindd_reconnect.o \
1364 winbindd/winbindd_ads.o \
1365 winbindd/winbindd_samr.o \
1366 winbindd/winbindd_dual.o \
1367 winbindd/winbindd_dual_ndr.o \
1368 winbindd/winbindd_dual_srv.o \
1369 librpc/gen_ndr/ndr_wbint_c.o \
1370 librpc/gen_ndr/srv_wbint.o \
1371 librpc/gen_ndr/ndr_wbint.o \
1372 librpc/gen_ndr/ndr_idmap.o \
1373 winbindd/winbindd_async.o \
1374 winbindd/winbindd_creds.o \
1375 winbindd/winbindd_cred_cache.o \
1376 winbindd/winbindd_ccache_access.o \
1377 winbindd/winbindd_domain.o \
1378 winbindd/winbindd_idmap.o \
1379 winbindd/winbindd_locator.o \
1380 winbindd/winbindd_ndr.o \
1381 winbindd/wb_ping.o \
1382 winbindd/wb_lookupsid.o \
1383 winbindd/wb_lookupsids.o \
1384 winbindd/wb_lookupname.o \
1385 winbindd/wb_sid2uid.o \
1386 winbindd/wb_sid2gid.o \
1387 winbindd/wb_uid2sid.o \
1388 winbindd/wb_gid2sid.o \
1389 winbindd/wb_queryuser.o \
1390 winbindd/wb_lookupuseraliases.o \
1391 winbindd/wb_lookupusergroups.o \
1392 winbindd/wb_getpwsid.o \
1393 winbindd/wb_gettoken.o \
1394 winbindd/wb_seqnum.o \
1395 winbindd/wb_seqnums.o \
1396 winbindd/wb_group_members.o \
1397 winbindd/wb_getgrsid.o \
1398 winbindd/wb_query_user_list.o \
1399 winbindd/wb_fill_pwent.o \
1400 winbindd/wb_next_pwent.o \
1401 winbindd/wb_next_grent.o \
1402 winbindd/wb_dsgetdcname.o \
1403 winbindd/winbindd_lookupsid.o \
1404 winbindd/winbindd_lookupsids.o \
1405 winbindd/winbindd_lookupname.o \
1406 winbindd/winbindd_sid_to_uid.o \
1407 winbindd/winbindd_sid_to_gid.o \
1408 winbindd/winbindd_uid_to_sid.o \
1409 winbindd/winbindd_gid_to_sid.o \
1410 winbindd/winbindd_sids_to_xids.o \
1411 winbindd/winbindd_allocate_uid.o \
1412 winbindd/winbindd_allocate_gid.o \
1413 winbindd/winbindd_getpwsid.o \
1414 winbindd/winbindd_getpwnam.o \
1415 winbindd/winbindd_getpwuid.o \
1416 winbindd/winbindd_getsidaliases.o \
1417 winbindd/winbindd_getuserdomgroups.o \
1418 winbindd/winbindd_getgroups.o \
1419 winbindd/winbindd_show_sequence.o \
1420 winbindd/winbindd_getgrgid.o \
1421 winbindd/winbindd_getgrnam.o \
1422 winbindd/winbindd_getusersids.o \
1423 winbindd/winbindd_lookuprids.o \
1424 winbindd/winbindd_setpwent.o \
1425 winbindd/winbindd_getpwent.o \
1426 winbindd/winbindd_endpwent.o \
1427 winbindd/winbindd_setgrent.o \
1428 winbindd/winbindd_getgrent.o \
1429 winbindd/winbindd_endgrent.o \
1430 winbindd/winbindd_dsgetdcname.o \
1431 winbindd/winbindd_getdcname.o \
1432 winbindd/winbindd_list_users.o \
1433 winbindd/winbindd_list_groups.o \
1434 winbindd/winbindd_check_machine_acct.o \
1435 winbindd/winbindd_change_machine_acct.o \
1436 winbindd/winbindd_ping_dc.o \
1437 winbindd/winbindd_pam_auth.o \
1438 winbindd/winbindd_pam_auth_crap.o \
1439 winbindd/winbindd_pam_chauthtok.o \
1440 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1441 winbindd/winbindd_pam_logoff.o \
1442 auth/auth_util.o \
1443 auth/token_util.o \
1444 auth/user_util.o \
1445 auth/check_samsec.o \
1446 auth/server_info.o \
1447 auth/server_info_sam.o \
1448 auth/user_info.o \
1449 auth/pampass.o \
1450 ../nsswitch/wb_reqtrans.o
1452 WINBINDD_OBJ = \
1453 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1454 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1455 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1456 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1457 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1458 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1459 $(RPC_NCACN_NP) $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1460 $(NPA_TSTREAM_OBJ) \
1461 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1462 $(LIBADS_SERVER_OBJ) \
1463 $(TDB_VALIDATE_OBJ) \
1464 $(LIBCLI_DSSETUP_OBJ) \
1465 $(LIBCLI_LSA_OBJ) \
1466 $(LIBCLI_SAMR_OBJ) \
1467 $(LIBCLI_NETLOGON_OBJ) \
1468 rpc_client/init_netlogon.o \
1469 rpc_client/init_samr.o \
1470 $(PAM_ERRORS_OBJ)
1472 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1473 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1474 lib/winbind_util.o $(WBCOMMON_OBJ)
1476 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1478 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1479 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1481 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1482 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1484 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1485 ../lib/iniparser_build/strlib.o
1487 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1488 $(SOCKET_WRAPPER_OBJ)
1490 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1491 $(SOCKET_WRAPPER_OBJ)
1493 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1494 $(SOCKET_WRAPPER_OBJ)
1496 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1497 $(SOCKET_WRAPPER_OBJ)
1499 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1500 $(SOCKET_WRAPPER_OBJ)
1503 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1505 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1506 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o ../libcli/auth/krb5_wrap.o libads/kerberos.o \
1507 libsmb/samlogon_cache.o \
1508 $(LIBADS_SERVER_OBJ) \
1509 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1510 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1511 $(WBCOMMON_OBJ) \
1512 $(LIBCLI_LDAP_NDR_OBJ) \
1513 $(DRSUAPI_OBJ) \
1514 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1517 VLP_OBJ = printing/tests/vlp.o \
1518 ../lib/util/util_tdb.o \
1519 $(LIBSAMBAUTIL_OBJ) \
1520 param/util.o
1522 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1523 $(LIBSMB_OBJ) \
1524 $(PARAM_OBJ) \
1525 $(PASSDB_OBJ) \
1526 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1527 $(LIB_NONSMBD_OBJ) \
1528 $(KRBCLIENT_OBJ) \
1529 $(LIBMSRPC_OBJ) \
1530 $(LIBMSRPC_GEN_OBJ)
1532 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1533 $(PARAM_OBJ) \
1534 $(LIB_NONSMBD_OBJ) \
1535 $(LIBSMB_ERR_OBJ)
1537 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1538 $(PARAM_OBJ) \
1539 $(LIB_NONSMBD_OBJ) \
1540 $(LIBSMB_ERR_OBJ) \
1541 $(POPT_LIB_OBJ)
1543 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1544 $(PARAM_OBJ) \
1545 $(LIB_NONSMBD_OBJ) \
1546 $(POPT_LIB_OBJ) \
1547 $(LIBSAMBA_OBJ)
1549 ######################################################################
1550 # now the rules...
1551 ######################################################################
1552 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1553 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1554 $(EXTRA_ALL_TARGETS)
1556 basics:: samba3-idl mkparam
1558 nss_modules:: $(NSS_MODULES)
1560 pam_modules:: $(PAM_MODULES)
1562 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1564 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1566 gpext_modules:: $(GPEXT_MODULES)
1568 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1570 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1572 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1574 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1576 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1578 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1580 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1582 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1584 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1586 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1588 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1590 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1592 talloctort : SHOWFLAGS $(TALLOCTORT)
1594 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1596 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1598 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest@EXEEXT@
1600 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1602 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1603 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1604 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1606 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1608 modules:: SHOWFLAGS $(MODULES)
1611 #####################################################################
1612 ## Perl IDL Compiler
1614 IDL_FILES = librpc/idl/messaging.idl \
1615 librpc/idl/libnetapi.idl \
1616 librpc/idl/wbint.idl \
1617 librpc/idl/perfcount.idl \
1618 librpc/idl/secrets.idl \
1619 librpc/idl/libnet_join.idl
1621 samba3-idl::
1622 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1623 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1624 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1625 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1627 idl_full::
1628 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1629 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1630 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1631 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1633 mkparam:
1634 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c --file ../lib/param/param_local.h --generate-scope=LOCAL
1635 $(PERL) ../script/mkparamdefs.pl $(srcdir)/param/loadparm.c --file param/param_global.h --generate-scope=GLOBAL
1637 #####################################################################
1640 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1641 $(EVERYTHING_PROGS) \
1642 vfs_examples
1644 .SUFFIXES:
1645 .SUFFIXES: .c .o .lo
1647 .PHONY: showflags SHOWFLAGS
1649 showflags: SHOWFLAGS
1651 SHOWFLAGS::
1652 @echo "Using CFLAGS = $(CFLAGS)"
1653 @echo " PICFLAG = $(PICFLAG)"
1654 @echo " LIBS = $(LIBS)"
1655 @echo " LDFLAGS = $(LDFLAGS)"
1656 @echo " DYNEXP = $(DYNEXP)"
1657 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1658 @echo " SHLIBEXT = @SHLIBEXT@"
1659 @echo " SONAMEFLAG = @SONAMEFLAG@"
1661 # "showcflags" target for debuggin how CFLAGS are composed:
1663 .PHONY: showcflags SHOWCFLAGS
1665 showcflags: SHOWCFLAGS
1667 SHOWCFLAGS::
1668 @echo "CFLAGS = $(CFLAGS)"
1669 @echo "FLAGS = $(FLAGS)"
1670 @echo ""
1671 @echo "FLAGS1 = @FLAGS1@"
1672 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1673 @echo "CPPFLAGS = $(CPPFLAGS)"
1674 @echo "ISA = $(ISA)"
1676 MAKEDIR = || exec false; \
1677 if test -d "$$dir"; then :; else \
1678 echo mkdir "$$dir"; \
1679 mkdir -p "$$dir" >/dev/null 2>&1 || \
1680 test -d "$$dir" || \
1681 mkdir "$$dir" || \
1682 exec false; fi || exec false
1684 # Run a static checker.
1685 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1686 # Compile a source file.
1687 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1688 # Compile a source file with the installation paths defined.
1689 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1691 COMPILE = $(COMPILE_CC)
1693 .c.o:
1694 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1695 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1696 @if test -n "$(CC_CHECKER)"; then \
1697 echo "Checking $*.c with '$(CC_CHECKER)'";\
1698 $(CHECK_CC); \
1700 @echo Compiling $*.c
1701 @$(COMPILE) && exit 0;\
1702 echo "The following command failed:" 1>&2;\
1703 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1704 $(COMPILE_CC) >/dev/null 2>&1
1705 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1707 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1709 # this adds support for precompiled headers. To use it, install a snapshot
1710 # of gcc-3.4 and run 'make pch' before you do the main build.
1711 pch::
1712 rm -f $(PRECOMPILED_HEADER)
1713 $(MAKE) $(PRECOMPILED_HEADER)
1715 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1716 $(COMPILE)
1718 BINARY_PREREQS = bin/.dummy
1720 # These dependencies are only approximately correct: we want to make
1721 # sure Samba's paths are updated if ./configure is re-run. Really it
1722 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1723 # but since we also require "make install prefix=/opt/samba" *not* to
1724 # rebuild it's a bit hard.
1726 ../dynconfig/dynconfig.o: ../dynconfig/dynconfig.c Makefile
1727 @echo Compiling $*.c
1728 @$(COMPILE_CC_PATH) && exit 0;\
1729 echo "The following command failed:" 1>&2;\
1730 echo "$(COMPILE_CC_PATH)" 1>&2;\
1731 $(COMPILE_CC_PATH) >/dev/null 2>&1
1733 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1734 @echo Compiling $*.c
1735 @$(COMPILE_CC_PATH) && exit 0;\
1736 echo "The following command failed:" 1>&2;\
1737 echo "$(COMPILE_CC_PATH)" 1>&2;\
1738 $(COMPILE_CC_PATH) >/dev/null 2>&1
1740 ### Start section of object files that require PTHREAD_CFLAGS
1741 ../nsswitch/wins.o: ../nsswitch/wins.c
1742 @echo Compiling $*.c
1743 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1744 echo "The following command failed:" 1>&2;\
1745 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1746 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1748 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1749 @echo Compiling $*.c
1750 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1751 echo "The following command failed:" 1>&2;\
1752 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1753 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1755 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.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 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1763 @echo Compiling $*.c
1764 @$(COMPILE) $(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
1768 ### End section of object files that require PTHREAD_CFLAGS
1770 lib/pidfile.o: lib/pidfile.c
1771 @echo Compiling $*.c
1772 @$(COMPILE_CC_PATH) && exit 0;\
1773 echo "The following command failed:" 1>&2;\
1774 echo "$(COMPILE_CC_PATH)" 1>&2;\
1775 $(COMPILE_CC_PATH) >/dev/null 2>&1
1777 lib/version.o: lib/version.c include/version.h
1778 @echo Compiling $*.c
1779 @$(COMPILE_CC_PATH) && exit 0;\
1780 echo "The following command failed:" 1>&2;\
1781 echo "$(COMPILE_CC_PATH)" 1>&2;\
1782 $(COMPILE_CC_PATH) >/dev/null 2>&1
1784 smbd/build_options.o: smbd/build_options.c Makefile include/autoconf/config.h include/build_env.h include/proto.h
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 smbd/build_options.c: include/autoconf/config.h.in script/mkbuildoptions.awk
1792 @echo Generating $@
1793 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/autoconf/config.h.in
1795 bin/.dummy:
1796 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1797 dir=bin $(MAKEDIR); fi
1798 @: >> $@ || : > $@ # what a fancy emoticon!
1800 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1801 @echo Linking $@
1802 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1803 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1804 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1805 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1806 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1808 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1809 @echo Linking $@
1810 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1811 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1812 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1813 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1815 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1816 @echo Linking $@
1817 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1818 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1819 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1821 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1822 @echo Linking $@
1823 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1824 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1825 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1826 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1828 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1829 @echo Linking $@
1830 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1831 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1832 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1833 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1835 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1836 @echo Linking $@
1837 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1838 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1839 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1840 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1841 $(ZLIB_LIBS)
1843 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1844 @echo Linking $@
1845 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1846 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1848 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1849 @echo Linking $@
1850 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1851 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1852 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1854 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1855 @echo Linking $@
1856 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1857 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1859 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1860 @echo Linking $@
1861 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1862 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1864 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1865 @echo Linking $@
1866 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1867 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1869 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1870 @echo Linking $@
1871 @$(CC) -DUSING_SMBCONTROL -o $@ \
1872 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1873 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1874 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1876 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1877 @echo Linking $@
1878 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1879 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1880 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1882 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1883 @echo Linking $@
1884 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1885 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1886 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1888 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1889 @echo Linking $@
1890 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1891 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1892 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1894 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1895 @echo Linking $@
1896 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1897 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1898 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1900 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1901 @echo Linking $@
1902 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1903 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1905 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1906 @echo Linking $@
1907 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1908 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1909 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1911 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1912 @echo Linking $@
1913 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1914 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1915 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1917 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1918 @echo Linking $@
1919 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1920 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1922 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1923 @echo Linking $@
1924 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1925 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1926 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1928 bin/pthreadpooltest@EXEEXT@: $(PTHREADPOOLTEST_OBJ)
1929 @echo Linking $@
1930 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) -lpthread
1932 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1933 @echo Linking $@
1934 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1935 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1936 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1937 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1939 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1940 @echo Linking $@
1941 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1942 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1943 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1945 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1946 @echo Linking $@
1947 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1948 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1949 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1951 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1952 @echo Linking $@
1953 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1954 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1955 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1957 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1958 @echo Linking $@
1959 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1960 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1962 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1963 @echo Linking $@
1964 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1965 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1967 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1968 @echo Linking $@
1969 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1970 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1971 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1972 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1974 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1975 @echo Linking $@
1976 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1978 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1979 @echo Linking $@
1980 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1981 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1982 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1984 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1985 @echo Linking $@
1986 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1987 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1988 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1989 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1990 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1992 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1993 @echo Linking $@
1994 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1995 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1996 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1998 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1999 @echo Linking $@
2000 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
2001 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
2003 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2004 @echo Linking $@
2005 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
2006 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2007 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2008 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2010 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2011 @echo Linking $@
2012 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
2013 $(LIBS) $(LIBTALLOC_LIBS)
2015 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2016 @echo Linking $@
2017 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2018 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2019 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2020 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2022 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2023 @echo Linking $@
2024 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2027 #####################################################################
2029 # libraries
2031 #####################################################################
2033 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2036 #-------------------------------------------------------------------
2038 # libtalloc
2040 #-------------------------------------------------------------------
2043 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2044 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2046 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2047 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2048 LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@
2049 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
2050 LIBTALLOC_SHARED_TARGET_FULLVER=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_FULLVER)
2051 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2052 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2053 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2055 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2056 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2058 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2059 @echo Linking shared library $@
2060 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2062 $(LIBTALLOC_SHARED_TARGET_FULLVER): $(LIBTALLOC_SHARED_TARGET_SONAME)
2063 @rm -f $@
2064 @mv -f $(LIBTALLOC_SHARED_TARGET_SONAME) $@
2065 @ln -f -s `basename $@` $(LIBTALLOC_SHARED_TARGET_SONAME)
2067 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_FULLVER)
2068 @rm -f $@
2069 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2071 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2072 @echo Linking non-shared library $@
2073 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2074 libtalloc: $(LIBTALLOC)
2076 cleanlibtalloc::
2077 -rm -f \
2078 $(LIBTALLOC_SYMS) \
2079 $(LIBTALLOC_STATIC_TARGET) \
2080 $(LIBTALLOC_SHARED_TARGET) \
2081 $(LIBTALLOC_SHARED_TARGET_SONAME)
2083 installlibtalloc:: installdirs libtalloc
2084 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2085 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2086 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2087 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2088 -if test -r $(LIBTALLOC_SHARED_TARGET_FULLVER) ; then \
2089 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_FULLVER)` \
2090 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` ; \
2092 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2093 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2094 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2096 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2097 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2098 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2100 uninstalllibtalloc::
2101 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2102 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2103 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2104 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2106 libs:: libtalloc
2107 installlibs:: @INSTALL_LIBTALLOC@
2108 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2109 cleanlibs:: cleanlibtalloc
2110 shlibs test_shlibs: @LIBTALLOC_SHARED@
2112 showlibtalloc:
2113 @echo ""
2114 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2115 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2116 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2117 @echo ""
2118 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2119 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2120 @echo "LIBTALLOC_FULLVER = $(LIBTALLOC_FULLVER)"
2121 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2122 @echo "LIBTALLOC_SHARED TARGET_FULLVER = $(LIBTALLOC_SHARED_TARGET_FULLVER)"
2123 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2124 @echo "LIBTALLOC = $(LIBTALLOC)"
2126 showlibs:: showlibtalloc
2128 #-------------------------------------------------------------------
2130 # libtdb
2132 #-------------------------------------------------------------------
2134 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2135 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2137 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2138 LIBTDB_SOVER=@LIBTDB_SOVER@
2139 LIBTDB_FULLVER=@LIBTDB_FULLVER@
2140 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
2141 LIBTDB_SHARED_TARGET_FULLVER=$(LIBTDB_SHARED_TARGET).$(LIBTDB_FULLVER)
2142 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2143 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2144 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2146 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2147 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2150 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2151 @echo Linking shared library $@
2152 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2153 @SONAMEFLAG@`basename $@`
2155 $(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME)
2156 @rm -f $@
2157 @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER)
2158 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME)
2160 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER)
2161 @rm -f $@
2162 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2164 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2165 @echo Linking non-shared library $@
2166 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2168 libtdb: $(LIBTDB)
2170 cleanlibtdb::
2171 -rm -f \
2172 $(LIBTDB_SYMS) \
2173 $(LIBTDB_STATIC_TARGET) \
2174 $(LIBTDB_SHARED_TARGET) \
2175 $(LIBTDB_SHARED_TARGET_SONAME)
2178 installlibtdb:: installdirs libtdb
2179 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2180 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2181 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2182 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2183 -if test -r $(LIBTDB_SHARED_TARGET_FULLVER) ; then \
2184 ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` \
2185 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)` ; \
2187 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2188 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2189 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2191 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2192 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2193 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2195 uninstalllibtdb::
2196 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2197 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2198 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2199 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2201 libs:: libtdb
2202 installlibs:: @INSTALL_LIBTDB@
2203 uninstalllibs:: @UNINSTALL_LIBTDB@
2204 cleanlibs:: cleanlibtdb
2205 shlibs test_shlibs: @LIBTDB_SHARED@
2207 showlibtdb:
2208 @echo ""
2209 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2210 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2211 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2212 @echo ""
2213 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2214 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2215 @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)"
2216 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2217 @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)"
2218 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2219 @echo "LIBTDB = $(LIBTDB)"
2221 showlibs:: showlibtdb
2223 #-------------------------------------------------------------------
2225 # libwbclient
2227 #-------------------------------------------------------------------
2229 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2230 ../nsswitch/libwbclient/wbc_util.o \
2231 ../nsswitch/libwbclient/wbc_pwd.o \
2232 ../nsswitch/libwbclient/wbc_idmap.o \
2233 ../nsswitch/libwbclient/wbc_sid.o \
2234 ../nsswitch/libwbclient/wbc_guid.o \
2235 ../nsswitch/libwbclient/wbc_pam.o
2237 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2238 $(WBCOMMON_OBJ) \
2239 $(LIBREPLACE_OBJ) \
2240 ../lib/util/blocking.o \
2241 $(SOCKET_WRAPPER_OBJ)
2243 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2244 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2245 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2246 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
2247 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2248 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2249 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2251 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2252 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2254 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2255 @echo Linking shared library $@
2256 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2257 @SONAMEFLAG@`basename $@`
2259 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2260 @rm -f $@
2261 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2263 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2264 @echo Linking non-shared library $@
2265 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2267 libwbclient: $(LIBWBCLIENT)
2269 cleanlibwbclient::
2270 -rm -f \
2271 $(LIBWBCLIENT_SYMS) \
2272 $(LIBWBCLIENT_STATIC_TARGET) \
2273 $(LIBWBCLIENT_SHARED_TARGET) \
2274 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2276 installlibwbclient:: installdirs libwbclient
2277 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2278 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2279 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2280 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2281 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2282 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2284 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2285 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2286 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2288 uninstalllibwbclient::
2289 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2290 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2291 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2292 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2294 libs:: libwbclient
2295 installlibs:: @INSTALL_LIBWBCLIENT@
2296 uninstalllibs:: uninstalllibwbclient
2297 cleanlibs:: cleanlibwbclient
2298 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2300 showlibwbclient:
2301 @echo ""
2302 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2303 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2304 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2305 @echo ""
2306 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2307 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2308 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2309 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2310 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2311 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2313 showlibs:: showlibwbclient
2316 #-------------------------------------------------------------------
2318 # libaddns
2320 #-------------------------------------------------------------------
2323 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2324 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2325 LIBADDNS_FULLVER=@LIBADDNS_FULLVER@
2326 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2327 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2328 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2329 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2330 LIBADDNS_HEADERS=$(srcdir)/../lib/addns/addns.h
2332 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2333 @echo Linking shared library $@
2334 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2335 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2336 @SONAMEFLAG@`basename $@`
2338 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2339 @rm -f $@
2340 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2342 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2343 @echo Linking non-shared library $@
2344 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2346 libaddns: $(LIBADDNS)
2348 cleanlibaddns::
2349 -rm -f \
2350 $(LIBADDNS_SHARED_TARGET) \
2351 $(LIBADDNS_SHARED_TARGET_SONAME) \
2352 $(LIBADDNS_STATIC_TARGET)
2354 installlibaddns:: installdirs libaddns
2355 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2356 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2357 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2358 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2359 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2360 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2362 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2364 uninstalllibaddns::
2365 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2366 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2367 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2369 libs:: libaddns
2370 installlibs:: @INSTALL_LIBADDNS@
2371 uninstalllibs:: @UNINSTALL_LIBADDNS@
2372 cleanlibs:: cleanlibaddns
2373 shlibs test_shlibs: @LIBADDNS_SHARED@
2375 showlibaddns:
2376 @echo ""
2377 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2378 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2379 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2380 @echo ""
2381 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2382 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2383 @echo "LIBADDNS_FULLVER = $(LIBADDNS_FULLVER)"
2384 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2385 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2386 @echo "LIBADDNS = $(LIBADDNS)"
2388 showlibs:: showlibaddns
2390 #-------------------------------------------------------------------
2392 # libnetapi
2394 #-------------------------------------------------------------------
2396 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2397 lib/netapi/cm.o \
2398 librpc/gen_ndr/ndr_libnetapi.o \
2399 lib/netapi/libnetapi.o \
2400 lib/netapi/joindomain.o \
2401 lib/netapi/serverinfo.o \
2402 lib/netapi/getdc.o \
2403 lib/netapi/user.o \
2404 lib/netapi/group.o \
2405 lib/netapi/localgroup.o \
2406 lib/netapi/samr.o \
2407 lib/netapi/sid.o \
2408 lib/netapi/share.o \
2409 lib/netapi/file.o \
2410 lib/netapi/shutdown.o \
2411 lib/netapi/netlogon.o
2413 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2414 $(LIBSMBCONF_OBJ) \
2415 $(REG_SMBCONF_OBJ) \
2416 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2417 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2418 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2419 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2420 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2421 auth/token_util.o \
2422 $(LIBCLI_INITSHUTDOWN_OBJ) \
2423 $(LIBCLI_WKSSVC_OBJ) \
2424 $(LIBCLI_SRVSVC_OBJ) \
2425 $(LIBCLI_LSA_OBJ) \
2426 $(LIBCLI_SAMR_OBJ) \
2427 $(LIBCLI_NETLOGON_OBJ) \
2428 $(RPC_CLIENT_SCHANNEL_OBJ) \
2429 rpc_client/init_netlogon.o \
2430 rpc_client/init_samr.o
2432 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2433 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2434 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2435 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2436 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2437 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2438 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2440 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2441 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2443 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2444 @echo Linking shared library $@
2445 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2446 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2447 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2448 @SONAMEFLAG@`basename $@`
2450 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2451 @rm -f $@
2452 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2454 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2455 @echo Linking non-shared library $@
2456 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2458 libnetapi: $(LIBNETAPI)
2460 cleanlibnetapi::
2461 -rm -f \
2462 $(LIBNETAPI_SYMS) \
2463 $(LIBNETAPI_STATIC_TARGET) \
2464 $(LIBNETAPI_SHARED_TARGET) \
2465 $(LIBNETAPI_SHARED_TARGET_SONAME)
2467 installlibnetapi:: installdirs libnetapi
2468 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2469 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2470 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2471 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2472 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2473 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2475 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2476 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2477 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2479 uninstalllibnetapi::
2480 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2481 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2482 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2483 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2485 libs:: libnetapi
2486 installlibs:: @INSTALL_LIBNETAPI@
2487 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2488 cleanlibs:: cleanlibnetapi
2489 shlibs test_shlibs: @LIBNETAPI_SHARED@
2491 showlibnetapi:
2492 @echo ""
2493 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2494 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2495 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2496 @echo ""
2497 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2498 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2499 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2500 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2501 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2502 @echo "LIBNETAPI = $(LIBNETAPI)"
2504 showlibs:: showlibnetapi
2506 #-------------------------------------------------------------------
2508 # libsmbclient
2510 #-------------------------------------------------------------------
2512 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2513 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2514 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2515 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2516 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2517 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2518 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2519 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2521 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2522 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2524 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2525 @echo Linking shared library $@
2526 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2527 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2528 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2529 @SONAMEFLAG@`basename $@`
2531 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2532 @rm -f $@
2533 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2535 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2536 @echo Linking non-shared library $@
2537 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2539 libsmbclient: $(LIBSMBCLIENT)
2541 cleanlibsmbclient::
2542 -rm -f \
2543 $(LIBSMBCLIENT_SHARED_TARGET) \
2544 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2545 $(LIBSMBCLIENT_STATIC_TARGET)
2547 installlibsmbclient:: installdirs libsmbclient
2548 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2549 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2550 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2551 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2552 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2553 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2555 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2556 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2557 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2559 installclientlib:: installlibsmbclient
2561 uninstalllibsmbclient::
2562 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2563 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2564 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2565 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2567 uninstallclientlib:: uninstalllibsmbclient
2569 libs:: libsmbclient
2570 installlibs:: @INSTALL_LIBSMBCLIENT@
2571 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2572 cleanlibs:: cleanlibsmbclient
2573 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2575 showlibsmbclient:
2576 @echo ""
2577 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2578 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2579 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2580 @echo ""
2581 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2582 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2583 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2584 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2585 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2586 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2588 showlibs:: showlibsmbclient
2590 #-------------------------------------------------------------------
2592 # libsmbsharemodes
2594 #-------------------------------------------------------------------
2596 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o ../lib/ccan/hash/hash.o
2598 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2600 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2601 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2602 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2603 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2604 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2605 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2606 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2607 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2609 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2610 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2612 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2613 @echo Linking shared library $@
2614 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2615 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2616 @SONAMEFLAG@`basename $@`
2618 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2619 @rm -f $@
2620 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2622 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2623 @echo Linking non-shared library $@
2624 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2626 libsmbsharemodes: $(LIBSMBSHAREMODES)
2628 cleanlibsmbsharemodes::
2629 -rm -f \
2630 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2631 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2632 $(LIBSMBSHAREMODES_STATIC_TARGET)
2634 installlibsmbsharemodes:: installdirs libsmbsharemodes
2635 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2636 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2637 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2638 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2639 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2640 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2642 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2643 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2644 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2646 uninstalllibsmbsharemodes::
2647 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2648 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2649 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2650 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2652 libs:: libsmbsharemodes
2653 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2654 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2655 cleanlibs:: cleanlibsmbsharemodes
2656 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2658 showlibsmbsharemodes:
2659 @echo ""
2660 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2661 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2662 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2663 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2664 @echo ""
2665 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2666 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2667 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2668 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2669 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2670 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2672 showlibs:: showlibsmbsharemodes
2674 #-------------------------------------------------------------------
2676 # libbigballofmud
2678 #-------------------------------------------------------------------
2680 # This is probably wrong for anything other than the GNU linker.
2681 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2682 @echo Linking shared library $@
2683 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2684 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2685 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2686 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2687 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2689 # It would be nice to build a static bigballofmud too, but when I try
2690 # I get linker errors about dl_open and similar things. I'm not sure if
2691 # it can be fixed or if they just can't be called from a static
2692 # library.
2694 #####################################################################
2696 # shared modules
2698 #####################################################################
2700 # Linker command to link our shared libraries:
2701 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2702 -o $@ @SONAMEFLAG@`basename $@`
2703 # Linker command to link samba internal plugin modules:
2704 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2705 -o $@ @SONAMEFLAG@`basename $@`
2707 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2708 @echo "Linking $@"
2709 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2711 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2712 @echo "Linking $@"
2713 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2715 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2716 @echo "Linking $@"
2717 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2719 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2720 @echo "Linking $@"
2721 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2723 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2724 @echo "Linking $@"
2725 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2727 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2728 @echo "Linking $@"
2729 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2731 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2732 @echo "Linking $@"
2733 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2735 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2736 @echo "Linking $@"
2737 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2739 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2740 @echo "Linking $@"
2741 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2743 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2744 @echo "Linking $@"
2745 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2747 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2748 @echo "Linking $@"
2749 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2751 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2752 @echo "Linking $@"
2753 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2755 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2756 @echo "Linking $@"
2757 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2759 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2760 @echo "Linking $@"
2761 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2763 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2764 @echo "Linking $@"
2765 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2766 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2767 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2768 $(ZLIB_LIBS)
2770 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2771 @echo "Linking $@"
2772 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2773 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2774 $(LIBTDB_LIBS)
2776 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2777 @echo "Linking $@"
2778 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2779 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2780 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2782 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2783 @echo "Linking $@"
2784 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2785 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2786 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2788 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2789 @echo "Linking $@"
2790 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2791 @SONAMEFLAG@`basename $@`
2793 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2794 @echo "Linking shared library $@"
2795 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2796 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2798 ##########
2799 # Plugins:
2800 ##########
2802 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2803 @echo "Building plugin $@"
2804 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2806 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2807 @echo "Building plugin $@"
2808 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2810 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2811 @echo "Building plugin $@"
2812 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2814 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2815 @echo "Building plugin $@"
2816 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2818 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2819 @echo "Building plugin $@"
2820 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2822 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2823 @echo "Building plugin $@"
2824 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2826 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2827 @echo "Building plugin $@"
2828 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2830 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2831 @echo "Building plugin $@"
2832 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2834 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2835 @echo "Building plugin $@"
2836 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2838 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2839 passdb/pdb_ipa.o
2840 @echo "Building plugin $@"
2841 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2842 $(LDAP_LIBS)
2844 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2845 @echo "Building plugin $@"
2846 @$(SHLD_MODULE) passdb/pdb_ads.o
2848 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2849 @echo "Building plugin $@"
2850 @$(SHLD_MODULE) passdb/pdb_tdb.o
2852 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2853 @echo "Building plugin $@"
2854 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2856 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2857 @echo "Building plugin $@"
2858 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2860 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2861 @echo "Building plugin $@"
2862 @$(SHLD_MODULE) winbindd/idmap_rid.o
2864 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2865 @echo "Building plugin $@"
2866 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2868 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2869 @echo "Building plugin $@"
2870 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2872 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2873 @echo "Building plugin $@"
2874 @$(SHLD_MODULE) winbindd/idmap_ad.o
2876 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2877 @echo "Building plugin $@"
2878 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2880 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2881 @echo "Building plugin $@"
2882 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2884 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2885 @echo "Building plugin $@"
2886 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2888 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2889 @echo "Building plugin $@"
2890 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2892 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2893 @echo "Building plugin $@"
2894 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2896 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2897 @echo "Building plugin $@"
2898 @$(SHLD_MODULE) $(CP850_OBJ)
2900 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2901 @echo "Building plugin $@"
2902 @$(SHLD_MODULE) $(CP437_OBJ)
2904 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2905 @echo "Building plugin $@"
2906 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2908 # NOTE, there is no build rule for a dynamic default VFS module because
2909 # this one MUST MUST MUST be built statically.
2911 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2912 @echo "Building plugin $@"
2913 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2915 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2916 @echo "Building plugin $@"
2917 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2919 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2920 @echo "Building plugin $@"
2921 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2923 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2924 @echo "Building plugin $@"
2925 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2927 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2928 @echo "Building plugin $@"
2929 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2931 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2932 @echo "Building plugin $@"
2933 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2935 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2936 @echo "Building plugin $@"
2937 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2939 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2940 @echo "Building plugin $@"
2941 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2943 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2944 @echo "Building plugin $@"
2945 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2947 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2948 @echo "Building plugin $@"
2949 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2951 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2952 @echo "Building plugin $@"
2953 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2955 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2956 @echo "Building plugin $@"
2957 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2959 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2960 @echo "Building plugin $@"
2961 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2963 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2964 @echo "Building plugin $@"
2965 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2967 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2968 @echo "Building plugin $@"
2969 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2971 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2972 @echo "Building plugin $@"
2973 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2975 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2976 @echo "Building plugin $@"
2977 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2979 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2980 @echo "Building plugin $@"
2981 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2983 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2984 @echo "Building plugin $@"
2985 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2987 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2988 @echo "Building plugin $@"
2989 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
2991 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2992 @echo "Building plugin $@"
2993 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2995 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2996 @echo "Building plugin $@"
2997 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2999 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
3000 @echo "Building plugin $@"
3001 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
3003 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
3004 @echo "Building plugin $@"
3005 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
3007 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
3008 @echo "Building plugin $@"
3009 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
3011 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
3012 @echo "Building plugin $@"
3013 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
3015 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
3016 @echo "Building plugin $@"
3017 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
3019 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
3020 @echo "Building plugin $@"
3021 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
3023 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
3024 @echo "Building plugin $@"
3025 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
3027 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
3028 @echo "Building plugin $@"
3029 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
3031 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3032 @echo "Building plugin $@"
3033 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3035 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
3036 @echo "Building plugin $@"
3037 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
3039 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
3040 @echo "Building plugin $@"
3041 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
3043 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
3044 @echo "Building plugin $@"
3045 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
3047 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
3048 @echo "Building plugin $@"
3049 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
3051 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
3052 @echo "Building plugin $@"
3053 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
3055 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
3056 @echo "Building plugin $@"
3057 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
3059 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3060 @echo "Building plugin $@"
3061 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3063 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3064 @echo "Building plugin $@"
3065 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3067 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3068 @echo "Building plugin $@"
3069 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3071 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3072 @echo "Building plugin $@"
3073 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3075 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3076 @echo "Building plugin $@"
3077 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3079 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3080 @echo "Building plugin $@"
3081 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3083 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3084 @echo "Building plugin $@"
3085 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3087 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3088 @echo "Building plugin $@"
3089 @$(SHLD_MODULE) libgpo/gpext/registry.o
3091 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3092 @echo "Building plugin $@"
3093 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3095 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3096 @echo "Building plugin $@"
3097 @$(SHLD_MODULE) libgpo/gpext/security.o
3099 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3100 @echo "Building plugin $@"
3101 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3103 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3104 @echo "Building plugin $@"
3105 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3107 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3108 @echo "Building plugin $@"
3109 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3111 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3112 @echo "Building plugin $@"
3113 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3115 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3116 @echo "Building plugin $@"
3117 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3119 #########################################################
3120 ## IdMap NSS plugins
3122 ## None here right now
3123 #########################################################
3125 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3126 @echo Linking $@
3127 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3128 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3129 $(LIBWBCLIENT_LIBS)
3131 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3132 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3133 @echo Linking $@
3134 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3135 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) $(ZLIB_LIBS) \
3136 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3137 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3139 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3140 @echo "Linking shared library $@"
3141 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3142 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
3143 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3145 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3146 @echo Linking $@
3147 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3148 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3150 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3151 @echo Linking $@
3152 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3153 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3155 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3156 @echo Linking $@
3157 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3159 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3160 @echo Linking $@
3161 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3163 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3164 @echo Linking $@
3165 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3166 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3168 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3169 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3170 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3172 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3173 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3174 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3176 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3177 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3178 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3180 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3181 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3182 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3184 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3185 @echo Linking $@
3186 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3188 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3189 @echo "Linking $@"
3190 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3191 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3192 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3194 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3195 @echo "Linking $@"
3196 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3197 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3198 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3199 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3201 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3202 @echo "Linking $@"
3203 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3204 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3205 $(LDAP_LIBS) \
3206 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3208 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3209 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3211 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3212 @echo "Linking $@"
3213 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3214 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3215 $(LDAP_LIBS) \
3216 $(POPT_LIBS) \
3217 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3219 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3220 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3222 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3223 @echo "Linking $@"
3224 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3225 $(LDFLAGS) $(DYNEXP) \
3226 $(LIBS) $(POPT_LIBS) \
3227 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3228 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3230 install:: installservers installbin installman \
3231 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3232 @INSTALL_PAM_MODULES@ installlibs installmo
3234 install-everything:: install installmodules
3236 # DESTDIR is used here to prevent packagers wasting their time
3237 # duplicating the Makefile. Remove it and you will have the privelege
3238 # of package each samba release for muliple versions of multiple
3239 # distributions and operating systems, or at least supplying patches
3240 # to all the packaging files required for this, prior to committing
3241 # the removal of DESTDIR. Do not remove it even though you think it
3242 # is not used
3244 installdirs::
3245 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3246 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3247 $(VARDIR) $(PRIVATE_DIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3248 $(NMBDSOCKETDIR) \
3249 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3251 installservers:: all installdirs
3252 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3254 installbin:: all installdirs
3255 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3257 # Some symlinks are required for the 'probing' of modules.
3258 # This mechanism should go at some point..
3259 installmodules:: modules installdirs
3260 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3261 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3262 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3263 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3264 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3265 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3266 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3267 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3268 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3269 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3270 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3271 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3272 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3273 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3274 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3275 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3276 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3277 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3279 installscripts:: installdirs
3280 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3282 installdat:: installdirs
3283 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3285 installmsg:: installdirs
3286 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3288 installswat:: installdirs installmsg
3289 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3291 installpammodules:: $(PAM_MODULES)
3292 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3293 @for module in $(PAM_MODULES); do \
3294 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3295 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3296 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3297 done
3299 # revert to the previously installed version
3300 revert::
3301 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3302 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3304 installman:: installdirs
3305 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3307 installmo:: all installdirs
3308 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3310 .PHONY: showlayout
3312 showlayout::
3313 @echo "Samba will be installed into:"
3314 @echo " prefix: $(prefix)"
3315 @echo " exec_prefix: $(exec_prefix)"
3316 @echo " sysconfdir: $(sysconfdir)"
3317 @echo " localstatedir: $(localstatedir)"
3318 @echo " datarootdir: $(datarootdir)"
3319 @echo " BINDIR: $(BINDIR)"
3320 @echo " SBINDIR: $(SBINDIR)"
3321 @echo " LIBDIR: $(LIBDIR)"
3322 # @echo " LIBEXECDIR: $(LIBEXECDIR)"
3323 @echo " MANDIR: $(MANDIR)"
3324 @echo " DATADIR: $(DATADIR)"
3325 @echo " LOCALEDIR: $(LOCALEDIR)"
3326 # @echo " SCRIPTSBINDIR: $(SCRIPTSBINDIR)"
3327 # @echo " PYTHONDIR: $(PYTHONDIR)"
3328 # @echo " PYTHONARCHDIR: $(PYTHONARCHDIR)"
3329 @echo " MODULESDIR: $(MODULESDIR)"
3330 @echo " INCLUDEDIR: $(INCLUDEDIR)"
3331 @echo " SETUPDIR: $(SETUPDIR)"
3332 # @echo " PKGCONFIGDIR: $(PKGCONFIGDIR)"
3333 @echo " SWATDIR: $(SWATDIR)"
3334 @echo " CODEPAGEDIR: $(CODEPAGEDIR)"
3335 @echo " PAMMODULESDIR: $(PAMMODULESDIR)"
3336 @echo " CONFIGDIR: $(CONFIGDIR)"
3337 @echo " PRIVATE_DIR: $(PRIVATE_DIR)"
3338 @echo " LOCKDIR: $(LOCKDIR)"
3339 @echo " PIDDIR: $(PIDDIR)"
3340 @echo " STATEDIR: $(STATEDIR)"
3341 @echo " CACHEDIR: $(CACHEDIR)"
3342 @echo " LOGFILEBASE: $(LOGFILEBASE)"
3343 @echo " SOCKET_DIR: $(SOCKET_DIR)"
3344 @echo " PRIVILEGED_SOCKET_DIR: $(PRIVILEGED_SOCKET_DIR)"
3345 # @echo " WINBINDD_SOCKET_DIR: $(WINBINDD_SOCKET_DIR)"
3346 # @echo " WINBINDD_PRIVILEGED_SOCKET_DIR: $(WINBINDD_PRIVILEGED_SOCKET_DIR)"
3347 @echo " NMBDSOCKETDIR: $(NMBDSOCKETDIR)"
3348 # @echo " NTP_SIGND_SOCKET_DIR: $(NTP_SIGND_SOCKET_DIR)"
3349 @echo " NCALRPCDIR: $(NCALRPCDIR)"
3350 @echo " CONFIGFILE: $(CONFIGFILE)"
3351 @echo " LMHOSTSFILE: $(LMHOSTSFILE)"
3352 @echo " SMB_PASSWD_FILE: $(SMB_PASSWD_FILE)"
3355 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3357 uninstallmo::
3358 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3360 uninstallman::
3361 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3363 uninstallservers::
3364 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3366 uninstallbin::
3367 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3369 uninstallmodules::
3370 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3371 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3372 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3373 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3374 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3375 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3376 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3378 uninstallscripts::
3379 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3381 uninstalldat::
3382 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3384 uninstallmsg::
3385 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3387 uninstallswat:: uninstallmsg
3388 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3390 uninstallpammodules::
3391 @for module in $(PAM_MODULES); do \
3392 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3393 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3394 done
3396 cleanlibs::
3397 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3398 ../lib/*/*.ho \
3399 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3400 ../librpc/*/*.o \
3401 ../libgpo/*.o ../libgpo/*/*.o \
3402 ../libds/*.o ../libds/*/*.o ../dynconfig/*.o
3404 clean:: cleanlibs
3405 -rm -f include/build_env.h
3406 -rm -f smbd/build_options.c
3407 -rm -f param/param_local.h
3408 -rm -f param/param_global.h
3409 -rm -f $(PRECOMPILED_HEADER)
3410 -rm -f core */*~ *~ \
3411 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3412 ../testsuite/*/*.o \
3413 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3414 ../client/*.o \
3415 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3416 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3417 $(MODULES) $(TORTURE_PROGS) \
3418 $(EVERYTHING_PROGS) \
3419 bin/timelimit \
3420 .headers.stamp */src/*.o
3421 -rm -rf t_dir
3423 include/build_env.h: script/build_env.sh
3424 @echo Building include/build_env.h
3425 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3426 > $(builddir)/include/build_env.h
3428 proto::
3430 etags::
3431 rm -f TAGS
3432 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3434 ctags::
3435 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3437 realclean:: clean
3438 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3439 -rm -f script/installbin.sh script/uninstallbin.sh
3441 distclean:: realclean
3442 -rm -f smbadduser
3443 -rm -f include/autoconf/config.h Makefile
3444 -rm -f config.status config.cache so_locations
3445 -rm -rf .deps TAGS
3447 realdistclean:: distclean
3448 -rm -f include/autoconf/config.h.in
3449 -rm -f include/version.h
3450 -rm -f configure
3452 # this target is really just for my use. It only works on a limited
3453 # range of machines and is used to produce a list of potentially
3454 # dead (ie. unused) functions in the code. (tridge)
3455 finddead::
3456 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3457 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3458 comm -13 nmused.txt nmfns.txt
3461 # when configure.in is updated, reconfigure
3462 $(srcdir)/configure: $(srcdir)/configure.in
3463 @echo "WARNING: you need to rerun ./autogen.sh"
3465 config.status: $(srcdir)/configure
3466 @echo "WARNING: you need to run ./configure"
3468 Makefile: $(srcdir)/Makefile.in config.status
3469 @echo "WARNING: you need to run ./config.status"
3471 ######################################################################
3472 # Samba Testing Framework
3474 # Check shared libs for unresolved symbols
3475 test_shlibs:
3476 @echo "Testing $? "
3477 @$(LIB_PATH_VAR)=./bin && \
3478 export $(LIB_PATH_VAR) && \
3479 for module in $?; do \
3480 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3481 || exit 1; \
3482 done
3484 # Check for NSS module problems.
3485 test_nss_modules:: nss_modules
3486 @echo "Testing $(NSS_MODULES) "
3487 @$(LIB_PATH_VAR)=./bin && \
3488 export $(LIB_PATH_VAR) && \
3489 for module in $(NSS_MODULES); do \
3490 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3491 || exit 1; \
3492 done
3494 # Check for PAM module problems. Specifically, check that every module we
3495 # built can actually be loaded by a minimal PAM-aware application.
3496 test_pam_modules:: pam_modules
3497 @echo "Testing $(PAM_MODULES) "
3498 @$(LIB_PATH_VAR)=./bin && \
3499 export $(LIB_PATH_VAR) && \
3500 for module in $(PAM_MODULES); do \
3501 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3502 || exit 1; \
3503 done
3507 ## Targets for 'make test'
3510 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3512 valgrindtest:: all torture timelimit
3513 @echo Running Test suite with valgrind
3514 @$(MAKE) test \
3515 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3516 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3517 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3518 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3520 selftestdir = ../selftest
3522 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3524 test:: all torture timelimit
3525 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3526 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3527 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3528 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3529 SOURCEDIR="$(srcdir)" \
3530 VFSLIBDIR="$(builddir)/bin" \
3531 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3532 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3533 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3534 $(srcdir)/selftest/s3-selftest.sh
3536 test-%:
3537 $(MAKE) test TESTS=$*
3539 buildfarm-test:
3540 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3542 subunit-test:
3543 $(MAKE) test SUBUNIT_FORMATTER=cat
3545 SELFTEST_TESTENV = s3dc
3547 testenv:
3548 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3550 gdbtestenv:
3551 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3552 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3553 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3554 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3555 TESTS="--testenv"
3557 valgrindtestenv:
3558 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3559 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3560 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3561 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3562 TESTS="--testenv"
3565 # Check for Winbind struct 32/64bit padding
3566 test_wbpad:
3567 @echo "Testing winbind request/response structure for 32/64bit padding"
3568 @./script/tests/wb_pad.sh || exit 1;
3571 ## Examples:
3574 libsmbclient_examples: libsmbclient
3575 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3577 clean_libsmbclient_examples:
3578 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3580 libnetapi_examples: libnetapi
3581 $(MAKE) -C lib/netapi/examples
3583 clean_libnetapi_examples:
3584 $(MAKE) -C lib/netapi/examples clean
3586 .PHONY: bin/smbtorture4 bin/ndrdump4
3588 bin/smbtorture4: $(BINARY_PREREQS)
3589 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3591 bin/ndrdump4: $(BINARY_PREREQS)
3592 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
3594 .PHONY: vfs_examples
3596 vfs_examples:
3598 cd ../examples/VFS && \
3599 ./autogen.sh && \
3600 ./configure && \
3601 make clean && \
3602 make \