s3-rpc_server: Move the context functions to own file.
[Samba/gebeck_regimport.git] / source3 / Makefile.in
blobf95fbeb4617370c7d8999ae4bab5549c97e95715
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 selftest_prefix=@selftest_prefix@
20 selftest_shrdir=@selftest_shrdir@
21 smbtorture4_path=@smbtorture4_path@
22 smbtorture4_option=@smbtorture4_option@
23 selftest_custom_conf=@selftest_custom_conf@
25 LIBS=@LIBS@
26 CC=@CC@
27 SHLD=@SHLD@
28 LIB_PATH_VAR=@LIB_PATH_VAR@
30 ## Dynamic shared libraries build settings
31 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
32 DSO_EXPORTS=@DSO_EXPORTS@
33 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
35 # The MODULE_EXPORTS variable contains the platform-specific linker flags
36 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
37 MODULE_EXPORTS=@MODULE_EXPORTS@
39 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
40 # (GCC) warnings. This is done automatically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
43 CFLAGS=@CFLAGS@
44 CPP=@CPP@
45 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
46 PICFLAG=@PICFLAG@
48 EXEEXT=@EXEEXT@
49 AR=@AR@
50 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
51 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
52 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
54 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
55 AWK=@AWK@
56 DYNEXP=@DYNEXP@
57 PERL=@PERL@
58 PYTHON=@PYTHON@
59 LIBDL=@LIBDL@
61 PIDL_ARGS=@PIDL_ARGS@
63 TERMLDFLAGS=@TERMLDFLAGS@
64 TERMLIBS=@TERMLIBS@
65 PRINT_LIBS=@PRINT_LIBS@
66 ZLIB_LIBS=@ZLIB_LIBS@
67 AUTH_LIBS=@AUTH_LIBS@
68 ACL_LIBS=@ACL_LIBS@
69 PASSDB_LIBS=@PASSDB_LIBS@
70 IDMAP_LIBS=@IDMAP_LIBS@
71 KRB5LIBS=@KRB5_LIBS@
72 LDAP_LIBS=@LDAP_LIBS@
73 NSCD_LIBS=@NSCD_LIBS@
74 UUID_LIBS=@UUID_LIBS@
75 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
76 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
77 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
78 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
79 DNSSD_LIBS=@DNSSD_LIBS@
80 AVAHI_LIBS=@AVAHI_LIBS@
81 POPT_LIBS=@POPTLIBS@
82 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
83 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
84 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
85 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
86 LIBTDB_LIBS=@LIBTDB_LIBS@
87 TDB_DEPS=@TDB_DEPS@
88 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
89 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
90 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
91 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
93 TALLOCTORT = @TALLOCTORT@
95 TDBBACKUP = @TDBBACKUP@
96 TDBTOOL = @TDBTOOL@
97 TDBDUMP = @TDBDUMP@
98 TDBRESTORE = @TDBRESTORE@
99 TDBTORTURE = @TDBTORTURE@
100 PTHREADPOOLTEST = @PTHREADPOOLTEST@
102 INSTALLCMD=@INSTALL@
103 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
104 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
105 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
106 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
108 VPATH=@srcdir@
109 srcdir=@abs_srcdir@
110 builddir=@abs_builddir@
111 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
112 # will search for a POSIX-compliant shell, and that might not be
113 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
114 SHELL=/bin/sh
115 DESTDIR=/
117 # See the autoconf manual "Installation Directory Variables" for a
118 # discussion of the subtle use of these variables.
120 BASEDIR= @prefix@
121 BINDIR = @bindir@
122 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
123 SBINDIR = @sbindir@
124 ROOTSBINDIR = @rootsbindir@
125 LIBDIR = @libdir@
126 MODULESDIR = @modulesdir@
127 INCLUDEDIR=@includedir@
128 PAMMODULESDIR = @pammodulesdir@
129 VFSLIBDIR = $(MODULESDIR)/vfs
130 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
131 PDBLIBDIR = $(MODULESDIR)/pdb
132 RPCLIBDIR = $(MODULESDIR)/rpc
133 IDMAPLIBDIR = $(MODULESDIR)/idmap
134 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
135 CHARSETLIBDIR = $(MODULESDIR)/charset
136 AUTHLIBDIR = $(MODULESDIR)/auth
137 CONFIGLIBDIR = $(MODULESDIR)/config
138 GPEXTLIBDIR = $(MODULESDIR)/gpext
139 CONFIGDIR = @configdir@
140 VARDIR = @localstatedir@
141 MANDIR = @mandir@
142 DATADIR = @datadir@
143 SETUPDIR = @datadir@/setup
145 # The permissions to give the executables and other data
146 INSTALLPERMS_BIN = 0755
147 INSTALLPERMS_DATA = 0644
149 # set these to where to find various files
150 # These can be overridden by command line switches (see smbd(8))
151 # or in smb.conf (see smb.conf(5))
152 LOGFILEBASE = @logfilebase@
153 CONFIGFILE = $(CONFIGDIR)/smb.conf
154 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
155 NCALRPCDIR = @ncalrpcdir@
157 # This is where smbpasswd et al go
158 PRIVATEDIR = @privatedir@
160 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
161 PRIVATE_DIR = $(PRIVATEDIR)
163 # This is where SWAT images and help files go
164 SWATDIR = @swatdir@
166 # This is where locale(mo) files go
167 LOCALEDIR= @localedir@
169 # the directory where lock files go
170 LOCKDIR = @lockdir@
172 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
173 CACHEDIR = @cachedir@
174 STATEDIR = @statedir@
176 # Where to look for (and install) codepage databases.
177 CODEPAGEDIR = @codepagedir@
179 # the directory where pid files go
180 PIDDIR = @piddir@
182 # the directory where nmbd listens on the unexpected socket
183 NMBDSOCKETDIR = @nmbdsocketdir@
185 FLAGS = -I. \
186 -I$(srcdir) \
187 @FLAGS1@ \
188 @SAMBA_CPPFLAGS@ \
189 $(CPPFLAGS) \
190 $(ISA) \
191 -I$(srcdir)/lib \
192 -I.. \
193 -D_SAMBA_BUILD_=3
195 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
196 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
197 -DCONFIGFILE=\"$(CONFIGFILE)\" \
198 -DSBINDIR=\"$(SBINDIR)\" \
199 -DBINDIR=\"$(BINDIR)\" \
200 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
201 -DSWATDIR=\"$(SWATDIR)\" \
202 -DLOCKDIR=\"$(LOCKDIR)\" \
203 -DPIDDIR=\"$(PIDDIR)\" \
204 -DLIBDIR=\"$(LIBDIR)\" \
205 -DMODULESDIR=\"$(MODULESDIR)\" \
206 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
207 -DSHLIBEXT=\"@SHLIBEXT@\" \
208 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
209 -DCONFIGDIR=\"$(CONFIGDIR)\" \
210 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
211 -DCACHEDIR=\"$(CACHEDIR)\" \
212 -DSTATEDIR=\"$(STATEDIR)\" \
213 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
214 -DLOCALEDIR=\"$(LOCALEDIR)\" \
215 -DDATADIR=\"$(DATADIR)\" \
216 -DSETUPDIR=\"$(SETUPDIR)\"
218 # Note that all executable programs now provide for an optional executable suffix.
220 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
222 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
223 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
224 bin/smbta-util@EXEEXT@
225 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
226 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
227 $(TDBRESTORE) \
228 $(TDBTOOL)
229 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
230 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
231 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
233 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
234 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
235 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
236 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
237 $(TDBTORTURE) $(PTHREADPOOLTEST) \
238 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
240 BIN_PROGS = @EXTRA_BIN_PROGS@ \
241 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
243 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
244 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
245 bin/log2pcap@EXEEXT@ \
246 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
247 bin/dbwrap_tool@EXEEXT@ \
248 bin/dbwrap_torture@EXEEXT@
250 PAM_MODULES = @PAM_MODULES@
252 NSS_MODULES = @NSS_MODULES@
254 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
256 VFS_MODULES = @VFS_MODULES@
257 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
258 PDB_MODULES = @PDB_MODULES@
259 IDMAP_MODULES = @IDMAP_MODULES@
260 CHARSET_MODULES = @CHARSET_MODULES@
261 AUTH_MODULES = @AUTH_MODULES@
262 NSS_INFO_MODULES = @NSS_INFO_MODULES@
263 GPEXT_MODULES = @GPEXT_MODULES@
264 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
265 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
266 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
268 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
270 ######################################################################
271 # object file lists
272 ######################################################################
274 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
275 ../lib/util/tdb_wrap.o \
276 lib/dbwrap.o lib/dbwrap_tdb.o \
277 lib/dbwrap_ctdb.o \
278 lib/g_lock.o \
279 lib/dbwrap_rbt.o
281 TDB_VALIDATE_OBJ = lib/tdb_validate.o
283 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
285 VERSION_OBJ = lib/version.o
287 WBCOMMON_OBJ = ../nsswitch/wb_common.o
289 AFS_OBJ = lib/afs.o
291 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
293 AVAHI_OBJ = @AVAHI_OBJ@
295 SERVER_MUTEX_OBJ = lib/server_mutex.o
297 PASSCHANGE_OBJ = libsmb/passchange.o
299 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
300 ../librpc/ndr/ndr_compression.o \
301 librpc/gen_ndr/ndr_drsuapi.o \
302 ../librpc/ndr/ndr_drsblobs.o \
303 librpc/gen_ndr/ndr_drsblobs.o
305 ZLIB_OBJ = @ZLIB_OBJS@
307 COMPRESSION_OBJ = ../lib/compression/mszip.o \
308 ../lib/compression/lzxpress.o \
309 $(ZLIB_OBJ)
311 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
312 $(COMPRESSION_OBJ)
314 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
315 ../librpc/ndr/ndr_ntlmssp.o
317 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
318 ../librpc/ndr/ndr.o \
319 ../librpc/ndr/ndr_misc.o \
320 librpc/gen_ndr/ndr_misc.o \
321 librpc/gen_ndr/ndr_security.o \
322 ../librpc/ndr/ndr_sec_helper.o \
323 ../librpc/ndr/ndr_string.o \
324 ../librpc/ndr/uuid.o \
325 ../librpc/ndr/util.o \
326 librpc/gen_ndr/ndr_server_id.o \
327 librpc/gen_ndr/ndr_dcerpc.o
329 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
330 librpc/gen_ndr/ndr_lsa.o
332 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
333 ../librpc/ndr/ndr_netlogon.o
335 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
336 ../librpc/ndr/ndr_schannel.o
338 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
339 ../librpc/ndr/ndr_spoolss_buf.o
341 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
342 ../librpc/ndr/ndr_ntprinting.o \
344 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
345 ../librpc/ndr/ndr_preg.o
347 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
348 ../librpc/ndr/ndr_xattr.o
350 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss_c.o \
351 rpc_client/cli_spoolss.o \
352 rpc_client/init_spoolss.o
354 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/ndr_eventlog_c.o
356 LIBCLI_WINREG_OBJ = librpc/gen_ndr/ndr_winreg_c.o \
357 rpc_client/cli_winreg.o
359 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
360 rpc_client/cli_winreg_int.o
362 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/ndr_ntsvcs_c.o
364 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/ndr_drsuapi_c.o
366 LIBCLI_DFS_OBJ = librpc/gen_ndr/ndr_dfs_c.o
368 LIBCLI_ECHO_OBJ = librpc/gen_ndr/ndr_echo_c.o
370 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/ndr_initshutdown_c.o
372 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/ndr_dssetup_c.o
374 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/ndr_svcctl_c.o
376 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/ndr_wkssvc_c.o
378 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/ndr_srvsvc_c.o
380 LIBCLI_LSA_OBJ = librpc/gen_ndr/ndr_lsa_c.o \
381 rpc_client/cli_lsarpc.o \
382 rpc_client/init_lsa.o
384 LIBCLI_SAMR_OBJ = librpc/gen_ndr/ndr_samr_c.o \
385 rpc_client/cli_samr.o
387 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon_c.o \
388 rpc_client/cli_netlogon.o \
389 rpc_client/util_netlogon.o
391 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/ndr_epmapper_c.o
393 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
394 $(LIBNDR_GEN_OBJ0) \
395 librpc/gen_ndr/ndr_dfs.o \
396 librpc/gen_ndr/ndr_echo.o \
397 librpc/gen_ndr/ndr_winreg.o \
398 librpc/gen_ndr/ndr_initshutdown.o \
399 librpc/gen_ndr/ndr_srvsvc.o \
400 librpc/gen_ndr/ndr_eventlog.o \
401 $(LIBNDR_NETLOGON_OBJ) \
402 librpc/gen_ndr/ndr_dssetup.o \
403 librpc/gen_ndr/ndr_epmapper.o \
404 librpc/gen_ndr/ndr_ntsvcs.o \
405 $(LIBNDR_SPOOLSS_OBJ)
407 # this includes only the low level parse code, not stuff
408 # that requires knowledge of security contexts
409 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
411 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
413 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
414 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
416 LIBSAMBAUTIL_OBJ = \
417 $(LIBREPLACE_OBJ) \
418 $(SOCKET_WRAPPER_OBJ) \
419 $(NSS_WRAPPER_OBJ)
421 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
422 ../lib/util/xfile.o ../lib/util/util_strlist.o \
423 ../lib/util/util_file.o ../lib/util/data_blob.o \
424 ../lib/util/util.o ../lib/util/fsusage.o \
425 ../lib/util/params.o ../lib/util/talloc_stack.o \
426 ../lib/util/genrand.o ../lib/util/util_net.o \
427 ../lib/util/become_daemon.o ../lib/util/system.o \
428 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
429 ../lib/util/tevent_werror.o \
430 ../lib/util/smb_threads.o ../lib/util/util_id.o \
431 ../lib/util/blocking.o ../lib/util/rfc1738.o \
432 ../lib/util/select.o ../lib/util/util_pw.o
434 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
435 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
436 ../lib/crypto/md4.o \
437 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
438 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
440 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
441 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
442 lib/messages_ctdbd.o lib/ctdb_packet.o lib/ctdbd_conn.o \
443 ../lib/socket/interfaces.o lib/memcache.o \
444 lib/talloc_dict.o \
445 lib/serverid.o \
446 lib/util_sconn.o \
447 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
448 lib/addrchange.o \
449 $(TDB_LIB_OBJ) \
450 $(VERSION_OBJ) lib/charcnv.o ../lib/util/charset/convert_string.o \
451 ../lib/util/charset/pull_push.o \
452 lib/fstring.o ../lib/util/debug.o ../lib/util/debug_s3.o ../lib/util/fault.o \
453 lib/interface.o lib/pidfile.o lib/dumpcore.o \
454 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
455 lib/username.o \
456 ../libds/common/flag_mapping.o \
457 lib/access.o lib/smbrun.o \
458 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
459 lib/wins_srv.o lib/string_init.o \
460 lib/util_str.o ../lib/util/util_str_common.o \
461 ../lib/util/util_str.o \
462 ../lib/util/base64.o lib/util_sid.o \
463 ../lib/util/charset/util_unistr.o \
464 ../lib/util/charset/util_unistr_w.o ../lib/util/charset/codepoints.o ../lib/util/charset/util_str.o lib/util_file.o \
465 lib/util.o lib/util_malloc.o lib/namearray.o lib/util_cmdline.o lib/util_names.o \
466 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
467 lib/substitute.o lib/substitute_generic.o ../lib/util/substitute.o lib/dbwrap_util.o \
468 lib/ms_fnmatch.o ../lib/util/ms_fnmatch.o lib/errmap_unix.o \
469 lib/tallocmsg.o lib/dmallocmsg.o \
470 libsmb/clisigning.o libsmb/smb_signing.o \
471 ../lib/util/charset/iconv.o intl/lang_tdb.o \
472 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
473 lib/sessionid_tdb.o \
474 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
475 lib/server_contexts.o \
476 lib/ldap_escape.o @CHARSET_STATIC@ \
477 ../libcli/security/secdesc.o ../libcli/security/access_check.o \
478 ../libcli/security/secace.o ../libcli/security/object_tree.o \
479 ../libcli/security/sddl.o \
480 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
481 lib/fncall.o \
482 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
483 lib/file_id.o lib/idmap_cache.o \
484 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
485 ../libcli/security/security_token.o ../libcli/security/util_sid.o \
486 ../libcli/smb/util.o
488 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyparam.o lib/dummyroot.o
489 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
491 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
493 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
494 # Be sure to include them into your application
495 POPT_LIB_OBJ = lib/popt_common.o
497 PARAM_WITHOUT_REG_OBJ = ../dynconfig/dynconfig.o param/loadparm.o param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
498 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
499 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
501 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
503 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
504 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
505 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
507 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
509 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
510 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
511 libgpo/gpo_reg.o \
512 $(GPEXT_OBJ)
513 LIBGPO_OBJ = $(LIBGPO_OBJ0)
515 LIBADS_OBJ = libads/ldap.o \
516 libads/sasl.o libads/sasl_wrapping.o \
517 libads/krb5_setpw.o \
518 libads/kerberos_util.o \
519 libads/ldap_user.o \
520 libads/ads_struct.o libads/kerberos_keytab.o \
521 libads/disp_sec.o libads/ldap_utils.o \
522 libads/ldap_schema.o libads/util.o libads/ndr.o
524 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o ../auth/kerberos/kerberos_pac.o \
525 ../librpc/ndr/ndr_krb5pac.o \
526 librpc/gen_ndr/ndr_krb5pac.o
528 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
530 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
531 librpc/gen_ndr/ndr_secrets.o
533 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
534 ../libcli/netlogon/netlogon.o \
535 ../libcli/netlogon/ndr_netlogon.o \
536 librpc/gen_ndr/ndr_nbt.o \
537 librpc/gen_ndr/ndr_svcctl.o \
538 ../librpc/ndr/ndr_svcctl.o
540 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
541 libsmb/namequery.o ../libcli/nbt/lmhosts.o ../libcli/dns/dns_hosts_file.o libsmb/conncache.o \
542 libads/dns.o libads/sitename_cache.o
544 NTERR_OBJ = ../libcli/util/nterr.o libsmb/nterr.o libsmb/smberr.o
545 DOSERR_OBJ = ../libcli/util/doserr.o
546 ERRORMAP_OBJ = ../libcli/util/errormap.o libsmb/errormap.o
547 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
549 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
551 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
553 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
554 $(SECRETS_OBJ)
556 LIBSMB_OBJ0 = \
557 ../libcli/auth/ntlm_check.o \
558 libsmb/ntlmssp.o \
559 libsmb/ntlmssp_wrap.o \
560 ../libcli/auth/ntlmssp.o \
561 ../libcli/auth/ntlmssp_sign.o \
562 $(LIBNDR_NTLMSSP_OBJ) \
563 ../libcli/auth/ntlmssp_ndr.o \
564 ../libcli/auth/ntlmssp_server.o
566 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
567 $(LIBSMB_ERR_OBJ)
569 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
570 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o lib/ldb_compat.o
572 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
573 ../lib/tsocket/tsocket_helpers.o \
574 ../lib/tsocket/tsocket_bsd.o
576 CLDAP_OBJ = libads/cldap.o \
577 ../libcli/cldap/cldap.o \
578 ../lib/util/idtree.o \
579 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
581 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
583 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
584 ../libcli/auth/schannel_sign.o \
585 ../libcli/auth/schannel_state_tdb.o \
586 $(LIBNDR_SCHANNEL_OBJ)
588 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
589 libsmb/clikrb5.o ../libcli/auth/krb5_wrap.o libsmb/clispnego.o \
590 ../libcli/auth/spnego_parse.o \
591 ../lib/util/asn1.o \
592 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
593 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
594 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
595 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
596 libsmb/clioplock.o libsmb/clirap2.o \
597 libsmb/smb_seal.o libsmb/async_smb.o \
598 libsmb/read_smb.o \
599 libsmb/cli_np_tstream.o \
600 libsmb/smbsock_connect.o \
601 $(LIBSAMBA_OBJ) \
602 $(LIBNMB_OBJ) \
603 $(LIBNBT_OBJ) \
604 $(CLDAP_OBJ) \
605 $(DRSUAPI_OBJ)
607 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
608 rpc_client/cli_pipe.o \
609 librpc/crypto/gse_krb5.o \
610 librpc/crypto/gse.o \
611 ../auth/kerberos/gssapi_pac.o \
612 librpc/crypto/cli_spnego.o \
613 librpc/rpc/rpc_common.o \
614 rpc_client/rpc_transport_np.o \
615 rpc_client/rpc_transport_sock.o \
616 rpc_client/rpc_transport_tstream.o \
617 ../librpc/rpc/binding.o \
618 ../librpc/rpc/dcerpc_util.o \
619 ../librpc/rpc/binding_handle.o \
620 librpc/rpc/dcerpc_helpers.o \
621 $(LIBCLI_EPMAPPER_OBJ)
623 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
626 # registry-related objects
628 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
630 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
631 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
632 REG_INIT_FULL_OBJ = registry/reg_init_full.o
634 REGFIO_OBJ = registry/regfio.o \
635 $(REG_PARSE_PRS_OBJ)
637 REG_API_REGF_OBJ = registry/reg_api_regf.o
639 REGOBJS_OBJ = registry/reg_objects.o
641 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
643 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
645 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
646 registry/reg_backend_shares.o \
647 registry/reg_backend_netlogon_params.o \
648 registry/reg_backend_prod_options.o \
649 registry/reg_backend_tcpip_params.o \
650 registry/reg_backend_hkpt_params.o \
651 registry/reg_backend_current_version.o \
652 registry/reg_backend_perflib.o
654 REG_BASE_OBJ = registry/reg_api.o \
655 registry/reg_dispatcher.o \
656 registry/reg_cachehook.o \
657 $(REGOBJS_OBJ) \
658 registry/reg_util_internal.o \
659 lib/util_nttoken.o \
660 $(REG_BACKENDS_BASE_OBJ) \
661 $(REG_INIT_BASIC_OBJ)
663 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
664 registry/reg_util_token.o \
665 registry/reg_api_util.o \
666 $(REG_BACKENDS_SMBCONF_OBJ) \
667 $(REG_INIT_SMBCONF_OBJ)
669 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
670 $(REG_BACKENDS_EXTRA_OBJ) \
671 $(REG_INIT_FULL_OBJ) \
672 registry/reg_perfcount.o \
673 librpc/gen_ndr/ndr_perfcount.o
675 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
677 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
679 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
680 librpc/gen_ndr/srv_lsa.o
682 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
683 librpc/gen_ndr/srv_netlogon.o
685 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
686 rpc_server/samr/srv_samr_util.o \
687 rpc_server/samr/srv_samr_chgpasswd.o \
688 librpc/gen_ndr/srv_samr.o
690 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
692 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
693 librpc/gen_ndr/srv_winreg.o
695 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
697 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
698 librpc/gen_ndr/srv_srvsvc.o
700 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
701 rpc_server/wkssvc/srv_wkssvc_nt.o
703 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
704 rpc_server/svcctl/srv_svcctl_reg.o \
705 librpc/gen_ndr/srv_svcctl.o \
706 services/svc_winreg_glue.o \
707 services/svc_spoolss.o services/svc_rcinit.o \
708 services/svc_netlogon.o services/svc_winreg.o \
709 services/svc_wins.o
711 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
712 librpc/gen_ndr/srv_ntsvcs.o
714 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
715 rpc_server/dfs/srv_dfs_nt.o
717 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
718 rpc_server/spoolss/srv_spoolss_util.o \
719 librpc/gen_ndr/srv_spoolss.o
721 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
722 rpc_server/eventlog/srv_eventlog_reg.o \
723 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
725 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
726 librpc/gen_ndr/ndr_named_pipe_auth.o \
727 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o ../librpc/ndr/ndr_auth.o
729 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
730 rpc_server/rpc_handles.o rpc_server/rpc_contexts.o \
731 rpc_server/srv_access_check.o
733 RPC_SERVICE = rpc_server/rpc_server.o
735 RPC_CRYPTO = rpc_server/dcesrv_ntlmssp.o \
736 rpc_server/dcesrv_gssapi.o \
737 rpc_server/dcesrv_spnego.o
739 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
740 $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
742 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
744 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
746 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_setup.o $(DCE_RPC_EP_OBJ)
748 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
749 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
750 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
751 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
752 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
753 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
754 $(LIBCLI_SPOOLSS_OBJ) \
755 $(LIBCLI_WINREG_INT_OBJ) \
756 $(LIBCLI_SRVSVC_OBJ) \
757 $(LIBCLI_LSA_OBJ) \
758 $(LIBCLI_SAMR_OBJ) \
759 $(LIBCLI_NETLOGON_OBJ) \
760 $(RPC_SERVER_REGISTER_OBJ) \
761 $(RPC_CLIENT_SCHANNEL_OBJ) \
762 rpc_client/init_netlogon.o \
763 rpc_client/init_samr.o
765 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
767 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
769 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
771 PRIVILEGES_OBJ = lib/privileges.o
773 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
775 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
776 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
777 lib/util_unixsids.o passdb/lookup_sid.o \
778 passdb/login_cache.o @PDB_STATIC@ \
779 passdb/account_pol.o $(PRIVILEGES_OBJ) \
780 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
781 passdb/pdb_util.o
783 DEVEL_HELP_WEIRD_OBJ = ../lib/util/charset/weird.o
784 CP850_OBJ = ../lib/util/charset/CP850.o
785 CP437_OBJ = ../lib/util/charset/CP437.o
786 CHARSET_MACOSXFS_OBJ = ../lib/util/charset/charset_macosxfs.o
788 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
790 PROFILE_OBJ = profile/profile.o
791 PROFILES_OBJ = utils/profiles.o \
792 $(LIBSMB_ERR_OBJ) \
793 $(PARAM_OBJ) \
794 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
795 $(POPT_LIB_OBJ) \
796 $(REGFIO_OBJ)
798 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
799 smbd/oplock_onefs.o
801 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
802 librpc/gen_ndr/ndr_notify.o librpc/gen_ndr/ndr_file_id.o
804 FNAME_UTIL_OBJ = lib/filename_util.o
806 VFS_DEFAULT_OBJ = modules/vfs_default.o
807 VFS_AUDIT_OBJ = modules/vfs_audit.o
808 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
809 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
810 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
811 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
812 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
813 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
814 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
815 VFS_CAP_OBJ = modules/vfs_cap.o
816 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
817 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
818 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
819 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
820 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
821 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
822 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
823 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
824 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
825 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
826 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
827 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
828 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
829 VFS_CATIA_OBJ = modules/vfs_catia.o
830 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
831 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
832 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
833 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
834 VFS_COMMIT_OBJ = modules/vfs_commit.o
835 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
836 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
837 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
838 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
839 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
840 VFS_FILEID_OBJ = modules/vfs_fileid.o
841 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
842 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
843 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
844 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
845 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
846 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
847 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
848 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
849 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
850 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
851 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
852 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
853 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
854 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
855 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
856 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
857 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
859 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
860 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
862 SLCACHE_OBJ = libsmb/samlogon_cache.o
864 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
866 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
867 AUTH_DOMAIN_OBJ = auth/auth_domain.o
868 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
869 AUTH_SERVER_OBJ = auth/auth_server.o
870 AUTH_UNIX_OBJ = auth/auth_unix.o
871 AUTH_WINBIND_OBJ = auth/auth_winbind.o
872 AUTH_WBC_OBJ = auth/auth_wbc.o
873 AUTH_SCRIPT_OBJ = auth/auth_script.o
874 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
876 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
877 auth/server_info.o \
878 auth/server_info_sam.o \
879 auth/user_info.o \
880 auth/user_util.o \
881 auth/user_krb5.o \
882 auth/auth_compat.o auth/auth_ntlmssp.o \
883 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
885 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
887 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o smbd/msg_idmap.o
889 BUILDOPT_OBJ = smbd/build_options.o
891 SMBD_OBJ_SRV = smbd/server_reload.o \
892 smbd/files.o smbd/connection.o \
893 smbd/utmp.o smbd/session.o \
894 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/conn_idle.o smbd/conn_msg.o \
895 smbd/share_access.o smbd/fileio.o \
896 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
897 smbd/message.o smbd/nttrans.o smbd/pipes.o \
898 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
899 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
900 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
901 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
902 smbd/posix_acls.o lib/sysacls.o \
903 smbd/process.o smbd/service.o param/service.o smbd/error.o \
904 rpc_server/epmd.o \
905 printing/printspoolss.o printing/spoolssd.o \
906 lib/sysquotas.o lib/sysquotas_linux.o \
907 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
908 lib/sysquotas_nfs.o \
909 smbd/fake_file.o \
910 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
911 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
912 smbd/dmapi.o smbd/signing.o \
913 smbd/file_access.o \
914 smbd/dnsregister.o smbd/globals.o \
915 smbd/smb2_server.o \
916 smbd/smb2_signing.o \
917 smbd/smb2_glue.o \
918 smbd/smb2_negprot.o \
919 smbd/smb2_sesssetup.o \
920 smbd/smb2_tcon.o \
921 smbd/smb2_create.o \
922 smbd/smb2_close.o \
923 smbd/smb2_flush.o \
924 smbd/smb2_read.o \
925 smbd/smb2_write.o \
926 smbd/smb2_lock.o \
927 smbd/smb2_ioctl.o \
928 smbd/smb2_keepalive.o \
929 smbd/smb2_find.o \
930 smbd/smb2_notify.o \
931 smbd/smb2_getinfo.o \
932 smbd/smb2_setinfo.o \
933 smbd/smb2_break.o \
934 ../libcli/smb/smb2_create_blob.o \
935 $(MANGLE_OBJ) @VFS_STATIC@
937 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
938 $(RPC_SERVER_OBJ) \
939 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
940 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
941 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
942 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
943 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
944 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
945 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
946 $(LIBSMBCONF_OBJ) \
947 $(PRIVILEGES_BASIC_OBJ) \
948 $(REGFIO_OBJ) \
949 $(REG_API_REGF_OBJ) \
950 $(LIBNDR_XATTR_OBJ)
952 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
953 printing/print_cups.o printing/print_generic.o \
954 printing/lpq_parse.o printing/load.o \
955 printing/print_iprint.o printing/print_standard.o \
956 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
958 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
959 PRINTBACKEND_OBJ = printing/printing.o \
960 printing/nt_printing.o \
961 printing/nt_printing_tdb.o \
962 printing/nt_printing_migrate.o \
963 printing/nt_printing_ads.o \
964 librpc/gen_ndr/ndr_ntprinting.o \
965 ../librpc/ndr/ndr_ntprinting.o \
966 $(PRINTBASE_OBJ)
968 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
970 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
971 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
972 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
973 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
974 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
975 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
976 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
977 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
978 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
979 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
980 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
981 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
983 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
984 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
985 $(LIBNDR_GEN_OBJ0)
987 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
988 web/swat.o web/neg_lang.o
990 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
991 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
992 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
993 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
994 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
995 $(LIBCLI_SAMR_OBJ) \
996 rpc_client/init_lsa.o
998 STATUS_OBJ = utils/status.o utils/status_profile.o \
999 $(LOCKING_OBJ) $(PARAM_OBJ) \
1000 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1001 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1003 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1004 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
1006 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
1007 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
1008 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1009 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1010 $(LIBMSRPC_GEN_OBJ) \
1011 $(LIBMSRPC_OBJ) \
1012 $(LIBCLI_SRVSVC_OBJ)
1014 TESTPARM_OBJ = utils/testparm.o \
1015 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1016 $(LIBSMB_ERR_OBJ)
1018 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1019 $(LIB_NONSMBD_OBJ) \
1020 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1022 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1023 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1024 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1026 PASSWD_UTIL_OBJ = utils/passwd_util.o
1028 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1029 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1030 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1031 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1032 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1033 $(LIBCLI_SAMR_OBJ) \
1034 rpc_client/init_lsa.o
1036 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1037 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
1038 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1039 $(LIBCLI_LDAP_NDR_OBJ) \
1040 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1042 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1044 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1046 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1047 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1048 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1049 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1050 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1051 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1052 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1053 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1054 rpcclient/cmd_winreg.o \
1055 $(DISPLAY_SEC_OBJ)
1057 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1058 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1059 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1060 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1061 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1062 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1063 $(LIBCLI_SPOOLSS_OBJ) \
1064 $(LIBCLI_EVENTLOG_OBJ) \
1065 $(LIBCLI_NTSVCS_OBJ) \
1066 $(LIBCLI_DRSUAPI_OBJ) \
1067 $(LIBCLI_DFS_OBJ) \
1068 $(LIBCLI_ECHO_OBJ) \
1069 $(LIBCLI_DSSETUP_OBJ) \
1070 $(LIBCLI_WKSSVC_OBJ) \
1071 $(LIBCLI_SRVSVC_OBJ) \
1072 $(LIBCLI_LSA_OBJ) \
1073 $(LIBCLI_SAMR_OBJ) \
1074 $(LIBCLI_WINREG_OBJ) \
1075 $(LIBCLI_NETLOGON_OBJ) \
1076 $(RPC_CLIENT_SCHANNEL_OBJ) \
1077 rpc_client/init_netlogon.o \
1078 rpc_client/init_samr.o
1080 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1081 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1083 LIBSMBCLIENT_THREAD_OBJ = \
1084 libsmb/libsmb_thread_impl.o \
1085 libsmb/libsmb_thread_posix.o
1087 LIBSMBCLIENT_OBJ0 = \
1088 libsmb/libsmb_cache.o \
1089 libsmb/libsmb_compat.o \
1090 libsmb/libsmb_context.o \
1091 libsmb/libsmb_dir.o \
1092 libsmb/libsmb_file.o \
1093 libsmb/libsmb_misc.o \
1094 libsmb/libsmb_path.o \
1095 libsmb/libsmb_printjob.o \
1096 libsmb/libsmb_server.o \
1097 libsmb/libsmb_stat.o \
1098 libsmb/libsmb_xattr.o \
1099 libsmb/libsmb_setget.o
1101 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1102 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1103 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1104 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1105 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1106 $(LIBCLI_SRVSVC_OBJ) \
1107 $(LIBCLI_LSA_OBJ)
1109 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1111 # This shared library is intended for linking with unit test programs
1112 # to test Samba internals. It's called libbigballofmud.so to
1113 # discourage casual usage.
1115 LIBBIGBALLOFMUD_MAJOR = 0
1117 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1118 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1119 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1121 CLIENT_OBJ1 = client/client.o client/clitar.o \
1122 client/dnsbrowse.o \
1123 $(LIBMSRPC_OBJ)
1125 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1126 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1127 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1128 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1129 $(DISPLAY_SEC_OBJ) \
1130 $(LIBCLI_SRVSVC_OBJ)
1132 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1133 ../lib/smbconf/smbconf_util.o \
1134 ../lib/smbconf/smbconf_txt.o \
1135 lib/smbconf/smbconf_reg.o \
1136 lib/smbconf/smbconf_init.o
1138 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1140 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1141 $(LIB_NONSMBD_OBJ) \
1142 $(PARAM_OBJ) \
1143 $(LIBSMB_ERR_OBJ) \
1144 $(POPT_LIB_OBJ)
1146 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1147 lib/pthreadpool/tests.o
1149 LIBNET_OBJ = libnet/libnet_join.o \
1150 libnet/libnet_keytab.o \
1151 librpc/gen_ndr/ndr_libnet_join.o
1153 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1154 libnet/libnet_dssync_passdb.o \
1155 libnet/libnet_dssync_keytab.o \
1156 ../libcli/drsuapi/repl_decrypt.o
1158 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1159 libnet/libnet_samsync_ldif.o \
1160 libnet/libnet_samsync_passdb.o \
1161 libnet/libnet_samsync_display.o \
1162 libnet/libnet_samsync_keytab.o \
1163 ../libcli/samsync/decrypt.o
1165 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1166 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1167 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1168 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o utils/net_idmap_check.o\
1169 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1170 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1171 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1172 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1173 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1174 utils/net_conf.o utils/net_join.o utils/net_user.o \
1175 utils/net_group.o utils/net_file.o utils/net_registry.o \
1176 auth/token_util.o utils/net_dom.o utils/net_share.o \
1177 utils/net_g_lock.o \
1178 utils/net_serverid.o \
1179 utils/net_eventlog.o \
1180 utils/net_printing.o \
1181 utils/net_rpc_trust.o \
1182 $(LIBNDR_NTPRINTING_OBJ) \
1183 $(LIBNDR_PREG_OBJ) \
1184 $(LIBCLI_SPOOLSS_OBJ) \
1185 $(LIBCLI_WINREG_OBJ) \
1186 $(LIBCLI_DRSUAPI_OBJ) \
1187 $(LIBCLI_INITSHUTDOWN_OBJ) \
1188 $(LIBCLI_DSSETUP_OBJ) \
1189 $(LIBCLI_SVCCTL_OBJ) \
1190 $(LIBCLI_WKSSVC_OBJ) \
1191 $(LIBCLI_SRVSVC_OBJ) \
1192 $(LIBCLI_LSA_OBJ) \
1193 $(LIBCLI_SAMR_OBJ) \
1194 $(LIBCLI_NETLOGON_OBJ) \
1195 $(RPC_CLIENT_SCHANNEL_OBJ) \
1196 rpc_client/init_netlogon.o \
1197 rpc_client/init_samr.o \
1198 registry/reg_parse.o registry/reg_format.o \
1199 registry/reg_parse_internal.o registry/reg_import.o \
1200 lib/cbuf.o lib/srprs.o
1202 # these are not processed by make proto
1203 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1205 NET_OBJ = $(NET_OBJ1) \
1206 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1207 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1208 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1209 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1210 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1211 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1212 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1213 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1214 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1215 $(REG_SMBCONF_OBJ) \
1216 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1217 $(LIBSMBCONF_OBJ) \
1218 $(REGFIO_OBJ) \
1219 $(PRIVILEGES_BASIC_OBJ) \
1220 $(LIB_EVENTLOG_OBJ)
1222 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1223 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1224 $(LIBNDR_GEN_OBJ0)
1226 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1227 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1229 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1230 torture/denytest.o torture/mangle_test.o \
1231 torture/nbench.o \
1232 torture/test_async_echo.o \
1233 torture/test_smbsock_any_connect.o \
1234 torture/test_notify_online.o \
1235 torture/test_addrchange.o \
1236 torture/test_case_insensitive.o \
1237 torture/test_posix_append.o
1239 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1240 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1241 @LIBWBCLIENT_STATIC@ \
1242 torture/wbc_async.o \
1243 ../nsswitch/wb_reqtrans.o \
1244 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1246 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1247 $(LIB_NONSMBD_OBJ) \
1248 $(LIBNDR_GEN_OBJ0)
1250 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1251 $(LIB_NONSMBD_OBJ) \
1252 $(LIBNDR_GEN_OBJ0)
1254 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1255 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1256 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1258 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1260 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1261 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1262 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1263 $(LIBNDR_GEN_OBJ0)
1265 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1267 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1269 LOG2PCAP_OBJ = utils/log2pcaphex.o
1271 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1272 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1273 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1275 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1276 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1277 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1278 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1279 $(LIBCLI_LSA_OBJ)
1281 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1282 $(PARAM_OBJ) \
1283 $(LIB_NONSMBD_OBJ) \
1284 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1285 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1286 $(LIBCLI_LSA_OBJ)
1288 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1290 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1291 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1292 librpc/gen_ndr/ndr_eventlog.o \
1293 librpc/gen_ndr/ndr_lsa.o
1295 SHARESEC_OBJ0 = utils/sharesec.o
1296 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1297 $(LIBSMB_ERR_OBJ) \
1298 $(POPT_LIB_OBJ)
1300 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1301 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1303 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1304 @libreplacedir@/test/getifaddrs.o \
1305 @libreplacedir@/test/os2_delete.o \
1306 @libreplacedir@/test/strptime.o \
1307 @libreplacedir@/test/main.o \
1308 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1310 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1312 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1313 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1314 $(LIBNDR_GEN_OBJ0)
1316 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1317 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1319 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1320 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1321 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1322 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1323 $(LIBTSOCKET_OBJ) $(PAM_ERRORS_OBJ)
1325 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1327 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1329 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1331 IDMAP_HASH_OBJ = \
1332 winbindd/idmap_hash/idmap_hash.o \
1333 winbindd/idmap_hash/mapfile.o
1335 IDMAP_ADEX_OBJ = \
1336 winbindd/idmap_adex/idmap_adex.o \
1337 winbindd/idmap_adex/cell_util.o \
1338 winbindd/idmap_adex/likewise_cell.o \
1339 winbindd/idmap_adex/provider_unified.o \
1340 winbindd/idmap_adex/gc_util.o \
1341 winbindd/idmap_adex/domain_util.o
1343 WINBINDD_OBJ1 = \
1344 winbindd/winbindd.o \
1345 winbindd/winbindd_group.o \
1346 winbindd/winbindd_util.o \
1347 winbindd/winbindd_cache.o \
1348 winbindd/winbindd_pam.o \
1349 winbindd/winbindd_misc.o \
1350 winbindd/winbindd_cm.o \
1351 winbindd/winbindd_wins.o \
1352 winbindd/winbindd_msrpc.o \
1353 winbindd/winbindd_rpc.o \
1354 winbindd/winbindd_reconnect.o \
1355 winbindd/winbindd_ads.o \
1356 winbindd/winbindd_samr.o \
1357 winbindd/winbindd_dual.o \
1358 winbindd/winbindd_dual_ndr.o \
1359 winbindd/winbindd_dual_srv.o \
1360 librpc/gen_ndr/ndr_wbint_c.o \
1361 librpc/gen_ndr/srv_wbint.o \
1362 librpc/gen_ndr/ndr_wbint.o \
1363 librpc/gen_ndr/ndr_idmap.o \
1364 winbindd/winbindd_async.o \
1365 winbindd/winbindd_creds.o \
1366 winbindd/winbindd_cred_cache.o \
1367 winbindd/winbindd_ccache_access.o \
1368 winbindd/winbindd_domain.o \
1369 winbindd/winbindd_idmap.o \
1370 winbindd/winbindd_locator.o \
1371 winbindd/winbindd_ndr.o \
1372 winbindd/wb_ping.o \
1373 winbindd/wb_lookupsid.o \
1374 winbindd/wb_lookupsids.o \
1375 winbindd/wb_lookupname.o \
1376 winbindd/wb_sid2uid.o \
1377 winbindd/wb_sid2gid.o \
1378 winbindd/wb_uid2sid.o \
1379 winbindd/wb_gid2sid.o \
1380 winbindd/wb_queryuser.o \
1381 winbindd/wb_lookupuseraliases.o \
1382 winbindd/wb_lookupusergroups.o \
1383 winbindd/wb_getpwsid.o \
1384 winbindd/wb_gettoken.o \
1385 winbindd/wb_seqnum.o \
1386 winbindd/wb_seqnums.o \
1387 winbindd/wb_group_members.o \
1388 winbindd/wb_getgrsid.o \
1389 winbindd/wb_query_user_list.o \
1390 winbindd/wb_fill_pwent.o \
1391 winbindd/wb_next_pwent.o \
1392 winbindd/wb_next_grent.o \
1393 winbindd/wb_dsgetdcname.o \
1394 winbindd/winbindd_lookupsid.o \
1395 winbindd/winbindd_lookupsids.o \
1396 winbindd/winbindd_lookupname.o \
1397 winbindd/winbindd_sid_to_uid.o \
1398 winbindd/winbindd_sid_to_gid.o \
1399 winbindd/winbindd_uid_to_sid.o \
1400 winbindd/winbindd_gid_to_sid.o \
1401 winbindd/winbindd_sids_to_xids.o \
1402 winbindd/winbindd_allocate_uid.o \
1403 winbindd/winbindd_allocate_gid.o \
1404 winbindd/winbindd_getpwsid.o \
1405 winbindd/winbindd_getpwnam.o \
1406 winbindd/winbindd_getpwuid.o \
1407 winbindd/winbindd_getsidaliases.o \
1408 winbindd/winbindd_getuserdomgroups.o \
1409 winbindd/winbindd_getgroups.o \
1410 winbindd/winbindd_show_sequence.o \
1411 winbindd/winbindd_getgrgid.o \
1412 winbindd/winbindd_getgrnam.o \
1413 winbindd/winbindd_getusersids.o \
1414 winbindd/winbindd_lookuprids.o \
1415 winbindd/winbindd_setpwent.o \
1416 winbindd/winbindd_getpwent.o \
1417 winbindd/winbindd_endpwent.o \
1418 winbindd/winbindd_setgrent.o \
1419 winbindd/winbindd_getgrent.o \
1420 winbindd/winbindd_endgrent.o \
1421 winbindd/winbindd_dsgetdcname.o \
1422 winbindd/winbindd_getdcname.o \
1423 winbindd/winbindd_list_users.o \
1424 winbindd/winbindd_list_groups.o \
1425 winbindd/winbindd_check_machine_acct.o \
1426 winbindd/winbindd_change_machine_acct.o \
1427 winbindd/winbindd_ping_dc.o \
1428 winbindd/winbindd_pam_auth.o \
1429 winbindd/winbindd_pam_auth_crap.o \
1430 winbindd/winbindd_pam_chauthtok.o \
1431 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1432 winbindd/winbindd_pam_logoff.o \
1433 auth/auth_util.o \
1434 auth/token_util.o \
1435 auth/user_util.o \
1436 auth/check_samsec.o \
1437 auth/server_info.o \
1438 auth/server_info_sam.o \
1439 auth/user_info.o \
1440 auth/pampass.o \
1441 ../nsswitch/wb_reqtrans.o
1443 WINBINDD_OBJ = \
1444 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1445 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1446 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1447 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1448 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1449 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1450 $(RPC_NCACN_NP) $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1451 $(NPA_TSTREAM_OBJ) \
1452 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1453 $(LIBADS_SERVER_OBJ) \
1454 $(TDB_VALIDATE_OBJ) \
1455 $(LIBCLI_DSSETUP_OBJ) \
1456 $(LIBCLI_LSA_OBJ) \
1457 $(LIBCLI_SAMR_OBJ) \
1458 $(LIBCLI_NETLOGON_OBJ) \
1459 rpc_client/init_netlogon.o \
1460 rpc_client/init_samr.o \
1461 $(PAM_ERRORS_OBJ)
1463 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1464 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1465 lib/winbind_util.o $(WBCOMMON_OBJ)
1467 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1469 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1470 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1472 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1473 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1475 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1476 ../lib/iniparser_build/strlib.o
1478 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1479 $(SOCKET_WRAPPER_OBJ)
1481 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1482 $(SOCKET_WRAPPER_OBJ)
1484 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1485 $(SOCKET_WRAPPER_OBJ)
1487 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1488 $(SOCKET_WRAPPER_OBJ)
1490 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1491 $(SOCKET_WRAPPER_OBJ)
1494 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1496 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1497 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o ../libcli/auth/krb5_wrap.o libads/kerberos.o \
1498 libsmb/samlogon_cache.o \
1499 $(LIBADS_SERVER_OBJ) \
1500 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1501 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1502 $(WBCOMMON_OBJ) \
1503 $(LIBCLI_LDAP_NDR_OBJ) \
1504 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1507 VLP_OBJ = printing/tests/vlp.o \
1508 ../lib/util/util_tdb.o \
1509 $(LIBSAMBAUTIL_OBJ) \
1510 param/util.o
1512 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1513 $(LIBSMB_OBJ) \
1514 $(PARAM_OBJ) \
1515 $(PASSDB_OBJ) \
1516 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1517 $(LIB_NONSMBD_OBJ) \
1518 $(KRBCLIENT_OBJ) \
1519 $(LIBMSRPC_OBJ) \
1520 $(LIBMSRPC_GEN_OBJ)
1522 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1523 $(PARAM_OBJ) \
1524 $(LIB_NONSMBD_OBJ) \
1525 $(LIBSMB_ERR_OBJ)
1527 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1528 $(PARAM_OBJ) \
1529 $(LIB_NONSMBD_OBJ) \
1530 $(LIBSMB_ERR_OBJ) \
1531 $(POPT_LIB_OBJ)
1533 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1534 $(PARAM_OBJ) \
1535 $(LIB_NONSMBD_OBJ) \
1536 $(POPT_LIB_OBJ) \
1537 $(LIBSAMBA_OBJ)
1539 ######################################################################
1540 # now the rules...
1541 ######################################################################
1542 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1543 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1544 $(EXTRA_ALL_TARGETS)
1546 basics:: samba3-idl
1548 nss_modules:: $(NSS_MODULES)
1550 pam_modules:: $(PAM_MODULES)
1552 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1554 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1556 gpext_modules:: $(GPEXT_MODULES)
1558 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1560 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1562 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1564 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1566 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1568 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1570 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1572 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1574 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1576 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1578 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1580 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1582 talloctort : SHOWFLAGS $(TALLOCTORT)
1584 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1586 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1588 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest@EXEEXT@
1590 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1592 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1593 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1594 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1596 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1598 modules:: SHOWFLAGS $(MODULES)
1601 #####################################################################
1602 ## Perl IDL Compiler
1604 IDL_FILES = librpc/idl/messaging.idl \
1605 librpc/idl/libnetapi.idl \
1606 librpc/idl/notify.idl \
1607 librpc/idl/wbint.idl \
1608 librpc/idl/perfcount.idl \
1609 librpc/idl/secrets.idl \
1610 librpc/idl/libnet_join.idl \
1611 librpc/idl/server_id.idl
1613 samba3-idl::
1614 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1615 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1616 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1617 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1619 idl_full::
1620 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1621 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1622 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1623 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1625 #####################################################################
1628 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1629 $(EVERYTHING_PROGS)
1631 .SUFFIXES:
1632 .SUFFIXES: .c .o .lo
1634 .PHONY: showflags SHOWFLAGS
1636 showflags: SHOWFLAGS
1638 SHOWFLAGS::
1639 @echo "Using CFLAGS = $(CFLAGS)"
1640 @echo " PICFLAG = $(PICFLAG)"
1641 @echo " LIBS = $(LIBS)"
1642 @echo " LDFLAGS = $(LDFLAGS)"
1643 @echo " DYNEXP = $(DYNEXP)"
1644 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1645 @echo " SHLIBEXT = @SHLIBEXT@"
1646 @echo " SONAMEFLAG = @SONAMEFLAG@"
1648 # "showcflags" target for debuggin how CFLAGS are composed:
1650 .PHONY: showcflags SHOWCFLAGS
1652 showcflags: SHOWCFLAGS
1654 SHOWCFLAGS::
1655 @echo "CFLAGS = $(CFLAGS)"
1656 @echo "FLAGS = $(FLAGS)"
1657 @echo ""
1658 @echo "FLAGS1 = @FLAGS1@"
1659 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1660 @echo "CPPFLAGS = $(CPPFLAGS)"
1661 @echo "ISA = $(ISA)"
1663 MAKEDIR = || exec false; \
1664 if test -d "$$dir"; then :; else \
1665 echo mkdir "$$dir"; \
1666 mkdir -p "$$dir" >/dev/null 2>&1 || \
1667 test -d "$$dir" || \
1668 mkdir "$$dir" || \
1669 exec false; fi || exec false
1671 # Run a static checker.
1672 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1673 # Compile a source file.
1674 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1675 # Compile a source file with the installation paths defined.
1676 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1678 COMPILE = $(COMPILE_CC)
1680 .c.o:
1681 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1682 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1683 @if test -n "$(CC_CHECKER)"; then \
1684 echo "Checking $*.c with '$(CC_CHECKER)'";\
1685 $(CHECK_CC); \
1687 @echo Compiling $*.c
1688 @$(COMPILE) && exit 0;\
1689 echo "The following command failed:" 1>&2;\
1690 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1691 $(COMPILE_CC) >/dev/null 2>&1
1692 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1694 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1696 # this adds support for precompiled headers. To use it, install a snapshot
1697 # of gcc-3.4 and run 'make pch' before you do the main build.
1698 pch::
1699 rm -f $(PRECOMPILED_HEADER)
1700 $(MAKE) $(PRECOMPILED_HEADER)
1702 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1703 $(COMPILE)
1705 BINARY_PREREQS = bin/.dummy
1707 # These dependencies are only approximately correct: we want to make
1708 # sure Samba's paths are updated if ./configure is re-run. Really it
1709 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1710 # but since we also require "make install prefix=/opt/samba" *not* to
1711 # rebuild it's a bit hard.
1713 ../dynconfig/dynconfig.o: ../dynconfig/dynconfig.c Makefile
1714 @echo Compiling $*.c
1715 @$(COMPILE_CC_PATH) && exit 0;\
1716 echo "The following command failed:" 1>&2;\
1717 echo "$(COMPILE_CC_PATH)" 1>&2;\
1718 $(COMPILE_CC_PATH) >/dev/null 2>&1
1720 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1721 @echo Compiling $*.c
1722 @$(COMPILE_CC_PATH) && exit 0;\
1723 echo "The following command failed:" 1>&2;\
1724 echo "$(COMPILE_CC_PATH)" 1>&2;\
1725 $(COMPILE_CC_PATH) >/dev/null 2>&1
1727 ### Start section of object files that require PTHREAD_CFLAGS
1728 ../nsswitch/wins.o: ../nsswitch/wins.c
1729 @echo Compiling $*.c
1730 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1731 echo "The following command failed:" 1>&2;\
1732 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1733 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1735 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1736 @echo Compiling $*.c
1737 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1738 echo "The following command failed:" 1>&2;\
1739 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1740 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1742 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1743 @echo Compiling $*.c
1744 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1745 echo "The following command failed:" 1>&2;\
1746 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1747 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1749 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1750 @echo Compiling $*.c
1751 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1752 echo "The following command failed:" 1>&2;\
1753 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1754 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1755 ### End section of object files that require PTHREAD_CFLAGS
1757 lib/pidfile.o: lib/pidfile.c
1758 @echo Compiling $*.c
1759 @$(COMPILE_CC_PATH) && exit 0;\
1760 echo "The following command failed:" 1>&2;\
1761 echo "$(COMPILE_CC_PATH)" 1>&2;\
1762 $(COMPILE_CC_PATH) >/dev/null 2>&1
1764 lib/version.o: lib/version.c include/version.h
1765 @echo Compiling $*.c
1766 @$(COMPILE_CC_PATH) && exit 0;\
1767 echo "The following command failed:" 1>&2;\
1768 echo "$(COMPILE_CC_PATH)" 1>&2;\
1769 $(COMPILE_CC_PATH) >/dev/null 2>&1
1771 smbd/build_options.o: smbd/build_options.c Makefile include/autoconf/config.h include/build_env.h include/proto.h
1772 @echo Compiling $*.c
1773 @$(COMPILE_CC_PATH) && exit 0;\
1774 echo "The following command failed:" 1>&2;\
1775 echo "$(COMPILE_CC_PATH)" 1>&2;\
1776 $(COMPILE_CC_PATH) >/dev/null 2>&1
1778 smbd/build_options.c: include/autoconf/config.h.in script/mkbuildoptions.awk
1779 @echo Generating $@
1780 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/autoconf/config.h.in
1782 bin/.dummy:
1783 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1784 dir=bin $(MAKEDIR); fi
1785 @: >> $@ || : > $@ # what a fancy emoticon!
1787 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1788 @echo Linking $@
1789 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1790 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1791 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1792 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1793 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1795 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1796 @echo Linking $@
1797 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1798 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1799 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1800 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1802 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1803 @echo Linking $@
1804 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1805 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1806 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1808 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1809 @echo Linking $@
1810 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1811 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1812 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1813 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1815 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1816 @echo Linking $@
1817 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1818 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1819 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1820 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1822 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1823 @echo Linking $@
1824 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1825 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1826 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1827 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1828 $(ZLIB_LIBS)
1830 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1831 @echo Linking $@
1832 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1833 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1835 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1836 @echo Linking $@
1837 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1838 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1839 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1841 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1842 @echo Linking $@
1843 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1844 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1846 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1847 @echo Linking $@
1848 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1849 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1851 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1852 @echo Linking $@
1853 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1854 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1856 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1857 @echo Linking $@
1858 @$(CC) -DUSING_SMBCONTROL -o $@ \
1859 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1860 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1861 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1863 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1864 @echo Linking $@
1865 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1866 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1867 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1869 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1870 @echo Linking $@
1871 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1872 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1873 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1875 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1876 @echo Linking $@
1877 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1878 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1879 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1881 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1882 @echo Linking $@
1883 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1884 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1885 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1887 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1888 @echo Linking $@
1889 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1890 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1892 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1893 @echo Linking $@
1894 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1895 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1896 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1898 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1899 @echo Linking $@
1900 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1901 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1902 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1904 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1905 @echo Linking $@
1906 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1907 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1909 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1910 @echo Linking $@
1911 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1912 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1913 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1915 bin/pthreadpooltest@EXEEXT@: $(PTHREADPOOLTEST_OBJ)
1916 @echo Linking $@
1917 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) -lpthread
1919 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1920 @echo Linking $@
1921 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1922 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1923 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1924 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1926 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1927 @echo Linking $@
1928 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1929 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1930 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1932 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1933 @echo Linking $@
1934 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1935 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1936 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1938 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1939 @echo Linking $@
1940 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1941 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1942 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1944 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1945 @echo Linking $@
1946 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1947 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1949 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1950 @echo Linking $@
1951 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1952 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1954 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1955 @echo Linking $@
1956 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1957 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1958 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1959 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1961 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1962 @echo Linking $@
1963 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1965 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1966 @echo Linking $@
1967 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1968 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1969 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1971 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1972 @echo Linking $@
1973 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1974 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1975 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1976 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1977 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1979 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1980 @echo Linking $@
1981 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1982 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1983 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1985 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1986 @echo Linking $@
1987 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1988 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1990 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1991 @echo Linking $@
1992 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1993 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1994 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1995 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1997 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1998 @echo Linking $@
1999 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
2000 $(LIBS) $(LIBTALLOC_LIBS)
2002 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2003 @echo Linking $@
2004 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2005 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
2006 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
2007 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2009 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2010 @echo Linking $@
2011 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2014 #####################################################################
2016 # libraries
2018 #####################################################################
2020 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2023 #-------------------------------------------------------------------
2025 # libtalloc
2027 #-------------------------------------------------------------------
2030 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2031 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2033 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2034 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2035 LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@
2036 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
2037 LIBTALLOC_SHARED_TARGET_FULLVER=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_FULLVER)
2038 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2039 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2040 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2042 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2043 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2045 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2046 @echo Linking shared library $@
2047 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2049 $(LIBTALLOC_SHARED_TARGET_FULLVER): $(LIBTALLOC_SHARED_TARGET_SONAME)
2050 @rm -f $@
2051 @mv -f $(LIBTALLOC_SHARED_TARGET_SONAME) $@
2052 @ln -f -s `basename $@` $(LIBTALLOC_SHARED_TARGET_SONAME)
2054 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_FULLVER)
2055 @rm -f $@
2056 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2058 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2059 @echo Linking non-shared library $@
2060 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2061 libtalloc: $(LIBTALLOC)
2063 cleanlibtalloc::
2064 -rm -f \
2065 $(LIBTALLOC_SYMS) \
2066 $(LIBTALLOC_STATIC_TARGET) \
2067 $(LIBTALLOC_SHARED_TARGET) \
2068 $(LIBTALLOC_SHARED_TARGET_SONAME)
2070 installlibtalloc:: installdirs libtalloc
2071 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2072 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2073 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2074 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2075 -if test -r $(LIBTALLOC_SHARED_TARGET_FULLVER) ; then \
2076 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_FULLVER)` \
2077 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)` ; \
2079 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2080 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2081 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2083 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2084 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2085 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2087 uninstalllibtalloc::
2088 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2089 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2090 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2091 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2093 libs:: libtalloc
2094 installlibs:: @INSTALL_LIBTALLOC@
2095 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2096 cleanlibs:: cleanlibtalloc
2097 shlibs test_shlibs: @LIBTALLOC_SHARED@
2099 showlibtalloc:
2100 @echo ""
2101 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2102 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2103 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2104 @echo ""
2105 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2106 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2107 @echo "LIBTALLOC_FULLVER = $(LIBTALLOC_FULLVER)"
2108 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2109 @echo "LIBTALLOC_SHARED TARGET_FULLVER = $(LIBTALLOC_SHARED_TARGET_FULLVER)"
2110 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2111 @echo "LIBTALLOC = $(LIBTALLOC)"
2113 showlibs:: showlibtalloc
2115 #-------------------------------------------------------------------
2117 # libtdb
2119 #-------------------------------------------------------------------
2121 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2122 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2124 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2125 LIBTDB_SOVER=@LIBTDB_SOVER@
2126 LIBTDB_FULLVER=@LIBTDB_FULLVER@
2127 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
2128 LIBTDB_SHARED_TARGET_FULLVER=$(LIBTDB_SHARED_TARGET).$(LIBTDB_FULLVER)
2129 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2130 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2131 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2133 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2134 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2137 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2138 @echo Linking shared library $@
2139 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2140 @SONAMEFLAG@`basename $@`
2142 $(LIBTDB_SHARED_TARGET_FULLVER): $(LIBTDB_SHARED_TARGET_SONAME)
2143 @rm -f $@
2144 @mv -f $(LIBTDB_SHARED_TARGET_SONAME) $(LIBTDB_SHARED_TARGET_FULLVER)
2145 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` $(LIBTDB_SHARED_TARGET_SONAME)
2147 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_FULLVER)
2148 @rm -f $@
2149 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2151 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2152 @echo Linking non-shared library $@
2153 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2155 libtdb: $(LIBTDB)
2157 cleanlibtdb::
2158 -rm -f \
2159 $(LIBTDB_SYMS) \
2160 $(LIBTDB_STATIC_TARGET) \
2161 $(LIBTDB_SHARED_TARGET) \
2162 $(LIBTDB_SHARED_TARGET_SONAME)
2165 installlibtdb:: installdirs libtdb
2166 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2167 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_FULLVER) $(DESTDIR)$(LIBDIR)
2168 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2169 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2170 -if test -r $(LIBTDB_SHARED_TARGET_FULLVER) ; then \
2171 ln -f -s `basename $(LIBTDB_SHARED_TARGET_FULLVER)` \
2172 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)` ; \
2174 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2175 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2176 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2178 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2179 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2180 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2182 uninstalllibtdb::
2183 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2184 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2185 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2186 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2188 libs:: libtdb
2189 installlibs:: @INSTALL_LIBTDB@
2190 uninstalllibs:: @UNINSTALL_LIBTDB@
2191 cleanlibs:: cleanlibtdb
2192 shlibs test_shlibs: @LIBTDB_SHARED@
2194 showlibtdb:
2195 @echo ""
2196 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2197 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2198 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2199 @echo ""
2200 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2201 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2202 @echo "LIBTDB_FULLVER = $(LIBTDB_FULLVER)"
2203 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2204 @echo "LIBTDB_SHARED TARGET_FULLVER = $(LIBTDB_SHARED_TARGET_FULLVER)"
2205 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2206 @echo "LIBTDB = $(LIBTDB)"
2208 showlibs:: showlibtdb
2210 #-------------------------------------------------------------------
2212 # libwbclient
2214 #-------------------------------------------------------------------
2216 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2217 ../nsswitch/libwbclient/wbc_util.o \
2218 ../nsswitch/libwbclient/wbc_pwd.o \
2219 ../nsswitch/libwbclient/wbc_idmap.o \
2220 ../nsswitch/libwbclient/wbc_sid.o \
2221 ../nsswitch/libwbclient/wbc_guid.o \
2222 ../nsswitch/libwbclient/wbc_pam.o
2224 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2225 $(WBCOMMON_OBJ) \
2226 $(LIBREPLACE_OBJ) \
2227 ../lib/util/blocking.o \
2228 $(SOCKET_WRAPPER_OBJ)
2230 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2231 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2232 LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
2233 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
2234 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2235 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2236 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2238 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2239 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2241 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2242 @echo Linking shared library $@
2243 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2244 @SONAMEFLAG@`basename $@`
2246 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2247 @rm -f $@
2248 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2250 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2251 @echo Linking non-shared library $@
2252 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2254 libwbclient: $(LIBWBCLIENT)
2256 cleanlibwbclient::
2257 -rm -f \
2258 $(LIBWBCLIENT_SYMS) \
2259 $(LIBWBCLIENT_STATIC_TARGET) \
2260 $(LIBWBCLIENT_SHARED_TARGET) \
2261 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2263 installlibwbclient:: installdirs libwbclient
2264 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2265 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2266 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2267 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2268 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2269 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2271 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2272 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2273 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2275 uninstalllibwbclient::
2276 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2277 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2278 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2279 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2281 libs:: libwbclient
2282 installlibs:: @INSTALL_LIBWBCLIENT@
2283 uninstalllibs:: uninstalllibwbclient
2284 cleanlibs:: cleanlibwbclient
2285 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2287 showlibwbclient:
2288 @echo ""
2289 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2290 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2291 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2292 @echo ""
2293 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2294 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2295 @echo "LIBWBCLIENT_FULLVER = $(LIBWBCLIENT_FULLVER)"
2296 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2297 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2298 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2300 showlibs:: showlibwbclient
2303 #-------------------------------------------------------------------
2305 # libaddns
2307 #-------------------------------------------------------------------
2310 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2311 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2312 LIBADDNS_FULLVER=@LIBADDNS_FULLVER@
2313 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2314 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2315 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2316 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2317 LIBADDNS_HEADERS=$(srcdir)/../lib/addns/addns.h
2319 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2320 @echo Linking shared library $@
2321 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2322 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2323 @SONAMEFLAG@`basename $@`
2325 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2326 @rm -f $@
2327 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2329 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2330 @echo Linking non-shared library $@
2331 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2333 libaddns: $(LIBADDNS)
2335 cleanlibaddns::
2336 -rm -f \
2337 $(LIBADDNS_SHARED_TARGET) \
2338 $(LIBADDNS_SHARED_TARGET_SONAME) \
2339 $(LIBADDNS_STATIC_TARGET)
2341 installlibaddns:: installdirs libaddns
2342 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2343 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2344 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2345 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2346 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2347 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2349 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2351 uninstalllibaddns::
2352 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2353 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2354 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2356 libs:: libaddns
2357 installlibs:: @INSTALL_LIBADDNS@
2358 uninstalllibs:: @UNINSTALL_LIBADDNS@
2359 cleanlibs:: cleanlibaddns
2360 shlibs test_shlibs: @LIBADDNS_SHARED@
2362 showlibaddns:
2363 @echo ""
2364 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2365 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2366 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2367 @echo ""
2368 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2369 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2370 @echo "LIBADDNS_FULLVER = $(LIBADDNS_FULLVER)"
2371 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2372 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2373 @echo "LIBADDNS = $(LIBADDNS)"
2375 showlibs:: showlibaddns
2377 #-------------------------------------------------------------------
2379 # libnetapi
2381 #-------------------------------------------------------------------
2383 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2384 lib/netapi/cm.o \
2385 librpc/gen_ndr/ndr_libnetapi.o \
2386 lib/netapi/libnetapi.o \
2387 lib/netapi/joindomain.o \
2388 lib/netapi/serverinfo.o \
2389 lib/netapi/getdc.o \
2390 lib/netapi/user.o \
2391 lib/netapi/group.o \
2392 lib/netapi/localgroup.o \
2393 lib/netapi/samr.o \
2394 lib/netapi/sid.o \
2395 lib/netapi/share.o \
2396 lib/netapi/file.o \
2397 lib/netapi/shutdown.o \
2398 lib/netapi/netlogon.o
2400 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2401 $(LIBSMBCONF_OBJ) \
2402 $(REG_SMBCONF_OBJ) \
2403 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2404 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2405 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2406 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2407 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2408 auth/token_util.o \
2409 $(LIBCLI_INITSHUTDOWN_OBJ) \
2410 $(LIBCLI_WKSSVC_OBJ) \
2411 $(LIBCLI_SRVSVC_OBJ) \
2412 $(LIBCLI_LSA_OBJ) \
2413 $(LIBCLI_SAMR_OBJ) \
2414 $(LIBCLI_NETLOGON_OBJ) \
2415 $(RPC_CLIENT_SCHANNEL_OBJ) \
2416 rpc_client/init_netlogon.o \
2417 rpc_client/init_samr.o
2419 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2420 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2421 LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
2422 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2423 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2424 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2425 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2427 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2428 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2430 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2431 @echo Linking shared library $@
2432 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2433 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2434 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2435 @SONAMEFLAG@`basename $@`
2437 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2438 @rm -f $@
2439 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2441 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2442 @echo Linking non-shared library $@
2443 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2445 libnetapi: $(LIBNETAPI)
2447 cleanlibnetapi::
2448 -rm -f \
2449 $(LIBNETAPI_SYMS) \
2450 $(LIBNETAPI_STATIC_TARGET) \
2451 $(LIBNETAPI_SHARED_TARGET) \
2452 $(LIBNETAPI_SHARED_TARGET_SONAME)
2454 installlibnetapi:: installdirs libnetapi
2455 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2456 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2457 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2458 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2459 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2460 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2462 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2463 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2464 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2466 uninstalllibnetapi::
2467 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2468 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2469 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2470 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2472 libs:: libnetapi
2473 installlibs:: @INSTALL_LIBNETAPI@
2474 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2475 cleanlibs:: cleanlibnetapi
2476 shlibs test_shlibs: @LIBNETAPI_SHARED@
2478 showlibnetapi:
2479 @echo ""
2480 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2481 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2482 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2483 @echo ""
2484 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2485 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2486 @echo "LIBNETAPI_FULLVER = $(LIBNETAPI_FULLVER)"
2487 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2488 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2489 @echo "LIBNETAPI = $(LIBNETAPI)"
2491 showlibs:: showlibnetapi
2493 #-------------------------------------------------------------------
2495 # libsmbclient
2497 #-------------------------------------------------------------------
2499 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2500 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2501 LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
2502 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2503 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2504 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2505 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2506 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2508 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2509 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2511 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2512 @echo Linking shared library $@
2513 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2514 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2515 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2516 @SONAMEFLAG@`basename $@`
2518 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2519 @rm -f $@
2520 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2522 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2523 @echo Linking non-shared library $@
2524 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2526 libsmbclient: $(LIBSMBCLIENT)
2528 cleanlibsmbclient::
2529 -rm -f \
2530 $(LIBSMBCLIENT_SHARED_TARGET) \
2531 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2532 $(LIBSMBCLIENT_STATIC_TARGET)
2534 installlibsmbclient:: installdirs libsmbclient
2535 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2536 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2537 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2538 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2539 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2540 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2542 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2543 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2544 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2546 installclientlib:: installlibsmbclient
2548 uninstalllibsmbclient::
2549 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2550 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2551 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2552 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2554 uninstallclientlib:: uninstalllibsmbclient
2556 libs:: libsmbclient
2557 installlibs:: @INSTALL_LIBSMBCLIENT@
2558 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2559 cleanlibs:: cleanlibsmbclient
2560 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2562 showlibsmbclient:
2563 @echo ""
2564 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2565 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2566 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2567 @echo ""
2568 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2569 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2570 @echo "LIBSMBCLIENT_FULLVER = $(LIBSMBCLIENT_FULLVER)"
2571 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2572 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2573 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2575 showlibs:: showlibsmbclient
2577 #-------------------------------------------------------------------
2579 # libsmbsharemodes
2581 #-------------------------------------------------------------------
2583 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2585 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2587 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2588 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2589 LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
2590 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2591 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2592 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2593 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2594 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2596 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2597 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2599 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2600 @echo Linking shared library $@
2601 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2602 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2603 @SONAMEFLAG@`basename $@`
2605 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2606 @rm -f $@
2607 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2609 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2610 @echo Linking non-shared library $@
2611 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2613 libsmbsharemodes: $(LIBSMBSHAREMODES)
2615 cleanlibsmbsharemodes::
2616 -rm -f \
2617 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2618 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2619 $(LIBSMBSHAREMODES_STATIC_TARGET)
2621 installlibsmbsharemodes:: installdirs libsmbsharemodes
2622 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2623 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2624 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2625 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2626 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2627 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2629 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2630 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2631 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2633 uninstalllibsmbsharemodes::
2634 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2635 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2636 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2637 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2639 libs:: libsmbsharemodes
2640 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2641 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2642 cleanlibs:: cleanlibsmbsharemodes
2643 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2645 showlibsmbsharemodes:
2646 @echo ""
2647 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2648 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2649 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2650 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2651 @echo ""
2652 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2653 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2654 @echo "LIBSMBSHAREMODES_FULLVER = $(LIBSMBSHAREMODES_FULLVER)"
2655 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2656 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2657 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2659 showlibs:: showlibsmbsharemodes
2661 #-------------------------------------------------------------------
2663 # libbigballofmud
2665 #-------------------------------------------------------------------
2667 # This is probably wrong for anything other than the GNU linker.
2668 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2669 @echo Linking shared library $@
2670 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2671 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2672 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2673 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2674 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2676 # It would be nice to build a static bigballofmud too, but when I try
2677 # I get linker errors about dl_open and similar things. I'm not sure if
2678 # it can be fixed or if they just can't be called from a static
2679 # library.
2681 #####################################################################
2683 # shared modules
2685 #####################################################################
2687 # Linker command to link our shared libraries:
2688 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2689 -o $@ @SONAMEFLAG@`basename $@`
2690 # Linker command to link samba internal plugin modules:
2691 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2692 -o $@ @SONAMEFLAG@`basename $@`
2694 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2695 @echo "Linking $@"
2696 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2698 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2699 @echo "Linking $@"
2700 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2702 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2703 @echo "Linking $@"
2704 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2706 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2707 @echo "Linking $@"
2708 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2710 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2711 @echo "Linking $@"
2712 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2714 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2715 @echo "Linking $@"
2716 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2718 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2719 @echo "Linking $@"
2720 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2722 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2723 @echo "Linking $@"
2724 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2726 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2727 @echo "Linking $@"
2728 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2730 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2731 @echo "Linking $@"
2732 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2734 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2735 @echo "Linking $@"
2736 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2738 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2739 @echo "Linking $@"
2740 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2742 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2743 @echo "Linking $@"
2744 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2746 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2747 @echo "Linking $@"
2748 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2750 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2751 @echo "Linking $@"
2752 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2753 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2754 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2755 $(ZLIB_LIBS)
2757 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2758 @echo "Linking $@"
2759 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2760 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2761 $(LIBTDB_LIBS)
2763 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2764 @echo "Linking $@"
2765 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2766 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2767 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2769 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2770 @echo "Linking $@"
2771 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2772 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2773 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2775 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2776 @echo "Linking $@"
2777 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2778 @SONAMEFLAG@`basename $@`
2780 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2781 @echo "Linking shared library $@"
2782 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2783 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2785 ##########
2786 # Plugins:
2787 ##########
2789 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2790 @echo "Building plugin $@"
2791 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2793 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2794 @echo "Building plugin $@"
2795 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2797 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2798 @echo "Building plugin $@"
2799 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2801 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2802 @echo "Building plugin $@"
2803 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2805 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2806 @echo "Building plugin $@"
2807 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2809 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2810 @echo "Building plugin $@"
2811 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2813 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2814 @echo "Building plugin $@"
2815 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2817 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2818 @echo "Building plugin $@"
2819 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2821 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2822 @echo "Building plugin $@"
2823 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2825 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2826 passdb/pdb_ipa.o
2827 @echo "Building plugin $@"
2828 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2829 $(LDAP_LIBS)
2831 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2832 @echo "Building plugin $@"
2833 @$(SHLD_MODULE) passdb/pdb_ads.o
2835 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2836 @echo "Building plugin $@"
2837 @$(SHLD_MODULE) passdb/pdb_tdb.o
2839 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2840 @echo "Building plugin $@"
2841 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2843 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2844 @echo "Building plugin $@"
2845 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2847 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2848 @echo "Building plugin $@"
2849 @$(SHLD_MODULE) winbindd/idmap_rid.o
2851 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2852 @echo "Building plugin $@"
2853 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2855 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2856 @echo "Building plugin $@"
2857 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2859 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2860 @echo "Building plugin $@"
2861 @$(SHLD_MODULE) winbindd/idmap_ad.o
2863 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2864 @echo "Building plugin $@"
2865 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2867 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2868 @echo "Building plugin $@"
2869 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2871 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2872 @echo "Building plugin $@"
2873 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2875 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2876 @echo "Building plugin $@"
2877 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2879 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2880 @echo "Building plugin $@"
2881 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2883 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2884 @echo "Building plugin $@"
2885 @$(SHLD_MODULE) $(CP850_OBJ)
2887 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2888 @echo "Building plugin $@"
2889 @$(SHLD_MODULE) $(CP437_OBJ)
2891 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2892 @echo "Building plugin $@"
2893 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2895 # NOTE, there is no build rule for a dynamic default VFS module because
2896 # this one MUST MUST MUST be built statically.
2898 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2899 @echo "Building plugin $@"
2900 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2902 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2903 @echo "Building plugin $@"
2904 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2906 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2907 @echo "Building plugin $@"
2908 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2910 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2911 @echo "Building plugin $@"
2912 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2914 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2915 @echo "Building plugin $@"
2916 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2918 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2919 @echo "Building plugin $@"
2920 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2922 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2923 @echo "Building plugin $@"
2924 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2926 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2927 @echo "Building plugin $@"
2928 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2930 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2931 @echo "Building plugin $@"
2932 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2934 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2935 @echo "Building plugin $@"
2936 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2938 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2939 @echo "Building plugin $@"
2940 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2942 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2943 @echo "Building plugin $@"
2944 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2946 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2947 @echo "Building plugin $@"
2948 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2950 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2951 @echo "Building plugin $@"
2952 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2954 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2955 @echo "Building plugin $@"
2956 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2958 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2959 @echo "Building plugin $@"
2960 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2962 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2963 @echo "Building plugin $@"
2964 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2966 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2967 @echo "Building plugin $@"
2968 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2970 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2971 @echo "Building plugin $@"
2972 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2974 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2975 @echo "Building plugin $@"
2976 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
2978 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2979 @echo "Building plugin $@"
2980 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2982 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2983 @echo "Building plugin $@"
2984 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2986 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2987 @echo "Building plugin $@"
2988 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2990 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2991 @echo "Building plugin $@"
2992 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2994 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2995 @echo "Building plugin $@"
2996 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2998 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2999 @echo "Building plugin $@"
3000 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
3002 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
3003 @echo "Building plugin $@"
3004 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
3006 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
3007 @echo "Building plugin $@"
3008 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
3010 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
3011 @echo "Building plugin $@"
3012 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
3014 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
3015 @echo "Building plugin $@"
3016 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
3018 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3019 @echo "Building plugin $@"
3020 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
3022 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
3023 @echo "Building plugin $@"
3024 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
3026 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
3027 @echo "Building plugin $@"
3028 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
3030 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
3031 @echo "Building plugin $@"
3032 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
3034 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
3035 @echo "Building plugin $@"
3036 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
3038 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
3039 @echo "Building plugin $@"
3040 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
3042 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
3043 @echo "Building plugin $@"
3044 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
3046 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3047 @echo "Building plugin $@"
3048 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3050 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3051 @echo "Building plugin $@"
3052 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3054 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3055 @echo "Building plugin $@"
3056 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3058 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3059 @echo "Building plugin $@"
3060 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3062 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3063 @echo "Building plugin $@"
3064 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3066 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3067 @echo "Building plugin $@"
3068 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3070 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3071 @echo "Building plugin $@"
3072 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3074 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3075 @echo "Building plugin $@"
3076 @$(SHLD_MODULE) libgpo/gpext/registry.o
3078 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3079 @echo "Building plugin $@"
3080 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3082 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3083 @echo "Building plugin $@"
3084 @$(SHLD_MODULE) libgpo/gpext/security.o
3086 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3087 @echo "Building plugin $@"
3088 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3090 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3091 @echo "Building plugin $@"
3092 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3094 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3095 @echo "Building plugin $@"
3096 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3098 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3099 @echo "Building plugin $@"
3100 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3102 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3103 @echo "Building plugin $@"
3104 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3106 #########################################################
3107 ## IdMap NSS plugins
3109 ## None here right now
3110 #########################################################
3112 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3113 @echo Linking $@
3114 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3115 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3116 $(LIBWBCLIENT_LIBS)
3118 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3119 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3120 @echo Linking $@
3121 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3122 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
3123 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3124 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3126 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3127 @echo "Linking shared library $@"
3128 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3129 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3130 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3132 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3133 @echo Linking $@
3134 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3135 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3137 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3138 @echo Linking $@
3139 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3140 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3142 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3143 @echo Linking $@
3144 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3146 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3147 @echo Linking $@
3148 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3150 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3151 @echo Linking $@
3152 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3153 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3155 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3156 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3157 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3159 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3160 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3161 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3163 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3164 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3165 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3167 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3168 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3169 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3171 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3172 @echo Linking $@
3173 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3175 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3176 @echo "Linking $@"
3177 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3178 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3179 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3181 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3182 @echo "Linking $@"
3183 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3184 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3185 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3186 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3188 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3189 @echo "Linking $@"
3190 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3191 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3192 $(LDAP_LIBS) \
3193 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3195 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3196 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3198 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3199 @echo "Linking $@"
3200 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3201 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3202 $(LDAP_LIBS) \
3203 $(POPT_LIBS) \
3204 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3206 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3207 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3209 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3210 @echo "Linking $@"
3211 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3212 $(LDFLAGS) $(DYNEXP) \
3213 $(LIBS) $(POPT_LIBS) \
3214 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3215 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3217 install:: installservers installbin installman \
3218 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3219 @INSTALL_PAM_MODULES@ installlibs installmo
3221 install-everything:: install installmodules
3223 # DESTDIR is used here to prevent packagers wasting their time
3224 # duplicating the Makefile. Remove it and you will have the privelege
3225 # of package each samba release for muliple versions of multiple
3226 # distributions and operating systems, or at least supplying patches
3227 # to all the packaging files required for this, prior to committing
3228 # the removal of DESTDIR. Do not remove it even though you think it
3229 # is not used
3231 installdirs::
3232 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3233 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3234 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3235 $(NMBDSOCKETDIR) \
3236 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3238 installservers:: all installdirs
3239 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3241 installbin:: all installdirs
3242 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3244 # Some symlinks are required for the 'probing' of modules.
3245 # This mechanism should go at some point..
3246 installmodules:: modules installdirs
3247 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3248 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3249 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3250 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3251 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3252 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3253 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3254 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3255 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3256 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3257 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3258 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3259 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3260 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3261 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3262 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3263 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3264 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3266 installscripts:: installdirs
3267 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3269 installdat:: installdirs
3270 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3272 installmsg:: installdirs
3273 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3275 installswat:: installdirs installmsg
3276 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3278 installpammodules:: $(PAM_MODULES)
3279 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3280 @for module in $(PAM_MODULES); do \
3281 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3282 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3283 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3284 done
3286 # revert to the previously installed version
3287 revert::
3288 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3289 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3291 installman:: installdirs
3292 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3294 installmo:: all installdirs
3295 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3297 .PHONY: showlayout
3299 showlayout::
3300 @echo "Samba will be installed into:"
3301 @echo " prefix: $(prefix)"
3302 @echo " bindir: $(BINDIR)"
3303 @echo " sbindir: $(SBINDIR)"
3304 @echo " libdir: $(LIBDIR)"
3305 @echo " modulesdir: $(MODULESDIR)"
3306 @echo " vardir: $(VARDIR)"
3307 @echo " mandir: $(MANDIR)"
3308 @echo " privatedir: $(PRIVATE_DIR)"
3309 @echo " configdir: $(CONFIGDIR)"
3310 @echo " lockdir: $(LOCKDIR)"
3311 @echo " statedir: $(STATEDIR)"
3312 @echo " cachedir: $(CACHEDIR)"
3313 @echo " piddir: $(PIDDIR)"
3314 @echo " nmbdsocketdir: $(NMBSOCKETDIR)"
3315 @echo " swatdir: $(SWATDIR)"
3316 @echo " datadir: ${DATADIR}"
3317 @echo " codepagedir: $(CODEPAGEDIR)"
3320 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3322 uninstallmo::
3323 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3325 uninstallman::
3326 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3328 uninstallservers::
3329 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3331 uninstallbin::
3332 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3334 uninstallmodules::
3335 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3336 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3337 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3338 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3339 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3340 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3341 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3343 uninstallscripts::
3344 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3346 uninstalldat::
3347 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3349 uninstallmsg::
3350 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3352 uninstallswat:: uninstallmsg
3353 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3355 uninstallpammodules::
3356 @for module in $(PAM_MODULES); do \
3357 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3358 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3359 done
3361 cleanlibs::
3362 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3363 ../lib/*/*.ho \
3364 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3365 ../librpc/*/*.o \
3366 ../libgpo/*.o ../libgpo/*/*.o \
3367 ../libds/*.o ../libds/*/*.o ../dynconfig/*.o
3369 clean:: cleanlibs
3370 -rm -f include/build_env.h
3371 -rm -f smbd/build_options.c
3372 -rm -f $(PRECOMPILED_HEADER)
3373 -rm -f core */*~ *~ \
3374 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3375 ../testsuite/*/*.o \
3376 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3377 ../client/*.o \
3378 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3379 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3380 $(MODULES) $(TORTURE_PROGS) \
3381 $(EVERYTHING_PROGS) \
3382 bin/timelimit \
3383 .headers.stamp */src/*.o
3384 -rm -rf t_dir
3386 include/build_env.h: script/build_env.sh
3387 @echo Building include/build_env.h
3388 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3389 > $(builddir)/include/build_env.h
3391 proto::
3393 etags::
3394 rm -f TAGS
3395 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3397 ctags::
3398 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3400 realclean:: clean
3401 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3402 -rm -f script/installbin.sh script/uninstallbin.sh
3404 distclean:: realclean
3405 -rm -f smbadduser
3406 -rm -f include/autoconf/config.h Makefile
3407 -rm -f config.status config.cache so_locations
3408 -rm -rf .deps TAGS
3410 realdistclean:: distclean
3411 -rm -f include/autoconf/config.h.in
3412 -rm -f include/version.h
3413 -rm -f configure
3415 # this target is really just for my use. It only works on a limited
3416 # range of machines and is used to produce a list of potentially
3417 # dead (ie. unused) functions in the code. (tridge)
3418 finddead::
3419 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3420 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3421 comm -13 nmused.txt nmfns.txt
3424 # when configure.in is updated, reconfigure
3425 $(srcdir)/configure: $(srcdir)/configure.in
3426 @echo "WARNING: you need to rerun ./autogen.sh"
3428 config.status: $(srcdir)/configure
3429 @echo "WARNING: you need to run ./configure"
3431 Makefile: $(srcdir)/Makefile.in config.status
3432 @echo "WARNING: you need to run ./config.status"
3434 ######################################################################
3435 # Samba Testing Framework
3437 # Check shared libs for unresolved symbols
3438 test_shlibs:
3439 @echo "Testing $? "
3440 @$(LIB_PATH_VAR)=./bin && \
3441 export $(LIB_PATH_VAR) && \
3442 for module in $?; do \
3443 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3444 || exit 1; \
3445 done
3447 # Check for NSS module problems.
3448 test_nss_modules:: nss_modules
3449 @echo "Testing $(NSS_MODULES) "
3450 @$(LIB_PATH_VAR)=./bin && \
3451 export $(LIB_PATH_VAR) && \
3452 for module in $(NSS_MODULES); do \
3453 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3454 || exit 1; \
3455 done
3457 # Check for PAM module problems. Specifically, check that every module we
3458 # built can actually be loaded by a minimal PAM-aware application.
3459 test_pam_modules:: pam_modules
3460 @echo "Testing $(PAM_MODULES) "
3461 @$(LIB_PATH_VAR)=./bin && \
3462 export $(LIB_PATH_VAR) && \
3463 for module in $(PAM_MODULES); do \
3464 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3465 || exit 1; \
3466 done
3470 ## Targets for 'make test'
3473 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3475 valgrindtest:: all torture timelimit
3476 @echo Running Test suite with valgrind
3477 @$(MAKE) test \
3478 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3479 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3480 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3481 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3483 selftestdir = ../selftest
3485 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3487 test:: all torture timelimit
3488 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3489 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3490 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3491 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3492 SOURCEDIR="$(srcdir)" \
3493 VFSLIBDIR="$(builddir)/bin" \
3494 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3495 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3496 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3497 $(srcdir)/selftest/s3-selftest.sh
3499 test-%:
3500 $(MAKE) test TESTS=$*
3502 buildfarm-test:
3503 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3505 subunit-test:
3506 $(MAKE) test SUBUNIT_FORMATTER=cat
3508 SELFTEST_TESTENV = s3dc
3510 testenv:
3511 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3513 gdbtestenv:
3514 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3515 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3516 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3517 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3518 TESTS="--testenv"
3520 valgrindtestenv:
3521 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3522 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3523 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3524 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3525 TESTS="--testenv"
3528 # Check for Winbind struct 32/64bit padding
3529 test_wbpad:
3530 @echo "Testing winbind request/response structure for 32/64bit padding"
3531 @./script/tests/wb_pad.sh || exit 1;
3534 ## Examples:
3537 libsmbclient_examples: libsmbclient
3538 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3540 clean_libsmbclient_examples:
3541 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3543 libnetapi_examples: libnetapi
3544 $(MAKE) -C lib/netapi/examples
3546 clean_libnetapi_examples:
3547 $(MAKE) -C lib/netapi/examples clean
3549 .PHONY: bin/smbtorture4 bin/ndrdump4
3551 bin/smbtorture4: $(BINARY_PREREQS)
3552 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3554 bin/ndrdump4: $(BINARY_PREREQS)
3555 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4