Fix bug #7933 - samba fails to honor SEC_STD_WRITE_OWNER bit with the acl_xattr module.
[Samba/gbeck.git] / source3 / Makefile.in
blobfc1067f3d5cedd2dff501ffc569211d769e88482
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 # the following vars come from ../dynconfig/config.m4
20 BINDIR=@BINDIR@
21 SBINDIR=@SBINDIR@
22 LIBDIR=@LIBDIR@
23 #LIBEXECDIR=@LIBEXECDIR@
24 MANDIR=@MANDIR@
25 DATADIR=@DATADIR@
26 LOCALEDIR=@LOCALEDIR@
27 #SCRIPTSBINDIR=@SCRIPTSBINDIR@
28 #PYTHONDIR=@PYTHONDIR@
29 #PYTHONARCHDIR=@PYTHONARCHDIR@
30 MODULESDIR=@MODULESDIR@
31 INCLUDEDIR=@INCLUDEDIR@
32 SETUPDIR=@SETUPDIR@
33 #PKGCONFIGDIR=@PKGCONFIGDIR@
34 SWATDIR=@SWATDIR@
35 CODEPAGEDIR=@CODEPAGEDIR@
36 PAMMODULESDIR=@PAMMODULESDIR@
37 CONFIGDIR=@CONFIGDIR@
38 PRIVATE_DIR=@PRIVATE_DIR@
39 LOCKDIR=@LOCKDIR@
40 PIDDIR=@PIDDIR@
41 STATEDIR=@STATEDIR@
42 CACHEDIR=@CACHEDIR@
43 LOGFILEBASE=@LOGFILEBASE@
44 SOCKET_DIR=@SOCKET_DIR@
45 PRIVILEGED_SOCKET_DIR=@PRIVILEGED_SOCKET_DIR@
46 WINBINDD_SOCKET_DIR=@WINBINDD_SOCKET_DIR@
47 WINBINDD_PRIVILEGED_SOCKET_DIR=@WINBINDD_PRIVILEGED_SOCKET_DIR@
48 NMBDSOCKETDIR=@NMBDSOCKETDIR@
49 #NTP_SIGND_SOCKET_DIR=@NTP_SIGND_SOCKET_DIR@
50 NCALRPCDIR=@NCALRPCDIR@
51 CONFIGFILE=@CONFIGFILE@
52 LMHOSTSFILE=@LMHOSTSFILE@
53 SMB_PASSWD_FILE=@SMB_PASSWD_FILE@
55 selftest_prefix=@selftest_prefix@
57 LIBS=@LIBS@
58 CC=@CC@
59 SHLD=@SHLD@
60 LIB_PATH_VAR=@LIB_PATH_VAR@
62 ## Dynamic shared libraries build settings
63 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
64 DSO_EXPORTS=@DSO_EXPORTS@
65 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
67 # The MODULE_EXPORTS variable contains the platform-specific linker flags
68 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
69 MODULE_EXPORTS=@MODULE_EXPORTS@
71 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
72 # (GCC) warnings. This is done automatically for --enable-developer,
73 # --enable-picky-developer and --enable-krb5developer.
74 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
75 CFLAGS=@CFLAGS@
76 CPP=@CPP@
77 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
78 PICFLAG=@PICFLAG@
80 EXEEXT=@EXEEXT@
81 AR=@AR@
82 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
83 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
84 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
86 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
87 AWK=@AWK@
88 DYNEXP=@DYNEXP@
89 PERL=@PERL@
90 PYTHON=@PYTHON@
91 LIBDL=@LIBDL@
93 PIDL_ARGS=@PIDL_ARGS@
95 TERMLDFLAGS=@TERMLDFLAGS@
96 TERMLIBS=@TERMLIBS@
97 PRINT_LIBS=@PRINT_LIBS@
98 ZLIB_LIBS=@ZLIB_LIBS@
99 AUTH_LIBS=@AUTH_LIBS@
100 ACL_LIBS=@ACL_LIBS@
101 PASSDB_LIBS=@PASSDB_LIBS@
102 IDMAP_LIBS=@IDMAP_LIBS@
103 KRB5LIBS=@KRB5_LIBS@
104 LDAP_LIBS=@LDAP_LIBS@
105 NSCD_LIBS=@NSCD_LIBS@
106 UUID_LIBS=@UUID_LIBS@
107 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
108 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
109 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
110 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
111 DNSSD_LIBS=@DNSSD_LIBS@
112 AVAHI_LIBS=@AVAHI_LIBS@
113 POPT_LIBS=@POPTLIBS@
114 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
115 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
116 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
117 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
118 LIBTDB_LIBS=@LIBTDB_LIBS@
119 TDB_DEPS=@TDB_DEPS@
120 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
121 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
122 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
123 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
125 TALLOCTORT = @TALLOCTORT@
127 TDBBACKUP = @TDBBACKUP@
128 TDBTOOL = @TDBTOOL@
129 TDBDUMP = @TDBDUMP@
130 TDBRESTORE = @TDBRESTORE@
131 TDBTORTURE = @TDBTORTURE@
132 PTHREADPOOLTEST = @PTHREADPOOLTEST@
134 INSTALLCMD=@INSTALL@
135 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
136 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
137 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
138 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
140 VPATH=@srcdir@
141 srcdir=@abs_srcdir@
142 builddir=@abs_builddir@
143 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
144 # will search for a POSIX-compliant shell, and that might not be
145 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
146 SHELL=/bin/sh
147 DESTDIR=/
149 # See the autoconf manual "Installation Directory Variables" for a
150 # discussion of the subtle use of these variables.
152 VFSLIBDIR = $(MODULESDIR)/vfs
153 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
154 PDBLIBDIR = $(MODULESDIR)/pdb
155 RPCLIBDIR = $(MODULESDIR)/rpc
156 IDMAPLIBDIR = $(MODULESDIR)/idmap
157 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
158 CHARSETLIBDIR = $(MODULESDIR)/charset
159 AUTHLIBDIR = $(MODULESDIR)/auth
160 CONFIGLIBDIR = $(MODULESDIR)/config
161 GPEXTLIBDIR = $(MODULESDIR)/gpext
162 VARDIR = @localstatedir@
164 # The permissions to give the executables and other data
165 INSTALLPERMS_BIN = 0755
166 INSTALLPERMS_DATA = 0644
168 FLAGS = -I. \
169 -I$(srcdir) \
170 @FLAGS1@ \
171 @SAMBA_CPPFLAGS@ \
172 $(CPPFLAGS) \
173 $(ISA) \
174 -I$(srcdir)/lib \
175 -I.. \
176 -I./../lib/ldb/include \
177 -D_SAMBA_BUILD_=3
179 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
180 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
181 -DCONFIGFILE=\"$(CONFIGFILE)\" \
182 -DSBINDIR=\"$(SBINDIR)\" \
183 -DBINDIR=\"$(BINDIR)\" \
184 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
185 -DSWATDIR=\"$(SWATDIR)\" \
186 -DLOCKDIR=\"$(LOCKDIR)\" \
187 -DPIDDIR=\"$(PIDDIR)\" \
188 -DLIBDIR=\"$(LIBDIR)\" \
189 -DMODULESDIR=\"$(MODULESDIR)\" \
190 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
191 -DSHLIBEXT=\"@SHLIBEXT@\" \
192 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
193 -DCONFIGDIR=\"$(CONFIGDIR)\" \
194 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
195 -DCACHEDIR=\"$(CACHEDIR)\" \
196 -DSTATEDIR=\"$(STATEDIR)\" \
197 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
198 -DWINBINDD_SOCKET_DIR=\"$(WINBINDD_SOCKET_DIR)\" \
199 -DWINBINDD_PRIVILEGED_SOCKET_DIR=\"$(WINBINDD_PRIVILEGED_SOCKET_DIR)\" \
200 -DLOCALEDIR=\"$(LOCALEDIR)\" \
201 -DDATADIR=\"$(DATADIR)\" \
202 -DSETUPDIR=\"$(SETUPDIR)\"
204 # Note that all executable programs now provide for an optional executable suffix.
206 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
208 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
209 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
210 bin/smbta-util@EXEEXT@
211 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
212 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
213 $(TDBRESTORE) $(TDBTOOL) bin/dbwrap_tool@EXEEXT@
214 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
215 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
216 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
218 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
219 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
220 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
221 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
222 $(TDBTORTURE) $(PTHREADPOOLTEST) \
223 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
225 BIN_PROGS = @EXTRA_BIN_PROGS@ \
226 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
228 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
229 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
230 bin/log2pcap@EXEEXT@ \
231 bin/vlp@EXEEXT@ \
232 bin/dbwrap_tool@EXEEXT@ \
233 bin/dbwrap_torture@EXEEXT@
235 PAM_MODULES = @PAM_MODULES@
237 NSS_MODULES = @NSS_MODULES@
239 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
241 VFS_MODULES = @VFS_MODULES@
242 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
243 PDB_MODULES = @PDB_MODULES@
244 IDMAP_MODULES = @IDMAP_MODULES@
245 CHARSET_MODULES = @CHARSET_MODULES@
246 AUTH_MODULES = @AUTH_MODULES@
247 NSS_INFO_MODULES = @NSS_INFO_MODULES@
248 GPEXT_MODULES = @GPEXT_MODULES@
249 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
250 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
251 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
253 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
255 ######################################################################
256 # object file lists
257 ######################################################################
259 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
260 ../lib/util/tdb_wrap.o \
261 lib/dbwrap/dbwrap.o \
262 lib/dbwrap/dbwrap_open.o \
263 lib/dbwrap/dbwrap_tdb.o \
264 lib/dbwrap/dbwrap_ctdb.o \
265 lib/g_lock.o \
266 lib/dbwrap/dbwrap_rbt.o
268 TDB_VALIDATE_OBJ = lib/tdb_validate.o
270 SMBLDAP_OBJ = @SMBLDAP@
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/lzxpress.o \
295 $(ZLIB_OBJ)
297 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
298 $(COMPRESSION_OBJ)
300 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
301 ../librpc/ndr/ndr_ntlmssp.o
303 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
304 ../librpc/ndr/ndr.o \
305 ../librpc/ndr/ndr_misc.o \
306 librpc/gen_ndr/ndr_misc.o \
307 librpc/gen_ndr/ndr_security.o \
308 ../librpc/ndr/ndr_sec_helper.o \
309 ../librpc/ndr/ndr_string.o \
310 ../librpc/ndr/uuid.o \
311 ../librpc/ndr/util.o \
312 librpc/gen_ndr/ndr_server_id.o \
313 librpc/gen_ndr/ndr_file_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_dfsblobs.o \
386 librpc/gen_ndr/ndr_echo.o \
387 librpc/gen_ndr/ndr_winreg.o \
388 librpc/gen_ndr/ndr_initshutdown.o \
389 librpc/gen_ndr/ndr_srvsvc.o \
390 librpc/gen_ndr/ndr_eventlog.o \
391 $(LIBNDR_NETLOGON_OBJ) \
392 librpc/gen_ndr/ndr_dssetup.o \
393 librpc/gen_ndr/ndr_epmapper.o \
394 librpc/gen_ndr/ndr_ntsvcs.o \
395 $(LIBNDR_SPOOLSS_OBJ)
397 # this includes only the low level parse code, not stuff
398 # that requires knowledge of security contexts
399 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
401 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
403 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
404 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
405 UID_WRAPPER_OBJ = @UID_WRAPPER_OBJS@
407 LIBSAMBAUTIL_OBJ = \
408 $(LIBREPLACE_OBJ) \
409 $(SOCKET_WRAPPER_OBJ) \
410 $(UID_WRAPPER_OBJ) \
411 $(NSS_WRAPPER_OBJ)
413 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
414 ../lib/util/xfile.o ../lib/util/util_strlist.o \
415 ../lib/util/util_file.o ../lib/util/data_blob.o \
416 ../lib/util/util.o ../lib/util/util_paths.o ../lib/util/fsusage.o \
417 ../lib/util/params.o ../lib/util/talloc_stack.o \
418 ../lib/util/genrand.o ../lib/util/util_net.o \
419 ../lib/util/become_daemon.o ../lib/util/system.o \
420 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
421 ../lib/util/tevent_werror.o \
422 ../lib/util/smb_threads.o ../lib/util/util_id.o \
423 ../lib/util/blocking.o ../lib/util/rfc1738.o \
424 ../lib/util/select.o ../lib/util/util_pw.o ../lib/util/server_id.o
426 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
427 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
428 ../lib/crypto/md4.o \
429 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
430 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
432 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) $(LIBTSOCKET_OBJ) \
433 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
434 lib/messages_ctdbd.o lib/ctdb_packet.o lib/ctdbd_conn.o \
435 lib/id_cache.o \
436 ../lib/socket/interfaces.o lib/memcache.o \
437 lib/talloc_dict.o \
438 lib/serverid.o \
439 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
440 lib/addrchange.o \
441 $(TDB_LIB_OBJ) \
442 $(VERSION_OBJ) lib/charcnv.o ../lib/util/charset/convert_string.o \
443 ../lib/util/charset/pull_push.o \
444 lib/fstring.o ../lib/util/debug.o ../lib/util/debug_s3.o ../lib/util/fault.o \
445 lib/interface.o lib/pidfile.o lib/dumpcore.o \
446 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
447 lib/username.o \
448 ../libds/common/flag_mapping.o \
449 lib/access.o lib/smbrun.o \
450 ../lib/util/bitmap.o ../lib/util/dprintf.o $(UTIL_REG_OBJ) \
451 lib/wins_srv.o lib/string_init.o \
452 lib/util_str.o ../lib/util/util_str_common.o \
453 ../lib/util/util_str.o \
454 ../lib/util/base64.o lib/util_sid.o \
455 ../lib/util/charset/util_unistr.o \
456 ../lib/util/charset/util_unistr_w.o ../lib/util/charset/codepoints.o ../lib/util/charset/util_str.o lib/util_file.o \
457 lib/util.o lib/util_malloc.o lib/namearray.o lib/util_cmdline.o lib/util_names.o \
458 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
459 lib/substitute.o lib/substitute_generic.o ../lib/util/substitute.o lib/dbwrap/dbwrap_util.o \
460 lib/ms_fnmatch.o ../lib/util/ms_fnmatch.o lib/errmap_unix.o ../libcli/util/errmap_unix.o \
461 lib/tallocmsg.o lib/dmallocmsg.o \
462 ../libcli/smb/smb_signing.o \
463 ../lib/util/charset/iconv.o ../lib/util/charset/weird.o \
464 ../lib/util/charset/charset_macosxfs.o intl/lang_tdb.o \
465 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
466 lib/sessionid_tdb.o \
467 ../lib/util/modules.o lib/events.o @LIBTEVENT_OBJ0@ \
468 @CCAN_OBJ@ \
469 lib/server_contexts.o \
470 lib/server_prefork.o \
471 lib/server_prefork_util.o \
472 lib/ldap_escape.o @CHARSET_STATIC@ \
473 ../libcli/security/secdesc.o ../libcli/security/access_check.o \
474 ../libcli/security/secace.o ../libcli/security/object_tree.o \
475 ../libcli/security/sddl.o ../libcli/security/session.o \
476 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
477 lib/fncall.o \
478 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
479 lib/file_id.o lib/idmap_cache.o \
480 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
481 ../libcli/security/security_token.o ../libcli/security/util_sid.o \
482 ../libcli/smb/util.o
484 LIB_DUMMY_OBJ = lib/smbd_shim.o lib/dummyparam.o
485 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
487 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
489 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
490 # Be sure to include them into your application
491 POPT_LIB_OBJ = lib/popt_common.o
493 PARAM_WITHOUT_REG_OBJ = ../dynconfig/dynconfig.o param/loadparm.o param/loadparm_ctx.o ../lib/param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o ../lib/param/loadparm.o ../lib/param/util.o
494 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
495 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
497 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
499 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
500 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
501 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
503 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
505 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
506 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
507 libgpo/gpo_reg.o \
508 $(GPEXT_OBJ)
509 LIBGPO_OBJ = $(LIBGPO_OBJ0)
511 LIBADS_OBJ = libads/ldap.o \
512 libads/sasl.o libads/sasl_wrapping.o \
513 libads/krb5_setpw.o \
514 libads/kerberos_util.o \
515 libads/ldap_user.o \
516 libads/ads_struct.o libads/kerberos_keytab.o \
517 libads/disp_sec.o libads/ldap_utils.o \
518 libads/ldap_schema.o libads/util.o libads/ndr.o
520 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o ../auth/kerberos/kerberos_pac.o \
521 ../librpc/ndr/ndr_krb5pac.o \
522 librpc/gen_ndr/ndr_krb5pac.o
524 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
526 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
527 librpc/gen_ndr/ndr_secrets.o \
528 passdb/secrets_lsa.o
530 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
531 ../libcli/netlogon/netlogon.o \
532 librpc/gen_ndr/ndr_nbt.o \
533 ../librpc/ndr/ndr_nbt.o \
534 librpc/gen_ndr/ndr_svcctl.o \
535 ../librpc/ndr/ndr_svcctl.o
537 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
538 libsmb/namequery.o ../libcli/nbt/lmhosts.o ../libcli/dns/dns_hosts_file.o libsmb/conncache.o \
539 libads/dns.o libads/sitename_cache.o
541 NTERR_OBJ = ../libcli/util/nterr.o libsmb/smberr.o
542 DOSERR_OBJ = ../libcli/util/doserr.o
543 ERRORMAP_OBJ = ../libcli/util/errormap.o libsmb/errormap.o
544 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
546 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
548 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
550 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
551 $(SECRETS_OBJ)
553 LIBSMB_OBJ0 = \
554 ../lib/util/asn1.o \
555 ../libcli/auth/spnego_parse.o \
556 ../libcli/auth/ntlm_check.o \
557 ../libcli/auth/krb5_wrap.o \
558 libsmb/ntlmssp.o \
559 libsmb/ntlmssp_wrap.o \
560 libsmb/auth_generic.o \
561 libsmb/clikrb5.o \
562 libsmb/clispnego.o \
563 ../auth/gensec/gensec.o \
564 ../auth/gensec/gensec_start.o \
565 ../auth/gensec/gensec_util.o \
566 ../auth/gensec/spnego.o \
567 ../auth/credentials/credentials.o \
568 ../auth/credentials/credentials_samba3.o \
569 ../auth/ntlmssp/ntlmssp.o \
570 ../auth/ntlmssp/ntlmssp_sign.o \
571 ../auth/ntlmssp/gensec_ntlmssp.o \
572 $(LIBNDR_NTLMSSP_OBJ) \
573 ../auth/ntlmssp/ntlmssp_ndr.o \
574 ../auth/ntlmssp/ntlmssp_server.o
576 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
577 $(LIBSMB_ERR_OBJ)
579 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
580 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o ../lib/ldb/common/ldb_parse.o
582 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
583 ../lib/tsocket/tsocket_helpers.o \
584 ../lib/tsocket/tsocket_bsd.o
586 CLDAP_OBJ = libads/cldap.o \
587 ../libcli/cldap/cldap.o \
588 ../lib/util/idtree.o \
589 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ)
591 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
593 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
594 ../libcli/auth/schannel_sign.o \
595 ../libcli/auth/schannel_state_tdb.o \
596 $(LIBNDR_SCHANNEL_OBJ)
598 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
599 libsmb/reparse_symlink.o \
600 libsmb/clisymlink.o \
601 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
602 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
603 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
604 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
605 libsmb/clioplock.o libsmb/clirap2.o \
606 libsmb/async_smb.o \
607 libsmb/clisigning.o \
608 ../libcli/smb/smb_seal.o \
609 ../libcli/smb/read_smb.o \
610 ../libcli/smb/smbXcli_base.o \
611 ../libcli/smb/smb1cli_trans.o \
612 libsmb/smb2cli_session.o \
613 libsmb/smb2cli_tcon.o \
614 libsmb/smb2cli_create.o \
615 ../libcli/smb/smb2_create_blob.o \
616 ../libcli/smb/smb2_signing.o \
617 libsmb/smb2cli_close.o \
618 libsmb/smb2cli_flush.o \
619 libsmb/smb2cli_read.o \
620 libsmb/smb2cli_write.o \
621 libsmb/smb2cli_query_directory.o \
622 libsmb/cli_np_tstream.o \
623 libsmb/smbsock_connect.o \
624 $(LIBSAMBA_OBJ) \
625 $(LIBNMB_OBJ) \
626 $(LIBNBT_OBJ) \
627 $(CLDAP_OBJ) \
628 $(DRSUAPI_OBJ)
630 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
631 rpc_client/cli_pipe.o \
632 librpc/crypto/gse_krb5.o \
633 librpc/crypto/gse.o \
634 ../auth/kerberos/gssapi_pac.o \
635 ../auth/kerberos/gssapi_parse.o \
636 librpc/crypto/cli_spnego.o \
637 librpc/rpc/rpc_common.o \
638 rpc_client/rpc_transport_np.o \
639 rpc_client/rpc_transport_sock.o \
640 rpc_client/rpc_transport_tstream.o \
641 ../librpc/rpc/binding.o \
642 ../librpc/rpc/dcerpc_util.o \
643 ../librpc/rpc/binding_handle.o \
644 librpc/rpc/dcerpc_helpers.o \
645 $(LIBCLI_EPMAPPER_OBJ)
647 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
650 # registry-related objects
652 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
654 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
655 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
656 REG_INIT_FULL_OBJ = registry/reg_init_full.o
658 REGFIO_OBJ = registry/regfio.o \
659 $(REG_PARSE_PRS_OBJ)
661 REG_API_REGF_OBJ = registry/reg_api_regf.o
663 REGOBJS_OBJ = registry/reg_objects.o
665 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
667 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
669 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
670 registry/reg_backend_shares.o \
671 registry/reg_backend_netlogon_params.o \
672 registry/reg_backend_prod_options.o \
673 registry/reg_backend_tcpip_params.o \
674 registry/reg_backend_hkpt_params.o \
675 registry/reg_backend_current_version.o \
676 registry/reg_backend_perflib.o
678 REG_BASE_OBJ = registry/reg_api.o \
679 registry/reg_dispatcher.o \
680 registry/reg_cachehook.o \
681 $(REGOBJS_OBJ) \
682 registry/reg_util_internal.o \
683 lib/util_nttoken.o \
684 $(REG_BACKENDS_BASE_OBJ) \
685 registry/reg_parse_internal.o \
686 lib/cbuf.o lib/srprs.o \
687 $(REG_INIT_BASIC_OBJ)
689 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
690 registry/reg_util_token.o \
691 registry/reg_api_util.o \
692 $(REG_BACKENDS_SMBCONF_OBJ) \
693 $(REG_INIT_SMBCONF_OBJ)
695 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
696 $(REG_BACKENDS_EXTRA_OBJ) \
697 $(REG_INIT_FULL_OBJ) \
698 registry/reg_perfcount.o \
699 librpc/gen_ndr/ndr_perfcount.o
701 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
703 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
705 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
706 librpc/gen_ndr/srv_lsa.o \
707 ../libcli/lsarpc/util_lsarpc.o
709 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
710 librpc/gen_ndr/srv_netlogon.o
712 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
713 rpc_server/samr/srv_samr_util.o \
714 rpc_server/samr/srv_samr_chgpasswd.o \
715 librpc/gen_ndr/srv_samr.o
717 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
719 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
720 librpc/gen_ndr/srv_winreg.o
722 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
724 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
725 librpc/gen_ndr/srv_srvsvc.o
727 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
728 rpc_server/wkssvc/srv_wkssvc_nt.o
730 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
731 rpc_server/svcctl/srv_svcctl_reg.o \
732 librpc/gen_ndr/srv_svcctl.o \
733 services/svc_winreg_glue.o \
734 services/svc_spoolss.o services/svc_rcinit.o \
735 services/svc_netlogon.o services/svc_winreg.o \
736 services/svc_wins.o
738 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
739 librpc/gen_ndr/srv_ntsvcs.o
741 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
742 rpc_server/dfs/srv_dfs_nt.o
744 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
745 rpc_server/spoolss/srv_spoolss_util.o \
746 librpc/gen_ndr/srv_spoolss.o
748 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
749 rpc_server/eventlog/srv_eventlog_reg.o \
750 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
752 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
753 librpc/gen_ndr/ndr_named_pipe_auth.o \
754 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o ../librpc/ndr/ndr_auth.o
756 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
757 rpc_server/rpc_handles.o rpc_server/rpc_contexts.o \
758 rpc_server/srv_access_check.o
760 RPC_CONFIG = rpc_server/rpc_config.o
762 RPC_SERVICE = rpc_server/rpc_server.o
764 RPC_CRYPTO = rpc_server/dcesrv_auth_generic.o \
765 rpc_server/dcesrv_spnego.o
767 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
768 $(RPC_CONFIG) $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
770 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
772 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
774 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_register.o $(DCE_RPC_EP_OBJ)
776 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
777 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
778 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
779 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
780 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
781 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
782 $(LIBCLI_SPOOLSS_OBJ) \
783 $(LIBCLI_WINREG_INT_OBJ) \
784 $(LIBCLI_SRVSVC_OBJ) \
785 $(LIBCLI_LSA_OBJ) \
786 $(LIBCLI_SAMR_OBJ) \
787 $(LIBCLI_NETLOGON_OBJ) \
788 $(RPC_SERVER_REGISTER_OBJ) \
789 $(RPC_CLIENT_SCHANNEL_OBJ) \
790 rpc_server/rpc_sock_helper.o \
791 rpc_server/rpc_service_setup.o \
792 rpc_client/init_netlogon.o \
793 rpc_client/init_samr.o
795 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
797 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o \
798 librpc/gen_ndr/ndr_open_files.o locking/share_mode_lock.o
800 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
802 PRIVILEGES_OBJ = lib/privileges.o
804 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
806 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
807 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
808 lib/util_unixsids.o passdb/lookup_sid.o \
809 passdb/login_cache.o @PDB_STATIC@ \
810 passdb/account_pol.o $(PRIVILEGES_OBJ) \
811 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
812 passdb/pdb_util.o passdb/pdb_ldap_schema.o \
813 passdb/pdb_secrets.o
815 DEVEL_HELP_WEIRD_OBJ = ../lib/util/charset/weird.o
816 CHARSET_MACOSXFS_OBJ = ../lib/util/charset/charset_macosxfs.o
818 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
820 PROFILE_OBJ = profile/profile.o
821 PROFILES_OBJ = utils/profiles.o \
822 $(LIBSMB_ERR_OBJ) \
823 $(PARAM_OBJ) \
824 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
825 $(POPT_LIB_OBJ) \
826 $(REGFIO_OBJ)
828 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
829 smbd/oplock_onefs.o
831 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
832 librpc/gen_ndr/ndr_notify.o
834 FNAME_UTIL_OBJ = lib/filename_util.o
836 VFS_DEFAULT_OBJ = modules/vfs_default.o
837 VFS_AUDIT_OBJ = modules/vfs_audit.o
838 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
839 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
840 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
841 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
842 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
843 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
844 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
845 VFS_CAP_OBJ = modules/vfs_cap.o
846 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
847 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
848 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
849 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
850 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
851 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
852 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
853 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
854 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
855 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
856 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
857 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
858 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
859 VFS_CATIA_OBJ = modules/vfs_catia.o
860 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
861 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
862 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
863 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
864 VFS_COMMIT_OBJ = modules/vfs_commit.o
865 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
866 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
867 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
868 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
869 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
870 VFS_FILEID_OBJ = modules/vfs_fileid.o
871 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
872 VFS_AIO_PTHREAD_OBJ = modules/vfs_aio_pthread.o
873 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
874 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
875 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
876 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
877 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
878 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
879 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
880 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
881 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
882 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
883 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
884 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
885 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
886 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
887 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
888 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
890 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
891 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
893 SLCACHE_OBJ = libsmb/samlogon_cache.o
895 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
897 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
898 AUTH_DOMAIN_OBJ = auth/auth_domain.o
899 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
900 AUTH_SERVER_OBJ = auth/auth_server.o
901 AUTH_UNIX_OBJ = auth/auth_unix.o
902 AUTH_WINBIND_OBJ = auth/auth_winbind.o
903 AUTH_WBC_OBJ = auth/auth_wbc.o
904 AUTH_SCRIPT_OBJ = auth/auth_script.o
905 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
907 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
908 auth/server_info.o \
909 auth/server_info_sam.o \
910 auth/user_info.o \
911 auth/user_util.o \
912 auth/user_krb5.o \
913 auth/auth_compat.o auth/auth_ntlmssp.o auth/auth_generic.o \
914 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
916 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
918 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
920 BUILDOPT_OBJ = smbd/build_options.o
922 SMBD_OBJ_SRV = smbd/server_reload.o \
923 smbd/files.o smbd/connection.o \
924 smbd/utmp.o smbd/session.o \
925 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/conn_idle.o smbd/conn_msg.o \
926 smbd/share_access.o smbd/fileio.o \
927 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
928 smbd/message.o smbd/nttrans.o smbd/pipes.o \
929 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
930 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
931 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
932 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
933 smbd/posix_acls.o lib/sysacls.o \
934 smbd/process.o smbd/service.o param/service.o smbd/error.o \
935 rpc_server/epmd.o \
936 rpc_server/lsasd.o \
937 printing/printspoolss.o printing/spoolssd.o \
938 lib/sysquotas.o lib/sysquotas_linux.o \
939 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
940 lib/sysquotas_nfs.o \
941 lib/smbd_shim.o \
942 smbd/fake_file.o \
943 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
944 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
945 smbd/dmapi.o smbd/signing.o \
946 smbd/file_access.o \
947 smbd/dnsregister.o smbd/globals.o \
948 smbd/smb2_server.o \
949 smbd/smb2_glue.o \
950 smbd/smb2_negprot.o \
951 smbd/smb2_sesssetup.o \
952 smbd/smb2_tcon.o \
953 smbd/smb2_create.o \
954 smbd/smb2_close.o \
955 smbd/smb2_flush.o \
956 smbd/smb2_read.o \
957 smbd/smb2_write.o \
958 smbd/smb2_lock.o \
959 smbd/smb2_ioctl.o \
960 smbd/smb2_keepalive.o \
961 smbd/smb2_find.o \
962 smbd/smb2_notify.o \
963 smbd/smb2_getinfo.o \
964 smbd/smb2_setinfo.o \
965 smbd/smb2_break.o \
966 $(MANGLE_OBJ) @VFS_STATIC@
968 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
969 $(RPC_SERVER_OBJ) \
970 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
971 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
972 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
973 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
974 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
975 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
976 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
977 $(LIBSMBCONF_OBJ) \
978 $(PRIVILEGES_BASIC_OBJ) \
979 $(REGFIO_OBJ) \
980 $(REG_API_REGF_OBJ) \
981 $(LIBNDR_XATTR_OBJ)
983 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
984 printing/print_cups.o printing/print_generic.o \
985 printing/lpq_parse.o printing/load.o \
986 printing/print_iprint.o printing/print_standard.o \
987 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
989 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
990 PRINTBACKEND_OBJ = printing/printing.o \
991 printing/nt_printing.o \
992 printing/nt_printing_tdb.o \
993 printing/nt_printing_migrate.o \
994 printing/nt_printing_migrate_internal.o \
995 printing/nt_printing_ads.o \
996 librpc/gen_ndr/ndr_ntprinting.o \
997 ../librpc/ndr/ndr_ntprinting.o \
998 printing/queue_process.o \
999 $(PRINTBASE_OBJ)
1001 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
1003 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
1004 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
1005 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
1006 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
1007 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
1008 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
1009 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
1010 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
1011 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
1012 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
1013 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
1014 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
1016 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1017 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1018 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1020 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
1021 web/swat.o web/neg_lang.o
1023 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
1024 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
1025 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
1026 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1027 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
1028 $(LIBCLI_SAMR_OBJ) \
1029 rpc_client/init_lsa.o
1031 STATUS_OBJ = utils/status.o utils/status_profile.o \
1032 $(LOCKING_OBJ) $(PARAM_OBJ) \
1033 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1034 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1036 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1037 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
1039 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
1040 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1041 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1042 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1043 $(LIBMSRPC_GEN_OBJ) \
1044 $(LIBMSRPC_OBJ) \
1045 $(LIBCLI_SRVSVC_OBJ)
1047 TESTPARM_OBJ = utils/testparm.o \
1048 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1049 $(LIBSMB_ERR_OBJ)
1051 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1052 $(LIB_NONSMBD_OBJ) \
1053 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1055 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1056 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1057 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1059 PASSWD_UTIL_OBJ = utils/passwd_util.o
1061 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1062 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1063 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1064 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1065 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1066 $(LIBCLI_SAMR_OBJ) \
1067 rpc_client/init_lsa.o
1069 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1070 $(AFS_SETTOKEN_OBJ) \
1071 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1072 $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) $(SECRETS_OBJ) \
1073 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1074 ../lib/util/asn1.o $(LIBCLI_LDAP_NDR_OBJ) \
1075 $(LIBNDR_DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) $(COMPRESSION_OBJ)
1077 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1079 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1081 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1082 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1083 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1084 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1085 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1086 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1087 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1088 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1089 rpcclient/cmd_winreg.o \
1090 $(DISPLAY_SEC_OBJ)
1092 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1093 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1094 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1095 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1096 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1097 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1098 $(LIBCLI_SPOOLSS_OBJ) \
1099 $(LIBCLI_EVENTLOG_OBJ) \
1100 $(LIBCLI_NTSVCS_OBJ) \
1101 $(LIBCLI_DRSUAPI_OBJ) \
1102 $(LIBCLI_DFS_OBJ) \
1103 $(LIBCLI_ECHO_OBJ) \
1104 $(LIBCLI_DSSETUP_OBJ) \
1105 $(LIBCLI_WKSSVC_OBJ) \
1106 $(LIBCLI_SRVSVC_OBJ) \
1107 $(LIBCLI_LSA_OBJ) \
1108 $(LIBCLI_SAMR_OBJ) \
1109 $(LIBCLI_WINREG_OBJ) \
1110 $(LIBCLI_NETLOGON_OBJ) \
1111 $(RPC_CLIENT_SCHANNEL_OBJ) \
1112 rpc_client/init_netlogon.o \
1113 rpc_client/init_samr.o
1115 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1116 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1118 LIBSMBCLIENT_THREAD_OBJ = \
1119 libsmb/libsmb_thread_impl.o \
1120 libsmb/libsmb_thread_posix.o
1122 LIBSMBCLIENT_OBJ0 = \
1123 libsmb/libsmb_cache.o \
1124 libsmb/libsmb_compat.o \
1125 libsmb/libsmb_context.o \
1126 libsmb/libsmb_dir.o \
1127 libsmb/libsmb_file.o \
1128 libsmb/libsmb_misc.o \
1129 libsmb/libsmb_path.o \
1130 libsmb/libsmb_printjob.o \
1131 libsmb/libsmb_server.o \
1132 libsmb/libsmb_stat.o \
1133 libsmb/libsmb_xattr.o \
1134 libsmb/libsmb_setget.o
1136 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1137 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1138 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1139 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1140 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1141 $(LIBCLI_SRVSVC_OBJ) \
1142 $(LIBCLI_LSA_OBJ)
1144 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1146 CLIENT_OBJ1 = client/client.o client/clitar.o \
1147 client/dnsbrowse.o \
1148 $(LIBMSRPC_OBJ)
1150 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1151 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1152 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1153 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1154 $(DISPLAY_SEC_OBJ) \
1155 $(LIBCLI_SRVSVC_OBJ)
1157 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1158 ../lib/smbconf/smbconf_util.o \
1159 ../lib/smbconf/smbconf_txt.o \
1160 lib/smbconf/smbconf_reg.o \
1161 lib/smbconf/smbconf_init.o
1163 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1165 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1166 $(LIB_NONSMBD_OBJ) \
1167 $(PARAM_OBJ) \
1168 $(LIBSMB_ERR_OBJ) \
1169 $(POPT_LIB_OBJ)
1171 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1172 lib/pthreadpool/tests.o
1174 LIBNET_OBJ = libnet/libnet_join.o \
1175 libnet/libnet_keytab.o \
1176 librpc/gen_ndr/ndr_libnet_join.o
1178 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1179 libnet/libnet_dssync_passdb.o \
1180 libnet/libnet_dssync_keytab.o \
1181 ../libcli/drsuapi/repl_decrypt.o
1183 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1184 libnet/libnet_samsync_ldif.o \
1185 libnet/libnet_samsync_passdb.o \
1186 libnet/libnet_samsync_display.o \
1187 libnet/libnet_samsync_keytab.o \
1188 ../libcli/samsync/decrypt.o
1190 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1191 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1192 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1193 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
1194 utils/net_idmap_check.o utils/interact.o \
1195 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1196 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1197 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1198 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1199 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1200 utils/net_conf.o utils/net_join.o utils/net_user.o \
1201 utils/net_group.o utils/net_file.o utils/net_registry.o utils/net_registry_check.o\
1202 auth/token_util.o utils/net_dom.o utils/net_share.o \
1203 utils/net_g_lock.o \
1204 utils/net_serverid.o \
1205 utils/net_eventlog.o \
1206 utils/net_printing.o \
1207 utils/net_rpc_trust.o \
1208 utils/net_rpc_conf.o\
1209 $(LIBNDR_NTPRINTING_OBJ) \
1210 $(LIBNDR_PREG_OBJ) \
1211 $(LIBCLI_SPOOLSS_OBJ) \
1212 $(LIBCLI_WINREG_OBJ) \
1213 $(LIBCLI_DRSUAPI_OBJ) \
1214 $(LIBCLI_INITSHUTDOWN_OBJ) \
1215 $(LIBCLI_DSSETUP_OBJ) \
1216 $(LIBCLI_SVCCTL_OBJ) \
1217 $(LIBCLI_WKSSVC_OBJ) \
1218 $(LIBCLI_SRVSVC_OBJ) \
1219 $(LIBCLI_LSA_OBJ) \
1220 $(LIBCLI_SAMR_OBJ) \
1221 $(LIBCLI_NETLOGON_OBJ) \
1222 $(RPC_CLIENT_SCHANNEL_OBJ) \
1223 rpc_client/init_netlogon.o \
1224 rpc_client/init_samr.o \
1225 registry/reg_parse.o registry/reg_format.o \
1226 registry/reg_import.o \
1227 printing/nt_printing_migrate.o
1229 # these are not processed by make proto
1230 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1232 NET_OBJ = $(NET_OBJ1) \
1233 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1234 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1235 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1236 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1237 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1238 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1239 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1240 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1241 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1242 $(REG_SMBCONF_OBJ) \
1243 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1244 $(LIBSMBCONF_OBJ) \
1245 $(REGFIO_OBJ) \
1246 $(PRIVILEGES_BASIC_OBJ) \
1247 $(LIB_EVENTLOG_OBJ)
1249 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1250 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1251 $(AFS_SETTOKEN_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1253 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1254 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1256 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1257 torture/denytest.o torture/mangle_test.o \
1258 torture/nbench.o \
1259 torture/test_async_echo.o \
1260 torture/test_smbsock_any_connect.o \
1261 torture/test_nttrans_create.o \
1262 torture/test_nttrans_fsctl.o \
1263 torture/test_notify_online.o \
1264 torture/test_addrchange.o \
1265 torture/test_case_insensitive.o \
1266 torture/test_posix_append.o \
1267 torture/test_smb2.o \
1268 torture/test_authinfo_structs.o \
1269 torture/test_cleanup.o \
1270 torture/t_strappend.o
1272 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1273 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1274 @LIBWBCLIENT_STATIC@ \
1275 torture/wbc_async.o \
1276 ../nsswitch/wb_reqtrans.o \
1277 ../libcli/lsarpc/util_lsarpc.o \
1278 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1280 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1281 $(LIB_NONSMBD_OBJ) \
1282 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1284 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1285 $(LIB_NONSMBD_OBJ) \
1286 $(LIBNDR_GEN_OBJ0)
1288 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1289 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1290 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(FNAME_UTIL_OBJ)
1292 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1294 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1295 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1296 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1297 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1299 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1301 LOG2PCAP_OBJ = utils/log2pcaphex.o
1303 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1304 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1305 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(FNAME_UTIL_OBJ)
1307 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1308 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1309 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1310 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1311 $(LIBCLI_LSA_OBJ)
1313 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1314 $(PARAM_OBJ) \
1315 $(LIB_NONSMBD_OBJ) \
1316 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1317 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1318 $(LIBCLI_LSA_OBJ)
1320 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1322 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1323 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1324 librpc/gen_ndr/ndr_eventlog.o \
1325 librpc/gen_ndr/ndr_lsa.o
1327 SHARESEC_OBJ0 = utils/sharesec.o
1328 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1329 $(LIBSMB_ERR_OBJ) \
1330 $(POPT_LIB_OBJ)
1332 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1333 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1335 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1336 @libreplacedir@/test/getifaddrs.o \
1337 @libreplacedir@/test/os2_delete.o \
1338 @libreplacedir@/test/strptime.o \
1339 @libreplacedir@/test/main.o \
1340 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1342 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1344 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1345 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1346 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
1348 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1349 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1351 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1352 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
1353 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1354 $(SMBLDAP_OBJ) \
1355 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1356 $(AFS_SETTOKEN_OBJ) \
1357 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1358 $(PAM_ERRORS_OBJ)
1360 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1362 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1364 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1366 IDMAP_HASH_OBJ = \
1367 winbindd/idmap_hash/idmap_hash.o \
1368 winbindd/idmap_hash/mapfile.o
1370 IDMAP_ADEX_OBJ = \
1371 winbindd/idmap_adex/idmap_adex.o \
1372 winbindd/idmap_adex/cell_util.o \
1373 winbindd/idmap_adex/likewise_cell.o \
1374 winbindd/idmap_adex/provider_unified.o \
1375 winbindd/idmap_adex/gc_util.o \
1376 winbindd/idmap_adex/domain_util.o
1378 WINBINDD_OBJ1 = \
1379 winbindd/winbindd.o \
1380 winbindd/winbindd_group.o \
1381 winbindd/winbindd_util.o \
1382 winbindd/winbindd_cache.o \
1383 winbindd/winbindd_pam.o \
1384 winbindd/winbindd_misc.o \
1385 winbindd/winbindd_cm.o \
1386 winbindd/winbindd_wins_byip.o \
1387 winbindd/winbindd_wins_byname.o \
1388 winbindd/winbindd_msrpc.o \
1389 winbindd/winbindd_rpc.o \
1390 winbindd/winbindd_reconnect.o \
1391 winbindd/winbindd_ads.o \
1392 winbindd/winbindd_samr.o \
1393 winbindd/winbindd_dual.o \
1394 winbindd/winbindd_dual_ndr.o \
1395 winbindd/winbindd_dual_srv.o \
1396 librpc/gen_ndr/ndr_wbint_c.o \
1397 librpc/gen_ndr/srv_wbint.o \
1398 librpc/gen_ndr/ndr_wbint.o \
1399 librpc/gen_ndr/ndr_idmap.o \
1400 winbindd/winbindd_async.o \
1401 winbindd/winbindd_creds.o \
1402 winbindd/winbindd_cred_cache.o \
1403 winbindd/winbindd_ccache_access.o \
1404 winbindd/winbindd_domain.o \
1405 winbindd/winbindd_idmap.o \
1406 winbindd/winbindd_locator.o \
1407 winbindd/winbindd_ndr.o \
1408 winbindd/wb_ping.o \
1409 winbindd/wb_lookupsid.o \
1410 winbindd/wb_lookupsids.o \
1411 winbindd/wb_lookupname.o \
1412 winbindd/wb_sid2uid.o \
1413 winbindd/wb_sid2gid.o \
1414 winbindd/wb_uid2sid.o \
1415 winbindd/wb_gid2sid.o \
1416 winbindd/wb_queryuser.o \
1417 winbindd/wb_lookupuseraliases.o \
1418 winbindd/wb_lookupusergroups.o \
1419 winbindd/wb_getpwsid.o \
1420 winbindd/wb_gettoken.o \
1421 winbindd/wb_seqnum.o \
1422 winbindd/wb_seqnums.o \
1423 winbindd/wb_group_members.o \
1424 winbindd/wb_getgrsid.o \
1425 winbindd/wb_query_user_list.o \
1426 winbindd/wb_fill_pwent.o \
1427 winbindd/wb_next_pwent.o \
1428 winbindd/wb_next_grent.o \
1429 winbindd/wb_dsgetdcname.o \
1430 winbindd/winbindd_lookupsid.o \
1431 winbindd/winbindd_lookupsids.o \
1432 winbindd/winbindd_lookupname.o \
1433 winbindd/winbindd_sid_to_uid.o \
1434 winbindd/winbindd_sid_to_gid.o \
1435 winbindd/winbindd_uid_to_sid.o \
1436 winbindd/winbindd_gid_to_sid.o \
1437 winbindd/winbindd_sids_to_xids.o \
1438 winbindd/winbindd_allocate_uid.o \
1439 winbindd/winbindd_allocate_gid.o \
1440 winbindd/winbindd_getpwsid.o \
1441 winbindd/winbindd_getpwnam.o \
1442 winbindd/winbindd_getpwuid.o \
1443 winbindd/winbindd_getsidaliases.o \
1444 winbindd/winbindd_getuserdomgroups.o \
1445 winbindd/winbindd_getgroups.o \
1446 winbindd/winbindd_show_sequence.o \
1447 winbindd/winbindd_getgrgid.o \
1448 winbindd/winbindd_getgrnam.o \
1449 winbindd/winbindd_getusersids.o \
1450 winbindd/winbindd_lookuprids.o \
1451 winbindd/winbindd_setpwent.o \
1452 winbindd/winbindd_getpwent.o \
1453 winbindd/winbindd_endpwent.o \
1454 winbindd/winbindd_setgrent.o \
1455 winbindd/winbindd_getgrent.o \
1456 winbindd/winbindd_endgrent.o \
1457 winbindd/winbindd_dsgetdcname.o \
1458 winbindd/winbindd_getdcname.o \
1459 winbindd/winbindd_list_users.o \
1460 winbindd/winbindd_list_groups.o \
1461 winbindd/winbindd_check_machine_acct.o \
1462 winbindd/winbindd_change_machine_acct.o \
1463 winbindd/winbindd_ping_dc.o \
1464 winbindd/winbindd_pam_auth.o \
1465 winbindd/winbindd_pam_auth_crap.o \
1466 winbindd/winbindd_pam_chauthtok.o \
1467 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1468 winbindd/winbindd_pam_logoff.o \
1469 auth/auth_util.o \
1470 auth/token_util.o \
1471 auth/user_util.o \
1472 auth/check_samsec.o \
1473 auth/server_info.o \
1474 auth/server_info_sam.o \
1475 auth/user_info.o \
1476 auth/pampass.o \
1477 ../nsswitch/wb_reqtrans.o
1479 WINBINDD_OBJ = \
1480 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1481 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1482 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1483 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1484 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1485 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1486 $(RPC_CONFIG) $(RPC_NCACN_NP) \
1487 $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1488 $(NPA_TSTREAM_OBJ) \
1489 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1490 $(LIBADS_SERVER_OBJ) \
1491 $(TDB_VALIDATE_OBJ) \
1492 $(LIBCLI_DSSETUP_OBJ) \
1493 $(LIBCLI_LSA_OBJ) \
1494 $(LIBCLI_SAMR_OBJ) \
1495 $(LIBCLI_NETLOGON_OBJ) \
1496 rpc_client/init_netlogon.o \
1497 rpc_client/init_samr.o \
1498 $(PAM_ERRORS_OBJ)
1500 WBINFO_OBJ = ../nsswitch/wbinfo.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1501 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1502 lib/winbind_util.o $(WBCOMMON_OBJ) \
1503 $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) $(SECRETS_OBJ)
1505 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1507 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1508 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1510 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1511 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1513 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1514 ../lib/iniparser_build/strlib.o
1516 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1517 $(SOCKET_WRAPPER_OBJ)
1519 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1520 $(SOCKET_WRAPPER_OBJ)
1522 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1523 $(SOCKET_WRAPPER_OBJ)
1525 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1526 $(SOCKET_WRAPPER_OBJ)
1528 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1529 $(SOCKET_WRAPPER_OBJ)
1532 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1534 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} \
1535 libsmb/samlogon_cache.o \
1536 $(LIBADS_SERVER_OBJ) \
1537 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1538 $(WBCOMMON_OBJ) \
1539 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1540 $(AFS_SETTOKEN_OBJ) \
1541 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1542 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) @BUILD_INIPARSER@
1545 VLP_OBJ = printing/tests/vlp.o \
1546 ../lib/util/util_tdb.o \
1547 $(LIBSAMBAUTIL_OBJ) \
1548 param/util.o
1550 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1551 $(LIBSMB_OBJ) \
1552 $(PARAM_OBJ) \
1553 $(PASSDB_OBJ) \
1554 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1555 $(LIB_NONSMBD_OBJ) \
1556 $(KRBCLIENT_OBJ) \
1557 $(LIBMSRPC_OBJ) \
1558 $(LIBMSRPC_GEN_OBJ)
1560 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1561 $(PARAM_OBJ) \
1562 $(LIB_NONSMBD_OBJ) \
1563 $(LIBSMB_ERR_OBJ) \
1564 $(POPT_LIB_OBJ)
1566 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1567 $(PARAM_OBJ) \
1568 $(LIB_NONSMBD_OBJ) \
1569 $(LIBSMB_ERR_OBJ) \
1570 $(POPT_LIB_OBJ)
1572 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1573 $(PARAM_OBJ) \
1574 $(LIB_NONSMBD_OBJ) \
1575 $(POPT_LIB_OBJ) \
1576 $(LIBSAMBA_OBJ)
1578 ######################################################################
1579 # now the rules...
1580 ######################################################################
1581 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1582 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1583 $(EXTRA_ALL_TARGETS)
1585 basics:: samba3-idl mkparam
1587 nss_modules:: $(NSS_MODULES)
1589 pam_modules:: $(PAM_MODULES)
1591 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1593 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1595 gpext_modules:: $(GPEXT_MODULES)
1597 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1599 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1601 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1603 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1605 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1607 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1609 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1611 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1613 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1615 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1617 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1619 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1621 talloctort : SHOWFLAGS $(TALLOCTORT)
1623 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1625 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1627 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest@EXEEXT@
1629 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1631 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1632 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1633 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1635 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1637 modules:: SHOWFLAGS $(MODULES)
1640 #####################################################################
1641 ## Perl IDL Compiler
1643 IDL_FILES = librpc/idl/messaging.idl \
1644 librpc/idl/libnetapi.idl \
1645 librpc/idl/wbint.idl \
1646 librpc/idl/perfcount.idl \
1647 librpc/idl/secrets.idl \
1648 librpc/idl/open_files.idl \
1649 librpc/idl/libnet_join.idl
1651 samba3-idl::
1652 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1653 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1654 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1655 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1657 idl_full::
1658 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1659 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1660 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1661 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1663 mkparam: ../lib/param/param_local.h ../lib/param/param_global.h param/param_global.h ../lib/param/param_proto.h ../lib/param/s3_param.h
1665 ../lib/param/param_local.h:
1666 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c --file ../lib/param/param_local.h --generate-scope=LOCAL
1667 ../lib/param/param_global.h:
1668 $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/loadparm.c --file ../lib/param/param_global.h --generate-scope=GLOBAL
1669 param/param_global.h:
1670 $(PERL) ../script/mkparamdefs.pl $(srcdir)/param/loadparm.c --file param/param_global.h --generate-scope=GLOBAL
1671 ../lib/param/param_proto.h:
1672 $(PERL) ../source4/script/mkproto.pl $(srcdir)/../lib/param/loadparm.c --public ../lib/param/param_proto.h --private ../lib/param/param_proto.h
1673 ../lib/param/s3_param.h:
1674 $(PERL) ../script/mks3param.pl $(srcdir)/../lib/param/loadparm.c --file ../lib/param/s3_param.h
1677 #####################################################################
1680 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1681 $(EVERYTHING_PROGS) \
1682 vfs_examples
1684 .SUFFIXES:
1685 .SUFFIXES: .c .o .lo
1687 .PHONY: showflags SHOWFLAGS
1689 showflags: SHOWFLAGS
1691 SHOWFLAGS::
1692 @echo "Using CFLAGS = $(CFLAGS)"
1693 @echo " PICFLAG = $(PICFLAG)"
1694 @echo " LIBS = $(LIBS)"
1695 @echo " LDFLAGS = $(LDFLAGS)"
1696 @echo " DYNEXP = $(DYNEXP)"
1697 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1698 @echo " SHLIBEXT = @SHLIBEXT@"
1699 @echo " SONAMEFLAG = @SONAMEFLAG@"
1701 # "showcflags" target for debuggin how CFLAGS are composed:
1703 .PHONY: showcflags SHOWCFLAGS
1705 showcflags: SHOWCFLAGS
1707 SHOWCFLAGS::
1708 @echo "CFLAGS = $(CFLAGS)"
1709 @echo "FLAGS = $(FLAGS)"
1710 @echo ""
1711 @echo "FLAGS1 = @FLAGS1@"
1712 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1713 @echo "CPPFLAGS = $(CPPFLAGS)"
1714 @echo "ISA = $(ISA)"
1716 MAKEDIR = || exec false; \
1717 if test -d "$$dir"; then :; else \
1718 echo mkdir "$$dir"; \
1719 mkdir -p "$$dir" >/dev/null 2>&1 || \
1720 test -d "$$dir" || \
1721 mkdir "$$dir" || \
1722 exec false; fi || exec false
1724 # Run a static checker.
1725 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1726 # Compile a source file.
1727 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1728 # Compile a source file with the installation paths defined.
1729 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1731 COMPILE = $(COMPILE_CC)
1733 .c.o:
1734 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1735 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1736 @if test -n "$(CC_CHECKER)"; then \
1737 echo "Checking $*.c with '$(CC_CHECKER)'";\
1738 $(CHECK_CC); \
1740 @echo Compiling $*.c
1741 @$(COMPILE) && exit 0;\
1742 echo "The following command failed:" 1>&2;\
1743 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1744 $(COMPILE_CC) >/dev/null 2>&1
1745 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1747 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1749 # this adds support for precompiled headers. To use it, install a snapshot
1750 # of gcc-3.4 and run 'make pch' before you do the main build.
1751 pch::
1752 rm -f $(PRECOMPILED_HEADER)
1753 $(MAKE) $(PRECOMPILED_HEADER)
1755 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1756 $(COMPILE)
1758 BINARY_PREREQS = bin/.dummy
1760 # These dependencies are only approximately correct: we want to make
1761 # sure Samba's paths are updated if ./configure is re-run. Really it
1762 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1763 # but since we also require "make install prefix=/opt/samba" *not* to
1764 # rebuild it's a bit hard.
1766 ../dynconfig/dynconfig.o: ../dynconfig/dynconfig.c Makefile
1767 @echo Compiling $*.c
1768 @$(COMPILE_CC_PATH) && exit 0;\
1769 echo "The following command failed:" 1>&2;\
1770 echo "$(COMPILE_CC_PATH)" 1>&2;\
1771 $(COMPILE_CC_PATH) >/dev/null 2>&1
1773 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1774 @echo Compiling $*.c
1775 @$(COMPILE_CC_PATH) && exit 0;\
1776 echo "The following command failed:" 1>&2;\
1777 echo "$(COMPILE_CC_PATH)" 1>&2;\
1778 $(COMPILE_CC_PATH) >/dev/null 2>&1
1780 ../nsswitch/wb_common.o: ../nsswitch/wb_common.c Makefile
1781 @echo Compiling $*.c
1782 @$(COMPILE_CC_PATH) && exit 0;\
1783 echo "The following command failed:" 1>&2;\
1784 echo "$(COMPILE_CC_PATH)" 1>&2;\
1785 $(COMPILE_CC_PATH) >/dev/null 2>&1
1787 ### Start section of object files that require PTHREAD_CFLAGS
1788 ../nsswitch/wins.o: ../nsswitch/wins.c
1789 @echo Compiling $*.c
1790 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1791 echo "The following command failed:" 1>&2;\
1792 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1793 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1795 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1796 @echo Compiling $*.c
1797 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1798 echo "The following command failed:" 1>&2;\
1799 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1800 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1802 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1803 @echo Compiling $*.c
1804 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1805 echo "The following command failed:" 1>&2;\
1806 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1807 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1809 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1810 @echo Compiling $*.c
1811 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1812 echo "The following command failed:" 1>&2;\
1813 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1814 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1815 ### End section of object files that require PTHREAD_CFLAGS
1817 lib/pidfile.o: lib/pidfile.c
1818 @echo Compiling $*.c
1819 @$(COMPILE_CC_PATH) && exit 0;\
1820 echo "The following command failed:" 1>&2;\
1821 echo "$(COMPILE_CC_PATH)" 1>&2;\
1822 $(COMPILE_CC_PATH) >/dev/null 2>&1
1824 lib/version.o: lib/version.c include/version.h
1825 @echo Compiling $*.c
1826 @$(COMPILE_CC_PATH) && exit 0;\
1827 echo "The following command failed:" 1>&2;\
1828 echo "$(COMPILE_CC_PATH)" 1>&2;\
1829 $(COMPILE_CC_PATH) >/dev/null 2>&1
1831 smbd/build_options.o: smbd/build_options.c Makefile include/autoconf/config.h include/build_env.h include/proto.h
1832 @echo Compiling $*.c
1833 @$(COMPILE_CC_PATH) && exit 0;\
1834 echo "The following command failed:" 1>&2;\
1835 echo "$(COMPILE_CC_PATH)" 1>&2;\
1836 $(COMPILE_CC_PATH) >/dev/null 2>&1
1838 smbd/build_options.c: include/autoconf/config.h.in script/mkbuildoptions.awk
1839 @echo Generating $@
1840 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/autoconf/config.h.in
1842 bin/.dummy:
1843 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1844 dir=bin $(MAKEDIR); fi
1845 @: >> $@ || : > $@ # what a fancy emoticon!
1847 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1848 @echo Linking $@
1849 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1850 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1851 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1852 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1853 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1855 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1856 @echo Linking $@
1857 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1858 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1859 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1860 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1862 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1863 @echo Linking $@
1864 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1865 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1866 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1868 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1869 @echo Linking $@
1870 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1871 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1872 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1873 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1875 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1876 @echo Linking $@
1877 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1878 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1879 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1880 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1882 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1883 @echo Linking $@
1884 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1885 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1886 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1887 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1888 $(ZLIB_LIBS)
1890 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1891 @echo Linking $@
1892 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1893 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1895 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1896 @echo Linking $@
1897 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1898 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1899 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1901 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1902 @echo Linking $@
1903 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1904 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1906 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1907 @echo Linking $@
1908 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1909 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1911 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1912 @echo Linking $@
1913 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1914 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1916 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1917 @echo Linking $@
1918 @$(CC) -DUSING_SMBCONTROL -o $@ \
1919 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1920 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1921 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1923 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1924 @echo Linking $@
1925 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1926 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1927 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1929 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1930 @echo Linking $@
1931 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1932 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1933 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1935 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1936 @echo Linking $@
1937 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1938 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1939 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1941 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1942 @echo Linking $@
1943 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1944 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1945 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1947 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1948 @echo Linking $@
1949 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1950 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1952 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1953 @echo Linking $@
1954 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1955 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1956 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1958 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1959 @echo Linking $@
1960 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1961 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1962 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1964 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1965 @echo Linking $@
1966 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1967 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1969 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1970 @echo Linking $@
1971 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1972 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1973 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1975 bin/pthreadpooltest@EXEEXT@: $(PTHREADPOOLTEST_OBJ)
1976 @echo Linking $@
1977 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) $(LIBS) $(PTHREAD_LDFLAGS)
1979 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1980 @echo Linking $@
1981 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1982 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1983 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1984 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1986 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1987 @echo Linking $@
1988 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1989 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1990 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1992 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1993 @echo Linking $@
1994 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1995 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1996 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1998 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1999 @echo Linking $@
2000 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
2001 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
2002 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2004 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
2005 @echo Linking $@
2006 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
2007 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2009 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
2010 @echo Linking $@
2011 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
2012 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
2014 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2015 @echo Linking $@
2016 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2017 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2018 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2019 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2021 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ) $(LIBTALLOC)
2022 @echo Linking $@
2023 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2024 $(LIBTALLOC_LIBS)
2026 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2027 @echo Linking $@
2028 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
2029 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
2030 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2032 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2033 @echo Linking $@
2034 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
2035 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
2036 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
2037 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2038 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
2040 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2041 @echo Linking $@
2042 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
2043 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
2045 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2046 @echo Linking $@
2047 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
2048 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2049 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2050 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2052 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
2053 @echo Linking $@
2054 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
2055 $(LIBS) $(LIBTALLOC_LIBS)
2057 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2058 @echo Linking $@
2059 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2060 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2061 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2062 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2064 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2065 @echo Linking $@
2066 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2069 #####################################################################
2071 # libraries
2073 #####################################################################
2075 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2078 #-------------------------------------------------------------------
2080 # libtalloc
2082 #-------------------------------------------------------------------
2085 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2086 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2088 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2089 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2090 LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@
2091 LIBTALLOC_SHARED_TARGET_SONAME=@LIBTALLOC_SHARED_TARGET_SOVER@
2092 LIBTALLOC_SHARED_TARGET_FULLVER=@LIBTALLOC_SHARED_TARGET_FULLVER@
2093 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2094 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2095 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2097 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2098 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2100 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2101 @echo Linking shared library $@
2102 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2104 $(LIBTALLOC_SHARED_TARGET_FULLVER): $(LIBTALLOC_SHARED_TARGET_SONAME)
2105 @rm -f $@
2106 @mv -f $(LIBTALLOC_SHARED_TARGET_SONAME) $@
2107 @ln -f -s `basename $@` $(LIBTALLOC_SHARED_TARGET_SONAME)
2109 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_FULLVER)
2110 @rm -f $@
2111 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2113 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2114 @echo Linking non-shared library $@
2115 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2116 libtalloc: $(LIBTALLOC)
2118 cleanlibtalloc::
2119 -rm -f \
2120 $(LIBTALLOC_SYMS) \
2121 $(LIBTALLOC_STATIC_TARGET) \
2122 $(LIBTALLOC_SHARED_TARGET) \
2123 $(LIBTALLOC_SHARED_TARGET_SONAME)
2125 installlibtalloc:: installdirs libtalloc
2126 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2127 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2128 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2129 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2130 -if test -r $(LIBTALLOC_SHARED_TARGET_FULLVER) ; then \
2131 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_FULLVER)` \
2132 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` ; \
2134 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2135 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2136 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2138 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2139 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2140 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2142 uninstalllibtalloc::
2143 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2144 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2145 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2146 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2148 libs:: libtalloc
2149 installlibs:: @INSTALL_LIBTALLOC@
2150 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2151 cleanlibs:: cleanlibtalloc
2152 shlibs test_shlibs: @LIBTALLOC_SHARED@
2154 showlibtalloc:
2155 @echo ""
2156 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2157 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2158 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2159 @echo ""
2160 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2161 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2162 @echo "LIBTALLOC_FULLVER = $(LIBTALLOC_FULLVER)"
2163 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2164 @echo "LIBTALLOC_SHARED TARGET_FULLVER = $(LIBTALLOC_SHARED_TARGET_FULLVER)"
2165 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2166 @echo "LIBTALLOC = $(LIBTALLOC)"
2168 showlibs:: showlibtalloc
2170 #-------------------------------------------------------------------
2172 # libtdb
2174 #-------------------------------------------------------------------
2176 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2177 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2179 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2180 LIBTDB_SOVER=@LIBTDB_SOVER@
2181 LIBTDB_FULLVER=@LIBTDB_FULLVER@
2182 LIBTDB_SHARED_TARGET_SONAME=@LIBTDB_SHARED_TARGET_SOVER@
2183 LIBTDB_SHARED_TARGET_FULLVER=@LIBTDB_SHARED_TARGET_FULLVER@
2184 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2185 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2186 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2188 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2189 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2192 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2193 @echo Linking shared library $@
2194 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2195 @SONAMEFLAG@`basename $@`
2197 $(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME)
2198 @rm -f $@
2199 @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER)
2200 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME)
2202 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER)
2203 @rm -f $@
2204 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2206 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2207 @echo Linking non-shared library $@
2208 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2210 libtdb: $(LIBTDB)
2212 cleanlibtdb::
2213 -rm -f \
2214 $(LIBTDB_SYMS) \
2215 $(LIBTDB_STATIC_TARGET) \
2216 $(LIBTDB_SHARED_TARGET) \
2217 $(LIBTDB_SHARED_TARGET_SONAME)
2220 installlibtdb:: installdirs libtdb
2221 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2222 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2223 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2224 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2225 -if test -r $(LIBTDB_SHARED_TARGET_FULLVER) ; then \
2226 ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` \
2227 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)` ; \
2229 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2230 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2231 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2233 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2234 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2235 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2237 uninstalllibtdb::
2238 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2239 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2240 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2241 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2243 libs:: libtdb
2244 installlibs:: @INSTALL_LIBTDB@
2245 uninstalllibs:: @UNINSTALL_LIBTDB@
2246 cleanlibs:: cleanlibtdb
2247 shlibs test_shlibs: @LIBTDB_SHARED@
2249 showlibtdb:
2250 @echo ""
2251 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2252 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2253 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2254 @echo ""
2255 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2256 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2257 @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)"
2258 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2259 @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)"
2260 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2261 @echo "LIBTDB = $(LIBTDB)"
2263 showlibs:: showlibtdb
2265 #-------------------------------------------------------------------
2267 # libwbclient
2269 #-------------------------------------------------------------------
2271 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2272 ../nsswitch/libwbclient/wbc_util.o \
2273 ../nsswitch/libwbclient/wbc_pwd.o \
2274 ../nsswitch/libwbclient/wbc_idmap.o \
2275 ../nsswitch/libwbclient/wbc_sid.o \
2276 ../nsswitch/libwbclient/wbc_guid.o \
2277 ../nsswitch/libwbclient/wbc_pam.o
2279 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2280 $(WBCOMMON_OBJ) \
2281 $(LIBREPLACE_OBJ) \
2282 ../lib/util/blocking.o \
2283 $(SOCKET_WRAPPER_OBJ)
2285 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2286 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2287 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2288 LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@
2289 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2290 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2291 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2293 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2294 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2296 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2297 @echo Linking shared library $@
2298 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2299 @SONAMEFLAG@`basename $@`
2301 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2302 @rm -f $@
2303 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2305 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2306 @echo Linking non-shared library $@
2307 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2309 libwbclient: $(LIBWBCLIENT)
2311 cleanlibwbclient::
2312 -rm -f \
2313 $(LIBWBCLIENT_SYMS) \
2314 $(LIBWBCLIENT_STATIC_TARGET) \
2315 $(LIBWBCLIENT_SHARED_TARGET) \
2316 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2318 installlibwbclient:: installdirs libwbclient
2319 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2320 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2321 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2322 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2323 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2324 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2326 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2327 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2328 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2330 uninstalllibwbclient::
2331 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2332 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2333 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2334 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2336 libs:: libwbclient
2337 installlibs:: @INSTALL_LIBWBCLIENT@
2338 uninstalllibs:: uninstalllibwbclient
2339 cleanlibs:: cleanlibwbclient
2340 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2342 showlibwbclient:
2343 @echo ""
2344 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2345 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2346 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2347 @echo ""
2348 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2349 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2350 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2351 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2352 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2353 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2355 showlibs:: showlibwbclient
2358 #-------------------------------------------------------------------
2360 # libaddns
2362 #-------------------------------------------------------------------
2365 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2366 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2367 LIBADDNS_FULLVER=@LIBADDNS_FULLVER@
2368 LIBADDNS_SHARED_TARGET_SONAME=@LIBADDNS_SHARED_TARGET_SOVER@
2369 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2370 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2371 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2373 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2374 @echo Linking shared library $@
2375 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2376 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2377 @SONAMEFLAG@`basename $@`
2379 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2380 @rm -f $@
2381 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2383 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2384 @echo Linking non-shared library $@
2385 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2387 libaddns: $(LIBADDNS)
2389 cleanlibaddns::
2390 -rm -f \
2391 $(LIBADDNS_SHARED_TARGET) \
2392 $(LIBADDNS_SHARED_TARGET_SONAME) \
2393 $(LIBADDNS_STATIC_TARGET)
2395 installlibaddns:: installdirs libaddns
2396 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2397 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2398 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2399 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2400 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2401 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2403 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2405 uninstalllibaddns::
2406 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2407 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2408 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2410 libs:: libaddns
2411 installlibs:: @INSTALL_LIBADDNS@
2412 uninstalllibs:: @UNINSTALL_LIBADDNS@
2413 cleanlibs:: cleanlibaddns
2414 shlibs test_shlibs: @LIBADDNS_SHARED@
2416 showlibaddns:
2417 @echo ""
2418 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2419 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2420 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2421 @echo ""
2422 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2423 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2424 @echo "LIBADDNS_FULLVER = $(LIBADDNS_FULLVER)"
2425 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2426 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2427 @echo "LIBADDNS = $(LIBADDNS)"
2429 showlibs:: showlibaddns
2431 #-------------------------------------------------------------------
2433 # libnetapi
2435 #-------------------------------------------------------------------
2437 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2438 lib/netapi/cm.o \
2439 librpc/gen_ndr/ndr_libnetapi.o \
2440 lib/netapi/libnetapi.o \
2441 lib/netapi/joindomain.o \
2442 lib/netapi/serverinfo.o \
2443 lib/netapi/getdc.o \
2444 lib/netapi/user.o \
2445 lib/netapi/group.o \
2446 lib/netapi/localgroup.o \
2447 lib/netapi/samr.o \
2448 lib/netapi/sid.o \
2449 lib/netapi/share.o \
2450 lib/netapi/file.o \
2451 lib/netapi/shutdown.o \
2452 lib/netapi/netlogon.o
2454 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2455 $(LIBSMBCONF_OBJ) \
2456 $(REG_SMBCONF_OBJ) \
2457 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2458 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2459 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2460 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2461 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2462 auth/token_util.o \
2463 $(LIBCLI_INITSHUTDOWN_OBJ) \
2464 $(LIBCLI_WKSSVC_OBJ) \
2465 $(LIBCLI_SRVSVC_OBJ) \
2466 $(LIBCLI_LSA_OBJ) \
2467 $(LIBCLI_SAMR_OBJ) \
2468 $(LIBCLI_NETLOGON_OBJ) \
2469 $(RPC_CLIENT_SCHANNEL_OBJ) \
2470 rpc_client/init_netlogon.o \
2471 rpc_client/init_samr.o
2473 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2474 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2475 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2476 LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@
2477 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2478 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2479 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2481 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2482 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2484 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2485 @echo Linking shared library $@
2486 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2487 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2488 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2489 @SONAMEFLAG@`basename $@`
2491 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2492 @rm -f $@
2493 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2495 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2496 @echo Linking non-shared library $@
2497 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2499 libnetapi: $(LIBNETAPI)
2501 cleanlibnetapi::
2502 -rm -f \
2503 $(LIBNETAPI_SYMS) \
2504 $(LIBNETAPI_STATIC_TARGET) \
2505 $(LIBNETAPI_SHARED_TARGET) \
2506 $(LIBNETAPI_SHARED_TARGET_SONAME)
2508 installlibnetapi:: installdirs libnetapi
2509 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2510 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2511 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2512 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2513 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2514 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2516 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2517 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2518 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2520 uninstalllibnetapi::
2521 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2522 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2523 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2524 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2526 libs:: libnetapi
2527 installlibs:: @INSTALL_LIBNETAPI@
2528 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2529 cleanlibs:: cleanlibnetapi
2530 shlibs test_shlibs: @LIBNETAPI_SHARED@
2532 showlibnetapi:
2533 @echo ""
2534 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2535 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2536 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2537 @echo ""
2538 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2539 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2540 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2541 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2542 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2543 @echo "LIBNETAPI = $(LIBNETAPI)"
2545 showlibs:: showlibnetapi
2547 #-------------------------------------------------------------------
2549 # libsmbclient
2551 #-------------------------------------------------------------------
2553 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2554 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2555 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2556 LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@
2557 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2558 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2559 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2560 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2562 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2563 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2565 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2566 @echo Linking shared library $@
2567 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2568 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2569 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2570 @SONAMEFLAG@`basename $@`
2572 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2573 @rm -f $@
2574 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2576 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2577 @echo Linking non-shared library $@
2578 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2580 libsmbclient: $(LIBSMBCLIENT)
2582 cleanlibsmbclient::
2583 -rm -f \
2584 $(LIBSMBCLIENT_SHARED_TARGET) \
2585 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2586 $(LIBSMBCLIENT_STATIC_TARGET)
2588 installlibsmbclient:: installdirs libsmbclient
2589 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2590 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2591 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2592 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2593 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2594 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2596 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2597 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2598 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2600 installclientlib:: installlibsmbclient
2602 uninstalllibsmbclient::
2603 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2604 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2605 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2606 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2608 uninstallclientlib:: uninstalllibsmbclient
2610 libs:: libsmbclient
2611 installlibs:: @INSTALL_LIBSMBCLIENT@
2612 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2613 cleanlibs:: cleanlibsmbclient
2614 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2616 showlibsmbclient:
2617 @echo ""
2618 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2619 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2620 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2621 @echo ""
2622 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2623 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2624 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2625 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2626 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2627 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2629 showlibs:: showlibsmbclient
2631 #-------------------------------------------------------------------
2633 # libsmbsharemodes
2635 #-------------------------------------------------------------------
2637 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o ../lib/ccan/hash/hash.o
2639 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2641 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2642 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2643 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2644 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@
2645 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2646 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2647 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2648 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2650 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2651 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2653 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2654 @echo Linking shared library $@
2655 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2656 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2657 @SONAMEFLAG@`basename $@`
2659 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2660 @rm -f $@
2661 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2663 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2664 @echo Linking non-shared library $@
2665 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2667 libsmbsharemodes: $(LIBSMBSHAREMODES)
2669 cleanlibsmbsharemodes::
2670 -rm -f \
2671 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2672 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2673 $(LIBSMBSHAREMODES_STATIC_TARGET)
2675 installlibsmbsharemodes:: installdirs libsmbsharemodes
2676 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2677 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2678 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2679 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2680 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2681 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2683 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2684 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2685 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2687 uninstalllibsmbsharemodes::
2688 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2689 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2690 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2691 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2693 libs:: libsmbsharemodes
2694 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2695 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2696 cleanlibs:: cleanlibsmbsharemodes
2697 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2699 showlibsmbsharemodes:
2700 @echo ""
2701 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2702 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2703 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2704 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2705 @echo ""
2706 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2707 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2708 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2709 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2710 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2711 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2713 showlibs:: showlibsmbsharemodes
2715 #####################################################################
2717 # shared modules
2719 #####################################################################
2721 # Linker command to link our shared libraries:
2722 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2723 -o $@ @SONAMEFLAG@`basename $@`
2724 # Linker command to link samba internal plugin modules:
2725 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2726 -o $@ @SONAMEFLAG@`basename $@`
2728 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2729 @echo "Linking $@"
2730 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2732 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2733 @echo "Linking $@"
2734 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2736 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2737 @echo "Linking $@"
2738 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2740 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2741 @echo "Linking $@"
2742 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2744 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2745 @echo "Linking $@"
2746 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2748 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2749 @echo "Linking $@"
2750 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2752 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2753 @echo "Linking $@"
2754 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2756 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2757 @echo "Linking $@"
2758 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2760 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2761 @echo "Linking $@"
2762 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2764 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2765 @echo "Linking $@"
2766 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2768 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2769 @echo "Linking $@"
2770 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2772 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2773 @echo "Linking $@"
2774 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2776 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2777 @echo "Linking $@"
2778 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2780 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2781 @echo "Linking $@"
2782 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2784 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2785 @echo "Linking $@"
2786 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2787 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2788 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2789 $(ZLIB_LIBS)
2791 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB) $(LIBTALLOC)
2792 @echo "Linking $@"
2793 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2794 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2795 $(LIBTALLOC_LIBS) \
2796 $(LIBTDB_LIBS)
2798 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2799 @echo "Linking $@"
2800 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2801 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2802 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2804 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2805 @echo "Linking $@"
2806 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2807 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2808 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2810 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2811 @echo "Linking $@"
2812 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2813 @SONAMEFLAG@`basename $@`
2815 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2816 @echo "Linking shared library $@"
2817 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2818 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2820 ##########
2821 # Plugins:
2822 ##########
2824 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2825 @echo "Building plugin $@"
2826 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2828 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2829 @echo "Building plugin $@"
2830 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2832 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2833 @echo "Building plugin $@"
2834 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2836 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2837 @echo "Building plugin $@"
2838 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2840 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2841 @echo "Building plugin $@"
2842 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2844 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2845 @echo "Building plugin $@"
2846 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2848 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2849 @echo "Building plugin $@"
2850 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2852 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2853 @echo "Building plugin $@"
2854 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2856 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2857 @echo "Building plugin $@"
2858 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2860 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2861 passdb/pdb_ipa.o passdb/pdb_ldap_util.o
2862 @echo "Building plugin $@"
2863 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2864 passdb/pdb_ldap_util.o $(LDAP_LIBS)
2866 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2867 @echo "Building plugin $@"
2868 @$(SHLD_MODULE) passdb/pdb_ads.o
2870 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2871 @echo "Building plugin $@"
2872 @$(SHLD_MODULE) passdb/pdb_tdb.o
2874 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2875 @echo "Building plugin $@"
2876 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2878 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2879 @echo "Building plugin $@"
2880 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2882 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2883 @echo "Building plugin $@"
2884 @$(SHLD_MODULE) winbindd/idmap_rid.o
2886 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2887 @echo "Building plugin $@"
2888 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2890 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2891 @echo "Building plugin $@"
2892 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2894 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2895 @echo "Building plugin $@"
2896 @$(SHLD_MODULE) winbindd/idmap_ad.o
2898 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2899 @echo "Building plugin $@"
2900 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2902 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2903 @echo "Building plugin $@"
2904 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2906 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2907 @echo "Building plugin $@"
2908 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2910 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2911 @echo "Building plugin $@"
2912 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2914 # NOTE, there is no build rule for a dynamic default VFS module because
2915 # this one MUST MUST MUST be built statically.
2917 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2918 @echo "Building plugin $@"
2919 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2921 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2922 @echo "Building plugin $@"
2923 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2925 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2926 @echo "Building plugin $@"
2927 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2929 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2930 @echo "Building plugin $@"
2931 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2933 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2934 @echo "Building plugin $@"
2935 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2937 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2938 @echo "Building plugin $@"
2939 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2941 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2942 @echo "Building plugin $@"
2943 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2945 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2946 @echo "Building plugin $@"
2947 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2949 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2950 @echo "Building plugin $@"
2951 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2953 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2954 @echo "Building plugin $@"
2955 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2957 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2958 @echo "Building plugin $@"
2959 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2961 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2962 @echo "Building plugin $@"
2963 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2965 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2966 @echo "Building plugin $@"
2967 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2969 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2970 @echo "Building plugin $@"
2971 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2973 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2974 @echo "Building plugin $@"
2975 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2977 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2978 @echo "Building plugin $@"
2979 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2981 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2982 @echo "Building plugin $@"
2983 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2985 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2986 @echo "Building plugin $@"
2987 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2989 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2990 @echo "Building plugin $@"
2991 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2993 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2994 @echo "Building plugin $@"
2995 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
2997 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2998 @echo "Building plugin $@"
2999 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
3001 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
3002 @echo "Building plugin $@"
3003 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
3005 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
3006 @echo "Building plugin $@"
3007 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
3009 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
3010 @echo "Building plugin $@"
3011 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
3013 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
3014 @echo "Building plugin $@"
3015 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
3017 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
3018 @echo "Building plugin $@"
3019 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
3021 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
3022 @echo "Building plugin $@"
3023 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
3025 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
3026 @echo "Building plugin $@"
3027 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
3029 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
3030 @echo "Building plugin $@"
3031 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
3033 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
3034 @echo "Building plugin $@"
3035 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
3037 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3038 @echo "Building plugin $@"
3039 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3041 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
3042 @echo "Building plugin $@"
3043 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
3045 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
3046 @echo "Building plugin $@"
3047 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
3049 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
3050 @echo "Building plugin $@"
3051 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
3053 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
3054 @echo "Building plugin $@"
3055 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
3057 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
3058 @echo "Building plugin $@"
3059 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
3061 bin/aio_pthread.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_PTHREAD_OBJ)
3062 @echo "Building plugin $@"
3063 @$(SHLD_MODULE) $(VFS_AIO_PTHREAD_OBJ)
3065 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
3066 @echo "Building plugin $@"
3067 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
3069 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3070 @echo "Building plugin $@"
3071 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3073 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3074 @echo "Building plugin $@"
3075 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3077 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3078 @echo "Building plugin $@"
3079 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3081 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3082 @echo "Building plugin $@"
3083 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3085 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3086 @echo "Building plugin $@"
3087 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3089 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3090 @echo "Building plugin $@"
3091 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3093 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3094 @echo "Building plugin $@"
3095 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3097 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3098 @echo "Building plugin $@"
3099 @$(SHLD_MODULE) libgpo/gpext/registry.o
3101 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3102 @echo "Building plugin $@"
3103 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3105 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3106 @echo "Building plugin $@"
3107 @$(SHLD_MODULE) libgpo/gpext/security.o
3109 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3110 @echo "Building plugin $@"
3111 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3113 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3114 @echo "Building plugin $@"
3115 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3117 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3118 @echo "Building plugin $@"
3119 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3121 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3122 @echo "Building plugin $@"
3123 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3125 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3126 @echo "Building plugin $@"
3127 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3129 #########################################################
3130 ## IdMap NSS plugins
3132 ## None here right now
3133 #########################################################
3135 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3136 @echo Linking $@
3137 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3138 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3139 $(LIBWBCLIENT_LIBS)
3141 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3142 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3143 @echo Linking $@
3144 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3145 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) $(ZLIB_LIBS) \
3146 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3147 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3149 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3150 @echo "Linking shared library $@"
3151 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
3152 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(KRB5LIBS) $(ZLIB_LIBS) \
3153 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3155 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3156 @echo Linking $@
3157 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3158 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3160 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3161 @echo Linking $@
3162 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3163 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3165 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3166 @echo Linking $@
3167 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3169 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3170 @echo Linking $@
3171 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3173 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3174 @echo Linking $@
3175 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3176 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3178 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3179 @echo Linking $@
3180 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3182 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3183 @echo "Linking $@"
3184 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3185 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3186 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3188 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3189 @echo "Linking $@"
3190 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3191 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3192 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3193 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3195 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3196 @echo "Linking $@"
3197 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3198 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3199 $(LDAP_LIBS) \
3200 $(POPT_LIBS) \
3201 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3203 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3204 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3206 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3207 @echo "Linking $@"
3208 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3209 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3210 $(LDAP_LIBS) \
3211 $(POPT_LIBS) \
3212 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3214 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3215 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3217 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3218 @echo "Linking $@"
3219 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3220 $(LDFLAGS) $(DYNEXP) \
3221 $(LIBS) $(POPT_LIBS) \
3222 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3223 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3225 install:: installservers installbin installman \
3226 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3227 @INSTALL_PAM_MODULES@ installlibs installmo
3229 install-everything:: install installmodules
3231 # DESTDIR is used here to prevent packagers wasting their time
3232 # duplicating the Makefile. Remove it and you will have the privelege
3233 # of package each samba release for muliple versions of multiple
3234 # distributions and operating systems, or at least supplying patches
3235 # to all the packaging files required for this, prior to committing
3236 # the removal of DESTDIR. Do not remove it even though you think it
3237 # is not used
3239 installdirs::
3240 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3241 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3242 $(VARDIR) $(PRIVATE_DIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3243 $(NMBDSOCKETDIR) $(WINBINDD_SOCKET_DIR) $(WINBINDD_PRIVILEGED_SOCKET_DIR) \
3244 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3246 installservers:: all installdirs
3247 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3249 installbin:: all installdirs
3250 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3252 # Some symlinks are required for the 'probing' of modules.
3253 # This mechanism should go at some point..
3254 installmodules:: modules installdirs
3255 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3256 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3257 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3258 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3259 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3260 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3261 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3262 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3263 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3264 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3265 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3266 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3267 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3268 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3269 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3270 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3271 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3272 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3274 installscripts:: installdirs
3275 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3277 installdat:: installdirs
3278 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3280 installmsg:: installdirs
3281 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3283 installswat:: installdirs installmsg
3284 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3286 installpammodules:: $(PAM_MODULES)
3287 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3288 @for module in $(PAM_MODULES); do \
3289 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3290 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3291 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3292 done
3294 # revert to the previously installed version
3295 revert::
3296 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3297 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3299 installman:: installdirs
3300 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3302 installmo:: all installdirs
3303 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3305 .PHONY: showlayout
3307 showlayout::
3308 @echo "Samba will be installed into:"
3309 @echo " prefix: $(prefix)"
3310 @echo " exec_prefix: $(exec_prefix)"
3311 @echo " sysconfdir: $(sysconfdir)"
3312 @echo " localstatedir: $(localstatedir)"
3313 @echo " datarootdir: $(datarootdir)"
3314 @echo " BINDIR: $(BINDIR)"
3315 @echo " SBINDIR: $(SBINDIR)"
3316 @echo " LIBDIR: $(LIBDIR)"
3317 # @echo " LIBEXECDIR: $(LIBEXECDIR)"
3318 @echo " MANDIR: $(MANDIR)"
3319 @echo " DATADIR: $(DATADIR)"
3320 @echo " LOCALEDIR: $(LOCALEDIR)"
3321 # @echo " SCRIPTSBINDIR: $(SCRIPTSBINDIR)"
3322 # @echo " PYTHONDIR: $(PYTHONDIR)"
3323 # @echo " PYTHONARCHDIR: $(PYTHONARCHDIR)"
3324 @echo " MODULESDIR: $(MODULESDIR)"
3325 @echo " INCLUDEDIR: $(INCLUDEDIR)"
3326 @echo " SETUPDIR: $(SETUPDIR)"
3327 # @echo " PKGCONFIGDIR: $(PKGCONFIGDIR)"
3328 @echo " SWATDIR: $(SWATDIR)"
3329 @echo " CODEPAGEDIR: $(CODEPAGEDIR)"
3330 @echo " PAMMODULESDIR: $(PAMMODULESDIR)"
3331 @echo " CONFIGDIR: $(CONFIGDIR)"
3332 @echo " PRIVATE_DIR: $(PRIVATE_DIR)"
3333 @echo " LOCKDIR: $(LOCKDIR)"
3334 @echo " PIDDIR: $(PIDDIR)"
3335 @echo " STATEDIR: $(STATEDIR)"
3336 @echo " CACHEDIR: $(CACHEDIR)"
3337 @echo " LOGFILEBASE: $(LOGFILEBASE)"
3338 @echo " SOCKET_DIR: $(SOCKET_DIR)"
3339 @echo " PRIVILEGED_SOCKET_DIR: $(PRIVILEGED_SOCKET_DIR)"
3340 @echo " WINBINDD_SOCKET_DIR: $(WINBINDD_SOCKET_DIR)"
3341 @echo " WINBINDD_PRIVILEGED_SOCKET_DIR: $(WINBINDD_PRIVILEGED_SOCKET_DIR)"
3342 @echo " NMBDSOCKETDIR: $(NMBDSOCKETDIR)"
3343 # @echo " NTP_SIGND_SOCKET_DIR: $(NTP_SIGND_SOCKET_DIR)"
3344 @echo " NCALRPCDIR: $(NCALRPCDIR)"
3345 @echo " CONFIGFILE: $(CONFIGFILE)"
3346 @echo " LMHOSTSFILE: $(LMHOSTSFILE)"
3347 @echo " SMB_PASSWD_FILE: $(SMB_PASSWD_FILE)"
3350 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3352 uninstallmo::
3353 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3355 uninstallman::
3356 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3358 uninstallservers::
3359 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3361 uninstallbin::
3362 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3364 uninstallmodules::
3365 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3366 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3367 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3368 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3369 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3370 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3371 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3373 uninstallscripts::
3374 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3376 uninstalldat::
3377 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3379 uninstallmsg::
3380 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3382 uninstallswat:: uninstallmsg
3383 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3385 uninstallpammodules::
3386 @for module in $(PAM_MODULES); do \
3387 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3388 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3389 done
3391 cleanlibs::
3392 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3393 ../lib/*/*.ho \
3394 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3395 ../librpc/*/*.o \
3396 ../libgpo/*.o ../libgpo/*/*.o \
3397 ../libds/*.o ../libds/*/*.o ../dynconfig/*.o
3399 clean:: cleanlibs
3400 -rm -f include/build_env.h
3401 -rm -f smbd/build_options.c
3402 -rm -f param/param_local.h
3403 -rm -f param/param_global.h
3404 -rm -f ../lib/param/param_local.h
3405 -rm -f ../lib/param/param_global.h
3406 -rm -f ../lib/param/param_proto.h
3407 -rm -f ../lib/param/s3_param.h
3408 -rm -f $(PRECOMPILED_HEADER)
3409 -rm -f core */*~ *~ \
3410 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3411 ../testsuite/*/*.o \
3412 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3413 ../client/*.o \
3414 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3415 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3416 $(MODULES) $(TORTURE_PROGS) \
3417 $(EVERYTHING_PROGS) \
3418 bin/timelimit \
3419 .headers.stamp */src/*.o
3420 -rm -rf t_dir
3422 include/build_env.h: script/build_env.sh
3423 @echo Building include/build_env.h
3424 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3425 > $(builddir)/include/build_env.h
3427 proto::
3429 etags::
3430 rm -f TAGS
3431 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3433 ctags::
3434 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3436 realclean:: clean
3437 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3438 -rm -f script/installbin.sh script/uninstallbin.sh
3440 distclean:: realclean
3441 -rm -f smbadduser
3442 -rm -f include/autoconf/config.h Makefile
3443 -rm -f config.status config.cache so_locations
3444 -rm -rf .deps TAGS
3446 realdistclean:: distclean
3447 -rm -f include/autoconf/config.h.in
3448 -rm -f include/version.h
3449 -rm -f configure
3451 # this target is really just for my use. It only works on a limited
3452 # range of machines and is used to produce a list of potentially
3453 # dead (ie. unused) functions in the code. (tridge)
3454 finddead::
3455 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3456 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3457 comm -13 nmused.txt nmfns.txt
3460 # when configure.in is updated, reconfigure
3461 $(srcdir)/configure: $(srcdir)/configure.in
3462 @echo "WARNING: you need to rerun ./autogen.sh"
3464 config.status: $(srcdir)/configure
3465 @echo "WARNING: you need to run ./configure"
3467 Makefile: $(srcdir)/Makefile.in config.status
3468 @echo "WARNING: you need to run ./config.status"
3470 ######################################################################
3471 # Samba Testing Framework
3473 # Check shared libs for unresolved symbols
3474 test_shlibs:
3475 @echo "Testing $? "
3476 @$(LIB_PATH_VAR)=./bin && \
3477 export $(LIB_PATH_VAR) && \
3478 for module in $?; do \
3479 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3480 || exit 1; \
3481 done
3483 # Check for NSS module problems.
3484 test_nss_modules:: nss_modules
3485 @echo "Testing $(NSS_MODULES) "
3486 @$(LIB_PATH_VAR)=./bin && \
3487 export $(LIB_PATH_VAR) && \
3488 for module in $(NSS_MODULES); do \
3489 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3490 || exit 1; \
3491 done
3493 # Check for PAM module problems. Specifically, check that every module we
3494 # built can actually be loaded by a minimal PAM-aware application.
3495 test_pam_modules:: pam_modules
3496 @echo "Testing $(PAM_MODULES) "
3497 @$(LIB_PATH_VAR)=./bin && \
3498 export $(LIB_PATH_VAR) && \
3499 for module in $(PAM_MODULES); do \
3500 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3501 || exit 1; \
3502 done
3506 ## Targets for 'make test'
3509 valgrindtest:: all torture timelimit
3510 @echo Running Test suite with valgrind
3511 @$(MAKE) test \
3512 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3513 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3514 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3515 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3517 selftestdir = ../selftest
3519 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3521 test:: all torture timelimit
3522 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3523 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3524 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3525 SOURCEDIR="$(srcdir)" \
3526 VFSLIBDIR="$(builddir)/bin" \
3527 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3528 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3529 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3530 $(srcdir)/selftest/s3-selftest.sh
3532 test-%:
3533 $(MAKE) test TESTS=$*
3535 buildfarm-test:
3536 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3538 subunit-test:
3539 $(MAKE) test SUBUNIT_FORMATTER=cat
3541 SELFTEST_TESTENV = s3dc
3543 testenv:
3544 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3546 gdbtestenv:
3547 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3548 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3549 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3550 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3551 TESTS="--testenv"
3553 valgrindtestenv:
3554 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3555 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3556 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3557 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3558 TESTS="--testenv"
3561 # Check for Winbind struct 32/64bit padding
3562 test_wbpad:
3563 @echo "Testing winbind request/response structure for 32/64bit padding"
3564 @./script/tests/wb_pad.sh || exit 1;
3567 ## Examples:
3570 libsmbclient_examples: libsmbclient
3571 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3573 clean_libsmbclient_examples:
3574 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3576 libnetapi_examples: libnetapi
3577 $(MAKE) -C lib/netapi/examples
3579 clean_libnetapi_examples:
3580 $(MAKE) -C lib/netapi/examples clean
3582 .PHONY: bin/smbtorture4 bin/ndrdump4
3584 bin/smbtorture4: $(BINARY_PREREQS)
3585 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3587 bin/ndrdump4: $(BINARY_PREREQS)
3588 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
3590 .PHONY: vfs_examples
3592 vfs_examples:
3594 cd ../examples/VFS && \
3595 ./autogen.sh && \
3596 ./configure && \
3597 make clean && \
3598 make \