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