s3/profile: remove the magical clock initialization from the profile code
[Samba.git] / source3 / Makefile.in
blob321eb3cf33d50909dd286efaf5ffca0eac0dc978
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 TDBTORTURE = @TDBTORTURE@
100 INSTALLCMD=@INSTALL@
101 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
102 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
103 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
104 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
106 VPATH=@srcdir@
107 srcdir=@abs_srcdir@
108 builddir=@abs_builddir@
109 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
110 # will search for a POSIX-compliant shell, and that might not be
111 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
112 SHELL=/bin/sh
113 DESTDIR=/
115 # See the autoconf manual "Installation Directory Variables" for a
116 # discussion of the subtle use of these variables.
118 BASEDIR= @prefix@
119 BINDIR = @bindir@
120 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
121 SBINDIR = @sbindir@
122 ROOTSBINDIR = @rootsbindir@
123 LIBDIR = @libdir@
124 MODULESDIR = @modulesdir@
125 INCLUDEDIR=@includedir@
126 PAMMODULESDIR = @pammodulesdir@
127 VFSLIBDIR = $(MODULESDIR)/vfs
128 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
129 PDBLIBDIR = $(MODULESDIR)/pdb
130 RPCLIBDIR = $(MODULESDIR)/rpc
131 IDMAPLIBDIR = $(MODULESDIR)/idmap
132 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
133 CHARSETLIBDIR = $(MODULESDIR)/charset
134 AUTHLIBDIR = $(MODULESDIR)/auth
135 CONFIGLIBDIR = $(MODULESDIR)/config
136 GPEXTLIBDIR = $(MODULESDIR)/gpext
137 CONFIGDIR = @configdir@
138 VARDIR = @localstatedir@
139 MANDIR = @mandir@
140 DATADIR = @datadir@
142 # The permissions to give the executables and other data
143 INSTALLPERMS_BIN = 0755
144 INSTALLPERMS_DATA = 0644
146 # set these to where to find various files
147 # These can be overridden by command line switches (see smbd(8))
148 # or in smb.conf (see smb.conf(5))
149 LOGFILEBASE = @logfilebase@
150 CONFIGFILE = $(CONFIGDIR)/smb.conf
151 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
152 NCALRPCDIR = @ncalrpcdir@
154 # This is where smbpasswd et al go
155 PRIVATEDIR = @privatedir@
157 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
158 PRIVATE_DIR = $(PRIVATEDIR)
160 # This is where SWAT images and help files go
161 SWATDIR = @swatdir@
163 # This is where locale(mo) files go
164 LOCALEDIR= @localedir@
166 # the directory where lock files go
167 LOCKDIR = @lockdir@
169 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
170 CACHEDIR = @cachedir@
171 STATEDIR = @statedir@
173 # Where to look for (and install) codepage databases.
174 CODEPAGEDIR = @codepagedir@
176 # the directory where pid files go
177 PIDDIR = @piddir@
179 FLAGS = -I. \
180 -I$(srcdir) \
181 @FLAGS1@ \
182 @SAMBA_CPPFLAGS@ \
183 $(CPPFLAGS) \
184 $(ISA) \
185 -I$(srcdir)/lib \
186 -I.. \
187 -I../source4 \
188 -D_SAMBA_BUILD_=3
190 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
191 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
192 -DCONFIGFILE=\"$(CONFIGFILE)\" \
193 -DSBINDIR=\"$(SBINDIR)\" \
194 -DBINDIR=\"$(BINDIR)\" \
195 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
196 -DSWATDIR=\"$(SWATDIR)\" \
197 -DLOCKDIR=\"$(LOCKDIR)\" \
198 -DPIDDIR=\"$(PIDDIR)\" \
199 -DLIBDIR=\"$(LIBDIR)\" \
200 -DMODULESDIR=\"$(MODULESDIR)\" \
201 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
202 -DSHLIBEXT=\"@SHLIBEXT@\" \
203 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
204 -DCONFIGDIR=\"$(CONFIGDIR)\" \
205 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
206 -DCACHEDIR=\"$(CACHEDIR)\" \
207 -DSTATEDIR=\"$(STATEDIR)\" \
208 -DLOCALEDIR=\"$(LOCALEDIR)\"
210 # Note that all executable programs now provide for an optional executable suffix.
212 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
214 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
215 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
216 bin/smbta-util@EXEEXT@
217 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
218 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
219 $(TDBTOOL)
220 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
221 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
222 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
224 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
225 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
226 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
227 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
228 $(TDBTORTURE) \
229 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
231 BIN_PROGS = @EXTRA_BIN_PROGS@ \
232 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
234 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
235 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
236 bin/log2pcap@EXEEXT@ \
237 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
238 bin/dbwrap_tool@EXEEXT@ \
239 bin/dbwrap_torture@EXEEXT@
241 PAM_MODULES = @PAM_MODULES@
243 NSS_MODULES = @NSS_MODULES@
245 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
247 VFS_MODULES = @VFS_MODULES@
248 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
249 PDB_MODULES = @PDB_MODULES@
250 RPC_MODULES = @RPC_MODULES@
251 IDMAP_MODULES = @IDMAP_MODULES@
252 CHARSET_MODULES = @CHARSET_MODULES@
253 AUTH_MODULES = @AUTH_MODULES@
254 NSS_INFO_MODULES = @NSS_INFO_MODULES@
255 GPEXT_MODULES = @GPEXT_MODULES@
256 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
257 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
258 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
260 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
262 ######################################################################
263 # object file lists
264 ######################################################################
266 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
267 lib/dbwrap.o lib/dbwrap_tdb.o \
268 lib/dbwrap_ctdb.o \
269 lib/g_lock.o \
270 lib/dbwrap_rbt.o
272 TDB_VALIDATE_OBJ = lib/tdb_validate.o
274 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
276 VERSION_OBJ = lib/version.o
278 WBCOMMON_OBJ = ../nsswitch/wb_common.o
280 AFS_OBJ = lib/afs.o
282 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
284 AVAHI_OBJ = @AVAHI_OBJ@
286 SERVER_MUTEX_OBJ = lib/server_mutex.o
288 PASSCHANGE_OBJ = libsmb/passchange.o
290 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
291 ../librpc/ndr/ndr_compression.o \
292 librpc/gen_ndr/ndr_drsuapi.o \
293 ../librpc/ndr/ndr_drsblobs.o \
294 librpc/gen_ndr/ndr_drsblobs.o
296 ZLIB_OBJ = @ZLIB_OBJS@
298 COMPRESSION_OBJ = ../lib/compression/mszip.o \
299 ../lib/compression/lzxpress.o \
300 $(ZLIB_OBJ)
302 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
303 $(COMPRESSION_OBJ)
305 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
306 ../librpc/ndr/ndr_ntlmssp.o
308 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
309 ../librpc/ndr/ndr.o \
310 ../librpc/ndr/ndr_misc.o \
311 librpc/gen_ndr/ndr_misc.o \
312 librpc/gen_ndr/ndr_security.o \
313 ../librpc/ndr/ndr_sec_helper.o \
314 ../librpc/ndr/ndr_string.o \
315 ../librpc/ndr/uuid.o \
316 librpc/ndr/util.o \
317 librpc/gen_ndr/ndr_dcerpc.o
319 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
320 librpc/gen_ndr/ndr_lsa.o
322 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
323 ../librpc/ndr/ndr_netlogon.o
325 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
326 ../librpc/ndr/ndr_schannel.o
328 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
329 ../librpc/ndr/ndr_spoolss_buf.o
331 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
332 ../librpc/ndr/ndr_ntprinting.o \
334 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
335 librpc/ndr/ndr_preg.o
337 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
338 ../librpc/ndr/ndr_xattr.o
340 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/cli_spoolss.o \
341 librpc/gen_ndr/ndr_spoolss_c.o \
342 rpc_client/cli_spoolss.o \
343 rpc_client/init_spoolss.o
345 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/cli_eventlog.o \
346 librpc/gen_ndr/ndr_eventlog_c.o
348 LIBCLI_WINREG_OBJ = librpc/gen_ndr/cli_winreg.o \
349 librpc/gen_ndr/ndr_winreg_c.o
351 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/cli_ntsvcs.o \
352 librpc/gen_ndr/ndr_ntsvcs_c.o
354 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/cli_drsuapi.o \
355 librpc/gen_ndr/ndr_drsuapi_c.o
357 LIBCLI_DFS_OBJ = librpc/gen_ndr/cli_dfs.o \
358 librpc/gen_ndr/ndr_dfs_c.o
360 LIBCLI_ECHO_OBJ = librpc/gen_ndr/cli_echo.o \
361 librpc/gen_ndr/ndr_echo_c.o
363 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/cli_initshutdown.o \
364 librpc/gen_ndr/ndr_initshutdown_c.o
366 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/cli_dssetup.o \
367 librpc/gen_ndr/ndr_dssetup_c.o
369 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/cli_svcctl.o \
370 librpc/gen_ndr/ndr_svcctl_c.o
372 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/cli_wkssvc.o \
373 librpc/gen_ndr/ndr_wkssvc_c.o
375 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/cli_srvsvc.o \
376 librpc/gen_ndr/ndr_srvsvc_c.o
378 LIBCLI_LSA_OBJ = librpc/gen_ndr/cli_lsa.o \
379 librpc/gen_ndr/ndr_lsa_c.o \
380 rpc_client/cli_lsarpc.o \
381 rpc_client/init_lsa.o
383 LIBCLI_SAMR_OBJ = librpc/gen_ndr/cli_samr.o \
384 librpc/gen_ndr/ndr_samr_c.o \
385 rpc_client/cli_samr.o
387 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/cli_netlogon.o \
388 librpc/gen_ndr/ndr_netlogon_c.o \
389 rpc_client/cli_netlogon.o
391 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/cli_epmapper.o \
392 librpc/gen_ndr/ndr_epmapper_c.o
394 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
395 $(LIBNDR_GEN_OBJ0) \
396 librpc/gen_ndr/ndr_dfs.o \
397 librpc/gen_ndr/ndr_echo.o \
398 librpc/gen_ndr/ndr_winreg.o \
399 librpc/gen_ndr/ndr_initshutdown.o \
400 librpc/gen_ndr/ndr_srvsvc.o \
401 librpc/gen_ndr/ndr_eventlog.o \
402 $(LIBNDR_NETLOGON_OBJ) \
403 librpc/gen_ndr/ndr_dssetup.o \
404 librpc/gen_ndr/ndr_epmapper.o \
405 librpc/gen_ndr/ndr_ntsvcs.o \
406 $(LIBNDR_SPOOLSS_OBJ)
408 # this includes only the low level parse code, not stuff
409 # that requires knowledge of security contexts
410 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
412 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
414 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
415 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
417 LIBSAMBAUTIL_OBJ = \
418 $(LIBREPLACE_OBJ) \
419 $(SOCKET_WRAPPER_OBJ) \
420 $(NSS_WRAPPER_OBJ)
422 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
423 ../lib/util/xfile.o ../lib/util/util_strlist.o \
424 ../lib/util/util_file.o ../lib/util/data_blob.o \
425 ../lib/util/util.o ../lib/util/fsusage.o \
426 ../lib/util/params.o ../lib/util/talloc_stack.o \
427 ../lib/util/genrand.o ../lib/util/util_net.o \
428 ../lib/util/become_daemon.o ../lib/util/system.o \
429 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
430 ../lib/util/smb_threads.o ../lib/util/util_id.o \
431 ../lib/util/blocking.o ../lib/util/rfc1738.o
433 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
434 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
435 ../lib/crypto/md4.o \
436 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
437 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
439 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
440 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
441 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
442 lib/interfaces.o lib/memcache.o \
443 lib/talloc_dict.o \
444 lib/serverid.o \
445 lib/util_sconn.o \
446 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
447 $(TDB_LIB_OBJ) \
448 $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
449 lib/interface.o lib/pidfile.o \
450 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
451 lib/username.o \
452 ../libds/common/flag_mapping.o \
453 lib/util_pw.o lib/access.o lib/smbrun.o \
454 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
455 lib/wins_srv.o \
456 lib/util_str.o lib/clobber.o lib/util_sid.o lib/util_uuid.o \
457 lib/util_unistr.o lib/util_file.o \
458 lib/util.o lib/util_names.o \
459 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
460 lib/substitute.o lib/dbwrap_util.o \
461 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
462 lib/tallocmsg.o lib/dmallocmsg.o \
463 libsmb/clisigning.o libsmb/smb_signing.o \
464 lib/iconv.o lib/pam_errors.o intl/lang_tdb.o \
465 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
466 lib/sessionid_tdb.o \
467 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
468 lib/server_contexts.o \
469 lib/ldap_escape.o @CHARSET_STATIC@ \
470 lib/secdesc.o lib/util_seaccess.o ../libcli/security/secace.o \
471 ../libcli/security/sddl.o \
472 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
473 lib/fncall.o \
474 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
475 lib/file_id.o lib/idmap_cache.o \
476 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o
478 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
479 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
481 READLINE_OBJ = lib/readline.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 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
494 libaddns/dnsgss.o libaddns/dnsmarshall.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.o \
525 ../libcli/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 $(REG_PARSE_PRS_OBJ) \
545 $(SECRETS_OBJ)
547 LIBSMB_OBJ0 = \
548 ../libcli/auth/ntlm_check.o \
549 libsmb/ntlmssp.o \
550 libsmb/ntlmssp_wrap.o \
551 ../libcli/auth/ntlmssp.o \
552 ../libcli/auth/ntlmssp_sign.o \
553 $(LIBNDR_NTLMSSP_OBJ) \
554 ../libcli/auth/ntlmssp_ndr.o \
555 ../libcli/auth/ntlmssp_server.o
557 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
558 $(LIBSMB_ERR_OBJ)
560 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
561 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o
563 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
564 ../lib/tsocket/tsocket_helpers.o \
565 ../lib/tsocket/tsocket_bsd.o
567 CLDAP_OBJ = libads/cldap.o \
568 ../libcli/cldap/cldap.o lib/ldb_compat.o \
569 ../lib/util/idtree.o \
570 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
572 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
574 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
575 ../libcli/auth/schannel_sign.o \
576 ../libcli/auth/schannel_state_tdb.o \
577 $(LIBNDR_SCHANNEL_OBJ)
579 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
580 libsmb/clikrb5.o libsmb/clispnego.o \
581 ../libcli/auth/spnego_parse.o \
582 ../lib/util/asn1.o \
583 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
584 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
585 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
586 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
587 libsmb/clioplock.o libsmb/clirap2.o \
588 libsmb/smb_seal.o libsmb/async_smb.o \
589 $(LIBSAMBA_OBJ) \
590 $(LIBNMB_OBJ) \
591 $(LIBNBT_OBJ) \
592 $(CLDAP_OBJ) \
593 $(DRSUAPI_OBJ)
595 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
596 rpc_client/cli_pipe.o \
597 librpc/rpc/dcerpc_krb5.o \
598 librpc/rpc/dcerpc_gssapi.o \
599 librpc/rpc/dcerpc_spnego.o \
600 librpc/rpc/rpc_common.o \
601 rpc_client/rpc_transport_np.o \
602 rpc_client/rpc_transport_sock.o \
603 ../librpc/rpc/binding.o \
604 ../librpc/rpc/dcerpc_util.o \
605 ../librpc/rpc/binding_handle.o \
606 librpc/rpc/dcerpc_helpers.o
608 LIBMSRPC_GEN_OBJ = $(LIBCLI_EPMAPPER_OBJ) \
609 $(LIBNDR_GEN_OBJ)
612 # registry-related objects
614 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
616 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
617 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
618 REG_INIT_FULL_OBJ = registry/reg_init_full.o
620 REGFIO_OBJ = registry/regfio.o
622 REGOBJS_OBJ = registry/reg_objects.o
624 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
626 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
628 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
629 registry/reg_backend_shares.o \
630 registry/reg_backend_netlogon_params.o \
631 registry/reg_backend_prod_options.o \
632 registry/reg_backend_tcpip_params.o \
633 registry/reg_backend_hkpt_params.o \
634 registry/reg_backend_current_version.o \
635 registry/reg_backend_perflib.o
637 REG_BASE_OBJ = registry/reg_api.o \
638 registry/reg_dispatcher.o \
639 registry/reg_cachehook.o \
640 $(REGFIO_OBJ) \
641 $(REGOBJS_OBJ) \
642 registry/reg_util_internal.o \
643 lib/util_nttoken.o \
644 $(REG_BACKENDS_BASE_OBJ) \
645 $(REG_INIT_BASIC_OBJ)
647 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
648 registry/reg_util_token.o \
649 $(REG_BACKENDS_SMBCONF_OBJ) \
650 $(REG_INIT_SMBCONF_OBJ)
652 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
653 $(REG_BACKENDS_EXTRA_OBJ) \
654 $(REG_INIT_FULL_OBJ) \
655 registry/reg_eventlog.o \
656 registry/reg_perfcount.o \
657 librpc/gen_ndr/ndr_perfcount.o \
658 registry/reg_util_legacy.o
660 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
662 RPC_LSARPC_OBJ = rpc_server/srv_lsa_nt.o \
663 librpc/gen_ndr/srv_lsa.o
665 RPC_NETLOGON_OBJ = rpc_server/srv_netlog_nt.o \
666 librpc/gen_ndr/srv_netlogon.o
668 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
669 rpc_server/srv_samr_util.o \
670 rpc_server/srv_samr_chgpasswd.o \
671 librpc/gen_ndr/srv_samr.o
673 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
675 RPC_WINREG_OBJ = rpc_server/srv_winreg_nt.o \
676 librpc/gen_ndr/srv_winreg.o
678 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
680 RPC_SRVSVC_OBJ = rpc_server/srv_srvsvc_nt.o \
681 librpc/gen_ndr/srv_srvsvc.o
683 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
684 rpc_server/srv_wkssvc_nt.o
686 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl_nt.o \
687 librpc/gen_ndr/srv_svcctl.o \
688 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
689 services/svc_netlogon.o services/svc_winreg.o \
690 services/svc_wins.o
692 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs_nt.o \
693 librpc/gen_ndr/srv_ntsvcs.o
695 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
696 rpc_server/srv_dfs_nt.o
698 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss_nt.o \
699 rpc_server/srv_spoolss_util.o \
700 librpc/gen_ndr/srv_spoolss.o
702 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog_nt.o \
703 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
705 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
706 librpc/gen_ndr/ndr_named_pipe_auth.o
708 RPC_NCACN_NP_INTERNAL = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np_internal.o \
709 rpc_server/rpc_handles.o
711 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
712 $(RPC_NCACN_NP_INTERNAL)
714 RPC_RPCECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
716 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
717 $(LIBCLI_SPOOLSS_OBJ) \
718 $(LIBCLI_WINREG_OBJ) \
719 $(LIBCLI_SRVSVC_OBJ) \
720 $(LIBCLI_LSA_OBJ) \
721 $(LIBCLI_SAMR_OBJ) \
722 $(LIBCLI_NETLOGON_OBJ) \
723 $(RPC_CLIENT_SCHANNEL_OBJ) \
724 rpc_client/init_netlogon.o \
725 rpc_client/init_samr.o
727 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
729 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
731 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
733 PRIVILEGES_OBJ = lib/privileges.o
735 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
737 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
738 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
739 passdb/util_unixsids.o passdb/lookup_sid.o \
740 passdb/login_cache.o @PDB_STATIC@ \
741 passdb/account_pol.o $(PRIVILEGES_OBJ) \
742 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ)
744 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
745 CP850_OBJ = modules/CP850.o
746 CP437_OBJ = modules/CP437.o
747 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
749 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
751 PROFILE_OBJ = profile/profile.o
752 PROFILES_OBJ = utils/profiles.o \
753 $(LIBSMB_ERR_OBJ) \
754 $(PARAM_OBJ) \
755 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
756 $(POPT_LIB_OBJ)
758 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
759 smbd/oplock_onefs.o
761 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
762 librpc/gen_ndr/ndr_notify.o
764 FNAME_UTIL_OBJ = smbd/filename_util.o
766 VFS_DEFAULT_OBJ = modules/vfs_default.o
767 VFS_AUDIT_OBJ = modules/vfs_audit.o
768 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
769 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
770 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
771 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
772 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
773 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
774 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
775 VFS_CAP_OBJ = modules/vfs_cap.o
776 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
777 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
778 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
779 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
780 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
781 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
782 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
783 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
784 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
785 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
786 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
787 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
788 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
789 VFS_CATIA_OBJ = modules/vfs_catia.o
790 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
791 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
792 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
793 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
794 VFS_COMMIT_OBJ = modules/vfs_commit.o
795 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
796 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
797 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
798 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
799 VFS_FILEID_OBJ = modules/vfs_fileid.o
800 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
801 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
802 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
803 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
804 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
805 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
806 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
807 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
808 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
809 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
810 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
811 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
812 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
813 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
814 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
815 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
817 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
819 SLCACHE_OBJ = libsmb/samlogon_cache.o
821 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
823 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
824 AUTH_DOMAIN_OBJ = auth/auth_domain.o
825 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
826 AUTH_SERVER_OBJ = auth/auth_server.o
827 AUTH_UNIX_OBJ = auth/auth_unix.o
828 AUTH_WINBIND_OBJ = auth/auth_winbind.o
829 AUTH_WBC_OBJ = auth/auth_wbc.o
830 AUTH_SCRIPT_OBJ = auth/auth_script.o
831 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
833 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
834 auth/server_info.o \
835 auth/server_info_sam.o \
836 auth/user_info.o \
837 auth/user_util.o \
838 auth/user_krb5.o \
839 auth/auth_compat.o auth/auth_ntlmssp.o \
840 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
842 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
844 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
846 BUILDOPT_OBJ = smbd/build_options.o
848 SMBD_OBJ_SRV = smbd/server_reload.o \
849 smbd/files.o smbd/connection.o \
850 smbd/utmp.o smbd/session.o \
851 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
852 smbd/share_access.o smbd/fileio.o \
853 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
854 smbd/message.o smbd/nttrans.o smbd/pipes.o \
855 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
856 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
857 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
858 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
859 smbd/posix_acls.o lib/sysacls.o \
860 smbd/process.o smbd/service.o smbd/error.o \
861 printing/printspoolss.o \
862 lib/sysquotas.o lib/sysquotas_linux.o \
863 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
864 lib/sysquotas_nfs.o \
865 smbd/fake_file.o \
866 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
867 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
868 smbd/dmapi.o smbd/signing.o \
869 smbd/file_access.o \
870 smbd/dnsregister.o smbd/globals.o \
871 smbd/smb2_server.o \
872 smbd/smb2_signing.o \
873 smbd/smb2_glue.o \
874 smbd/smb2_negprot.o \
875 smbd/smb2_sesssetup.o \
876 smbd/smb2_tcon.o \
877 smbd/smb2_create.o \
878 smbd/smb2_close.o \
879 smbd/smb2_flush.o \
880 smbd/smb2_read.o \
881 smbd/smb2_write.o \
882 smbd/smb2_lock.o \
883 smbd/smb2_ioctl.o \
884 smbd/smb2_keepalive.o \
885 smbd/smb2_find.o \
886 smbd/smb2_notify.o \
887 smbd/smb2_getinfo.o \
888 smbd/smb2_setinfo.o \
889 smbd/smb2_break.o \
890 ../libcli/smb/smb2_create_blob.o \
891 $(MANGLE_OBJ) @VFS_STATIC@
893 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
894 $(RPC_SERVER_OBJ) \
895 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
896 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
897 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
898 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
899 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
900 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
901 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
902 $(LIBSMBCONF_OBJ) \
903 $(PRIVILEGES_BASIC_OBJ) \
904 $(LIBNDR_XATTR_OBJ)
906 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
907 printing/print_cups.o printing/print_generic.o \
908 printing/lpq_parse.o printing/load.o \
909 printing/print_iprint.o printing/print_standard.o
911 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
912 PRINTBACKEND_OBJ = printing/printing.o \
913 printing/nt_printing.o \
914 printing/nt_printing_tdb.o \
915 printing/nt_printing_migrate.o \
916 printing/nt_printing_ads.o \
917 librpc/gen_ndr/ndr_ntprinting.o \
918 ../librpc/ndr/ndr_ntprinting.o \
919 $(PRINTBASE_OBJ)
921 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
923 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
924 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
925 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
926 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
927 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
928 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
929 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
930 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
931 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
932 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
933 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
934 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
936 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
937 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
938 $(LIBNDR_GEN_OBJ0)
940 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
941 web/swat.o web/neg_lang.o
943 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
944 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
945 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
946 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
947 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
948 $(LIBCLI_SAMR_OBJ) \
949 rpc_client/init_lsa.o
951 STATUS_OBJ = utils/status.o utils/status_profile.o \
952 $(LOCKING_OBJ) $(PARAM_OBJ) \
953 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
954 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
956 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
957 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
959 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
960 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
961 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
962 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
963 $(LIBMSRPC_GEN_OBJ) \
964 $(LIBMSRPC_OBJ) \
965 $(LIBCLI_SRVSVC_OBJ)
967 TESTPARM_OBJ = utils/testparm.o \
968 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
969 $(LIBSMB_ERR_OBJ)
971 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
972 $(LOCKING_OBJ) $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) \
973 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
975 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
976 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
977 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
979 PASSWD_UTIL_OBJ = utils/passwd_util.o
981 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
982 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
983 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
984 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
985 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
986 $(LIBCLI_SAMR_OBJ) \
987 rpc_client/init_lsa.o
989 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
990 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
991 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
992 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
994 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
996 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
998 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
999 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1000 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1001 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1002 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1003 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1004 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1005 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1006 $(DISPLAY_SEC_OBJ)
1008 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1009 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1010 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1011 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1012 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1013 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1014 $(LIBCLI_SPOOLSS_OBJ) \
1015 $(LIBCLI_EVENTLOG_OBJ) \
1016 $(LIBCLI_NTSVCS_OBJ) \
1017 $(LIBCLI_DRSUAPI_OBJ) \
1018 $(LIBCLI_DFS_OBJ) \
1019 $(LIBCLI_ECHO_OBJ) \
1020 $(LIBCLI_DSSETUP_OBJ) \
1021 $(LIBCLI_WKSSVC_OBJ) \
1022 $(LIBCLI_SRVSVC_OBJ) \
1023 $(LIBCLI_LSA_OBJ) \
1024 $(LIBCLI_SAMR_OBJ) \
1025 $(LIBCLI_NETLOGON_OBJ) \
1026 $(RPC_CLIENT_SCHANNEL_OBJ) \
1027 rpc_client/init_netlogon.o \
1028 rpc_client/init_samr.o
1030 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1031 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1033 LIBSMBCLIENT_THREAD_OBJ = \
1034 libsmb/libsmb_thread_impl.o \
1035 libsmb/libsmb_thread_posix.o
1037 LIBSMBCLIENT_OBJ0 = \
1038 libsmb/libsmb_cache.o \
1039 libsmb/libsmb_compat.o \
1040 libsmb/libsmb_context.o \
1041 libsmb/libsmb_dir.o \
1042 libsmb/libsmb_file.o \
1043 libsmb/libsmb_misc.o \
1044 libsmb/libsmb_path.o \
1045 libsmb/libsmb_printjob.o \
1046 libsmb/libsmb_server.o \
1047 libsmb/libsmb_stat.o \
1048 libsmb/libsmb_xattr.o \
1049 libsmb/libsmb_setget.o
1051 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1052 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1053 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1054 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1055 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1056 $(LIBCLI_SRVSVC_OBJ) \
1057 $(LIBCLI_LSA_OBJ)
1059 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1061 # This shared library is intended for linking with unit test programs
1062 # to test Samba internals. It's called libbigballofmud.so to
1063 # discourage casual usage.
1065 LIBBIGBALLOFMUD_MAJOR = 0
1067 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1068 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1069 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1071 CLIENT_OBJ1 = client/client.o client/clitar.o \
1072 client/dnsbrowse.o \
1073 $(LIBMSRPC_OBJ)
1075 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1076 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1077 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1078 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1079 $(DISPLAY_SEC_OBJ) \
1080 $(LIBCLI_SRVSVC_OBJ)
1082 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1083 ../lib/smbconf/smbconf_util.o \
1084 ../lib/smbconf/smbconf_txt.o \
1085 lib/smbconf/smbconf_reg.o \
1086 lib/smbconf/smbconf_init.o
1088 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1090 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1091 $(LIB_NONSMBD_OBJ) \
1092 $(PARAM_OBJ) \
1093 $(LIBSMB_ERR_OBJ) \
1094 $(POPT_LIB_OBJ)
1096 LIBNET_OBJ = libnet/libnet_join.o \
1097 libnet/libnet_keytab.o \
1098 librpc/gen_ndr/ndr_libnet_join.o
1100 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1101 libnet/libnet_dssync_keytab.o \
1102 ../libcli/drsuapi/repl_decrypt.o
1104 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1105 libnet/libnet_samsync_ldif.o \
1106 libnet/libnet_samsync_passdb.o \
1107 libnet/libnet_samsync_display.o \
1108 libnet/libnet_samsync_keytab.o \
1109 ../libcli/samsync/decrypt.o
1111 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1112 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1113 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1114 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
1115 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1116 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1117 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1118 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1119 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1120 utils/net_conf.o utils/net_join.o utils/net_user.o \
1121 utils/net_group.o utils/net_file.o utils/net_registry.o \
1122 auth/token_util.o utils/net_dom.o utils/net_share.o \
1123 utils/net_g_lock.o \
1124 utils/net_serverid.o \
1125 utils/net_eventlog.o \
1126 utils/net_printing.o \
1127 $(LIBNDR_NTPRINTING_OBJ) \
1128 $(LIBNDR_PREG_OBJ) \
1129 $(LIBCLI_SPOOLSS_OBJ) \
1130 $(LIBCLI_WINREG_OBJ) \
1131 $(LIBCLI_DRSUAPI_OBJ) \
1132 $(LIBCLI_INITSHUTDOWN_OBJ) \
1133 $(LIBCLI_DSSETUP_OBJ) \
1134 $(LIBCLI_SVCCTL_OBJ) \
1135 $(LIBCLI_WKSSVC_OBJ) \
1136 $(LIBCLI_SRVSVC_OBJ) \
1137 $(LIBCLI_LSA_OBJ) \
1138 $(LIBCLI_SAMR_OBJ) \
1139 $(LIBCLI_NETLOGON_OBJ) \
1140 $(RPC_CLIENT_SCHANNEL_OBJ) \
1141 rpc_client/init_netlogon.o \
1142 rpc_client/init_samr.o
1145 # these are not processed by make proto
1146 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1148 NET_OBJ = $(NET_OBJ1) \
1149 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1150 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1151 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1152 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1153 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1154 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1155 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1156 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1157 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1158 $(REG_SMBCONF_OBJ) \
1159 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1160 $(LIBSMBCONF_OBJ) \
1161 $(PRIVILEGES_BASIC_OBJ) \
1162 $(LIB_EVENTLOG_OBJ) localedir.o
1164 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1165 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1166 $(LIBNDR_GEN_OBJ0)
1168 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1169 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1171 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1172 torture/denytest.o torture/mangle_test.o \
1173 torture/nbench.o \
1174 torture/test_posix_append.o
1176 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1177 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1178 @LIBWBCLIENT_STATIC@ \
1179 ../nsswitch/libwbclient/wbc_async.o \
1180 ../nsswitch/libwbclient/wb_reqtrans.o \
1181 $(LIBNDR_GEN_OBJ0)
1183 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1184 $(LIB_NONSMBD_OBJ) \
1185 $(LIBNDR_GEN_OBJ0)
1187 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1188 $(LIB_NONSMBD_OBJ) \
1189 $(LIBNDR_GEN_OBJ0)
1191 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1192 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1193 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1195 NSSTEST_OBJ = torture/nsstest.o $(LIBSAMBAUTIL_OBJ)
1197 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1198 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1199 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1200 $(LIBNDR_GEN_OBJ0)
1202 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1204 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1206 LOG2PCAP_OBJ = utils/log2pcaphex.o
1208 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1209 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1210 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1212 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1213 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1214 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1215 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1216 $(LIBCLI_LSA_OBJ)
1218 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1219 $(PARAM_OBJ) \
1220 $(LIB_NONSMBD_OBJ) \
1221 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1222 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1223 $(LIBCLI_LSA_OBJ)
1225 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1227 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1228 $(LIBSMB_ERR_OBJ) \
1229 registry/reg_eventlog.o $(LIB_EVENTLOG_OBJ) \
1230 librpc/gen_ndr/ndr_eventlog.o \
1231 librpc/gen_ndr/ndr_lsa.o
1233 SHARESEC_OBJ0 = utils/sharesec.o
1234 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1235 $(LIBSMB_ERR_OBJ) \
1236 $(POPT_LIB_OBJ)
1238 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1239 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1241 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1242 @libreplacedir@/test/getifaddrs.o \
1243 @libreplacedir@/test/os2_delete.o \
1244 @libreplacedir@/test/strptime.o \
1245 @libreplacedir@/test/main.o \
1246 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1248 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1250 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1251 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1252 $(LIBNDR_GEN_OBJ0)
1254 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1255 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1257 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1258 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1259 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1260 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1261 $(LIBTSOCKET_OBJ)
1263 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1265 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1267 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1269 IDMAP_HASH_OBJ = \
1270 winbindd/idmap_hash/idmap_hash.o \
1271 winbindd/idmap_hash/mapfile.o
1273 IDMAP_ADEX_OBJ = \
1274 winbindd/idmap_adex/idmap_adex.o \
1275 winbindd/idmap_adex/cell_util.o \
1276 winbindd/idmap_adex/likewise_cell.o \
1277 winbindd/idmap_adex/provider_unified.o \
1278 winbindd/idmap_adex/gc_util.o \
1279 winbindd/idmap_adex/domain_util.o
1281 WINBINDD_OBJ1 = \
1282 winbindd/winbindd.o \
1283 winbindd/winbindd_group.o \
1284 winbindd/winbindd_util.o \
1285 winbindd/winbindd_cache.o \
1286 winbindd/winbindd_pam.o \
1287 winbindd/winbindd_misc.o \
1288 winbindd/winbindd_cm.o \
1289 winbindd/winbindd_wins.o \
1290 winbindd/winbindd_msrpc.o \
1291 winbindd/winbindd_rpc.o \
1292 winbindd/winbindd_reconnect.o \
1293 winbindd/winbindd_ads.o \
1294 winbindd/winbindd_samr.o \
1295 winbindd/winbindd_dual.o \
1296 winbindd/winbindd_dual_ndr.o \
1297 winbindd/winbindd_dual_srv.o \
1298 librpc/gen_ndr/cli_wbint.o \
1299 librpc/gen_ndr/ndr_wbint_c.o \
1300 librpc/gen_ndr/srv_wbint.o \
1301 librpc/gen_ndr/ndr_wbint.o \
1302 winbindd/winbindd_async.o \
1303 winbindd/winbindd_creds.o \
1304 winbindd/winbindd_cred_cache.o \
1305 winbindd/winbindd_ccache_access.o \
1306 winbindd/winbindd_domain.o \
1307 winbindd/winbindd_idmap.o \
1308 winbindd/winbindd_locator.o \
1309 winbindd/winbindd_ndr.o \
1310 winbindd/wb_ping.o \
1311 winbindd/wb_lookupsid.o \
1312 winbindd/wb_lookupname.o \
1313 winbindd/wb_sid2uid.o \
1314 winbindd/wb_sid2gid.o \
1315 winbindd/wb_uid2sid.o \
1316 winbindd/wb_gid2sid.o \
1317 winbindd/wb_queryuser.o \
1318 winbindd/wb_lookupuseraliases.o \
1319 winbindd/wb_lookupusergroups.o \
1320 winbindd/wb_getpwsid.o \
1321 winbindd/wb_gettoken.o \
1322 winbindd/wb_seqnum.o \
1323 winbindd/wb_seqnums.o \
1324 winbindd/wb_group_members.o \
1325 winbindd/wb_getgrsid.o \
1326 winbindd/wb_query_user_list.o \
1327 winbindd/wb_fill_pwent.o \
1328 winbindd/wb_next_pwent.o \
1329 winbindd/wb_next_grent.o \
1330 winbindd/wb_dsgetdcname.o \
1331 winbindd/winbindd_lookupsid.o \
1332 winbindd/winbindd_lookupname.o \
1333 winbindd/winbindd_sid_to_uid.o \
1334 winbindd/winbindd_sid_to_gid.o \
1335 winbindd/winbindd_uid_to_sid.o \
1336 winbindd/winbindd_gid_to_sid.o \
1337 winbindd/winbindd_allocate_uid.o \
1338 winbindd/winbindd_allocate_gid.o \
1339 winbindd/winbindd_getpwsid.o \
1340 winbindd/winbindd_getpwnam.o \
1341 winbindd/winbindd_getpwuid.o \
1342 winbindd/winbindd_getsidaliases.o \
1343 winbindd/winbindd_getuserdomgroups.o \
1344 winbindd/winbindd_getgroups.o \
1345 winbindd/winbindd_show_sequence.o \
1346 winbindd/winbindd_getgrgid.o \
1347 winbindd/winbindd_getgrnam.o \
1348 winbindd/winbindd_getusersids.o \
1349 winbindd/winbindd_lookuprids.o \
1350 winbindd/winbindd_setpwent.o \
1351 winbindd/winbindd_getpwent.o \
1352 winbindd/winbindd_endpwent.o \
1353 winbindd/winbindd_setgrent.o \
1354 winbindd/winbindd_getgrent.o \
1355 winbindd/winbindd_endgrent.o \
1356 winbindd/winbindd_dsgetdcname.o \
1357 winbindd/winbindd_getdcname.o \
1358 winbindd/winbindd_list_users.o \
1359 winbindd/winbindd_list_groups.o \
1360 winbindd/winbindd_check_machine_acct.o \
1361 winbindd/winbindd_change_machine_acct.o \
1362 winbindd/winbindd_ping_dc.o \
1363 winbindd/winbindd_pam_auth.o \
1364 winbindd/winbindd_pam_auth_crap.o \
1365 winbindd/winbindd_pam_chauthtok.o \
1366 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1367 winbindd/winbindd_pam_logoff.o \
1368 auth/auth_util.o \
1369 auth/token_util.o \
1370 auth/user_util.o \
1371 auth/check_samsec.o \
1372 auth/server_info.o \
1373 auth/server_info_sam.o \
1374 auth/user_info.o \
1375 auth/pampass.o \
1376 ../nsswitch/libwbclient/wb_reqtrans.o
1378 WINBINDD_OBJ = \
1379 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1380 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1381 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1382 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1383 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1384 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1385 $(RPC_NCACN_NP_INTERNAL) $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1386 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1387 $(LIBADS_SERVER_OBJ) \
1388 $(TDB_VALIDATE_OBJ) \
1389 $(LIBCLI_DSSETUP_OBJ) \
1390 $(LIBCLI_LSA_OBJ) \
1391 $(LIBCLI_SAMR_OBJ) \
1392 $(LIBCLI_NETLOGON_OBJ) \
1393 rpc_client/init_netlogon.o \
1394 rpc_client/init_samr.o
1396 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1397 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1398 lib/winbind_util.o $(WBCOMMON_OBJ)
1400 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1402 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1403 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1405 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1406 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1408 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1409 ../lib/iniparser_build/strlib.o
1411 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1412 $(SOCKET_WRAPPER_OBJ)
1414 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1415 $(SOCKET_WRAPPER_OBJ)
1417 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1418 $(SOCKET_WRAPPER_OBJ)
1420 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1421 $(SOCKET_WRAPPER_OBJ)
1424 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1426 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1427 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o libads/kerberos.o \
1428 $(LIBADS_SERVER_OBJ) \
1429 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1430 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1431 $(WBCOMMON_OBJ) \
1432 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1435 VLP_OBJ = printing/tests/vlp.o \
1436 ../lib/util/util_tdb.o \
1437 $(LIBSAMBAUTIL_OBJ) \
1438 param/util.o
1440 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1441 $(LIBSMB_OBJ) \
1442 $(PARAM_OBJ) \
1443 $(PASSDB_OBJ) \
1444 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1445 $(LIB_NONSMBD_OBJ) \
1446 $(KRBCLIENT_OBJ) \
1447 $(LIBMSRPC_OBJ) \
1448 $(LIBMSRPC_GEN_OBJ)
1450 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1451 $(PARAM_OBJ) \
1452 $(LIB_NONSMBD_OBJ) \
1453 $(LIBSMB_ERR_OBJ)
1455 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1456 $(PARAM_OBJ) \
1457 $(LIB_NONSMBD_OBJ) \
1458 $(LIBSMB_ERR_OBJ) \
1459 $(POPT_LIB_OBJ)
1461 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1462 $(PARAM_OBJ) \
1463 $(LIB_NONSMBD_OBJ) \
1464 $(POPT_LIB_OBJ) \
1465 $(LIBSAMBA_OBJ)
1467 ######################################################################
1468 # now the rules...
1469 ######################################################################
1470 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1471 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1472 $(EXTRA_ALL_TARGETS)
1474 basics:: samba3-idl
1476 nss_modules:: $(NSS_MODULES)
1478 pam_modules:: $(PAM_MODULES)
1480 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1482 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1484 gpext_modules:: $(GPEXT_MODULES)
1486 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1488 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1490 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1492 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1494 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1496 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1498 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1500 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1502 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1504 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1506 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1508 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1510 talloctort : SHOWFLAGS $(TALLOCTORT)
1512 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1514 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1516 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1518 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1519 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1520 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1522 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1524 modules:: SHOWFLAGS $(MODULES)
1527 #####################################################################
1528 ## Perl IDL Compiler
1530 IDL_FILES = librpc/idl/messaging.idl \
1531 librpc/idl/libnetapi.idl \
1532 librpc/idl/notify.idl \
1533 librpc/idl/wbint.idl \
1534 librpc/idl/perfcount.idl \
1535 librpc/idl/secrets.idl \
1536 librpc/idl/libnet_join.idl \
1537 librpc/idl/preg.idl
1539 samba3-idl::
1540 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1541 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1542 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1543 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1545 idl_full::
1546 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1547 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1548 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1549 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1551 #####################################################################
1554 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1555 $(EVERYTHING_PROGS)
1557 .SUFFIXES:
1558 .SUFFIXES: .c .o .lo
1560 .PHONY: showflags SHOWFLAGS
1562 showflags: SHOWFLAGS
1564 SHOWFLAGS::
1565 @echo "Using CFLAGS = $(CFLAGS)"
1566 @echo " PICFLAG = $(PICFLAG)"
1567 @echo " LIBS = $(LIBS)"
1568 @echo " LDFLAGS = $(LDFLAGS)"
1569 @echo " DYNEXP = $(DYNEXP)"
1570 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1571 @echo " SHLIBEXT = @SHLIBEXT@"
1572 @echo " SONAMEFLAG = @SONAMEFLAG@"
1574 # "showcflags" target for debuggin how CFLAGS are composed:
1576 .PHONY: showcflags SHOWCFLAGS
1578 showcflags: SHOWCFLAGS
1580 SHOWCFLAGS::
1581 @echo "CFLAGS = $(CFLAGS)"
1582 @echo "FLAGS = $(FLAGS)"
1583 @echo ""
1584 @echo "FLAGS1 = @FLAGS1@"
1585 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1586 @echo "CPPFLAGS = $(CPPFLAGS)"
1587 @echo "ISA = $(ISA)"
1589 MAKEDIR = || exec false; \
1590 if test -d "$$dir"; then :; else \
1591 echo mkdir "$$dir"; \
1592 mkdir -p "$$dir" >/dev/null 2>&1 || \
1593 test -d "$$dir" || \
1594 mkdir "$$dir" || \
1595 exec false; fi || exec false
1597 # Run a static checker.
1598 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1599 # Compile a source file.
1600 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1601 # Compile a source file with the installation paths defined.
1602 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1604 COMPILE = $(COMPILE_CC)
1606 .c.o:
1607 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1608 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1609 @if test -n "$(CC_CHECKER)"; then \
1610 echo "Checking $*.c with '$(CC_CHECKER)'";\
1611 $(CHECK_CC); \
1613 @echo Compiling $*.c
1614 @$(COMPILE) && exit 0;\
1615 echo "The following command failed:" 1>&2;\
1616 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1617 $(COMPILE_CC) >/dev/null 2>&1
1618 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1620 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1622 # this adds support for precompiled headers. To use it, install a snapshot
1623 # of gcc-3.4 and run 'make pch' before you do the main build.
1624 pch::
1625 rm -f $(PRECOMPILED_HEADER)
1626 $(MAKE) $(PRECOMPILED_HEADER)
1628 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1629 $(COMPILE)
1631 BINARY_PREREQS = bin/.dummy
1633 # These dependencies are only approximately correct: we want to make
1634 # sure Samba's paths are updated if ./configure is re-run. Really it
1635 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1636 # but since we also require "make install prefix=/opt/samba" *not* to
1637 # rebuild it's a bit hard.
1639 dynconfig.o: dynconfig.c Makefile
1640 @echo Compiling $*.c
1641 @$(COMPILE_CC_PATH) && exit 0;\
1642 echo "The following command failed:" 1>&2;\
1643 echo "$(COMPILE_CC_PATH)" 1>&2;\
1644 $(COMPILE_CC_PATH) >/dev/null 2>&1
1646 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1647 @echo Compiling $*.c
1648 @$(COMPILE_CC_PATH) && exit 0;\
1649 echo "The following command failed:" 1>&2;\
1650 echo "$(COMPILE_CC_PATH)" 1>&2;\
1651 $(COMPILE_CC_PATH) >/dev/null 2>&1
1653 ### Start section of object files that require PTHREAD_CFLAGS
1654 ../nsswitch/wins.o: ../nsswitch/wins.c
1655 @echo Compiling $*.c
1656 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1657 echo "The following command failed:" 1>&2;\
1658 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1659 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1661 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1662 @echo Compiling $*.c
1663 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1664 echo "The following command failed:" 1>&2;\
1665 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1666 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1668 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1669 @echo Compiling $*.c
1670 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1671 echo "The following command failed:" 1>&2;\
1672 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1673 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1675 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1676 @echo Compiling $*.c
1677 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1678 echo "The following command failed:" 1>&2;\
1679 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1680 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1681 ### End section of object files that require PTHREAD_CFLAGS
1683 localedir.o: localedir.c Makefile
1684 @echo Compiling $*.c
1685 @$(COMPILE_CC_PATH) && exit 0;\
1686 echo "The following command failed:" 1>&2;\
1687 echo "$(COMPILE_CC_PATH)" 1>&2;\
1688 $(COMPILE_CC_PATH) >/dev/null 2>&1
1690 lib/pidfile.o: lib/pidfile.c
1691 @echo Compiling $*.c
1692 @$(COMPILE_CC_PATH) && exit 0;\
1693 echo "The following command failed:" 1>&2;\
1694 echo "$(COMPILE_CC_PATH)" 1>&2;\
1695 $(COMPILE_CC_PATH) >/dev/null 2>&1
1697 lib/version.o: lib/version.c include/version.h
1698 @echo Compiling $*.c
1699 @$(COMPILE_CC_PATH) && exit 0;\
1700 echo "The following command failed:" 1>&2;\
1701 echo "$(COMPILE_CC_PATH)" 1>&2;\
1702 $(COMPILE_CC_PATH) >/dev/null 2>&1
1704 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1705 @echo Compiling $*.c
1706 @$(COMPILE_CC_PATH) && exit 0;\
1707 echo "The following command failed:" 1>&2;\
1708 echo "$(COMPILE_CC_PATH)" 1>&2;\
1709 $(COMPILE_CC_PATH) >/dev/null 2>&1
1711 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1712 @echo Generating $@
1713 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1715 bin/.dummy:
1716 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1717 dir=bin $(MAKEDIR); fi
1718 @: >> $@ || : > $@ # what a fancy emoticon!
1720 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1721 @echo Linking $@
1722 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1723 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1724 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1725 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1726 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1728 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1729 @echo Linking $@
1730 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1731 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1732 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1733 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1735 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1736 @echo Linking $@
1737 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1738 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1739 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1741 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1742 @echo Linking $@
1743 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1744 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1745 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1746 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1748 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1749 @echo Linking $@
1750 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1751 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1752 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1753 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1755 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1756 @echo Linking $@
1757 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1758 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1759 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1760 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1761 $(ZLIB_LIBS)
1763 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1764 @echo Linking $@
1765 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1766 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1768 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1769 @echo Linking $@
1770 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1771 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1772 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1774 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1775 @echo Linking $@
1776 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1777 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1779 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1780 @echo Linking $@
1781 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1782 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1784 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1785 @echo Linking $@
1786 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1787 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1789 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1790 @echo Linking $@
1791 @$(CC) -DUSING_SMBCONTROL -o $@ \
1792 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1793 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1794 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1796 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1797 @echo Linking $@
1798 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1799 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1800 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1802 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1803 @echo Linking $@
1804 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1805 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1806 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1808 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1809 @echo Linking $@
1810 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1811 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1812 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1814 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1815 @echo Linking $@
1816 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1817 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1818 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1820 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1821 @echo Linking $@
1822 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1823 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1825 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1826 @echo Linking $@
1827 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1828 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1829 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1831 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1832 @echo Linking $@
1833 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1834 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1835 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1837 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1838 @echo Linking $@
1839 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1840 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1842 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1843 @echo Linking $@
1844 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1845 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1846 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1848 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1849 @echo Linking $@
1850 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1851 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1852 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1853 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1855 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1856 @echo Linking $@
1857 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1858 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1859 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1861 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1862 @echo Linking $@
1863 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1864 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1865 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1867 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1868 @echo Linking $@
1869 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1870 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1871 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1873 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1874 @echo Linking $@
1875 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1876 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1878 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1879 @echo Linking $@
1880 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1881 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1883 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1884 @echo Linking $@
1885 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1886 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1887 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1888 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1890 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1891 @echo Linking $@
1892 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1894 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1895 @echo Linking $@
1896 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1897 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1898 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1900 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1901 @echo Linking $@
1902 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1903 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1904 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1905 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1906 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1908 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1909 @echo Linking $@
1910 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1911 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1912 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1914 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1915 @echo Linking $@
1916 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1917 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1919 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1920 @echo Linking $@
1921 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1922 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1923 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1924 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1926 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1927 @echo Linking $@
1928 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1929 $(LIBS) $(LIBTALLOC_LIBS)
1931 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1932 @echo Linking $@
1933 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1934 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1935 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1936 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1938 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1939 @echo Linking $@
1940 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1943 #####################################################################
1945 # libraries
1947 #####################################################################
1949 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1952 #-------------------------------------------------------------------
1954 # libtalloc
1956 #-------------------------------------------------------------------
1959 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1960 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1962 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1963 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1964 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1965 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1966 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1967 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1969 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1970 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1972 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1973 @echo Linking shared library $@
1974 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
1976 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1977 @rm -f $@
1978 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1980 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1981 @echo Linking non-shared library $@
1982 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
1983 libtalloc: $(LIBTALLOC)
1985 cleanlibtalloc::
1986 -rm -f \
1987 $(LIBTALLOC_SYMS) \
1988 $(LIBTALLOC_STATIC_TARGET) \
1989 $(LIBTALLOC_SHARED_TARGET) \
1990 $(LIBTALLOC_SHARED_TARGET_SONAME)
1992 installlibtalloc:: installdirs libtalloc
1993 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
1994 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
1995 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
1996 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
1997 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
1998 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2000 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2001 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2002 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2004 uninstalllibtalloc::
2005 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2006 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2007 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2008 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2010 libs:: libtalloc
2011 installlibs:: @INSTALL_LIBTALLOC@
2012 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2013 cleanlibs:: cleanlibtalloc
2014 shlibs test_shlibs: @LIBTALLOC_SHARED@
2016 showlibtalloc:
2017 @echo ""
2018 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2019 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2020 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2021 @echo ""
2022 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2023 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2024 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2025 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2026 @echo "LIBTALLOC = $(LIBTALLOC)"
2028 showlibs:: showlibtalloc
2030 #-------------------------------------------------------------------
2032 # libtdb
2034 #-------------------------------------------------------------------
2036 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2037 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2039 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2040 LIBTDB_SOVER=@LIBTDB_SOVER@
2041 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
2042 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2043 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2044 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2046 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2047 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2049 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2050 @echo Linking shared library $@
2051 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2052 @SONAMEFLAG@`basename $@`
2054 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
2055 @rm -f $@
2056 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2058 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2059 @echo Linking non-shared library $@
2060 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2062 libtdb: $(LIBTDB)
2064 cleanlibtdb::
2065 -rm -f \
2066 $(LIBTDB_SYMS) \
2067 $(LIBTDB_STATIC_TARGET) \
2068 $(LIBTDB_SHARED_TARGET) \
2069 $(LIBTDB_SHARED_TARGET_SONAME)
2072 installlibtdb:: installdirs libtdb
2073 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2074 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2075 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2076 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2077 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2078 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2080 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2081 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2082 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2084 uninstalllibtdb::
2085 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2086 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2087 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2088 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2090 libs:: libtdb
2091 installlibs:: @INSTALL_LIBTDB@
2092 uninstalllibs:: @UNINSTALL_LIBTDB@
2093 cleanlibs:: cleanlibtdb
2094 shlibs test_shlibs: @LIBTDB_SHARED@
2096 showlibtdb:
2097 @echo ""
2098 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2099 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2100 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2101 @echo ""
2102 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2103 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2104 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2105 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2106 @echo "LIBTDB = $(LIBTDB)"
2108 showlibs:: showlibtdb
2110 #-------------------------------------------------------------------
2112 # libwbclient
2114 #-------------------------------------------------------------------
2116 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2117 ../nsswitch/libwbclient/wbc_util.o \
2118 ../nsswitch/libwbclient/wbc_pwd.o \
2119 ../nsswitch/libwbclient/wbc_idmap.o \
2120 ../nsswitch/libwbclient/wbc_sid.o \
2121 ../nsswitch/libwbclient/wbc_guid.o \
2122 ../nsswitch/libwbclient/wbc_pam.o
2124 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2125 $(WBCOMMON_OBJ) \
2126 $(LIBREPLACE_OBJ) \
2127 ../lib/util/blocking.o \
2128 $(SOCKET_WRAPPER_OBJ)
2130 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2131 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2132 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
2133 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2134 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2135 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2137 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2138 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2140 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2141 @echo Linking shared library $@
2142 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2143 @SONAMEFLAG@`basename $@`
2145 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2146 @rm -f $@
2147 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2149 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2150 @echo Linking non-shared library $@
2151 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2153 libwbclient: $(LIBWBCLIENT)
2155 cleanlibwbclient::
2156 -rm -f \
2157 $(LIBWBCLIENT_SYMS) \
2158 $(LIBWBCLIENT_STATIC_TARGET) \
2159 $(LIBWBCLIENT_SHARED_TARGET) \
2160 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2162 installlibwbclient:: installdirs libwbclient
2163 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2164 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2165 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2166 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2167 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2168 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2170 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2171 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2172 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2174 uninstalllibwbclient::
2175 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2176 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2177 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2178 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2180 libs:: libwbclient
2181 installlibs:: @INSTALL_LIBWBCLIENT@
2182 uninstalllibs:: uninstalllibwbclient
2183 cleanlibs:: cleanlibwbclient
2184 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2186 showlibwbclient:
2187 @echo ""
2188 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2189 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2190 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2191 @echo ""
2192 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2193 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2194 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2195 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2196 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2198 showlibs:: showlibwbclient
2201 #-------------------------------------------------------------------
2203 # libaddns
2205 #-------------------------------------------------------------------
2208 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2209 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2210 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2211 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2212 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2213 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2214 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
2216 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2217 @echo Linking shared library $@
2218 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2219 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2220 @SONAMEFLAG@`basename $@`
2222 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2223 @rm -f $@
2224 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2226 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2227 @echo Linking non-shared library $@
2228 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2230 libaddns: $(LIBADDNS)
2232 cleanlibaddns::
2233 -rm -f \
2234 $(LIBADDNS_SHARED_TARGET) \
2235 $(LIBADDNS_SHARED_TARGET_SONAME) \
2236 $(LIBADDNS_STATIC_TARGET)
2238 installlibaddns:: installdirs libaddns
2239 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2240 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2241 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2242 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2243 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2244 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2246 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2248 uninstalllibaddns::
2249 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2250 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2251 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2253 libs:: libaddns
2254 installlibs:: @INSTALL_LIBADDNS@
2255 uninstalllibs:: @UNINSTALL_LIBADDNS@
2256 cleanlibs:: cleanlibaddns
2257 shlibs test_shlibs: @LIBADDNS_SHARED@
2259 showlibaddns:
2260 @echo ""
2261 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2262 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2263 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2264 @echo ""
2265 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2266 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2267 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2268 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2269 @echo "LIBADDNS = $(LIBADDNS)"
2271 showlibs:: showlibaddns
2273 #-------------------------------------------------------------------
2275 # libnetapi
2277 #-------------------------------------------------------------------
2279 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2280 lib/netapi/cm.o \
2281 librpc/gen_ndr/ndr_libnetapi.o \
2282 lib/netapi/libnetapi.o \
2283 lib/netapi/joindomain.o \
2284 lib/netapi/serverinfo.o \
2285 lib/netapi/getdc.o \
2286 lib/netapi/user.o \
2287 lib/netapi/group.o \
2288 lib/netapi/localgroup.o \
2289 lib/netapi/samr.o \
2290 lib/netapi/sid.o \
2291 lib/netapi/share.o \
2292 lib/netapi/file.o \
2293 lib/netapi/shutdown.o \
2294 lib/netapi/netlogon.o
2296 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2297 $(LIBSMBCONF_OBJ) \
2298 $(REG_SMBCONF_OBJ) \
2299 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2300 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2301 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2302 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2303 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2304 auth/token_util.o \
2305 $(LIBCLI_INITSHUTDOWN_OBJ) \
2306 $(LIBCLI_WKSSVC_OBJ) \
2307 $(LIBCLI_SRVSVC_OBJ) \
2308 $(LIBCLI_LSA_OBJ) \
2309 $(LIBCLI_SAMR_OBJ) \
2310 $(LIBCLI_NETLOGON_OBJ) \
2311 $(RPC_CLIENT_SCHANNEL_OBJ) \
2312 rpc_client/init_netlogon.o \
2313 rpc_client/init_samr.o
2315 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2316 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2317 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2318 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2319 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2320 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2322 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2323 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2325 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2326 @echo Linking shared library $@
2327 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2328 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2329 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2330 @SONAMEFLAG@`basename $@`
2332 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2333 @rm -f $@
2334 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2336 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2337 @echo Linking non-shared library $@
2338 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2340 libnetapi: $(LIBNETAPI)
2342 cleanlibnetapi::
2343 -rm -f \
2344 $(LIBNETAPI_SYMS) \
2345 $(LIBNETAPI_STATIC_TARGET) \
2346 $(LIBNETAPI_SHARED_TARGET) \
2347 $(LIBNETAPI_SHARED_TARGET_SONAME)
2349 installlibnetapi:: installdirs libnetapi
2350 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2351 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2352 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2353 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2354 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2355 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2357 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2358 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2359 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2361 uninstalllibnetapi::
2362 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2363 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2364 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2365 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2367 libs:: libnetapi
2368 installlibs:: @INSTALL_LIBNETAPI@
2369 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2370 cleanlibs:: cleanlibnetapi
2371 shlibs test_shlibs: @LIBNETAPI_SHARED@
2373 showlibnetapi:
2374 @echo ""
2375 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2376 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2377 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2378 @echo ""
2379 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2380 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2381 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2382 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2383 @echo "LIBNETAPI = $(LIBNETAPI)"
2385 showlibs:: showlibnetapi
2387 #-------------------------------------------------------------------
2389 # libsmbclient
2391 #-------------------------------------------------------------------
2393 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2394 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2395 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2396 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2397 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2398 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2399 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2401 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2402 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2404 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2405 @echo Linking shared library $@
2406 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2407 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2408 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2409 @SONAMEFLAG@`basename $@`
2411 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2412 @rm -f $@
2413 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2415 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2416 @echo Linking non-shared library $@
2417 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2419 libsmbclient: $(LIBSMBCLIENT)
2421 cleanlibsmbclient::
2422 -rm -f \
2423 $(LIBSMBCLIENT_SHARED_TARGET) \
2424 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2425 $(LIBSMBCLIENT_STATIC_TARGET)
2427 installlibsmbclient:: installdirs libsmbclient
2428 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2429 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2430 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2431 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2432 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2433 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2435 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2436 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2437 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2439 installclientlib:: installlibsmbclient
2441 uninstalllibsmbclient::
2442 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2443 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2444 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2445 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2447 uninstallclientlib:: uninstalllibsmbclient
2449 libs:: libsmbclient
2450 installlibs:: @INSTALL_LIBSMBCLIENT@
2451 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2452 cleanlibs:: cleanlibsmbclient
2453 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2455 showlibsmbclient:
2456 @echo ""
2457 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2458 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2459 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2460 @echo ""
2461 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2462 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2463 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2464 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2465 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2467 showlibs:: showlibsmbclient
2469 #-------------------------------------------------------------------
2471 # libsmbsharemodes
2473 #-------------------------------------------------------------------
2475 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2477 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2479 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2480 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2481 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2482 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2483 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2484 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2485 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2487 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2488 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2490 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2491 @echo Linking shared library $@
2492 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2493 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2494 @SONAMEFLAG@`basename $@`
2496 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2497 @rm -f $@
2498 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2500 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2501 @echo Linking non-shared library $@
2502 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2504 libsmbsharemodes: $(LIBSMBSHAREMODES)
2506 cleanlibsmbsharemodes::
2507 -rm -f \
2508 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2509 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2510 $(LIBSMBSHAREMODES_STATIC_TARGET)
2512 installlibsmbsharemodes:: installdirs libsmbsharemodes
2513 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2514 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2515 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2516 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2517 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2518 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2520 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2521 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2522 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2524 uninstalllibsmbsharemodes::
2525 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2526 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2527 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2528 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2530 libs:: libsmbsharemodes
2531 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2532 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2533 cleanlibs:: cleanlibsmbsharemodes
2534 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2536 showlibsmbsharemodes:
2537 @echo ""
2538 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2539 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2540 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2541 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2542 @echo ""
2543 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2544 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2545 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2546 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2547 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2549 showlibs:: showlibsmbsharemodes
2551 #-------------------------------------------------------------------
2553 # libbigballofmud
2555 #-------------------------------------------------------------------
2557 # This is probably wrong for anything other than the GNU linker.
2558 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2559 @echo Linking shared library $@
2560 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2561 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2562 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2563 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2564 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2566 # It would be nice to build a static bigballofmud too, but when I try
2567 # I get linker errors about dl_open and similar things. I'm not sure if
2568 # it can be fixed or if they just can't be called from a static
2569 # library.
2571 #####################################################################
2573 # shared modules
2575 #####################################################################
2577 # Linker command to link our shared libraries:
2578 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2579 -o $@ @SONAMEFLAG@`basename $@`
2580 # Linker command to link samba internal plugin modules:
2581 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2582 -o $@ @SONAMEFLAG@`basename $@`
2584 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2585 @echo "Linking $@"
2586 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2588 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2589 @echo "Linking $@"
2590 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2592 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2593 @echo "Linking $@"
2594 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2596 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2597 @echo "Linking $@"
2598 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2600 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2601 @echo "Linking $@"
2602 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2604 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2605 @echo "Linking $@"
2606 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2608 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2609 @echo "Linking $@"
2610 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2612 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2613 @echo "Linking $@"
2614 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2616 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2617 @echo "Linking $@"
2618 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2620 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2621 @echo "Linking $@"
2622 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2624 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2625 @echo "Linking $@"
2626 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2628 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2629 @echo "Linking $@"
2630 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2632 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2633 @echo "Linking $@"
2634 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2636 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2637 @echo "Linking $@"
2638 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2640 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2641 @echo "Linking $@"
2642 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2643 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2644 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2645 $(ZLIB_LIBS)
2647 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2648 @echo "Linking $@"
2649 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2650 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2651 $(LIBTDB_LIBS)
2653 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2654 @echo "Linking $@"
2655 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2656 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2657 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2659 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2660 @echo "Linking $@"
2661 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2662 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2663 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2665 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2666 @echo "Linking $@"
2667 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2668 @SONAMEFLAG@`basename $@`
2670 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2671 @echo "Linking shared library $@"
2672 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2673 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2675 ##########
2676 # Plugins:
2677 ##########
2679 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2680 @echo "Building plugin $@"
2681 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2683 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2684 @echo "Building plugin $@"
2685 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2687 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2688 @echo "Building plugin $@"
2689 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2691 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2692 @echo "Building plugin $@"
2693 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2695 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2696 @echo "Building plugin $@"
2697 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2699 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2700 @echo "Building plugin $@"
2701 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2703 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2704 @echo "Building plugin $@"
2705 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2707 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2708 @echo "Building plugin $@"
2709 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2711 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2712 @echo "Building plugin $@"
2713 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2715 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2716 @echo "Building plugin $@"
2717 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2719 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2720 @echo "Building plugin $@"
2721 @$(SHLD_MODULE) passdb/pdb_ads.o
2723 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2724 @echo "Building plugin $@"
2725 @$(SHLD_MODULE) passdb/pdb_tdb.o
2727 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2728 @echo "Building plugin $@"
2729 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2731 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2732 @echo "Building plugin $@"
2733 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2735 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2736 @echo "Building plugin $@"
2737 @$(SHLD_MODULE) winbindd/idmap_rid.o
2739 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2740 @echo "Building plugin $@"
2741 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2743 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2744 @echo "Building plugin $@"
2745 @$(SHLD_MODULE) winbindd/idmap_ad.o
2747 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2748 @echo "Building plugin $@"
2749 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2751 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2752 @echo "Building plugin $@"
2753 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2755 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2756 @echo "Building plugin $@"
2757 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2759 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2760 @echo "Building plugin $@"
2761 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2763 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2764 @echo "Building plugin $@"
2765 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2767 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2768 @echo "Building plugin $@"
2769 @$(SHLD_MODULE) $(CP850_OBJ)
2771 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2772 @echo "Building plugin $@"
2773 @$(SHLD_MODULE) $(CP437_OBJ)
2775 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2776 @echo "Building plugin $@"
2777 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2779 # NOTE, there is no build rule for a dynamic default VFS module because
2780 # this one MUST MUST MUST be built statically.
2782 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2783 @echo "Building plugin $@"
2784 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2786 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2787 @echo "Building plugin $@"
2788 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2790 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2791 @echo "Building plugin $@"
2792 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2794 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2795 @echo "Building plugin $@"
2796 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2798 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2799 @echo "Building plugin $@"
2800 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2802 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2803 @echo "Building plugin $@"
2804 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2806 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2807 @echo "Building plugin $@"
2808 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2810 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2811 @echo "Building plugin $@"
2812 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2814 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2815 @echo "Building plugin $@"
2816 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2818 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2819 @echo "Building plugin $@"
2820 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2822 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2823 @echo "Building plugin $@"
2824 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2826 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2827 @echo "Building plugin $@"
2828 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2830 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2831 @echo "Building plugin $@"
2832 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2834 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2835 @echo "Building plugin $@"
2836 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2838 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2839 @echo "Building plugin $@"
2840 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2842 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2843 @echo "Building plugin $@"
2844 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2846 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2847 @echo "Building plugin $@"
2848 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2850 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2851 @echo "Building plugin $@"
2852 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2854 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2855 @echo "Building plugin $@"
2856 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2858 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2859 @echo "Building plugin $@"
2860 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2862 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2863 @echo "Building plugin $@"
2864 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2866 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2867 @echo "Building plugin $@"
2868 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2870 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2871 @echo "Building plugin $@"
2872 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2874 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2875 @echo "Building plugin $@"
2876 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2878 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2879 @echo "Building plugin $@"
2880 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2882 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2883 @echo "Building plugin $@"
2884 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2886 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2887 @echo "Building plugin $@"
2888 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2890 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2891 @echo "Building plugin $@"
2892 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2894 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2895 @echo "Building plugin $@"
2896 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2898 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2899 @echo "Building plugin $@"
2900 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2902 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2903 @echo "Building plugin $@"
2904 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2906 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2907 @echo "Building plugin $@"
2908 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2910 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2911 @echo "Building plugin $@"
2912 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2914 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2915 @echo "Building plugin $@"
2916 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2918 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2919 @echo "Building plugin $@"
2920 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2922 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2923 @echo "Building plugin $@"
2924 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2926 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2927 @echo "Building plugin $@"
2928 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2930 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2931 @echo "Building plugin $@"
2932 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2934 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2935 @echo "Building plugin $@"
2936 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2938 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2939 @echo "Building plugin $@"
2940 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2942 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2943 @echo "Building plugin $@"
2944 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2946 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2947 @echo "Building plugin $@"
2948 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2950 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2951 @echo "Building plugin $@"
2952 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2954 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2955 @echo "Building plugin $@"
2956 @$(SHLD_MODULE) libgpo/gpext/registry.o
2958 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2959 @echo "Building plugin $@"
2960 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2962 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2963 @echo "Building plugin $@"
2964 @$(SHLD_MODULE) libgpo/gpext/security.o
2966 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2967 @echo "Building plugin $@"
2968 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2970 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
2971 @echo "Building plugin $@"
2972 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
2974 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
2975 @echo "Building plugin $@"
2976 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
2978 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
2979 @echo "Building plugin $@"
2980 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
2982 #########################################################
2983 ## IdMap NSS plugins
2985 ## None here right now
2986 #########################################################
2988 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2989 @echo Linking $@
2990 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
2991 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2992 $(LIBWBCLIENT_LIBS)
2994 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
2995 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2996 @echo Linking $@
2997 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
2998 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
2999 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3000 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3002 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3003 @echo "Linking shared library $@"
3004 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
3005 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3006 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3008 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3009 @echo Linking $@
3010 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3011 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3013 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3014 @echo Linking $@
3015 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3016 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3018 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTALLOC) $(LIBTDB)
3019 @echo Linking $@
3020 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) \
3021 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3023 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3024 @echo Linking $@
3025 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3026 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3028 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3029 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3030 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3032 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3033 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3034 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3036 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3037 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3038 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3040 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3041 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3042 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3044 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3045 @echo Linking $@
3046 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3048 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3049 @echo "Linking $@"
3050 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3051 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3052 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3054 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
3055 @echo "Linking $@"
3056 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3057 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3058 $(LDAP_LIBS) \
3059 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3061 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3062 @echo "Linking $@"
3063 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3064 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3065 $(LDAP_LIBS) \
3066 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3068 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3069 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3071 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3072 @echo "Linking $@"
3073 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3074 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3075 $(LDAP_LIBS) \
3076 $(POPT_LIBS) \
3077 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3079 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3080 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3082 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
3083 @echo "Linking $@"
3084 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3085 $(LDFLAGS) $(DYNEXP) \
3086 $(LIBS) $(POPT_LIBS) \
3087 $(LDAP_LIBS) \
3088 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3090 install:: installservers installbin installman \
3091 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3092 @INSTALL_PAM_MODULES@ installlibs installmo
3094 install-everything:: install installmodules
3096 # DESTDIR is used here to prevent packagers wasting their time
3097 # duplicating the Makefile. Remove it and you will have the privelege
3098 # of package each samba release for muliple versions of multiple
3099 # distributions and operating systems, or at least supplying patches
3100 # to all the packaging files required for this, prior to committing
3101 # the removal of DESTDIR. Do not remove it even though you think it
3102 # is not used
3104 installdirs::
3105 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3106 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3107 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3108 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3110 installservers:: all installdirs
3111 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3113 installbin:: all installdirs
3114 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3116 # Some symlinks are required for the 'probing' of modules.
3117 # This mechanism should go at some point..
3118 installmodules:: modules installdirs
3119 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3120 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3121 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3122 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3123 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3124 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3125 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3126 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3127 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3128 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3129 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3130 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3131 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3132 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3133 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3134 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3135 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3136 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3137 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3139 installscripts:: installdirs
3140 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3142 installdat:: installdirs
3143 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3145 installmsg:: installdirs
3146 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3148 installswat:: installdirs installmsg
3149 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3151 installpammodules:: $(PAM_MODULES)
3152 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3153 @for module in $(PAM_MODULES); do \
3154 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3155 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3156 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3157 done
3159 # revert to the previously installed version
3160 revert::
3161 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3162 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3164 installman:: installdirs
3165 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3167 installmo:: all installdirs
3168 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3170 .PHONY: showlayout
3172 showlayout::
3173 @echo "Samba will be installed into:"
3174 @echo " prefix: $(prefix)"
3175 @echo " bindir: $(BINDIR)"
3176 @echo " sbindir: $(SBINDIR)"
3177 @echo " libdir: $(LIBDIR)"
3178 @echo " modulesdir: $(MODULESDIR)"
3179 @echo " vardir: $(VARDIR)"
3180 @echo " mandir: $(MANDIR)"
3181 @echo " privatedir: $(PRIVATE_DIR)"
3182 @echo " configdir: $(CONFIGDIR)"
3183 @echo " lockdir: $(LOCKDIR)"
3184 @echo " statedir: $(STATEDIR)"
3185 @echo " cachedir: $(CACHEDIR)"
3186 @echo " piddir: $(PIDDIR)"
3187 @echo " swatdir: $(SWATDIR)"
3188 @echo " datadir: ${DATADIR}"
3189 @echo " codepagedir: $(CODEPAGEDIR)"
3192 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3194 uninstallmo::
3195 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3197 uninstallman::
3198 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3200 uninstallservers::
3201 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3203 uninstallbin::
3204 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3206 uninstallmodules::
3207 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3208 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3209 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3210 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3211 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3212 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3213 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3214 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3216 uninstallscripts::
3217 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3219 uninstalldat::
3220 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3222 uninstallmsg::
3223 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3225 uninstallswat:: uninstallmsg
3226 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3228 uninstallpammodules::
3229 @for module in $(PAM_MODULES); do \
3230 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3231 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3232 done
3234 # Toplevel clean files
3235 TOPFILES=dynconfig.o localedir.o
3237 cleanlibs::
3238 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3239 ../lib/*/*.ho \
3240 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3241 ../librpc/*/*.o \
3242 ../libgpo/*.o ../libgpo/*/*.o \
3243 ../libds/*.o ../libds/*/*.o
3245 clean:: cleanlibs
3246 -rm -f include/build_env.h
3247 -rm -f smbd/build_options.c
3248 -rm -f $(PRECOMPILED_HEADER)
3249 -rm -f core */*~ *~ \
3250 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3251 ../testsuite/*/*.o \
3252 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3253 ../client/*.o \
3254 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3255 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3256 $(MODULES) $(TORTURE_PROGS) \
3257 $(EVERYTHING_PROGS) \
3258 bin/timelimit \
3259 .headers.stamp */src/*.o
3260 -rm -rf t_dir
3262 include/build_env.h: script/build_env.sh
3263 @echo Building include/build_env.h
3264 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3265 > $(builddir)/include/build_env.h
3267 proto::
3269 etags::
3270 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3272 ctags::
3273 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3275 realclean:: clean
3276 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3277 -rm -f script/installbin.sh script/uninstallbin.sh
3279 distclean:: realclean
3280 -rm -f smbadduser
3281 -rm -f include/config.h Makefile
3282 -rm -f config.status config.cache so_locations
3283 -rm -rf .deps TAGS
3285 realdistclean:: distclean
3286 -rm -f include/config.h.in
3287 -rm -f include/version.h
3288 -rm -f configure
3290 # this target is really just for my use. It only works on a limited
3291 # range of machines and is used to produce a list of potentially
3292 # dead (ie. unused) functions in the code. (tridge)
3293 finddead::
3294 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3295 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3296 comm -13 nmused.txt nmfns.txt
3299 # when configure.in is updated, reconfigure
3300 $(srcdir)/configure: $(srcdir)/configure.in
3301 @echo "WARNING: you need to rerun ./autogen.sh"
3303 config.status: $(srcdir)/configure
3304 @echo "WARNING: you need to run ./configure"
3306 Makefile: $(srcdir)/Makefile.in config.status
3307 @echo "WARNING: you need to run ./config.status"
3309 ######################################################################
3310 # Samba Testing Framework
3312 # Check shared libs for unresolved symbols
3313 test_shlibs:
3314 @echo "Testing $? "
3315 @$(LIB_PATH_VAR)=./bin && \
3316 export $(LIB_PATH_VAR) && \
3317 for module in $?; do \
3318 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3319 || exit 1; \
3320 done
3322 # Check for NSS module problems.
3323 test_nss_modules:: nss_modules
3324 @echo "Testing $(NSS_MODULES) "
3325 @$(LIB_PATH_VAR)=./bin && \
3326 export $(LIB_PATH_VAR) && \
3327 for module in $(NSS_MODULES); do \
3328 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3329 || exit 1; \
3330 done
3332 # Check for PAM module problems. Specifically, check that every module we
3333 # built can actually be loaded by a minimal PAM-aware application.
3334 test_pam_modules:: pam_modules
3335 @echo "Testing $(PAM_MODULES) "
3336 @$(LIB_PATH_VAR)=./bin && \
3337 export $(LIB_PATH_VAR) && \
3338 for module in $(PAM_MODULES); do \
3339 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3340 || exit 1; \
3341 done
3345 ## Targets for 'make test'
3348 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3350 oldtest:: all torture timelimit
3351 @echo Running Test suite
3352 @LIB_PATH_VAR=$(LIB_PATH_VAR) PERL="$(PERL)" NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/@WINBIND_NSS@" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3354 valgrindtest:: all torture timelimit
3355 @echo Running Test suite with valgrind
3356 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3357 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3358 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3359 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3360 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
3361 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3363 selftestdir = ../selftest
3365 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3367 test:: all torture timelimit
3368 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3369 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3370 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3371 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3372 SOURCEDIR="$(srcdir)" \
3373 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3374 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3375 $(selftestdir)/s3-selftest.sh
3377 test-%:
3378 $(MAKE) test TESTS=$*
3380 SELFTEST_TESTENV = dc
3382 testenv:
3383 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3385 gdbtestenv:
3386 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3387 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3388 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3389 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3390 TESTS="--testenv"
3392 valgrindtestenv:
3393 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3394 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3395 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3396 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3397 TESTS="--testenv"
3400 # Check for Winbind struct 32/64bit padding
3401 test_wbpad:
3402 @echo "Testing winbind request/response structure for 32/64bit padding"
3403 @./script/tests/wb_pad.sh || exit 1;
3406 ## Examples:
3409 libsmbclient_examples: libsmbclient
3410 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3412 clean_libsmbclient_examples:
3413 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3415 libnetapi_examples: libnetapi
3416 $(MAKE) -C lib/netapi/examples
3418 clean_libnetapi_examples:
3419 $(MAKE) -C lib/netapi/examples clean
3421 ../source4/configure: ../buildtools/scripts/configure.waf
3422 cd ../source4 && ./autogen.sh
3424 samba4-configure: ../source4/configure
3425 @$(MAKE) -C ../source4 reconfigure || ( cd ../source4 && \
3426 ./configure.developer --nonshared-binary=smbtorture --enable-auto-reconfigure )
3428 .PHONY: samba4-configure
3430 bin/smbtorture4: $(BINARY_PREREQS) samba4-configure
3431 cd ../source4 && ../buildtools/bin/waf build --targets=smbtorture
3432 cp ../source4/bin/smbtorture bin/smbtorture4
3434 bin/ndrdump4: $(BINARY_PREREQS) samba4-configure
3435 cd ../source4 && ../buildtools/bin/waf build --targets=ndrdump
3436 cp ../source4/bin/ndrdump bin/ndrdump4
3438 .PHONY: bin/smbtorture4