VERSION: Bump version up to 3.6.0rc1.
[Samba.git] / source3 / Makefile.in
blobdb29a8361a87c494398735b0d683cb99bc5b1ee4
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@
144 # The permissions to give the executables and other data
145 INSTALLPERMS_BIN = 0755
146 INSTALLPERMS_DATA = 0644
148 # set these to where to find various files
149 # These can be overridden by command line switches (see smbd(8))
150 # or in smb.conf (see smb.conf(5))
151 LOGFILEBASE = @logfilebase@
152 CONFIGFILE = $(CONFIGDIR)/smb.conf
153 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
154 NCALRPCDIR = @ncalrpcdir@
156 # This is where smbpasswd et al go
157 PRIVATEDIR = @privatedir@
159 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
160 PRIVATE_DIR = $(PRIVATEDIR)
162 # This is where SWAT images and help files go
163 SWATDIR = @swatdir@
165 # This is where locale(mo) files go
166 LOCALEDIR= @localedir@
168 # the directory where lock files go
169 LOCKDIR = @lockdir@
171 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
172 CACHEDIR = @cachedir@
173 STATEDIR = @statedir@
175 # Where to look for (and install) codepage databases.
176 CODEPAGEDIR = @codepagedir@
178 # the directory where pid files go
179 PIDDIR = @piddir@
181 # the directory where nmbd listens on the unexpected socket
182 NMBDSOCKETDIR = @nmbdsocketdir@
184 FLAGS = -I. \
185 -I$(srcdir) \
186 @FLAGS1@ \
187 @SAMBA_CPPFLAGS@ \
188 $(CPPFLAGS) \
189 $(ISA) \
190 -I$(srcdir)/lib \
191 -I.. \
192 -D_SAMBA_BUILD_=3
194 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
195 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
196 -DCONFIGFILE=\"$(CONFIGFILE)\" \
197 -DSBINDIR=\"$(SBINDIR)\" \
198 -DBINDIR=\"$(BINDIR)\" \
199 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
200 -DSWATDIR=\"$(SWATDIR)\" \
201 -DLOCKDIR=\"$(LOCKDIR)\" \
202 -DPIDDIR=\"$(PIDDIR)\" \
203 -DLIBDIR=\"$(LIBDIR)\" \
204 -DMODULESDIR=\"$(MODULESDIR)\" \
205 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
206 -DSHLIBEXT=\"@SHLIBEXT@\" \
207 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
208 -DCONFIGDIR=\"$(CONFIGDIR)\" \
209 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
210 -DCACHEDIR=\"$(CACHEDIR)\" \
211 -DSTATEDIR=\"$(STATEDIR)\" \
212 -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
213 -DLOCALEDIR=\"$(LOCALEDIR)\"
215 # Note that all executable programs now provide for an optional executable suffix.
217 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
219 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
220 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
221 bin/smbta-util@EXEEXT@
222 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
223 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
224 $(TDBRESTORE) \
225 $(TDBTOOL)
226 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
227 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
228 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
230 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
231 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
232 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
233 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
234 $(TDBTORTURE) $(PTHREADPOOLTEST) \
235 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
237 BIN_PROGS = @EXTRA_BIN_PROGS@ \
238 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
240 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
241 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
242 bin/log2pcap@EXEEXT@ \
243 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
244 bin/dbwrap_tool@EXEEXT@ \
245 bin/dbwrap_torture@EXEEXT@
247 PAM_MODULES = @PAM_MODULES@
249 NSS_MODULES = @NSS_MODULES@
251 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
253 VFS_MODULES = @VFS_MODULES@
254 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
255 PDB_MODULES = @PDB_MODULES@
256 IDMAP_MODULES = @IDMAP_MODULES@
257 CHARSET_MODULES = @CHARSET_MODULES@
258 AUTH_MODULES = @AUTH_MODULES@
259 NSS_INFO_MODULES = @NSS_INFO_MODULES@
260 GPEXT_MODULES = @GPEXT_MODULES@
261 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
262 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
263 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
265 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
267 ######################################################################
268 # object file lists
269 ######################################################################
271 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
272 lib/dbwrap.o lib/dbwrap_tdb.o \
273 lib/dbwrap_ctdb.o \
274 lib/g_lock.o \
275 lib/dbwrap_rbt.o
277 TDB_VALIDATE_OBJ = lib/tdb_validate.o
279 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
281 VERSION_OBJ = lib/version.o
283 WBCOMMON_OBJ = ../nsswitch/wb_common.o
285 AFS_OBJ = lib/afs.o
287 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
289 AVAHI_OBJ = @AVAHI_OBJ@
291 SERVER_MUTEX_OBJ = lib/server_mutex.o
293 PASSCHANGE_OBJ = libsmb/passchange.o
295 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
296 ../librpc/ndr/ndr_compression.o \
297 librpc/gen_ndr/ndr_drsuapi.o \
298 ../librpc/ndr/ndr_drsblobs.o \
299 librpc/gen_ndr/ndr_drsblobs.o
301 ZLIB_OBJ = @ZLIB_OBJS@
303 COMPRESSION_OBJ = ../lib/compression/mszip.o \
304 ../lib/compression/lzxpress.o \
305 $(ZLIB_OBJ)
307 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
308 $(COMPRESSION_OBJ)
310 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
311 ../librpc/ndr/ndr_ntlmssp.o
313 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
314 ../librpc/ndr/ndr.o \
315 ../librpc/ndr/ndr_misc.o \
316 librpc/gen_ndr/ndr_misc.o \
317 librpc/gen_ndr/ndr_security.o \
318 ../librpc/ndr/ndr_sec_helper.o \
319 ../librpc/ndr/ndr_string.o \
320 ../librpc/ndr/uuid.o \
321 librpc/ndr/util.o \
322 librpc/gen_ndr/ndr_server_id.o \
323 librpc/gen_ndr/ndr_dcerpc.o
325 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
326 librpc/gen_ndr/ndr_lsa.o
328 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
329 ../librpc/ndr/ndr_netlogon.o
331 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
332 ../librpc/ndr/ndr_schannel.o
334 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
335 ../librpc/ndr/ndr_spoolss_buf.o
337 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
338 ../librpc/ndr/ndr_ntprinting.o \
340 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
341 ../librpc/ndr/ndr_preg.o
343 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
344 ../librpc/ndr/ndr_xattr.o
346 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss_c.o \
347 rpc_client/cli_spoolss.o \
348 rpc_client/init_spoolss.o
350 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/ndr_eventlog_c.o
352 LIBCLI_WINREG_OBJ = librpc/gen_ndr/ndr_winreg_c.o \
353 rpc_client/cli_winreg.o
355 LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
356 rpc_client/cli_winreg_int.o
358 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/ndr_ntsvcs_c.o
360 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/ndr_drsuapi_c.o
362 LIBCLI_DFS_OBJ = librpc/gen_ndr/ndr_dfs_c.o
364 LIBCLI_ECHO_OBJ = librpc/gen_ndr/ndr_echo_c.o
366 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/ndr_initshutdown_c.o
368 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/ndr_dssetup_c.o
370 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/ndr_svcctl_c.o
372 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/ndr_wkssvc_c.o
374 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/ndr_srvsvc_c.o
376 LIBCLI_LSA_OBJ = librpc/gen_ndr/ndr_lsa_c.o \
377 rpc_client/cli_lsarpc.o \
378 rpc_client/init_lsa.o
380 LIBCLI_SAMR_OBJ = librpc/gen_ndr/ndr_samr_c.o \
381 rpc_client/cli_samr.o
383 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon_c.o \
384 rpc_client/cli_netlogon.o \
385 rpc_client/util_netlogon.o
387 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/ndr_epmapper_c.o
389 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
390 $(LIBNDR_GEN_OBJ0) \
391 librpc/gen_ndr/ndr_dfs.o \
392 librpc/gen_ndr/ndr_echo.o \
393 librpc/gen_ndr/ndr_winreg.o \
394 librpc/gen_ndr/ndr_initshutdown.o \
395 librpc/gen_ndr/ndr_srvsvc.o \
396 librpc/gen_ndr/ndr_eventlog.o \
397 $(LIBNDR_NETLOGON_OBJ) \
398 librpc/gen_ndr/ndr_dssetup.o \
399 librpc/gen_ndr/ndr_epmapper.o \
400 librpc/gen_ndr/ndr_ntsvcs.o \
401 $(LIBNDR_SPOOLSS_OBJ)
403 # this includes only the low level parse code, not stuff
404 # that requires knowledge of security contexts
405 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
407 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
409 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
410 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
412 LIBSAMBAUTIL_OBJ = \
413 $(LIBREPLACE_OBJ) \
414 $(SOCKET_WRAPPER_OBJ) \
415 $(NSS_WRAPPER_OBJ)
417 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
418 ../lib/util/xfile.o ../lib/util/util_strlist.o \
419 ../lib/util/util_file.o ../lib/util/data_blob.o \
420 ../lib/util/util.o ../lib/util/fsusage.o \
421 ../lib/util/params.o ../lib/util/talloc_stack.o \
422 ../lib/util/genrand.o ../lib/util/util_net.o \
423 ../lib/util/become_daemon.o ../lib/util/system.o \
424 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
425 ../lib/util/tevent_werror.o \
426 ../lib/util/smb_threads.o ../lib/util/util_id.o \
427 ../lib/util/blocking.o ../lib/util/rfc1738.o \
428 ../lib/util/select.o ../lib/util/util_pw.o
430 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
431 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
432 ../lib/crypto/md4.o \
433 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
434 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
436 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
437 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
438 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
439 lib/interfaces.o lib/memcache.o \
440 lib/talloc_dict.o \
441 lib/serverid.o \
442 lib/util_sconn.o \
443 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
444 lib/addrchange.o \
445 $(TDB_LIB_OBJ) \
446 $(VERSION_OBJ) lib/charcnv.o ../lib/util/debug.o ../lib/util/debug_s3.o lib/fault.o \
447 lib/interface.o lib/pidfile.o \
448 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
449 lib/username.o \
450 ../libds/common/flag_mapping.o \
451 lib/access.o lib/smbrun.o \
452 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
453 lib/wins_srv.o \
454 lib/util_str.o lib/clobber.o lib/util_sid.o \
455 lib/util_unistr.o ../lib/util/charset/codepoints.o lib/util_file.o \
456 lib/util.o lib/util_cmdline.o lib/util_names.o \
457 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
458 lib/substitute.o lib/dbwrap_util.o \
459 lib/ms_fnmatch.o lib/errmap_unix.o \
460 lib/tallocmsg.o lib/dmallocmsg.o \
461 libsmb/clisigning.o libsmb/smb_signing.o \
462 ../lib/util/charset/iconv.o intl/lang_tdb.o \
463 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
464 lib/sessionid_tdb.o \
465 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
466 lib/server_contexts.o \
467 lib/ldap_escape.o @CHARSET_STATIC@ \
468 lib/secdesc.o ../libcli/security/access_check.o \
469 ../libcli/security/secace.o ../libcli/security/object_tree.o \
470 ../libcli/security/sddl.o \
471 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
472 lib/fncall.o \
473 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
474 lib/file_id.o lib/idmap_cache.o \
475 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
476 ../libcli/security/security_token.o ../libcli/security/util_sid.o
478 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
479 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
481 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
483 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
484 # Be sure to include them into your application
485 POPT_LIB_OBJ = lib/popt_common.o
487 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
488 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
489 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
491 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
493 LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o ../lib/addns/dnssock.o \
494 ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
495 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
497 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
499 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
500 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
501 libgpo/gpo_reg.o \
502 $(GPEXT_OBJ)
503 LIBGPO_OBJ = $(LIBGPO_OBJ0)
505 LIBADS_OBJ = libads/ldap.o \
506 libads/sasl.o libads/sasl_wrapping.o \
507 libads/krb5_setpw.o \
508 libads/kerberos_util.o \
509 libads/ldap_user.o \
510 libads/ads_struct.o libads/kerberos_keytab.o \
511 libads/disp_sec.o libads/ldap_utils.o \
512 libads/ldap_schema.o libads/util.o libads/ndr.o
514 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
515 ../librpc/ndr/ndr_krb5pac.o \
516 librpc/gen_ndr/ndr_krb5pac.o
518 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
520 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
521 librpc/gen_ndr/ndr_secrets.o
523 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
524 ../libcli/netlogon/netlogon.o \
525 ../libcli/netlogon/ndr_netlogon.o \
526 librpc/gen_ndr/ndr_nbt.o \
527 librpc/gen_ndr/ndr_svcctl.o \
528 ../librpc/ndr/ndr_svcctl.o
530 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
531 libsmb/namequery.o ../libcli/nbt/lmhosts.o libsmb/conncache.o \
532 libads/dns.o libads/sitename_cache.o
534 NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
535 DOSERR_OBJ = ../libcli/util/doserr.o
536 ERRORMAP_OBJ = libsmb/errormap.o
537 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
539 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
541 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
543 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
544 $(SECRETS_OBJ)
546 LIBSMB_OBJ0 = \
547 ../libcli/auth/ntlm_check.o \
548 libsmb/ntlmssp.o \
549 libsmb/ntlmssp_wrap.o \
550 ../libcli/auth/ntlmssp.o \
551 ../libcli/auth/ntlmssp_sign.o \
552 $(LIBNDR_NTLMSSP_OBJ) \
553 ../libcli/auth/ntlmssp_ndr.o \
554 ../libcli/auth/ntlmssp_server.o
556 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
557 $(LIBSMB_ERR_OBJ)
559 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
560 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o lib/ldb_compat.o
562 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
563 ../lib/tsocket/tsocket_helpers.o \
564 ../lib/tsocket/tsocket_bsd.o
566 CLDAP_OBJ = libads/cldap.o \
567 ../libcli/cldap/cldap.o \
568 ../lib/util/idtree.o \
569 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
571 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
573 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
574 ../libcli/auth/schannel_sign.o \
575 ../libcli/auth/schannel_state_tdb.o \
576 $(LIBNDR_SCHANNEL_OBJ)
578 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
579 libsmb/clikrb5.o libsmb/clispnego.o \
580 ../libcli/auth/spnego_parse.o \
581 ../lib/util/asn1.o \
582 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
583 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
584 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
585 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
586 libsmb/clioplock.o libsmb/clirap2.o \
587 libsmb/smb_seal.o libsmb/async_smb.o \
588 libsmb/cli_np_tstream.o \
589 libsmb/smbsock_connect.o \
590 $(LIBSAMBA_OBJ) \
591 $(LIBNMB_OBJ) \
592 $(LIBNBT_OBJ) \
593 $(CLDAP_OBJ) \
594 $(DRSUAPI_OBJ)
596 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
597 rpc_client/cli_pipe.o \
598 librpc/crypto/gse_krb5.o \
599 librpc/crypto/gse.o \
600 librpc/crypto/cli_spnego.o \
601 librpc/rpc/rpc_common.o \
602 rpc_client/rpc_transport_np.o \
603 rpc_client/rpc_transport_sock.o \
604 rpc_client/rpc_transport_tstream.o \
605 ../librpc/rpc/binding.o \
606 ../librpc/rpc/dcerpc_util.o \
607 ../librpc/rpc/binding_handle.o \
608 librpc/rpc/dcerpc_helpers.o \
609 $(LIBCLI_EPMAPPER_OBJ)
611 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
614 # registry-related objects
616 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
618 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
619 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
620 REG_INIT_FULL_OBJ = registry/reg_init_full.o
622 REGFIO_OBJ = registry/regfio.o \
623 $(REG_PARSE_PRS_OBJ)
625 REG_API_REGF_OBJ = registry/reg_api_regf.o
627 REGOBJS_OBJ = registry/reg_objects.o
629 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
631 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
633 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
634 registry/reg_backend_shares.o \
635 registry/reg_backend_netlogon_params.o \
636 registry/reg_backend_prod_options.o \
637 registry/reg_backend_tcpip_params.o \
638 registry/reg_backend_hkpt_params.o \
639 registry/reg_backend_current_version.o \
640 registry/reg_backend_perflib.o
642 REG_BASE_OBJ = registry/reg_api.o \
643 registry/reg_dispatcher.o \
644 registry/reg_cachehook.o \
645 $(REGOBJS_OBJ) \
646 registry/reg_util_internal.o \
647 lib/util_nttoken.o \
648 $(REG_BACKENDS_BASE_OBJ) \
649 $(REG_INIT_BASIC_OBJ)
651 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
652 registry/reg_util_token.o \
653 registry/reg_api_util.o \
654 $(REG_BACKENDS_SMBCONF_OBJ) \
655 $(REG_INIT_SMBCONF_OBJ)
657 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
658 $(REG_BACKENDS_EXTRA_OBJ) \
659 $(REG_INIT_FULL_OBJ) \
660 registry/reg_perfcount.o \
661 librpc/gen_ndr/ndr_perfcount.o
663 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
665 DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
667 RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
668 librpc/gen_ndr/srv_lsa.o
670 RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
671 librpc/gen_ndr/srv_netlogon.o
673 RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
674 rpc_server/samr/srv_samr_util.o \
675 rpc_server/samr/srv_samr_chgpasswd.o \
676 librpc/gen_ndr/srv_samr.o
678 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
680 RPC_WINREG_OBJ = rpc_server/winreg/srv_winreg_nt.o \
681 librpc/gen_ndr/srv_winreg.o
683 RPC_DSSETUP_OBJ = rpc_server/dssetup/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
685 RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
686 librpc/gen_ndr/srv_srvsvc.o
688 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
689 rpc_server/wkssvc/srv_wkssvc_nt.o
691 RPC_SVCCTL_OBJ = rpc_server/svcctl/srv_svcctl_nt.o \
692 rpc_server/svcctl/srv_svcctl_reg.o \
693 librpc/gen_ndr/srv_svcctl.o \
694 services/svc_winreg_glue.o \
695 services/svc_spoolss.o services/svc_rcinit.o \
696 services/svc_netlogon.o services/svc_winreg.o \
697 services/svc_wins.o
699 RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
700 librpc/gen_ndr/srv_ntsvcs.o
702 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
703 rpc_server/dfs/srv_dfs_nt.o
705 RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
706 rpc_server/spoolss/srv_spoolss_util.o \
707 librpc/gen_ndr/srv_spoolss.o
709 RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
710 rpc_server/eventlog/srv_eventlog_reg.o \
711 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
713 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
714 librpc/gen_ndr/ndr_named_pipe_auth.o \
715 ../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o
717 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
718 rpc_server/rpc_handles.o rpc_server/srv_access_check.o
720 RPC_SERVICE = rpc_server/rpc_server.o
722 RPC_CRYPTO = rpc_server/dcesrv_ntlmssp.o \
723 rpc_server/dcesrv_gssapi.o \
724 rpc_server/dcesrv_spnego.o
726 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
727 $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
729 RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
731 RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o librpc/gen_ndr/srv_epmapper.o
733 RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_setup.o $(DCE_RPC_EP_OBJ)
735 RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
736 $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
737 $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
738 $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
739 $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
740 $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
741 $(LIBCLI_SPOOLSS_OBJ) \
742 $(LIBCLI_WINREG_INT_OBJ) \
743 $(LIBCLI_SRVSVC_OBJ) \
744 $(LIBCLI_LSA_OBJ) \
745 $(LIBCLI_SAMR_OBJ) \
746 $(LIBCLI_NETLOGON_OBJ) \
747 $(RPC_SERVER_REGISTER_OBJ) \
748 $(RPC_CLIENT_SCHANNEL_OBJ) \
749 rpc_client/init_netlogon.o \
750 rpc_client/init_samr.o
752 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
754 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
756 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
758 PRIVILEGES_OBJ = lib/privileges.o
760 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
762 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
763 lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
764 lib/util_unixsids.o passdb/lookup_sid.o \
765 passdb/login_cache.o @PDB_STATIC@ \
766 passdb/account_pol.o $(PRIVILEGES_OBJ) \
767 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
768 passdb/pdb_util.o
770 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
771 CP850_OBJ = modules/CP850.o
772 CP437_OBJ = modules/CP437.o
773 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
775 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
777 PROFILE_OBJ = profile/profile.o
778 PROFILES_OBJ = utils/profiles.o \
779 $(LIBSMB_ERR_OBJ) \
780 $(PARAM_OBJ) \
781 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
782 $(POPT_LIB_OBJ) \
783 $(REGFIO_OBJ)
785 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
786 smbd/oplock_onefs.o
788 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
789 librpc/gen_ndr/ndr_notify.o librpc/gen_ndr/ndr_file_id.o
791 FNAME_UTIL_OBJ = lib/filename_util.o
793 VFS_DEFAULT_OBJ = modules/vfs_default.o
794 VFS_AUDIT_OBJ = modules/vfs_audit.o
795 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
796 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
797 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
798 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
799 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
800 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
801 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
802 VFS_CAP_OBJ = modules/vfs_cap.o
803 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
804 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
805 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
806 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
807 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
808 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
809 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
810 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
811 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
812 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
813 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
814 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
815 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
816 VFS_CATIA_OBJ = modules/vfs_catia.o
817 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
818 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
819 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
820 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
821 VFS_COMMIT_OBJ = modules/vfs_commit.o
822 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
823 VFS_GPFS_HSM_NOTIFY_OBJ = modules/vfs_gpfs_hsm_notify.o
824 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
825 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
826 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
827 VFS_FILEID_OBJ = modules/vfs_fileid.o
828 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
829 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
830 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
831 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
832 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
833 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
834 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
835 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
836 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
837 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
838 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
839 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
840 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
841 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
842 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
843 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
844 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
846 PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
847 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
849 SLCACHE_OBJ = libsmb/samlogon_cache.o
851 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
853 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
854 AUTH_DOMAIN_OBJ = auth/auth_domain.o
855 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
856 AUTH_SERVER_OBJ = auth/auth_server.o
857 AUTH_UNIX_OBJ = auth/auth_unix.o
858 AUTH_WINBIND_OBJ = auth/auth_winbind.o
859 AUTH_WBC_OBJ = auth/auth_wbc.o
860 AUTH_SCRIPT_OBJ = auth/auth_script.o
861 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
863 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
864 auth/server_info.o \
865 auth/server_info_sam.o \
866 auth/user_info.o \
867 auth/user_util.o \
868 auth/user_krb5.o \
869 auth/auth_compat.o auth/auth_ntlmssp.o \
870 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
872 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
874 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o smbd/msg_idmap.o
876 BUILDOPT_OBJ = smbd/build_options.o
878 SMBD_OBJ_SRV = smbd/server_reload.o \
879 smbd/files.o smbd/connection.o \
880 smbd/utmp.o smbd/session.o \
881 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
882 smbd/share_access.o smbd/fileio.o \
883 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
884 smbd/message.o smbd/nttrans.o smbd/pipes.o \
885 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
886 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
887 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
888 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
889 smbd/posix_acls.o lib/sysacls.o \
890 smbd/process.o smbd/service.o smbd/error.o \
891 rpc_server/epmd.o \
892 printing/printspoolss.o printing/spoolssd.o \
893 lib/sysquotas.o lib/sysquotas_linux.o \
894 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
895 lib/sysquotas_nfs.o \
896 smbd/fake_file.o \
897 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
898 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
899 smbd/dmapi.o smbd/signing.o \
900 smbd/file_access.o \
901 smbd/dnsregister.o smbd/globals.o \
902 smbd/smb2_server.o \
903 smbd/smb2_signing.o \
904 smbd/smb2_glue.o \
905 smbd/smb2_negprot.o \
906 smbd/smb2_sesssetup.o \
907 smbd/smb2_tcon.o \
908 smbd/smb2_create.o \
909 smbd/smb2_close.o \
910 smbd/smb2_flush.o \
911 smbd/smb2_read.o \
912 smbd/smb2_write.o \
913 smbd/smb2_lock.o \
914 smbd/smb2_ioctl.o \
915 smbd/smb2_keepalive.o \
916 smbd/smb2_find.o \
917 smbd/smb2_notify.o \
918 smbd/smb2_getinfo.o \
919 smbd/smb2_setinfo.o \
920 smbd/smb2_break.o \
921 ../libcli/smb/smb2_create_blob.o \
922 $(MANGLE_OBJ) @VFS_STATIC@
924 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
925 $(RPC_SERVER_OBJ) \
926 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
927 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
928 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
929 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
930 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
931 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
932 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
933 $(LIBSMBCONF_OBJ) \
934 $(PRIVILEGES_BASIC_OBJ) \
935 $(REGFIO_OBJ) \
936 $(REG_API_REGF_OBJ) \
937 $(LIBNDR_XATTR_OBJ)
939 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
940 printing/print_cups.o printing/print_generic.o \
941 printing/lpq_parse.o printing/load.o \
942 printing/print_iprint.o printing/print_standard.o \
943 printing/printer_list.o librpc/gen_ndr/ndr_printcap.o
945 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
946 PRINTBACKEND_OBJ = printing/printing.o \
947 printing/nt_printing.o \
948 printing/nt_printing_tdb.o \
949 printing/nt_printing_migrate.o \
950 printing/nt_printing_ads.o \
951 librpc/gen_ndr/ndr_ntprinting.o \
952 ../librpc/ndr/ndr_ntprinting.o \
953 $(PRINTBASE_OBJ)
955 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
957 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
958 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
959 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
960 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
961 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
962 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
963 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
964 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
965 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
966 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
967 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
968 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
970 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
971 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
972 $(LIBNDR_GEN_OBJ0)
974 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
975 web/swat.o web/neg_lang.o
977 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
978 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
979 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
980 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
981 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
982 $(LIBCLI_SAMR_OBJ) \
983 rpc_client/init_lsa.o
985 STATUS_OBJ = utils/status.o utils/status_profile.o \
986 $(LOCKING_OBJ) $(PARAM_OBJ) \
987 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
988 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
990 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
991 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
993 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
994 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
995 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
996 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
997 $(LIBMSRPC_GEN_OBJ) \
998 $(LIBMSRPC_OBJ) \
999 $(LIBCLI_SRVSVC_OBJ)
1001 TESTPARM_OBJ = utils/testparm.o \
1002 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
1003 $(LIBSMB_ERR_OBJ)
1005 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
1006 $(LIB_NONSMBD_OBJ) \
1007 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
1009 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
1010 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1011 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
1013 PASSWD_UTIL_OBJ = utils/passwd_util.o
1015 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1016 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1017 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1018 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1019 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1020 $(LIBCLI_SAMR_OBJ) \
1021 rpc_client/init_lsa.o
1023 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1024 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
1025 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1026 $(LIBCLI_LDAP_NDR_OBJ) \
1027 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1029 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1031 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1033 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1034 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1035 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1036 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1037 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1038 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1039 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1040 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1041 rpcclient/cmd_winreg.o \
1042 $(DISPLAY_SEC_OBJ)
1044 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1045 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1046 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1047 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1048 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1049 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1050 $(LIBCLI_SPOOLSS_OBJ) \
1051 $(LIBCLI_EVENTLOG_OBJ) \
1052 $(LIBCLI_NTSVCS_OBJ) \
1053 $(LIBCLI_DRSUAPI_OBJ) \
1054 $(LIBCLI_DFS_OBJ) \
1055 $(LIBCLI_ECHO_OBJ) \
1056 $(LIBCLI_DSSETUP_OBJ) \
1057 $(LIBCLI_WKSSVC_OBJ) \
1058 $(LIBCLI_SRVSVC_OBJ) \
1059 $(LIBCLI_LSA_OBJ) \
1060 $(LIBCLI_SAMR_OBJ) \
1061 $(LIBCLI_WINREG_OBJ) \
1062 $(LIBCLI_NETLOGON_OBJ) \
1063 $(RPC_CLIENT_SCHANNEL_OBJ) \
1064 rpc_client/init_netlogon.o \
1065 rpc_client/init_samr.o
1067 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1068 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1070 LIBSMBCLIENT_THREAD_OBJ = \
1071 libsmb/libsmb_thread_impl.o \
1072 libsmb/libsmb_thread_posix.o
1074 LIBSMBCLIENT_OBJ0 = \
1075 libsmb/libsmb_cache.o \
1076 libsmb/libsmb_compat.o \
1077 libsmb/libsmb_context.o \
1078 libsmb/libsmb_dir.o \
1079 libsmb/libsmb_file.o \
1080 libsmb/libsmb_misc.o \
1081 libsmb/libsmb_path.o \
1082 libsmb/libsmb_printjob.o \
1083 libsmb/libsmb_server.o \
1084 libsmb/libsmb_stat.o \
1085 libsmb/libsmb_xattr.o \
1086 libsmb/libsmb_setget.o
1088 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1089 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1090 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1091 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1092 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1093 $(LIBCLI_SRVSVC_OBJ) \
1094 $(LIBCLI_LSA_OBJ)
1096 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1098 # This shared library is intended for linking with unit test programs
1099 # to test Samba internals. It's called libbigballofmud.so to
1100 # discourage casual usage.
1102 LIBBIGBALLOFMUD_MAJOR = 0
1104 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1105 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1106 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1108 CLIENT_OBJ1 = client/client.o client/clitar.o \
1109 client/dnsbrowse.o \
1110 $(LIBMSRPC_OBJ)
1112 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1113 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1114 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1115 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1116 $(DISPLAY_SEC_OBJ) \
1117 $(LIBCLI_SRVSVC_OBJ)
1119 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1120 ../lib/smbconf/smbconf_util.o \
1121 ../lib/smbconf/smbconf_txt.o \
1122 lib/smbconf/smbconf_reg.o \
1123 lib/smbconf/smbconf_init.o
1125 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1127 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1128 $(LIB_NONSMBD_OBJ) \
1129 $(PARAM_OBJ) \
1130 $(LIBSMB_ERR_OBJ) \
1131 $(POPT_LIB_OBJ)
1133 PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
1134 lib/pthreadpool/tests.o
1136 LIBNET_OBJ = libnet/libnet_join.o \
1137 libnet/libnet_keytab.o \
1138 librpc/gen_ndr/ndr_libnet_join.o
1140 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1141 libnet/libnet_dssync_passdb.o \
1142 libnet/libnet_dssync_keytab.o \
1143 ../libcli/drsuapi/repl_decrypt.o
1145 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1146 libnet/libnet_samsync_ldif.o \
1147 libnet/libnet_samsync_passdb.o \
1148 libnet/libnet_samsync_display.o \
1149 libnet/libnet_samsync_keytab.o \
1150 ../libcli/samsync/decrypt.o
1152 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1153 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1154 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1155 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o utils/net_idmap_check.o\
1156 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1157 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1158 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1159 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1160 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1161 utils/net_conf.o utils/net_join.o utils/net_user.o \
1162 utils/net_group.o utils/net_file.o utils/net_registry.o \
1163 auth/token_util.o utils/net_dom.o utils/net_share.o \
1164 utils/net_g_lock.o \
1165 utils/net_serverid.o \
1166 utils/net_eventlog.o \
1167 utils/net_printing.o \
1168 utils/net_rpc_trust.o \
1169 $(LIBNDR_NTPRINTING_OBJ) \
1170 $(LIBNDR_PREG_OBJ) \
1171 $(LIBCLI_SPOOLSS_OBJ) \
1172 $(LIBCLI_WINREG_OBJ) \
1173 $(LIBCLI_DRSUAPI_OBJ) \
1174 $(LIBCLI_INITSHUTDOWN_OBJ) \
1175 $(LIBCLI_DSSETUP_OBJ) \
1176 $(LIBCLI_SVCCTL_OBJ) \
1177 $(LIBCLI_WKSSVC_OBJ) \
1178 $(LIBCLI_SRVSVC_OBJ) \
1179 $(LIBCLI_LSA_OBJ) \
1180 $(LIBCLI_SAMR_OBJ) \
1181 $(LIBCLI_NETLOGON_OBJ) \
1182 $(RPC_CLIENT_SCHANNEL_OBJ) \
1183 rpc_client/init_netlogon.o \
1184 rpc_client/init_samr.o \
1185 registry/reg_parse.o registry/reg_format.o \
1186 registry/reg_parse_internal.o registry/reg_import.o \
1187 lib/cbuf.o lib/srprs.o
1189 # these are not processed by make proto
1190 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1192 NET_OBJ = $(NET_OBJ1) \
1193 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1194 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1195 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1196 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1197 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1198 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1199 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1200 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1201 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1202 $(REG_SMBCONF_OBJ) \
1203 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1204 $(LIBSMBCONF_OBJ) \
1205 $(REGFIO_OBJ) \
1206 $(PRIVILEGES_BASIC_OBJ) \
1207 $(LIB_EVENTLOG_OBJ) localedir.o
1209 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1210 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1211 $(LIBNDR_GEN_OBJ0)
1213 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1214 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1216 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1217 torture/denytest.o torture/mangle_test.o \
1218 torture/nbench.o \
1219 torture/test_async_echo.o \
1220 torture/test_smbsock_any_connect.o \
1221 torture/test_addrchange.o \
1222 torture/test_posix_append.o
1224 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1225 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1226 @LIBWBCLIENT_STATIC@ \
1227 torture/wbc_async.o \
1228 ../nsswitch/wb_reqtrans.o \
1229 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1231 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1232 $(LIB_NONSMBD_OBJ) \
1233 $(LIBNDR_GEN_OBJ0)
1235 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1236 $(LIB_NONSMBD_OBJ) \
1237 $(LIBNDR_GEN_OBJ0)
1239 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1240 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1241 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1243 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1245 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1246 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1247 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1248 $(LIBNDR_GEN_OBJ0)
1250 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1252 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1254 LOG2PCAP_OBJ = utils/log2pcaphex.o
1256 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1257 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1258 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1260 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1261 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1262 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1263 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1264 $(LIBCLI_LSA_OBJ)
1266 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1267 $(PARAM_OBJ) \
1268 $(LIB_NONSMBD_OBJ) \
1269 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1270 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1271 $(LIBCLI_LSA_OBJ)
1273 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1275 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1276 $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
1277 librpc/gen_ndr/ndr_eventlog.o \
1278 librpc/gen_ndr/ndr_lsa.o
1280 SHARESEC_OBJ0 = utils/sharesec.o
1281 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1282 $(LIBSMB_ERR_OBJ) \
1283 $(POPT_LIB_OBJ)
1285 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1286 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1288 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1289 @libreplacedir@/test/getifaddrs.o \
1290 @libreplacedir@/test/os2_delete.o \
1291 @libreplacedir@/test/strptime.o \
1292 @libreplacedir@/test/main.o \
1293 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1295 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1297 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1298 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1299 $(LIBNDR_GEN_OBJ0)
1301 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1302 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1304 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1305 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1306 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1307 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1308 $(LIBTSOCKET_OBJ) $(PAM_ERRORS_OBJ)
1310 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1312 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1314 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1316 IDMAP_HASH_OBJ = \
1317 winbindd/idmap_hash/idmap_hash.o \
1318 winbindd/idmap_hash/mapfile.o
1320 IDMAP_ADEX_OBJ = \
1321 winbindd/idmap_adex/idmap_adex.o \
1322 winbindd/idmap_adex/cell_util.o \
1323 winbindd/idmap_adex/likewise_cell.o \
1324 winbindd/idmap_adex/provider_unified.o \
1325 winbindd/idmap_adex/gc_util.o \
1326 winbindd/idmap_adex/domain_util.o
1328 WINBINDD_OBJ1 = \
1329 winbindd/winbindd.o \
1330 winbindd/winbindd_group.o \
1331 winbindd/winbindd_util.o \
1332 winbindd/winbindd_cache.o \
1333 winbindd/winbindd_pam.o \
1334 winbindd/winbindd_misc.o \
1335 winbindd/winbindd_cm.o \
1336 winbindd/winbindd_wins.o \
1337 winbindd/winbindd_msrpc.o \
1338 winbindd/winbindd_rpc.o \
1339 winbindd/winbindd_reconnect.o \
1340 winbindd/winbindd_ads.o \
1341 winbindd/winbindd_samr.o \
1342 winbindd/winbindd_dual.o \
1343 winbindd/winbindd_dual_ndr.o \
1344 winbindd/winbindd_dual_srv.o \
1345 librpc/gen_ndr/ndr_wbint_c.o \
1346 librpc/gen_ndr/srv_wbint.o \
1347 librpc/gen_ndr/ndr_wbint.o \
1348 librpc/gen_ndr/ndr_idmap.o \
1349 winbindd/winbindd_async.o \
1350 winbindd/winbindd_creds.o \
1351 winbindd/winbindd_cred_cache.o \
1352 winbindd/winbindd_ccache_access.o \
1353 winbindd/winbindd_domain.o \
1354 winbindd/winbindd_idmap.o \
1355 winbindd/winbindd_locator.o \
1356 winbindd/winbindd_ndr.o \
1357 winbindd/wb_ping.o \
1358 winbindd/wb_lookupsid.o \
1359 winbindd/wb_lookupsids.o \
1360 winbindd/wb_lookupname.o \
1361 winbindd/wb_sid2uid.o \
1362 winbindd/wb_sid2gid.o \
1363 winbindd/wb_uid2sid.o \
1364 winbindd/wb_gid2sid.o \
1365 winbindd/wb_queryuser.o \
1366 winbindd/wb_lookupuseraliases.o \
1367 winbindd/wb_lookupusergroups.o \
1368 winbindd/wb_getpwsid.o \
1369 winbindd/wb_gettoken.o \
1370 winbindd/wb_seqnum.o \
1371 winbindd/wb_seqnums.o \
1372 winbindd/wb_group_members.o \
1373 winbindd/wb_getgrsid.o \
1374 winbindd/wb_query_user_list.o \
1375 winbindd/wb_fill_pwent.o \
1376 winbindd/wb_next_pwent.o \
1377 winbindd/wb_next_grent.o \
1378 winbindd/wb_dsgetdcname.o \
1379 winbindd/winbindd_lookupsid.o \
1380 winbindd/winbindd_lookupsids.o \
1381 winbindd/winbindd_lookupname.o \
1382 winbindd/winbindd_sid_to_uid.o \
1383 winbindd/winbindd_sid_to_gid.o \
1384 winbindd/winbindd_uid_to_sid.o \
1385 winbindd/winbindd_gid_to_sid.o \
1386 winbindd/winbindd_sids_to_xids.o \
1387 winbindd/winbindd_allocate_uid.o \
1388 winbindd/winbindd_allocate_gid.o \
1389 winbindd/winbindd_getpwsid.o \
1390 winbindd/winbindd_getpwnam.o \
1391 winbindd/winbindd_getpwuid.o \
1392 winbindd/winbindd_getsidaliases.o \
1393 winbindd/winbindd_getuserdomgroups.o \
1394 winbindd/winbindd_getgroups.o \
1395 winbindd/winbindd_show_sequence.o \
1396 winbindd/winbindd_getgrgid.o \
1397 winbindd/winbindd_getgrnam.o \
1398 winbindd/winbindd_getusersids.o \
1399 winbindd/winbindd_lookuprids.o \
1400 winbindd/winbindd_setpwent.o \
1401 winbindd/winbindd_getpwent.o \
1402 winbindd/winbindd_endpwent.o \
1403 winbindd/winbindd_setgrent.o \
1404 winbindd/winbindd_getgrent.o \
1405 winbindd/winbindd_endgrent.o \
1406 winbindd/winbindd_dsgetdcname.o \
1407 winbindd/winbindd_getdcname.o \
1408 winbindd/winbindd_list_users.o \
1409 winbindd/winbindd_list_groups.o \
1410 winbindd/winbindd_check_machine_acct.o \
1411 winbindd/winbindd_change_machine_acct.o \
1412 winbindd/winbindd_ping_dc.o \
1413 winbindd/winbindd_pam_auth.o \
1414 winbindd/winbindd_pam_auth_crap.o \
1415 winbindd/winbindd_pam_chauthtok.o \
1416 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1417 winbindd/winbindd_pam_logoff.o \
1418 auth/auth_util.o \
1419 auth/token_util.o \
1420 auth/user_util.o \
1421 auth/check_samsec.o \
1422 auth/server_info.o \
1423 auth/server_info_sam.o \
1424 auth/user_info.o \
1425 auth/pampass.o \
1426 ../nsswitch/wb_reqtrans.o
1428 WINBINDD_OBJ = \
1429 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1430 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1431 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1432 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1433 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1434 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1435 $(RPC_NCACN_NP) $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1436 $(NPA_TSTREAM_OBJ) \
1437 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1438 $(LIBADS_SERVER_OBJ) \
1439 $(TDB_VALIDATE_OBJ) \
1440 $(LIBCLI_DSSETUP_OBJ) \
1441 $(LIBCLI_LSA_OBJ) \
1442 $(LIBCLI_SAMR_OBJ) \
1443 $(LIBCLI_NETLOGON_OBJ) \
1444 rpc_client/init_netlogon.o \
1445 rpc_client/init_samr.o \
1446 $(PAM_ERRORS_OBJ)
1448 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1449 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1450 lib/winbind_util.o $(WBCOMMON_OBJ)
1452 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1454 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1455 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1457 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1458 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1460 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1461 ../lib/iniparser_build/strlib.o
1463 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1464 $(SOCKET_WRAPPER_OBJ)
1466 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1467 $(SOCKET_WRAPPER_OBJ)
1469 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1470 $(SOCKET_WRAPPER_OBJ)
1472 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1473 $(SOCKET_WRAPPER_OBJ)
1475 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1476 $(SOCKET_WRAPPER_OBJ)
1479 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1481 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1482 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o libads/kerberos.o \
1483 libsmb/samlogon_cache.o \
1484 $(LIBADS_SERVER_OBJ) \
1485 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1486 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1487 $(WBCOMMON_OBJ) \
1488 $(LIBCLI_LDAP_NDR_OBJ) \
1489 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1492 VLP_OBJ = printing/tests/vlp.o \
1493 ../lib/util/util_tdb.o \
1494 $(LIBSAMBAUTIL_OBJ) \
1495 param/util.o
1497 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1498 $(LIBSMB_OBJ) \
1499 $(PARAM_OBJ) \
1500 $(PASSDB_OBJ) \
1501 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1502 $(LIB_NONSMBD_OBJ) \
1503 $(KRBCLIENT_OBJ) \
1504 $(LIBMSRPC_OBJ) \
1505 $(LIBMSRPC_GEN_OBJ)
1507 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1508 $(PARAM_OBJ) \
1509 $(LIB_NONSMBD_OBJ) \
1510 $(LIBSMB_ERR_OBJ)
1512 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1513 $(PARAM_OBJ) \
1514 $(LIB_NONSMBD_OBJ) \
1515 $(LIBSMB_ERR_OBJ) \
1516 $(POPT_LIB_OBJ)
1518 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1519 $(PARAM_OBJ) \
1520 $(LIB_NONSMBD_OBJ) \
1521 $(POPT_LIB_OBJ) \
1522 $(LIBSAMBA_OBJ)
1524 ######################################################################
1525 # now the rules...
1526 ######################################################################
1527 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1528 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1529 $(EXTRA_ALL_TARGETS)
1531 basics:: samba3-idl
1533 nss_modules:: $(NSS_MODULES)
1535 pam_modules:: $(PAM_MODULES)
1537 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1539 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1541 gpext_modules:: $(GPEXT_MODULES)
1543 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1545 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1547 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1549 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1551 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1553 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1555 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1557 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1559 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1561 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1563 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1565 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1567 talloctort : SHOWFLAGS $(TALLOCTORT)
1569 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1571 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1573 pthreadpooltest : SHOWFLAGS bin/pthreadpooltest@EXEEXT@
1575 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1577 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1578 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1579 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1581 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1583 modules:: SHOWFLAGS $(MODULES)
1586 #####################################################################
1587 ## Perl IDL Compiler
1589 IDL_FILES = librpc/idl/messaging.idl \
1590 librpc/idl/libnetapi.idl \
1591 librpc/idl/notify.idl \
1592 librpc/idl/wbint.idl \
1593 librpc/idl/perfcount.idl \
1594 librpc/idl/secrets.idl \
1595 librpc/idl/libnet_join.idl \
1596 librpc/idl/server_id.idl
1598 samba3-idl::
1599 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1600 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1601 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1602 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1604 idl_full::
1605 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1606 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1607 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1608 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1610 #####################################################################
1613 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1614 $(EVERYTHING_PROGS)
1616 .SUFFIXES:
1617 .SUFFIXES: .c .o .lo
1619 .PHONY: showflags SHOWFLAGS
1621 showflags: SHOWFLAGS
1623 SHOWFLAGS::
1624 @echo "Using CFLAGS = $(CFLAGS)"
1625 @echo " PICFLAG = $(PICFLAG)"
1626 @echo " LIBS = $(LIBS)"
1627 @echo " LDFLAGS = $(LDFLAGS)"
1628 @echo " DYNEXP = $(DYNEXP)"
1629 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1630 @echo " SHLIBEXT = @SHLIBEXT@"
1631 @echo " SONAMEFLAG = @SONAMEFLAG@"
1633 # "showcflags" target for debuggin how CFLAGS are composed:
1635 .PHONY: showcflags SHOWCFLAGS
1637 showcflags: SHOWCFLAGS
1639 SHOWCFLAGS::
1640 @echo "CFLAGS = $(CFLAGS)"
1641 @echo "FLAGS = $(FLAGS)"
1642 @echo ""
1643 @echo "FLAGS1 = @FLAGS1@"
1644 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1645 @echo "CPPFLAGS = $(CPPFLAGS)"
1646 @echo "ISA = $(ISA)"
1648 MAKEDIR = || exec false; \
1649 if test -d "$$dir"; then :; else \
1650 echo mkdir "$$dir"; \
1651 mkdir -p "$$dir" >/dev/null 2>&1 || \
1652 test -d "$$dir" || \
1653 mkdir "$$dir" || \
1654 exec false; fi || exec false
1656 # Run a static checker.
1657 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1658 # Compile a source file.
1659 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1660 # Compile a source file with the installation paths defined.
1661 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1663 COMPILE = $(COMPILE_CC)
1665 .c.o:
1666 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1667 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1668 @if test -n "$(CC_CHECKER)"; then \
1669 echo "Checking $*.c with '$(CC_CHECKER)'";\
1670 $(CHECK_CC); \
1672 @echo Compiling $*.c
1673 @$(COMPILE) && exit 0;\
1674 echo "The following command failed:" 1>&2;\
1675 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1676 $(COMPILE_CC) >/dev/null 2>&1
1677 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1679 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1681 # this adds support for precompiled headers. To use it, install a snapshot
1682 # of gcc-3.4 and run 'make pch' before you do the main build.
1683 pch::
1684 rm -f $(PRECOMPILED_HEADER)
1685 $(MAKE) $(PRECOMPILED_HEADER)
1687 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1688 $(COMPILE)
1690 BINARY_PREREQS = bin/.dummy
1692 # These dependencies are only approximately correct: we want to make
1693 # sure Samba's paths are updated if ./configure is re-run. Really it
1694 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1695 # but since we also require "make install prefix=/opt/samba" *not* to
1696 # rebuild it's a bit hard.
1698 dynconfig.o: dynconfig.c Makefile
1699 @echo Compiling $*.c
1700 @$(COMPILE_CC_PATH) && exit 0;\
1701 echo "The following command failed:" 1>&2;\
1702 echo "$(COMPILE_CC_PATH)" 1>&2;\
1703 $(COMPILE_CC_PATH) >/dev/null 2>&1
1705 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1706 @echo Compiling $*.c
1707 @$(COMPILE_CC_PATH) && exit 0;\
1708 echo "The following command failed:" 1>&2;\
1709 echo "$(COMPILE_CC_PATH)" 1>&2;\
1710 $(COMPILE_CC_PATH) >/dev/null 2>&1
1712 ### Start section of object files that require PTHREAD_CFLAGS
1713 ../nsswitch/wins.o: ../nsswitch/wins.c
1714 @echo Compiling $*.c
1715 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1716 echo "The following command failed:" 1>&2;\
1717 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1718 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1720 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1721 @echo Compiling $*.c
1722 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1723 echo "The following command failed:" 1>&2;\
1724 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1725 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1727 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1728 @echo Compiling $*.c
1729 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1730 echo "The following command failed:" 1>&2;\
1731 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1732 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1734 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1735 @echo Compiling $*.c
1736 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1737 echo "The following command failed:" 1>&2;\
1738 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1739 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1740 ### End section of object files that require PTHREAD_CFLAGS
1742 localedir.o: localedir.c Makefile
1743 @echo Compiling $*.c
1744 @$(COMPILE_CC_PATH) && exit 0;\
1745 echo "The following command failed:" 1>&2;\
1746 echo "$(COMPILE_CC_PATH)" 1>&2;\
1747 $(COMPILE_CC_PATH) >/dev/null 2>&1
1749 lib/pidfile.o: lib/pidfile.c
1750 @echo Compiling $*.c
1751 @$(COMPILE_CC_PATH) && exit 0;\
1752 echo "The following command failed:" 1>&2;\
1753 echo "$(COMPILE_CC_PATH)" 1>&2;\
1754 $(COMPILE_CC_PATH) >/dev/null 2>&1
1756 lib/version.o: lib/version.c include/version.h
1757 @echo Compiling $*.c
1758 @$(COMPILE_CC_PATH) && exit 0;\
1759 echo "The following command failed:" 1>&2;\
1760 echo "$(COMPILE_CC_PATH)" 1>&2;\
1761 $(COMPILE_CC_PATH) >/dev/null 2>&1
1763 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1764 @echo Compiling $*.c
1765 @$(COMPILE_CC_PATH) && exit 0;\
1766 echo "The following command failed:" 1>&2;\
1767 echo "$(COMPILE_CC_PATH)" 1>&2;\
1768 $(COMPILE_CC_PATH) >/dev/null 2>&1
1770 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1771 @echo Generating $@
1772 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1774 bin/.dummy:
1775 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1776 dir=bin $(MAKEDIR); fi
1777 @: >> $@ || : > $@ # what a fancy emoticon!
1779 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1780 @echo Linking $@
1781 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1782 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1783 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1784 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1785 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1787 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1788 @echo Linking $@
1789 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1790 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1791 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1792 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1794 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1795 @echo Linking $@
1796 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1797 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1798 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1800 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1801 @echo Linking $@
1802 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1803 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1804 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1805 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1807 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1808 @echo Linking $@
1809 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1810 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1811 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1812 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1814 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1815 @echo Linking $@
1816 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1817 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1818 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1819 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1820 $(ZLIB_LIBS)
1822 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1823 @echo Linking $@
1824 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1825 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1827 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1828 @echo Linking $@
1829 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1830 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1831 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1833 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1834 @echo Linking $@
1835 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1836 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1838 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1839 @echo Linking $@
1840 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1841 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1843 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1844 @echo Linking $@
1845 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1846 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1848 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1849 @echo Linking $@
1850 @$(CC) -DUSING_SMBCONTROL -o $@ \
1851 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1852 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1853 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1855 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1856 @echo Linking $@
1857 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1858 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1859 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1861 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1862 @echo Linking $@
1863 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1864 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1865 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1867 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1868 @echo Linking $@
1869 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1870 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1871 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1873 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1874 @echo Linking $@
1875 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1876 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1877 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1879 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1880 @echo Linking $@
1881 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1882 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1884 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1885 @echo Linking $@
1886 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1887 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1888 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1890 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1891 @echo Linking $@
1892 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1893 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1894 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1896 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1897 @echo Linking $@
1898 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1899 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1901 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1902 @echo Linking $@
1903 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1904 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1905 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1907 bin/pthreadpooltest@EXEEXT@: $(PTHREADPOOLTEST_OBJ)
1908 @echo Linking $@
1909 @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) -lpthread
1911 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1912 @echo Linking $@
1913 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1914 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1915 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1916 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1918 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1919 @echo Linking $@
1920 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1921 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1922 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1924 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1925 @echo Linking $@
1926 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1927 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1928 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1930 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1931 @echo Linking $@
1932 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1933 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1934 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1936 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1937 @echo Linking $@
1938 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1939 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1941 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1942 @echo Linking $@
1943 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1944 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1946 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1947 @echo Linking $@
1948 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1949 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1950 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1951 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1953 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1954 @echo Linking $@
1955 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1957 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1958 @echo Linking $@
1959 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1960 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1961 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1963 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1964 @echo Linking $@
1965 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1966 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1967 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1968 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1969 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1971 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1972 @echo Linking $@
1973 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1974 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1975 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1977 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1978 @echo Linking $@
1979 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1980 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1982 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1983 @echo Linking $@
1984 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1985 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1986 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1987 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1989 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1990 @echo Linking $@
1991 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1992 $(LIBS) $(LIBTALLOC_LIBS)
1994 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1995 @echo Linking $@
1996 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1997 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1998 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1999 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
2001 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
2002 @echo Linking $@
2003 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
2006 #####################################################################
2008 # libraries
2010 #####################################################################
2012 MKSYMS_SH = $(srcdir)/script/mksyms.sh
2015 #-------------------------------------------------------------------
2017 # libtalloc
2019 #-------------------------------------------------------------------
2022 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
2023 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
2025 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
2026 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
2027 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
2028 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
2029 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
2030 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2032 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2033 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2035 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2036 @echo Linking shared library $@
2037 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2039 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
2040 @rm -f $@
2041 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2043 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2044 @echo Linking non-shared library $@
2045 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2046 libtalloc: $(LIBTALLOC)
2048 cleanlibtalloc::
2049 -rm -f \
2050 $(LIBTALLOC_SYMS) \
2051 $(LIBTALLOC_STATIC_TARGET) \
2052 $(LIBTALLOC_SHARED_TARGET) \
2053 $(LIBTALLOC_SHARED_TARGET_SONAME)
2055 installlibtalloc:: installdirs libtalloc
2056 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2057 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2058 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2059 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2060 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2061 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2063 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2064 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2065 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2067 uninstalllibtalloc::
2068 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2069 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2070 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2071 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2073 libs:: libtalloc
2074 installlibs:: @INSTALL_LIBTALLOC@
2075 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2076 cleanlibs:: cleanlibtalloc
2077 shlibs test_shlibs: @LIBTALLOC_SHARED@
2079 showlibtalloc:
2080 @echo ""
2081 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2082 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2083 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2084 @echo ""
2085 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2086 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2087 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2088 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2089 @echo "LIBTALLOC = $(LIBTALLOC)"
2091 showlibs:: showlibtalloc
2093 #-------------------------------------------------------------------
2095 # libtdb
2097 #-------------------------------------------------------------------
2099 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2100 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2102 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2103 LIBTDB_SOVER=@LIBTDB_SOVER@
2104 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
2105 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2106 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2107 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2109 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2110 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2112 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2113 @echo Linking shared library $@
2114 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2115 @SONAMEFLAG@`basename $@`
2117 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
2118 @rm -f $@
2119 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2121 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2122 @echo Linking non-shared library $@
2123 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2125 libtdb: $(LIBTDB)
2127 cleanlibtdb::
2128 -rm -f \
2129 $(LIBTDB_SYMS) \
2130 $(LIBTDB_STATIC_TARGET) \
2131 $(LIBTDB_SHARED_TARGET) \
2132 $(LIBTDB_SHARED_TARGET_SONAME)
2135 installlibtdb:: installdirs libtdb
2136 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2137 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2138 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2139 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2140 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2141 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2143 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2144 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2145 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2147 uninstalllibtdb::
2148 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2149 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2150 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2151 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2153 libs:: libtdb
2154 installlibs:: @INSTALL_LIBTDB@
2155 uninstalllibs:: @UNINSTALL_LIBTDB@
2156 cleanlibs:: cleanlibtdb
2157 shlibs test_shlibs: @LIBTDB_SHARED@
2159 showlibtdb:
2160 @echo ""
2161 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2162 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2163 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2164 @echo ""
2165 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2166 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2167 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2168 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2169 @echo "LIBTDB = $(LIBTDB)"
2171 showlibs:: showlibtdb
2173 #-------------------------------------------------------------------
2175 # libwbclient
2177 #-------------------------------------------------------------------
2179 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2180 ../nsswitch/libwbclient/wbc_util.o \
2181 ../nsswitch/libwbclient/wbc_pwd.o \
2182 ../nsswitch/libwbclient/wbc_idmap.o \
2183 ../nsswitch/libwbclient/wbc_sid.o \
2184 ../nsswitch/libwbclient/wbc_guid.o \
2185 ../nsswitch/libwbclient/wbc_pam.o
2187 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2188 $(WBCOMMON_OBJ) \
2189 $(LIBREPLACE_OBJ) \
2190 ../lib/util/blocking.o \
2191 $(SOCKET_WRAPPER_OBJ)
2193 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2194 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2195 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
2196 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2197 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2198 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2200 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2201 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2203 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2204 @echo Linking shared library $@
2205 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2206 @SONAMEFLAG@`basename $@`
2208 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2209 @rm -f $@
2210 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2212 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2213 @echo Linking non-shared library $@
2214 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2216 libwbclient: $(LIBWBCLIENT)
2218 cleanlibwbclient::
2219 -rm -f \
2220 $(LIBWBCLIENT_SYMS) \
2221 $(LIBWBCLIENT_STATIC_TARGET) \
2222 $(LIBWBCLIENT_SHARED_TARGET) \
2223 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2225 installlibwbclient:: installdirs libwbclient
2226 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2227 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2228 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2229 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2230 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2231 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2233 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2234 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2235 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2237 uninstalllibwbclient::
2238 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2239 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2240 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2241 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2243 libs:: libwbclient
2244 installlibs:: @INSTALL_LIBWBCLIENT@
2245 uninstalllibs:: uninstalllibwbclient
2246 cleanlibs:: cleanlibwbclient
2247 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2249 showlibwbclient:
2250 @echo ""
2251 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2252 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2253 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2254 @echo ""
2255 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2256 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2257 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2258 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2259 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2261 showlibs:: showlibwbclient
2264 #-------------------------------------------------------------------
2266 # libaddns
2268 #-------------------------------------------------------------------
2271 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2272 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2273 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2274 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2275 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2276 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2277 LIBADDNS_HEADERS=$(srcdir)/../lib/addns/addns.h
2279 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2280 @echo Linking shared library $@
2281 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2282 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2283 @SONAMEFLAG@`basename $@`
2285 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2286 @rm -f $@
2287 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2289 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2290 @echo Linking non-shared library $@
2291 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2293 libaddns: $(LIBADDNS)
2295 cleanlibaddns::
2296 -rm -f \
2297 $(LIBADDNS_SHARED_TARGET) \
2298 $(LIBADDNS_SHARED_TARGET_SONAME) \
2299 $(LIBADDNS_STATIC_TARGET)
2301 installlibaddns:: installdirs libaddns
2302 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2303 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2304 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2305 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2306 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2307 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2309 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2311 uninstalllibaddns::
2312 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2313 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2314 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2316 libs:: libaddns
2317 installlibs:: @INSTALL_LIBADDNS@
2318 uninstalllibs:: @UNINSTALL_LIBADDNS@
2319 cleanlibs:: cleanlibaddns
2320 shlibs test_shlibs: @LIBADDNS_SHARED@
2322 showlibaddns:
2323 @echo ""
2324 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2325 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2326 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2327 @echo ""
2328 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2329 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2330 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2331 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2332 @echo "LIBADDNS = $(LIBADDNS)"
2334 showlibs:: showlibaddns
2336 #-------------------------------------------------------------------
2338 # libnetapi
2340 #-------------------------------------------------------------------
2342 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2343 lib/netapi/cm.o \
2344 librpc/gen_ndr/ndr_libnetapi.o \
2345 lib/netapi/libnetapi.o \
2346 lib/netapi/joindomain.o \
2347 lib/netapi/serverinfo.o \
2348 lib/netapi/getdc.o \
2349 lib/netapi/user.o \
2350 lib/netapi/group.o \
2351 lib/netapi/localgroup.o \
2352 lib/netapi/samr.o \
2353 lib/netapi/sid.o \
2354 lib/netapi/share.o \
2355 lib/netapi/file.o \
2356 lib/netapi/shutdown.o \
2357 lib/netapi/netlogon.o
2359 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2360 $(LIBSMBCONF_OBJ) \
2361 $(REG_SMBCONF_OBJ) \
2362 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2363 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2364 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2365 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2366 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2367 auth/token_util.o \
2368 $(LIBCLI_INITSHUTDOWN_OBJ) \
2369 $(LIBCLI_WKSSVC_OBJ) \
2370 $(LIBCLI_SRVSVC_OBJ) \
2371 $(LIBCLI_LSA_OBJ) \
2372 $(LIBCLI_SAMR_OBJ) \
2373 $(LIBCLI_NETLOGON_OBJ) \
2374 $(RPC_CLIENT_SCHANNEL_OBJ) \
2375 rpc_client/init_netlogon.o \
2376 rpc_client/init_samr.o
2378 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2379 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2380 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2381 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2382 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2383 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2385 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2386 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2388 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2389 @echo Linking shared library $@
2390 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2391 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2392 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2393 @SONAMEFLAG@`basename $@`
2395 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2396 @rm -f $@
2397 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2399 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2400 @echo Linking non-shared library $@
2401 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2403 libnetapi: $(LIBNETAPI)
2405 cleanlibnetapi::
2406 -rm -f \
2407 $(LIBNETAPI_SYMS) \
2408 $(LIBNETAPI_STATIC_TARGET) \
2409 $(LIBNETAPI_SHARED_TARGET) \
2410 $(LIBNETAPI_SHARED_TARGET_SONAME)
2412 installlibnetapi:: installdirs libnetapi
2413 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2414 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2415 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2416 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2417 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2418 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2420 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2421 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2422 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2424 uninstalllibnetapi::
2425 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2426 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2427 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2428 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2430 libs:: libnetapi
2431 installlibs:: @INSTALL_LIBNETAPI@
2432 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2433 cleanlibs:: cleanlibnetapi
2434 shlibs test_shlibs: @LIBNETAPI_SHARED@
2436 showlibnetapi:
2437 @echo ""
2438 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2439 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2440 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2441 @echo ""
2442 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2443 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2444 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2445 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2446 @echo "LIBNETAPI = $(LIBNETAPI)"
2448 showlibs:: showlibnetapi
2450 #-------------------------------------------------------------------
2452 # libsmbclient
2454 #-------------------------------------------------------------------
2456 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2457 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2458 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2459 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2460 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2461 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2462 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2464 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2465 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2467 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2468 @echo Linking shared library $@
2469 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2470 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2471 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2472 @SONAMEFLAG@`basename $@`
2474 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2475 @rm -f $@
2476 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2478 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2479 @echo Linking non-shared library $@
2480 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2482 libsmbclient: $(LIBSMBCLIENT)
2484 cleanlibsmbclient::
2485 -rm -f \
2486 $(LIBSMBCLIENT_SHARED_TARGET) \
2487 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2488 $(LIBSMBCLIENT_STATIC_TARGET)
2490 installlibsmbclient:: installdirs libsmbclient
2491 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2492 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2493 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2494 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2495 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2496 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2498 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2499 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2500 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2502 installclientlib:: installlibsmbclient
2504 uninstalllibsmbclient::
2505 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2506 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2507 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2508 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2510 uninstallclientlib:: uninstalllibsmbclient
2512 libs:: libsmbclient
2513 installlibs:: @INSTALL_LIBSMBCLIENT@
2514 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2515 cleanlibs:: cleanlibsmbclient
2516 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2518 showlibsmbclient:
2519 @echo ""
2520 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2521 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2522 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2523 @echo ""
2524 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2525 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2526 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2527 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2528 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2530 showlibs:: showlibsmbclient
2532 #-------------------------------------------------------------------
2534 # libsmbsharemodes
2536 #-------------------------------------------------------------------
2538 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2540 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2542 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2543 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2544 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2545 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2546 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2547 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2548 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2550 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2551 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2553 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2554 @echo Linking shared library $@
2555 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2556 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2557 @SONAMEFLAG@`basename $@`
2559 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2560 @rm -f $@
2561 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2563 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2564 @echo Linking non-shared library $@
2565 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2567 libsmbsharemodes: $(LIBSMBSHAREMODES)
2569 cleanlibsmbsharemodes::
2570 -rm -f \
2571 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2572 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2573 $(LIBSMBSHAREMODES_STATIC_TARGET)
2575 installlibsmbsharemodes:: installdirs libsmbsharemodes
2576 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2577 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2578 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2579 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2580 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2581 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2583 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2584 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2585 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2587 uninstalllibsmbsharemodes::
2588 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2589 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2590 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2591 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2593 libs:: libsmbsharemodes
2594 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2595 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2596 cleanlibs:: cleanlibsmbsharemodes
2597 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2599 showlibsmbsharemodes:
2600 @echo ""
2601 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2602 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2603 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2604 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2605 @echo ""
2606 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2607 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2608 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2609 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2610 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2612 showlibs:: showlibsmbsharemodes
2614 #-------------------------------------------------------------------
2616 # libbigballofmud
2618 #-------------------------------------------------------------------
2620 # This is probably wrong for anything other than the GNU linker.
2621 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2622 @echo Linking shared library $@
2623 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2624 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2625 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2626 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2627 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2629 # It would be nice to build a static bigballofmud too, but when I try
2630 # I get linker errors about dl_open and similar things. I'm not sure if
2631 # it can be fixed or if they just can't be called from a static
2632 # library.
2634 #####################################################################
2636 # shared modules
2638 #####################################################################
2640 # Linker command to link our shared libraries:
2641 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2642 -o $@ @SONAMEFLAG@`basename $@`
2643 # Linker command to link samba internal plugin modules:
2644 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2645 -o $@ @SONAMEFLAG@`basename $@`
2647 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2648 @echo "Linking $@"
2649 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2651 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2652 @echo "Linking $@"
2653 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2655 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2656 @echo "Linking $@"
2657 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2659 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2660 @echo "Linking $@"
2661 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2663 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2664 @echo "Linking $@"
2665 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2667 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2668 @echo "Linking $@"
2669 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2671 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2672 @echo "Linking $@"
2673 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2675 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2676 @echo "Linking $@"
2677 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2679 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2680 @echo "Linking $@"
2681 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2683 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2684 @echo "Linking $@"
2685 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2687 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2688 @echo "Linking $@"
2689 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2691 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2692 @echo "Linking $@"
2693 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2695 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2696 @echo "Linking $@"
2697 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2699 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2700 @echo "Linking $@"
2701 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2703 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2704 @echo "Linking $@"
2705 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2706 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2707 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2708 $(ZLIB_LIBS)
2710 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2711 @echo "Linking $@"
2712 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2713 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2714 $(LIBTDB_LIBS)
2716 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2717 @echo "Linking $@"
2718 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2719 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2720 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2722 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2723 @echo "Linking $@"
2724 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2725 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2726 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2728 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2729 @echo "Linking $@"
2730 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2731 @SONAMEFLAG@`basename $@`
2733 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2734 @echo "Linking shared library $@"
2735 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2736 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2738 ##########
2739 # Plugins:
2740 ##########
2742 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2743 @echo "Building plugin $@"
2744 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2746 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2747 @echo "Building plugin $@"
2748 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2750 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2751 @echo "Building plugin $@"
2752 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2754 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2755 @echo "Building plugin $@"
2756 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2758 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2759 @echo "Building plugin $@"
2760 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2762 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2763 @echo "Building plugin $@"
2764 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2766 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2767 @echo "Building plugin $@"
2768 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2770 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2771 @echo "Building plugin $@"
2772 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2774 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2775 @echo "Building plugin $@"
2776 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2778 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
2779 passdb/pdb_ipa.o
2780 @echo "Building plugin $@"
2781 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
2782 $(LDAP_LIBS)
2784 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2785 @echo "Building plugin $@"
2786 @$(SHLD_MODULE) passdb/pdb_ads.o
2788 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2789 @echo "Building plugin $@"
2790 @$(SHLD_MODULE) passdb/pdb_tdb.o
2792 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2793 @echo "Building plugin $@"
2794 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2796 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2797 @echo "Building plugin $@"
2798 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2800 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2801 @echo "Building plugin $@"
2802 @$(SHLD_MODULE) winbindd/idmap_rid.o
2804 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2805 @echo "Building plugin $@"
2806 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2808 bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
2809 @echo "Building plugin $@"
2810 @$(SHLD_MODULE) winbindd/idmap_autorid.o
2812 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2813 @echo "Building plugin $@"
2814 @$(SHLD_MODULE) winbindd/idmap_ad.o
2816 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2817 @echo "Building plugin $@"
2818 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2820 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2821 @echo "Building plugin $@"
2822 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2824 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2825 @echo "Building plugin $@"
2826 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2828 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2829 @echo "Building plugin $@"
2830 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2832 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2833 @echo "Building plugin $@"
2834 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2836 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2837 @echo "Building plugin $@"
2838 @$(SHLD_MODULE) $(CP850_OBJ)
2840 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2841 @echo "Building plugin $@"
2842 @$(SHLD_MODULE) $(CP437_OBJ)
2844 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2845 @echo "Building plugin $@"
2846 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2848 # NOTE, there is no build rule for a dynamic default VFS module because
2849 # this one MUST MUST MUST be built statically.
2851 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2852 @echo "Building plugin $@"
2853 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2855 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2856 @echo "Building plugin $@"
2857 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2859 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2860 @echo "Building plugin $@"
2861 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2863 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2864 @echo "Building plugin $@"
2865 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2867 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2868 @echo "Building plugin $@"
2869 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2871 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2872 @echo "Building plugin $@"
2873 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2875 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2876 @echo "Building plugin $@"
2877 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2879 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2880 @echo "Building plugin $@"
2881 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2883 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2884 @echo "Building plugin $@"
2885 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2887 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2888 @echo "Building plugin $@"
2889 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2891 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2892 @echo "Building plugin $@"
2893 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2895 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2896 @echo "Building plugin $@"
2897 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2899 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2900 @echo "Building plugin $@"
2901 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2903 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2904 @echo "Building plugin $@"
2905 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2907 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2908 @echo "Building plugin $@"
2909 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2911 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2912 @echo "Building plugin $@"
2913 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2915 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2916 @echo "Building plugin $@"
2917 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2919 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2920 @echo "Building plugin $@"
2921 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2923 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2924 @echo "Building plugin $@"
2925 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2927 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2928 @echo "Building plugin $@"
2929 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
2931 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2932 @echo "Building plugin $@"
2933 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2935 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2936 @echo "Building plugin $@"
2937 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2939 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2940 @echo "Building plugin $@"
2941 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2943 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2944 @echo "Building plugin $@"
2945 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2947 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2948 @echo "Building plugin $@"
2949 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2951 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2952 @echo "Building plugin $@"
2953 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2955 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2956 @echo "Building plugin $@"
2957 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2959 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2960 @echo "Building plugin $@"
2961 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2963 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2964 @echo "Building plugin $@"
2965 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2967 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2968 @echo "Building plugin $@"
2969 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2971 bin/gpfs_hsm_notify.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_HSM_NOTIFY_OBJ)
2972 @echo "Building plugin $@"
2973 @$(SHLD_MODULE) $(VFS_GPFS_HSM_NOTIFY_OBJ)
2975 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2976 @echo "Building plugin $@"
2977 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2979 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2980 @echo "Building plugin $@"
2981 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2983 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2984 @echo "Building plugin $@"
2985 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2987 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2988 @echo "Building plugin $@"
2989 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2991 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2992 @echo "Building plugin $@"
2993 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2995 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2996 @echo "Building plugin $@"
2997 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2999 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
3000 @echo "Building plugin $@"
3001 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
3003 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3004 @echo "Building plugin $@"
3005 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
3007 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
3008 @echo "Building plugin $@"
3009 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
3011 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
3012 @echo "Building plugin $@"
3013 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
3015 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3016 @echo "Building plugin $@"
3017 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
3019 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
3020 @echo "Building plugin $@"
3021 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
3023 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
3024 @echo "Building plugin $@"
3025 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
3027 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
3028 @echo "Building plugin $@"
3029 @$(SHLD_MODULE) libgpo/gpext/registry.o
3031 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
3032 @echo "Building plugin $@"
3033 @$(SHLD_MODULE) libgpo/gpext/scripts.o
3035 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
3036 @echo "Building plugin $@"
3037 @$(SHLD_MODULE) libgpo/gpext/security.o
3039 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
3040 @echo "Building plugin $@"
3041 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3043 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3044 @echo "Building plugin $@"
3045 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3047 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3048 @echo "Building plugin $@"
3049 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3051 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3052 @echo "Building plugin $@"
3053 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3055 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3056 @echo "Building plugin $@"
3057 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3059 #########################################################
3060 ## IdMap NSS plugins
3062 ## None here right now
3063 #########################################################
3065 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3066 @echo Linking $@
3067 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3068 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3069 $(LIBWBCLIENT_LIBS)
3071 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3072 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3073 @echo Linking $@
3074 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3075 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
3076 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3077 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3079 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3080 @echo "Linking shared library $@"
3081 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3082 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3083 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3085 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3086 @echo Linking $@
3087 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3088 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3090 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3091 @echo Linking $@
3092 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3093 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3095 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3096 @echo Linking $@
3097 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3099 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3100 @echo Linking $@
3101 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3103 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3104 @echo Linking $@
3105 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3106 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3108 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3109 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3110 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3112 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3113 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3114 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3116 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3117 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3118 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3120 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3121 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3122 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3124 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3125 @echo Linking $@
3126 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3128 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3129 @echo "Linking $@"
3130 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3131 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3132 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3134 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3135 @echo "Linking $@"
3136 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3137 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3138 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3139 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3141 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3142 @echo "Linking $@"
3143 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3144 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3145 $(LDAP_LIBS) \
3146 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3148 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3149 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3151 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3152 @echo "Linking $@"
3153 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3154 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3155 $(LDAP_LIBS) \
3156 $(POPT_LIBS) \
3157 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3159 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3160 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3162 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3163 @echo "Linking $@"
3164 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3165 $(LDFLAGS) $(DYNEXP) \
3166 $(LIBS) $(POPT_LIBS) \
3167 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3168 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3170 install:: installservers installbin installman \
3171 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3172 @INSTALL_PAM_MODULES@ installlibs installmo
3174 install-everything:: install installmodules
3176 # DESTDIR is used here to prevent packagers wasting their time
3177 # duplicating the Makefile. Remove it and you will have the privelege
3178 # of package each samba release for muliple versions of multiple
3179 # distributions and operating systems, or at least supplying patches
3180 # to all the packaging files required for this, prior to committing
3181 # the removal of DESTDIR. Do not remove it even though you think it
3182 # is not used
3184 installdirs::
3185 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3186 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3187 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3188 $(NMBDSOCKETDIR) \
3189 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3191 installservers:: all installdirs
3192 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3194 installbin:: all installdirs
3195 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3197 # Some symlinks are required for the 'probing' of modules.
3198 # This mechanism should go at some point..
3199 installmodules:: modules installdirs
3200 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3201 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3202 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3203 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3204 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3205 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3206 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3207 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3208 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3209 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3210 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3211 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3212 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3213 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3214 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3215 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3216 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3217 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3219 installscripts:: installdirs
3220 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3222 installdat:: installdirs
3223 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3225 installmsg:: installdirs
3226 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3228 installswat:: installdirs installmsg
3229 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3231 installpammodules:: $(PAM_MODULES)
3232 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3233 @for module in $(PAM_MODULES); do \
3234 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3235 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3236 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3237 done
3239 # revert to the previously installed version
3240 revert::
3241 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3242 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3244 installman:: installdirs
3245 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3247 installmo:: all installdirs
3248 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3250 .PHONY: showlayout
3252 showlayout::
3253 @echo "Samba will be installed into:"
3254 @echo " prefix: $(prefix)"
3255 @echo " bindir: $(BINDIR)"
3256 @echo " sbindir: $(SBINDIR)"
3257 @echo " libdir: $(LIBDIR)"
3258 @echo " modulesdir: $(MODULESDIR)"
3259 @echo " vardir: $(VARDIR)"
3260 @echo " mandir: $(MANDIR)"
3261 @echo " privatedir: $(PRIVATE_DIR)"
3262 @echo " configdir: $(CONFIGDIR)"
3263 @echo " lockdir: $(LOCKDIR)"
3264 @echo " statedir: $(STATEDIR)"
3265 @echo " cachedir: $(CACHEDIR)"
3266 @echo " piddir: $(PIDDIR)"
3267 @echo " nmbdsocketdir: $(NMBSOCKETDIR)"
3268 @echo " swatdir: $(SWATDIR)"
3269 @echo " datadir: ${DATADIR}"
3270 @echo " codepagedir: $(CODEPAGEDIR)"
3273 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3275 uninstallmo::
3276 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3278 uninstallman::
3279 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3281 uninstallservers::
3282 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3284 uninstallbin::
3285 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3287 uninstallmodules::
3288 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3289 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3290 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3291 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3292 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3293 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3294 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3296 uninstallscripts::
3297 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3299 uninstalldat::
3300 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3302 uninstallmsg::
3303 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3305 uninstallswat:: uninstallmsg
3306 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3308 uninstallpammodules::
3309 @for module in $(PAM_MODULES); do \
3310 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3311 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3312 done
3314 # Toplevel clean files
3315 TOPFILES=dynconfig.o localedir.o
3317 cleanlibs::
3318 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3319 ../lib/*/*.ho \
3320 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3321 ../librpc/*/*.o \
3322 ../libgpo/*.o ../libgpo/*/*.o \
3323 ../libds/*.o ../libds/*/*.o
3325 clean:: cleanlibs
3326 -rm -f include/build_env.h
3327 -rm -f smbd/build_options.c
3328 -rm -f $(PRECOMPILED_HEADER)
3329 -rm -f core */*~ *~ \
3330 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3331 ../testsuite/*/*.o \
3332 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3333 ../client/*.o \
3334 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3335 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3336 $(MODULES) $(TORTURE_PROGS) \
3337 $(EVERYTHING_PROGS) \
3338 bin/timelimit \
3339 .headers.stamp */src/*.o
3340 -rm -rf t_dir
3342 include/build_env.h: script/build_env.sh
3343 @echo Building include/build_env.h
3344 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3345 > $(builddir)/include/build_env.h
3347 proto::
3349 etags::
3350 rm -f TAGS
3351 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3353 ctags::
3354 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3356 realclean:: clean
3357 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3358 -rm -f script/installbin.sh script/uninstallbin.sh
3360 distclean:: realclean
3361 -rm -f smbadduser
3362 -rm -f include/config.h Makefile
3363 -rm -f config.status config.cache so_locations
3364 -rm -rf .deps TAGS
3366 realdistclean:: distclean
3367 -rm -f include/config.h.in
3368 -rm -f include/version.h
3369 -rm -f configure
3371 # this target is really just for my use. It only works on a limited
3372 # range of machines and is used to produce a list of potentially
3373 # dead (ie. unused) functions in the code. (tridge)
3374 finddead::
3375 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3376 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3377 comm -13 nmused.txt nmfns.txt
3380 # when configure.in is updated, reconfigure
3381 $(srcdir)/configure: $(srcdir)/configure.in
3382 @echo "WARNING: you need to rerun ./autogen.sh"
3384 config.status: $(srcdir)/configure
3385 @echo "WARNING: you need to run ./configure"
3387 Makefile: $(srcdir)/Makefile.in config.status
3388 @echo "WARNING: you need to run ./config.status"
3390 ######################################################################
3391 # Samba Testing Framework
3393 # Check shared libs for unresolved symbols
3394 test_shlibs:
3395 @echo "Testing $? "
3396 @$(LIB_PATH_VAR)=./bin && \
3397 export $(LIB_PATH_VAR) && \
3398 for module in $?; do \
3399 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3400 || exit 1; \
3401 done
3403 # Check for NSS module problems.
3404 test_nss_modules:: nss_modules
3405 @echo "Testing $(NSS_MODULES) "
3406 @$(LIB_PATH_VAR)=./bin && \
3407 export $(LIB_PATH_VAR) && \
3408 for module in $(NSS_MODULES); do \
3409 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3410 || exit 1; \
3411 done
3413 # Check for PAM module problems. Specifically, check that every module we
3414 # built can actually be loaded by a minimal PAM-aware application.
3415 test_pam_modules:: pam_modules
3416 @echo "Testing $(PAM_MODULES) "
3417 @$(LIB_PATH_VAR)=./bin && \
3418 export $(LIB_PATH_VAR) && \
3419 for module in $(PAM_MODULES); do \
3420 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3421 || exit 1; \
3422 done
3426 ## Targets for 'make test'
3429 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3431 valgrindtest:: all torture timelimit
3432 @echo Running Test suite with valgrind
3433 @$(MAKE) test \
3434 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3435 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3436 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3437 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
3439 selftestdir = ../selftest
3441 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3443 test:: all torture timelimit
3444 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3445 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3446 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3447 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3448 SOURCEDIR="$(srcdir)" \
3449 VFSLIBDIR="$(builddir)/bin" \
3450 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3451 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3452 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3453 $(srcdir)/selftest/s3-selftest.sh
3455 test-%:
3456 $(MAKE) test TESTS=$*
3458 buildfarm-test:
3459 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3461 subunit-test:
3462 $(MAKE) test SUBUNIT_FORMATTER=cat
3464 SELFTEST_TESTENV = s3dc
3466 testenv:
3467 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3469 gdbtestenv:
3470 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3471 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3472 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3473 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3474 TESTS="--testenv"
3476 valgrindtestenv:
3477 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3478 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3479 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3480 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3481 TESTS="--testenv"
3484 # Check for Winbind struct 32/64bit padding
3485 test_wbpad:
3486 @echo "Testing winbind request/response structure for 32/64bit padding"
3487 @./script/tests/wb_pad.sh || exit 1;
3490 ## Examples:
3493 libsmbclient_examples: libsmbclient
3494 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3496 clean_libsmbclient_examples:
3497 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3499 libnetapi_examples: libnetapi
3500 $(MAKE) -C lib/netapi/examples
3502 clean_libnetapi_examples:
3503 $(MAKE) -C lib/netapi/examples clean
3505 .PHONY: bin/smbtorture4 bin/ndrdump4
3507 bin/smbtorture4: $(BINARY_PREREQS)
3508 $(MAKE) -f Makefile-smbtorture4 bin/smbtorture4
3510 bin/ndrdump4: $(BINARY_PREREQS)
3511 $(MAKE) -f Makefile-smbtorture4 bin/ndrdump4