s4:sam.py - assign valid values when performing the special-attributes constraint...
[Samba.git] / source3 / Makefile.in
blob411a4c57a03f45b0949fc3ed6caefe9a85ff22ac
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 selftest_shrdir=@selftest_shrdir@
21 smbtorture4_path=@smbtorture4_path@
22 smbtorture4_option=@smbtorture4_option@
23 selftest_custom_conf=@selftest_custom_conf@
25 LIBS=@LIBS@
26 CC=@CC@
27 SHLD=@SHLD@
28 LIB_PATH_VAR=@LIB_PATH_VAR@
30 ## Dynamic shared libraries build settings
31 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
32 DSO_EXPORTS=@DSO_EXPORTS@
33 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
35 # The MODULE_EXPORTS variable contains the platform-specific linker flags
36 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
37 MODULE_EXPORTS=@MODULE_EXPORTS@
39 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
40 # (GCC) warnings. This is done automatically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
43 CFLAGS=@CFLAGS@
44 CPP=@CPP@
45 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
46 PICFLAG=@PICFLAG@
48 EXEEXT=@EXEEXT@
49 AR=@AR@
50 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
51 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
52 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
54 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
55 AWK=@AWK@
56 DYNEXP=@DYNEXP@
57 PERL=@PERL@
58 PYTHON=@PYTHON@
59 LIBDL=@LIBDL@
61 PIDL_ARGS=@PIDL_ARGS@
63 TERMLDFLAGS=@TERMLDFLAGS@
64 TERMLIBS=@TERMLIBS@
65 PRINT_LIBS=@PRINT_LIBS@
66 ZLIB_LIBS=@ZLIB_LIBS@
67 AUTH_LIBS=@AUTH_LIBS@
68 ACL_LIBS=@ACL_LIBS@
69 PASSDB_LIBS=@PASSDB_LIBS@
70 IDMAP_LIBS=@IDMAP_LIBS@
71 KRB5LIBS=@KRB5_LIBS@
72 LDAP_LIBS=@LDAP_LIBS@
73 NSCD_LIBS=@NSCD_LIBS@
74 UUID_LIBS=@UUID_LIBS@
75 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
76 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
77 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
78 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
79 DNSSD_LIBS=@DNSSD_LIBS@
80 AVAHI_LIBS=@AVAHI_LIBS@
81 POPT_LIBS=@POPTLIBS@
82 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
83 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
84 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
85 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
86 LIBTDB_LIBS=@LIBTDB_LIBS@
87 TDB_DEPS=@TDB_DEPS@
88 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
89 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
90 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
91 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
93 TALLOCTORT = @TALLOCTORT@
95 TDBBACKUP = @TDBBACKUP@
96 TDBTOOL = @TDBTOOL@
97 TDBDUMP = @TDBDUMP@
98 TDBRESTORE = @TDBRESTORE@
99 TDBTORTURE = @TDBTORTURE@
101 INSTALLCMD=@INSTALL@
102 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
103 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
104 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
105 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
107 VPATH=@srcdir@
108 srcdir=@abs_srcdir@
109 builddir=@abs_builddir@
110 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
111 # will search for a POSIX-compliant shell, and that might not be
112 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
113 SHELL=/bin/sh
114 DESTDIR=/
116 # See the autoconf manual "Installation Directory Variables" for a
117 # discussion of the subtle use of these variables.
119 BASEDIR= @prefix@
120 BINDIR = @bindir@
121 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
122 SBINDIR = @sbindir@
123 ROOTSBINDIR = @rootsbindir@
124 LIBDIR = @libdir@
125 MODULESDIR = @modulesdir@
126 INCLUDEDIR=@includedir@
127 PAMMODULESDIR = @pammodulesdir@
128 VFSLIBDIR = $(MODULESDIR)/vfs
129 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
130 PDBLIBDIR = $(MODULESDIR)/pdb
131 RPCLIBDIR = $(MODULESDIR)/rpc
132 IDMAPLIBDIR = $(MODULESDIR)/idmap
133 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
134 CHARSETLIBDIR = $(MODULESDIR)/charset
135 AUTHLIBDIR = $(MODULESDIR)/auth
136 CONFIGLIBDIR = $(MODULESDIR)/config
137 GPEXTLIBDIR = $(MODULESDIR)/gpext
138 CONFIGDIR = @configdir@
139 VARDIR = @localstatedir@
140 MANDIR = @mandir@
141 DATADIR = @datadir@
143 # The permissions to give the executables and other data
144 INSTALLPERMS_BIN = 0755
145 INSTALLPERMS_DATA = 0644
147 # set these to where to find various files
148 # These can be overridden by command line switches (see smbd(8))
149 # or in smb.conf (see smb.conf(5))
150 LOGFILEBASE = @logfilebase@
151 CONFIGFILE = $(CONFIGDIR)/smb.conf
152 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
153 NCALRPCDIR = @ncalrpcdir@
155 # This is where smbpasswd et al go
156 PRIVATEDIR = @privatedir@
158 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
159 PRIVATE_DIR = $(PRIVATEDIR)
161 # This is where SWAT images and help files go
162 SWATDIR = @swatdir@
164 # This is where locale(mo) files go
165 LOCALEDIR= @localedir@
167 # the directory where lock files go
168 LOCKDIR = @lockdir@
170 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
171 CACHEDIR = @cachedir@
172 STATEDIR = @statedir@
174 # Where to look for (and install) codepage databases.
175 CODEPAGEDIR = @codepagedir@
177 # the directory where pid files go
178 PIDDIR = @piddir@
180 FLAGS = -I. \
181 -I$(srcdir) \
182 @FLAGS1@ \
183 @SAMBA_CPPFLAGS@ \
184 $(CPPFLAGS) \
185 $(ISA) \
186 -I$(srcdir)/lib \
187 -I.. \
188 -I../source4 \
189 -D_SAMBA_BUILD_=3
191 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
192 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
193 -DCONFIGFILE=\"$(CONFIGFILE)\" \
194 -DSBINDIR=\"$(SBINDIR)\" \
195 -DBINDIR=\"$(BINDIR)\" \
196 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
197 -DSWATDIR=\"$(SWATDIR)\" \
198 -DLOCKDIR=\"$(LOCKDIR)\" \
199 -DPIDDIR=\"$(PIDDIR)\" \
200 -DLIBDIR=\"$(LIBDIR)\" \
201 -DMODULESDIR=\"$(MODULESDIR)\" \
202 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
203 -DSHLIBEXT=\"@SHLIBEXT@\" \
204 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
205 -DCONFIGDIR=\"$(CONFIGDIR)\" \
206 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
207 -DCACHEDIR=\"$(CACHEDIR)\" \
208 -DSTATEDIR=\"$(STATEDIR)\" \
209 -DLOCALEDIR=\"$(LOCALEDIR)\"
211 # Note that all executable programs now provide for an optional executable suffix.
213 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
215 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
216 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
217 bin/smbta-util@EXEEXT@
218 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
219 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
220 $(TDBRESTORE) \
221 $(TDBTOOL)
222 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
223 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
224 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
226 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
227 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
228 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
229 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
230 $(TDBTORTURE) \
231 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
233 BIN_PROGS = @EXTRA_BIN_PROGS@ \
234 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
236 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
237 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
238 bin/log2pcap@EXEEXT@ \
239 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
240 bin/dbwrap_tool@EXEEXT@ \
241 bin/dbwrap_torture@EXEEXT@
243 PAM_MODULES = @PAM_MODULES@
245 NSS_MODULES = @NSS_MODULES@
247 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
249 VFS_MODULES = @VFS_MODULES@
250 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
251 PDB_MODULES = @PDB_MODULES@
252 RPC_MODULES = @RPC_MODULES@
253 IDMAP_MODULES = @IDMAP_MODULES@
254 CHARSET_MODULES = @CHARSET_MODULES@
255 AUTH_MODULES = @AUTH_MODULES@
256 NSS_INFO_MODULES = @NSS_INFO_MODULES@
257 GPEXT_MODULES = @GPEXT_MODULES@
258 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
259 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
260 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
262 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
264 ######################################################################
265 # object file lists
266 ######################################################################
268 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
269 lib/dbwrap.o lib/dbwrap_tdb.o \
270 lib/dbwrap_ctdb.o \
271 lib/g_lock.o \
272 lib/dbwrap_rbt.o
274 TDB_VALIDATE_OBJ = lib/tdb_validate.o
276 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
278 VERSION_OBJ = lib/version.o
280 WBCOMMON_OBJ = ../nsswitch/wb_common.o
282 AFS_OBJ = lib/afs.o
284 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
286 AVAHI_OBJ = @AVAHI_OBJ@
288 SERVER_MUTEX_OBJ = lib/server_mutex.o
290 PASSCHANGE_OBJ = libsmb/passchange.o
292 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
293 ../librpc/ndr/ndr_compression.o \
294 librpc/gen_ndr/ndr_drsuapi.o \
295 ../librpc/ndr/ndr_drsblobs.o \
296 librpc/gen_ndr/ndr_drsblobs.o
298 ZLIB_OBJ = @ZLIB_OBJS@
300 COMPRESSION_OBJ = ../lib/compression/mszip.o \
301 ../lib/compression/lzxpress.o \
302 $(ZLIB_OBJ)
304 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
305 $(COMPRESSION_OBJ)
307 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
308 ../librpc/ndr/ndr_ntlmssp.o
310 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
311 ../librpc/ndr/ndr.o \
312 ../librpc/ndr/ndr_misc.o \
313 librpc/gen_ndr/ndr_misc.o \
314 librpc/gen_ndr/ndr_security.o \
315 ../librpc/ndr/ndr_sec_helper.o \
316 ../librpc/ndr/ndr_string.o \
317 ../librpc/ndr/uuid.o \
318 librpc/ndr/util.o \
319 librpc/gen_ndr/ndr_dcerpc.o
321 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
322 librpc/gen_ndr/ndr_lsa.o
324 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
325 ../librpc/ndr/ndr_netlogon.o
327 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
328 ../librpc/ndr/ndr_schannel.o
330 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
331 ../librpc/ndr/ndr_spoolss_buf.o
333 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
334 ../librpc/ndr/ndr_ntprinting.o \
336 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
337 librpc/ndr/ndr_preg.o
339 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
340 ../librpc/ndr/ndr_xattr.o
342 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/cli_spoolss.o \
343 librpc/gen_ndr/ndr_spoolss_c.o \
344 rpc_client/cli_spoolss.o \
345 rpc_client/init_spoolss.o
347 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/cli_eventlog.o \
348 librpc/gen_ndr/ndr_eventlog_c.o
350 LIBCLI_WINREG_OBJ = librpc/gen_ndr/cli_winreg.o \
351 librpc/gen_ndr/ndr_winreg_c.o
353 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/cli_ntsvcs.o \
354 librpc/gen_ndr/ndr_ntsvcs_c.o
356 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/cli_drsuapi.o \
357 librpc/gen_ndr/ndr_drsuapi_c.o
359 LIBCLI_DFS_OBJ = librpc/gen_ndr/cli_dfs.o \
360 librpc/gen_ndr/ndr_dfs_c.o
362 LIBCLI_ECHO_OBJ = librpc/gen_ndr/cli_echo.o \
363 librpc/gen_ndr/ndr_echo_c.o
365 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/cli_initshutdown.o \
366 librpc/gen_ndr/ndr_initshutdown_c.o
368 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/cli_dssetup.o \
369 librpc/gen_ndr/ndr_dssetup_c.o
371 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/cli_svcctl.o \
372 librpc/gen_ndr/ndr_svcctl_c.o
374 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/cli_wkssvc.o \
375 librpc/gen_ndr/ndr_wkssvc_c.o
377 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/cli_srvsvc.o \
378 librpc/gen_ndr/ndr_srvsvc_c.o
380 LIBCLI_LSA_OBJ = librpc/gen_ndr/cli_lsa.o \
381 librpc/gen_ndr/ndr_lsa_c.o \
382 rpc_client/cli_lsarpc.o \
383 rpc_client/init_lsa.o
385 LIBCLI_SAMR_OBJ = librpc/gen_ndr/cli_samr.o \
386 librpc/gen_ndr/ndr_samr_c.o \
387 rpc_client/cli_samr.o
389 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/cli_netlogon.o \
390 librpc/gen_ndr/ndr_netlogon_c.o \
391 rpc_client/cli_netlogon.o
393 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/cli_epmapper.o \
394 librpc/gen_ndr/ndr_epmapper_c.o
396 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
397 $(LIBNDR_GEN_OBJ0) \
398 librpc/gen_ndr/ndr_dfs.o \
399 librpc/gen_ndr/ndr_echo.o \
400 librpc/gen_ndr/ndr_winreg.o \
401 librpc/gen_ndr/ndr_initshutdown.o \
402 librpc/gen_ndr/ndr_srvsvc.o \
403 librpc/gen_ndr/ndr_eventlog.o \
404 $(LIBNDR_NETLOGON_OBJ) \
405 librpc/gen_ndr/ndr_dssetup.o \
406 librpc/gen_ndr/ndr_epmapper.o \
407 librpc/gen_ndr/ndr_ntsvcs.o \
408 $(LIBNDR_SPOOLSS_OBJ)
410 # this includes only the low level parse code, not stuff
411 # that requires knowledge of security contexts
412 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
414 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
416 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
417 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
419 LIBSAMBAUTIL_OBJ = \
420 $(LIBREPLACE_OBJ) \
421 $(SOCKET_WRAPPER_OBJ) \
422 $(NSS_WRAPPER_OBJ)
424 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
425 ../lib/util/xfile.o ../lib/util/util_strlist.o \
426 ../lib/util/util_file.o ../lib/util/data_blob.o \
427 ../lib/util/util.o ../lib/util/fsusage.o \
428 ../lib/util/params.o ../lib/util/talloc_stack.o \
429 ../lib/util/genrand.o ../lib/util/util_net.o \
430 ../lib/util/become_daemon.o ../lib/util/system.o \
431 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
432 ../lib/util/tevent_werror.o \
433 ../lib/util/smb_threads.o ../lib/util/util_id.o \
434 ../lib/util/blocking.o ../lib/util/rfc1738.o \
435 ../lib/util/select.o
437 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
438 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
439 ../lib/crypto/md4.o \
440 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
441 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
443 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
444 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
445 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
446 lib/interfaces.o lib/memcache.o \
447 lib/talloc_dict.o \
448 lib/serverid.o \
449 lib/util_sconn.o \
450 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
451 $(TDB_LIB_OBJ) \
452 $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
453 lib/interface.o lib/pidfile.o \
454 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
455 lib/username.o \
456 ../libds/common/flag_mapping.o \
457 lib/access.o lib/smbrun.o \
458 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
459 lib/wins_srv.o \
460 lib/util_str.o lib/clobber.o lib/util_sid.o \
461 lib/util_unistr.o lib/util_file.o \
462 lib/util.o lib/util_names.o \
463 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
464 lib/substitute.o lib/dbwrap_util.o \
465 lib/ms_fnmatch.o lib/errmap_unix.o \
466 lib/tallocmsg.o lib/dmallocmsg.o \
467 libsmb/clisigning.o libsmb/smb_signing.o \
468 lib/iconv.o lib/pam_errors.o intl/lang_tdb.o \
469 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
470 lib/sessionid_tdb.o \
471 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
472 lib/server_contexts.o \
473 lib/ldap_escape.o @CHARSET_STATIC@ \
474 lib/secdesc.o ../libcli/security/access_check.o \
475 ../libcli/security/secace.o ../libcli/security/object_tree.o \
476 ../libcli/security/sddl.o \
477 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
478 lib/fncall.o \
479 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
480 lib/file_id.o lib/idmap_cache.o \
481 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
482 ../libcli/security/security_token.o ../libcli/security/util_sid.o
484 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
485 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
487 READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
489 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
490 # Be sure to include them into your application
491 POPT_LIB_OBJ = lib/popt_common.o
493 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
494 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
495 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
497 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
499 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
500 libaddns/dnsgss.o libaddns/dnsmarshall.o
501 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
503 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
505 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
506 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
507 libgpo/gpo_reg.o \
508 $(GPEXT_OBJ)
509 LIBGPO_OBJ = $(LIBGPO_OBJ0)
511 LIBADS_OBJ = libads/ldap.o \
512 libads/sasl.o libads/sasl_wrapping.o \
513 libads/krb5_setpw.o \
514 libads/kerberos_util.o \
515 libads/ldap_user.o \
516 libads/ads_struct.o libads/kerberos_keytab.o \
517 libads/disp_sec.o libads/ldap_utils.o \
518 libads/ldap_schema.o libads/util.o libads/ndr.o
520 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
521 ../librpc/ndr/ndr_krb5pac.o \
522 librpc/gen_ndr/ndr_krb5pac.o
524 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
526 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
527 librpc/gen_ndr/ndr_secrets.o
529 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
530 ../libcli/netlogon.o \
531 ../libcli/ndr_netlogon.o \
532 librpc/gen_ndr/ndr_nbt.o \
533 librpc/gen_ndr/ndr_svcctl.o \
534 ../librpc/ndr/ndr_svcctl.o
536 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
537 libsmb/namequery.o ../libcli/nbt/lmhosts.o libsmb/conncache.o \
538 libads/dns.o libads/sitename_cache.o
540 NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
541 DOSERR_OBJ = ../libcli/util/doserr.o
542 ERRORMAP_OBJ = libsmb/errormap.o
543 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
545 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
547 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
549 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
550 $(SECRETS_OBJ)
552 LIBSMB_OBJ0 = \
553 ../libcli/auth/ntlm_check.o \
554 libsmb/ntlmssp.o \
555 libsmb/ntlmssp_wrap.o \
556 ../libcli/auth/ntlmssp.o \
557 ../libcli/auth/ntlmssp_sign.o \
558 $(LIBNDR_NTLMSSP_OBJ) \
559 ../libcli/auth/ntlmssp_ndr.o \
560 ../libcli/auth/ntlmssp_server.o
562 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
563 $(LIBSMB_ERR_OBJ)
565 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
566 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o lib/ldb_compat.o
568 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
569 ../lib/tsocket/tsocket_helpers.o \
570 ../lib/tsocket/tsocket_bsd.o
572 CLDAP_OBJ = libads/cldap.o \
573 ../libcli/cldap/cldap.o \
574 ../lib/util/idtree.o \
575 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
577 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
579 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
580 ../libcli/auth/schannel_sign.o \
581 ../libcli/auth/schannel_state_tdb.o \
582 $(LIBNDR_SCHANNEL_OBJ)
584 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
585 libsmb/clikrb5.o libsmb/clispnego.o \
586 ../libcli/auth/spnego_parse.o \
587 ../lib/util/asn1.o \
588 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
589 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
590 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
591 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
592 libsmb/clioplock.o libsmb/clirap2.o \
593 libsmb/smb_seal.o libsmb/async_smb.o \
594 $(LIBSAMBA_OBJ) \
595 $(LIBNMB_OBJ) \
596 $(LIBNBT_OBJ) \
597 $(CLDAP_OBJ) \
598 $(DRSUAPI_OBJ)
600 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
601 rpc_client/cli_pipe.o \
602 librpc/crypto/gse_krb5.o \
603 librpc/crypto/gse.o \
604 librpc/crypto/cli_spnego.o \
605 librpc/rpc/rpc_common.o \
606 rpc_client/rpc_transport_np.o \
607 rpc_client/rpc_transport_sock.o \
608 rpc_client/rpc_transport_tstream.o \
609 ../librpc/rpc/binding.o \
610 ../librpc/rpc/dcerpc_util.o \
611 ../librpc/rpc/binding_handle.o \
612 librpc/rpc/dcerpc_helpers.o \
613 $(LIBCLI_EPMAPPER_OBJ)
615 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
618 # registry-related objects
620 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
622 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
623 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
624 REG_INIT_FULL_OBJ = registry/reg_init_full.o
626 REGFIO_OBJ = registry/regfio.o \
627 $(REG_PARSE_PRS_OBJ)
629 REG_API_REGF_OBJ = registry/reg_api_regf.o
631 REGOBJS_OBJ = registry/reg_objects.o
633 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
635 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
637 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
638 registry/reg_backend_shares.o \
639 registry/reg_backend_netlogon_params.o \
640 registry/reg_backend_prod_options.o \
641 registry/reg_backend_tcpip_params.o \
642 registry/reg_backend_hkpt_params.o \
643 registry/reg_backend_current_version.o \
644 registry/reg_backend_perflib.o
646 REG_BASE_OBJ = registry/reg_api.o \
647 registry/reg_dispatcher.o \
648 registry/reg_cachehook.o \
649 $(REGOBJS_OBJ) \
650 registry/reg_util_internal.o \
651 lib/util_nttoken.o \
652 $(REG_BACKENDS_BASE_OBJ) \
653 $(REG_INIT_BASIC_OBJ)
655 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
656 registry/reg_util_token.o \
657 registry/reg_api_util.o \
658 $(REG_BACKENDS_SMBCONF_OBJ) \
659 $(REG_INIT_SMBCONF_OBJ)
661 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
662 $(REG_BACKENDS_EXTRA_OBJ) \
663 $(REG_INIT_FULL_OBJ) \
664 registry/reg_eventlog.o \
665 registry/reg_perfcount.o \
666 librpc/gen_ndr/ndr_perfcount.o
668 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
670 RPC_LSARPC_OBJ = rpc_server/srv_lsa_nt.o \
671 librpc/gen_ndr/srv_lsa.o
673 RPC_NETLOGON_OBJ = rpc_server/srv_netlog_nt.o \
674 librpc/gen_ndr/srv_netlogon.o
676 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
677 rpc_server/srv_samr_util.o \
678 rpc_server/srv_samr_chgpasswd.o \
679 librpc/gen_ndr/srv_samr.o
681 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
683 RPC_WINREG_OBJ = rpc_server/srv_winreg_nt.o \
684 librpc/gen_ndr/srv_winreg.o
686 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
688 RPC_SRVSVC_OBJ = rpc_server/srv_srvsvc_nt.o \
689 librpc/gen_ndr/srv_srvsvc.o
691 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
692 rpc_server/srv_wkssvc_nt.o
694 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl_nt.o \
695 librpc/gen_ndr/srv_svcctl.o \
696 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
697 services/svc_netlogon.o services/svc_winreg.o \
698 services/svc_wins.o
700 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs_nt.o \
701 librpc/gen_ndr/srv_ntsvcs.o
703 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
704 rpc_server/srv_dfs_nt.o
706 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss_nt.o \
707 rpc_server/srv_spoolss_util.o \
708 librpc/gen_ndr/srv_spoolss.o
710 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog_nt.o \
711 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
713 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
714 librpc/gen_ndr/ndr_named_pipe_auth.o
716 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
717 rpc_server/rpc_handles.o
719 RPC_SERVICE = rpc_server/rpc_server.o
721 RPC_CRYPTO = rpc_server/dcesrv_ntlmssp.o \
722 rpc_server/dcesrv_gssapi.o \
723 rpc_server/dcesrv_spnego.o
725 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
726 $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
728 RPC_RPCECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
730 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
731 $(LIBCLI_SPOOLSS_OBJ) \
732 $(LIBCLI_WINREG_OBJ) \
733 $(LIBCLI_SRVSVC_OBJ) \
734 $(LIBCLI_LSA_OBJ) \
735 $(LIBCLI_SAMR_OBJ) \
736 $(LIBCLI_NETLOGON_OBJ) \
737 $(RPC_CLIENT_SCHANNEL_OBJ) \
738 rpc_client/init_netlogon.o \
739 rpc_client/init_samr.o
741 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
743 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
745 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
747 PRIVILEGES_OBJ = lib/privileges.o
749 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
751 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
752 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
753 passdb/util_unixsids.o passdb/lookup_sid.o \
754 passdb/login_cache.o @PDB_STATIC@ \
755 passdb/account_pol.o $(PRIVILEGES_OBJ) \
756 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ)
758 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
759 CP850_OBJ = modules/CP850.o
760 CP437_OBJ = modules/CP437.o
761 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
763 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
765 PROFILE_OBJ = profile/profile.o
766 PROFILES_OBJ = utils/profiles.o \
767 $(LIBSMB_ERR_OBJ) \
768 $(PARAM_OBJ) \
769 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
770 $(POPT_LIB_OBJ) \
771 $(REGFIO_OBJ)
773 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
774 smbd/oplock_onefs.o
776 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
777 librpc/gen_ndr/ndr_notify.o
779 FNAME_UTIL_OBJ = smbd/filename_util.o
781 VFS_DEFAULT_OBJ = modules/vfs_default.o
782 VFS_AUDIT_OBJ = modules/vfs_audit.o
783 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
784 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
785 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
786 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
787 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
788 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
789 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
790 VFS_CAP_OBJ = modules/vfs_cap.o
791 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
792 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
793 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
794 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
795 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
796 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
797 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
798 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
799 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
800 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
801 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
802 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
803 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
804 VFS_CATIA_OBJ = modules/vfs_catia.o
805 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
806 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
807 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
808 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
809 VFS_COMMIT_OBJ = modules/vfs_commit.o
810 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
811 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
812 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
813 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
814 VFS_FILEID_OBJ = modules/vfs_fileid.o
815 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
816 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
817 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
818 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
819 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
820 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
821 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
822 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
823 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
824 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
825 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
826 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
827 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
828 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
829 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
830 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
831 VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
833 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
835 SLCACHE_OBJ = libsmb/samlogon_cache.o
837 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
839 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
840 AUTH_DOMAIN_OBJ = auth/auth_domain.o
841 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
842 AUTH_SERVER_OBJ = auth/auth_server.o
843 AUTH_UNIX_OBJ = auth/auth_unix.o
844 AUTH_WINBIND_OBJ = auth/auth_winbind.o
845 AUTH_WBC_OBJ = auth/auth_wbc.o
846 AUTH_SCRIPT_OBJ = auth/auth_script.o
847 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
849 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
850 auth/server_info.o \
851 auth/server_info_sam.o \
852 auth/user_info.o \
853 auth/user_util.o \
854 auth/user_krb5.o \
855 auth/auth_compat.o auth/auth_ntlmssp.o \
856 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
858 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
860 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
862 BUILDOPT_OBJ = smbd/build_options.o
864 SMBD_OBJ_SRV = smbd/server_reload.o \
865 smbd/files.o smbd/connection.o \
866 smbd/utmp.o smbd/session.o \
867 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
868 smbd/share_access.o smbd/fileio.o \
869 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
870 smbd/message.o smbd/nttrans.o smbd/pipes.o \
871 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
872 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
873 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
874 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
875 smbd/posix_acls.o lib/sysacls.o \
876 smbd/process.o smbd/service.o smbd/error.o \
877 printing/printspoolss.o \
878 lib/sysquotas.o lib/sysquotas_linux.o \
879 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
880 lib/sysquotas_nfs.o \
881 smbd/fake_file.o \
882 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
883 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
884 smbd/dmapi.o smbd/signing.o \
885 smbd/file_access.o \
886 smbd/dnsregister.o smbd/globals.o \
887 smbd/smb2_server.o \
888 smbd/smb2_signing.o \
889 smbd/smb2_glue.o \
890 smbd/smb2_negprot.o \
891 smbd/smb2_sesssetup.o \
892 smbd/smb2_tcon.o \
893 smbd/smb2_create.o \
894 smbd/smb2_close.o \
895 smbd/smb2_flush.o \
896 smbd/smb2_read.o \
897 smbd/smb2_write.o \
898 smbd/smb2_lock.o \
899 smbd/smb2_ioctl.o \
900 smbd/smb2_keepalive.o \
901 smbd/smb2_find.o \
902 smbd/smb2_notify.o \
903 smbd/smb2_getinfo.o \
904 smbd/smb2_setinfo.o \
905 smbd/smb2_break.o \
906 ../libcli/smb/smb2_create_blob.o \
907 $(MANGLE_OBJ) @VFS_STATIC@
909 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
910 $(RPC_SERVER_OBJ) \
911 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
912 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
913 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
914 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
915 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
916 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
917 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
918 $(LIBSMBCONF_OBJ) \
919 $(PRIVILEGES_BASIC_OBJ) \
920 $(REGFIO_OBJ) \
921 $(REG_API_REGF_OBJ) \
922 $(LIBNDR_XATTR_OBJ)
924 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
925 printing/print_cups.o printing/print_generic.o \
926 printing/lpq_parse.o printing/load.o \
927 printing/print_iprint.o printing/print_standard.o \
928 printing/printer_list.o
930 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
931 PRINTBACKEND_OBJ = printing/printing.o \
932 printing/nt_printing.o \
933 printing/nt_printing_tdb.o \
934 printing/nt_printing_migrate.o \
935 printing/nt_printing_ads.o \
936 librpc/gen_ndr/ndr_ntprinting.o \
937 ../librpc/ndr/ndr_ntprinting.o \
938 $(PRINTBASE_OBJ)
940 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
942 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
943 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
944 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
945 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
946 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
947 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
948 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
949 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
950 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
951 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
952 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
953 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
955 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
956 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
957 $(LIBNDR_GEN_OBJ0)
959 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
960 web/swat.o web/neg_lang.o
962 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
963 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
964 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
965 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
966 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
967 $(LIBCLI_SAMR_OBJ) \
968 rpc_client/init_lsa.o
970 STATUS_OBJ = utils/status.o utils/status_profile.o \
971 $(LOCKING_OBJ) $(PARAM_OBJ) \
972 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
973 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
975 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
976 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
978 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
979 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
980 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
981 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
982 $(LIBMSRPC_GEN_OBJ) \
983 $(LIBMSRPC_OBJ) \
984 $(LIBCLI_SRVSVC_OBJ)
986 TESTPARM_OBJ = utils/testparm.o \
987 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
988 $(LIBSMB_ERR_OBJ)
990 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
991 $(LIB_NONSMBD_OBJ) \
992 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
994 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
995 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
996 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
998 PASSWD_UTIL_OBJ = utils/passwd_util.o
1000 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
1001 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
1002 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1003 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1004 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1005 $(LIBCLI_SAMR_OBJ) \
1006 rpc_client/init_lsa.o
1008 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
1009 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
1010 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1011 $(LIBCLI_LDAP_NDR_OBJ) \
1012 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1014 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1016 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1018 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1019 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1020 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1021 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1022 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1023 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1024 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1025 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1026 rpcclient/cmd_winreg.o \
1027 $(DISPLAY_SEC_OBJ)
1029 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1030 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1031 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1032 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1033 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1034 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1035 $(LIBCLI_SPOOLSS_OBJ) \
1036 $(LIBCLI_EVENTLOG_OBJ) \
1037 $(LIBCLI_NTSVCS_OBJ) \
1038 $(LIBCLI_DRSUAPI_OBJ) \
1039 $(LIBCLI_DFS_OBJ) \
1040 $(LIBCLI_ECHO_OBJ) \
1041 $(LIBCLI_DSSETUP_OBJ) \
1042 $(LIBCLI_WKSSVC_OBJ) \
1043 $(LIBCLI_SRVSVC_OBJ) \
1044 $(LIBCLI_LSA_OBJ) \
1045 $(LIBCLI_SAMR_OBJ) \
1046 $(LIBCLI_WINREG_OBJ) \
1047 $(LIBCLI_NETLOGON_OBJ) \
1048 $(RPC_CLIENT_SCHANNEL_OBJ) \
1049 rpc_client/init_netlogon.o \
1050 rpc_client/init_samr.o
1052 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1053 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1055 LIBSMBCLIENT_THREAD_OBJ = \
1056 libsmb/libsmb_thread_impl.o \
1057 libsmb/libsmb_thread_posix.o
1059 LIBSMBCLIENT_OBJ0 = \
1060 libsmb/libsmb_cache.o \
1061 libsmb/libsmb_compat.o \
1062 libsmb/libsmb_context.o \
1063 libsmb/libsmb_dir.o \
1064 libsmb/libsmb_file.o \
1065 libsmb/libsmb_misc.o \
1066 libsmb/libsmb_path.o \
1067 libsmb/libsmb_printjob.o \
1068 libsmb/libsmb_server.o \
1069 libsmb/libsmb_stat.o \
1070 libsmb/libsmb_xattr.o \
1071 libsmb/libsmb_setget.o
1073 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1074 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1075 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1076 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1077 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1078 $(LIBCLI_SRVSVC_OBJ) \
1079 $(LIBCLI_LSA_OBJ)
1081 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1083 # This shared library is intended for linking with unit test programs
1084 # to test Samba internals. It's called libbigballofmud.so to
1085 # discourage casual usage.
1087 LIBBIGBALLOFMUD_MAJOR = 0
1089 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1090 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1091 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1093 CLIENT_OBJ1 = client/client.o client/clitar.o \
1094 client/dnsbrowse.o \
1095 $(LIBMSRPC_OBJ)
1097 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1098 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1099 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1100 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1101 $(DISPLAY_SEC_OBJ) \
1102 $(LIBCLI_SRVSVC_OBJ)
1104 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1105 ../lib/smbconf/smbconf_util.o \
1106 ../lib/smbconf/smbconf_txt.o \
1107 lib/smbconf/smbconf_reg.o \
1108 lib/smbconf/smbconf_init.o
1110 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1112 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1113 $(LIB_NONSMBD_OBJ) \
1114 $(PARAM_OBJ) \
1115 $(LIBSMB_ERR_OBJ) \
1116 $(POPT_LIB_OBJ)
1118 LIBNET_OBJ = libnet/libnet_join.o \
1119 libnet/libnet_keytab.o \
1120 librpc/gen_ndr/ndr_libnet_join.o
1122 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1123 libnet/libnet_dssync_keytab.o \
1124 ../libcli/drsuapi/repl_decrypt.o
1126 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1127 libnet/libnet_samsync_ldif.o \
1128 libnet/libnet_samsync_passdb.o \
1129 libnet/libnet_samsync_display.o \
1130 libnet/libnet_samsync_keytab.o \
1131 ../libcli/samsync/decrypt.o
1133 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1134 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1135 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1136 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
1137 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1138 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1139 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1140 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1141 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1142 utils/net_conf.o utils/net_join.o utils/net_user.o \
1143 utils/net_group.o utils/net_file.o utils/net_registry.o \
1144 auth/token_util.o utils/net_dom.o utils/net_share.o \
1145 utils/net_g_lock.o \
1146 utils/net_serverid.o \
1147 utils/net_eventlog.o \
1148 utils/net_printing.o \
1149 $(LIBNDR_NTPRINTING_OBJ) \
1150 $(LIBNDR_PREG_OBJ) \
1151 $(LIBCLI_SPOOLSS_OBJ) \
1152 $(LIBCLI_WINREG_OBJ) \
1153 $(LIBCLI_DRSUAPI_OBJ) \
1154 $(LIBCLI_INITSHUTDOWN_OBJ) \
1155 $(LIBCLI_DSSETUP_OBJ) \
1156 $(LIBCLI_SVCCTL_OBJ) \
1157 $(LIBCLI_WKSSVC_OBJ) \
1158 $(LIBCLI_SRVSVC_OBJ) \
1159 $(LIBCLI_LSA_OBJ) \
1160 $(LIBCLI_SAMR_OBJ) \
1161 $(LIBCLI_NETLOGON_OBJ) \
1162 $(RPC_CLIENT_SCHANNEL_OBJ) \
1163 rpc_client/init_netlogon.o \
1164 rpc_client/init_samr.o \
1165 registry/reg_parse.o registry/reg_format.o \
1166 registry/reg_parse_internal.o registry/reg_import.o \
1167 lib/cbuf.o lib/srprs.o
1169 # these are not processed by make proto
1170 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1172 NET_OBJ = $(NET_OBJ1) \
1173 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1174 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1175 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1176 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1177 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1178 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1179 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1180 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1181 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1182 $(REG_SMBCONF_OBJ) \
1183 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1184 $(LIBSMBCONF_OBJ) \
1185 $(REGFIO_OBJ) \
1186 $(PRIVILEGES_BASIC_OBJ) \
1187 $(LIB_EVENTLOG_OBJ) localedir.o
1189 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1190 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1191 $(LIBNDR_GEN_OBJ0)
1193 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1194 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1196 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1197 torture/denytest.o torture/mangle_test.o \
1198 torture/nbench.o \
1199 torture/test_async_echo.o \
1200 torture/test_posix_append.o
1202 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1203 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1204 @LIBWBCLIENT_STATIC@ \
1205 ../nsswitch/libwbclient/wbc_async.o \
1206 ../nsswitch/libwbclient/wb_reqtrans.o \
1207 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
1209 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1210 $(LIB_NONSMBD_OBJ) \
1211 $(LIBNDR_GEN_OBJ0)
1213 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1214 $(LIB_NONSMBD_OBJ) \
1215 $(LIBNDR_GEN_OBJ0)
1217 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1218 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1219 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1221 NSSTEST_OBJ = ../nsswitch/nsstest.o $(LIBSAMBAUTIL_OBJ)
1223 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1224 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1225 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1226 $(LIBNDR_GEN_OBJ0)
1228 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1230 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1232 LOG2PCAP_OBJ = utils/log2pcaphex.o
1234 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1235 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1236 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1238 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1239 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1240 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1241 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1242 $(LIBCLI_LSA_OBJ)
1244 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1245 $(PARAM_OBJ) \
1246 $(LIB_NONSMBD_OBJ) \
1247 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1248 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1249 $(LIBCLI_LSA_OBJ)
1251 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1253 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1254 $(LIBSMB_ERR_OBJ) \
1255 registry/reg_eventlog.o $(LIB_EVENTLOG_OBJ) \
1256 librpc/gen_ndr/ndr_eventlog.o \
1257 librpc/gen_ndr/ndr_lsa.o
1259 SHARESEC_OBJ0 = utils/sharesec.o
1260 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1261 $(LIBSMB_ERR_OBJ) \
1262 $(POPT_LIB_OBJ)
1264 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1265 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1267 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1268 @libreplacedir@/test/getifaddrs.o \
1269 @libreplacedir@/test/os2_delete.o \
1270 @libreplacedir@/test/strptime.o \
1271 @libreplacedir@/test/main.o \
1272 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1274 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1276 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1277 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1278 $(LIBNDR_GEN_OBJ0)
1280 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1281 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1283 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1284 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1285 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1286 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1287 $(LIBTSOCKET_OBJ)
1289 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1291 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1293 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1295 IDMAP_HASH_OBJ = \
1296 winbindd/idmap_hash/idmap_hash.o \
1297 winbindd/idmap_hash/mapfile.o
1299 IDMAP_ADEX_OBJ = \
1300 winbindd/idmap_adex/idmap_adex.o \
1301 winbindd/idmap_adex/cell_util.o \
1302 winbindd/idmap_adex/likewise_cell.o \
1303 winbindd/idmap_adex/provider_unified.o \
1304 winbindd/idmap_adex/gc_util.o \
1305 winbindd/idmap_adex/domain_util.o
1307 WINBINDD_OBJ1 = \
1308 winbindd/winbindd.o \
1309 winbindd/winbindd_group.o \
1310 winbindd/winbindd_util.o \
1311 winbindd/winbindd_cache.o \
1312 winbindd/winbindd_pam.o \
1313 winbindd/winbindd_misc.o \
1314 winbindd/winbindd_cm.o \
1315 winbindd/winbindd_wins.o \
1316 winbindd/winbindd_msrpc.o \
1317 winbindd/winbindd_rpc.o \
1318 winbindd/winbindd_reconnect.o \
1319 winbindd/winbindd_ads.o \
1320 winbindd/winbindd_samr.o \
1321 winbindd/winbindd_dual.o \
1322 winbindd/winbindd_dual_ndr.o \
1323 winbindd/winbindd_dual_srv.o \
1324 librpc/gen_ndr/cli_wbint.o \
1325 librpc/gen_ndr/ndr_wbint_c.o \
1326 librpc/gen_ndr/srv_wbint.o \
1327 librpc/gen_ndr/ndr_wbint.o \
1328 winbindd/winbindd_async.o \
1329 winbindd/winbindd_creds.o \
1330 winbindd/winbindd_cred_cache.o \
1331 winbindd/winbindd_ccache_access.o \
1332 winbindd/winbindd_domain.o \
1333 winbindd/winbindd_idmap.o \
1334 winbindd/winbindd_locator.o \
1335 winbindd/winbindd_ndr.o \
1336 winbindd/wb_ping.o \
1337 winbindd/wb_lookupsid.o \
1338 winbindd/wb_lookupname.o \
1339 winbindd/wb_sid2uid.o \
1340 winbindd/wb_sid2gid.o \
1341 winbindd/wb_uid2sid.o \
1342 winbindd/wb_gid2sid.o \
1343 winbindd/wb_queryuser.o \
1344 winbindd/wb_lookupuseraliases.o \
1345 winbindd/wb_lookupusergroups.o \
1346 winbindd/wb_getpwsid.o \
1347 winbindd/wb_gettoken.o \
1348 winbindd/wb_seqnum.o \
1349 winbindd/wb_seqnums.o \
1350 winbindd/wb_group_members.o \
1351 winbindd/wb_getgrsid.o \
1352 winbindd/wb_query_user_list.o \
1353 winbindd/wb_fill_pwent.o \
1354 winbindd/wb_next_pwent.o \
1355 winbindd/wb_next_grent.o \
1356 winbindd/wb_dsgetdcname.o \
1357 winbindd/winbindd_lookupsid.o \
1358 winbindd/winbindd_lookupname.o \
1359 winbindd/winbindd_sid_to_uid.o \
1360 winbindd/winbindd_sid_to_gid.o \
1361 winbindd/winbindd_uid_to_sid.o \
1362 winbindd/winbindd_gid_to_sid.o \
1363 winbindd/winbindd_allocate_uid.o \
1364 winbindd/winbindd_allocate_gid.o \
1365 winbindd/winbindd_getpwsid.o \
1366 winbindd/winbindd_getpwnam.o \
1367 winbindd/winbindd_getpwuid.o \
1368 winbindd/winbindd_getsidaliases.o \
1369 winbindd/winbindd_getuserdomgroups.o \
1370 winbindd/winbindd_getgroups.o \
1371 winbindd/winbindd_show_sequence.o \
1372 winbindd/winbindd_getgrgid.o \
1373 winbindd/winbindd_getgrnam.o \
1374 winbindd/winbindd_getusersids.o \
1375 winbindd/winbindd_lookuprids.o \
1376 winbindd/winbindd_setpwent.o \
1377 winbindd/winbindd_getpwent.o \
1378 winbindd/winbindd_endpwent.o \
1379 winbindd/winbindd_setgrent.o \
1380 winbindd/winbindd_getgrent.o \
1381 winbindd/winbindd_endgrent.o \
1382 winbindd/winbindd_dsgetdcname.o \
1383 winbindd/winbindd_getdcname.o \
1384 winbindd/winbindd_list_users.o \
1385 winbindd/winbindd_list_groups.o \
1386 winbindd/winbindd_check_machine_acct.o \
1387 winbindd/winbindd_change_machine_acct.o \
1388 winbindd/winbindd_ping_dc.o \
1389 winbindd/winbindd_pam_auth.o \
1390 winbindd/winbindd_pam_auth_crap.o \
1391 winbindd/winbindd_pam_chauthtok.o \
1392 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1393 winbindd/winbindd_pam_logoff.o \
1394 auth/auth_util.o \
1395 auth/token_util.o \
1396 auth/user_util.o \
1397 auth/check_samsec.o \
1398 auth/server_info.o \
1399 auth/server_info_sam.o \
1400 auth/user_info.o \
1401 auth/pampass.o \
1402 ../nsswitch/libwbclient/wb_reqtrans.o
1404 WINBINDD_OBJ = \
1405 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1406 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1407 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1408 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1409 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1410 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1411 $(RPC_NCACN_NP) $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1412 $(NPA_TSTREAM_OBJ) \
1413 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1414 $(LIBADS_SERVER_OBJ) \
1415 $(TDB_VALIDATE_OBJ) \
1416 $(LIBCLI_DSSETUP_OBJ) \
1417 $(LIBCLI_LSA_OBJ) \
1418 $(LIBCLI_SAMR_OBJ) \
1419 $(LIBCLI_NETLOGON_OBJ) \
1420 rpc_client/init_netlogon.o \
1421 rpc_client/init_samr.o
1423 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1424 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1425 lib/winbind_util.o $(WBCOMMON_OBJ)
1427 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1429 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1430 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1432 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1433 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1435 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1436 ../lib/iniparser_build/strlib.o
1438 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1439 $(SOCKET_WRAPPER_OBJ)
1441 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1442 $(SOCKET_WRAPPER_OBJ)
1444 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1445 $(SOCKET_WRAPPER_OBJ)
1447 TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
1448 $(SOCKET_WRAPPER_OBJ)
1450 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1451 $(SOCKET_WRAPPER_OBJ)
1454 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1456 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1457 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o libads/kerberos.o \
1458 libsmb/samlogon_cache.o \
1459 $(LIBADS_SERVER_OBJ) \
1460 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1461 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1462 $(WBCOMMON_OBJ) \
1463 $(LIBCLI_LDAP_NDR_OBJ) \
1464 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1467 VLP_OBJ = printing/tests/vlp.o \
1468 ../lib/util/util_tdb.o \
1469 $(LIBSAMBAUTIL_OBJ) \
1470 param/util.o
1472 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1473 $(LIBSMB_OBJ) \
1474 $(PARAM_OBJ) \
1475 $(PASSDB_OBJ) \
1476 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1477 $(LIB_NONSMBD_OBJ) \
1478 $(KRBCLIENT_OBJ) \
1479 $(LIBMSRPC_OBJ) \
1480 $(LIBMSRPC_GEN_OBJ)
1482 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1483 $(PARAM_OBJ) \
1484 $(LIB_NONSMBD_OBJ) \
1485 $(LIBSMB_ERR_OBJ)
1487 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1488 $(PARAM_OBJ) \
1489 $(LIB_NONSMBD_OBJ) \
1490 $(LIBSMB_ERR_OBJ) \
1491 $(POPT_LIB_OBJ)
1493 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1494 $(PARAM_OBJ) \
1495 $(LIB_NONSMBD_OBJ) \
1496 $(POPT_LIB_OBJ) \
1497 $(LIBSAMBA_OBJ)
1499 ######################################################################
1500 # now the rules...
1501 ######################################################################
1502 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1503 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1504 $(EXTRA_ALL_TARGETS)
1506 basics:: samba3-idl
1508 nss_modules:: $(NSS_MODULES)
1510 pam_modules:: $(PAM_MODULES)
1512 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1514 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1516 gpext_modules:: $(GPEXT_MODULES)
1518 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1520 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1522 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1524 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1526 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1528 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1530 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1532 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1534 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1536 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1538 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1540 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1542 talloctort : SHOWFLAGS $(TALLOCTORT)
1544 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1546 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1548 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1550 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1551 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1552 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1554 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1556 modules:: SHOWFLAGS $(MODULES)
1559 #####################################################################
1560 ## Perl IDL Compiler
1562 IDL_FILES = librpc/idl/messaging.idl \
1563 librpc/idl/libnetapi.idl \
1564 librpc/idl/notify.idl \
1565 librpc/idl/wbint.idl \
1566 librpc/idl/perfcount.idl \
1567 librpc/idl/secrets.idl \
1568 librpc/idl/libnet_join.idl \
1569 librpc/idl/preg.idl
1571 samba3-idl::
1572 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1573 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1574 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1575 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1577 idl_full::
1578 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1579 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1580 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1581 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1583 #####################################################################
1586 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1587 $(EVERYTHING_PROGS)
1589 .SUFFIXES:
1590 .SUFFIXES: .c .o .lo
1592 .PHONY: showflags SHOWFLAGS
1594 showflags: SHOWFLAGS
1596 SHOWFLAGS::
1597 @echo "Using CFLAGS = $(CFLAGS)"
1598 @echo " PICFLAG = $(PICFLAG)"
1599 @echo " LIBS = $(LIBS)"
1600 @echo " LDFLAGS = $(LDFLAGS)"
1601 @echo " DYNEXP = $(DYNEXP)"
1602 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1603 @echo " SHLIBEXT = @SHLIBEXT@"
1604 @echo " SONAMEFLAG = @SONAMEFLAG@"
1606 # "showcflags" target for debuggin how CFLAGS are composed:
1608 .PHONY: showcflags SHOWCFLAGS
1610 showcflags: SHOWCFLAGS
1612 SHOWCFLAGS::
1613 @echo "CFLAGS = $(CFLAGS)"
1614 @echo "FLAGS = $(FLAGS)"
1615 @echo ""
1616 @echo "FLAGS1 = @FLAGS1@"
1617 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1618 @echo "CPPFLAGS = $(CPPFLAGS)"
1619 @echo "ISA = $(ISA)"
1621 MAKEDIR = || exec false; \
1622 if test -d "$$dir"; then :; else \
1623 echo mkdir "$$dir"; \
1624 mkdir -p "$$dir" >/dev/null 2>&1 || \
1625 test -d "$$dir" || \
1626 mkdir "$$dir" || \
1627 exec false; fi || exec false
1629 # Run a static checker.
1630 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1631 # Compile a source file.
1632 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1633 # Compile a source file with the installation paths defined.
1634 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1636 COMPILE = $(COMPILE_CC)
1638 .c.o:
1639 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1640 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1641 @if test -n "$(CC_CHECKER)"; then \
1642 echo "Checking $*.c with '$(CC_CHECKER)'";\
1643 $(CHECK_CC); \
1645 @echo Compiling $*.c
1646 @$(COMPILE) && exit 0;\
1647 echo "The following command failed:" 1>&2;\
1648 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1649 $(COMPILE_CC) >/dev/null 2>&1
1650 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1652 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1654 # this adds support for precompiled headers. To use it, install a snapshot
1655 # of gcc-3.4 and run 'make pch' before you do the main build.
1656 pch::
1657 rm -f $(PRECOMPILED_HEADER)
1658 $(MAKE) $(PRECOMPILED_HEADER)
1660 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1661 $(COMPILE)
1663 BINARY_PREREQS = bin/.dummy
1665 # These dependencies are only approximately correct: we want to make
1666 # sure Samba's paths are updated if ./configure is re-run. Really it
1667 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1668 # but since we also require "make install prefix=/opt/samba" *not* to
1669 # rebuild it's a bit hard.
1671 dynconfig.o: dynconfig.c Makefile
1672 @echo Compiling $*.c
1673 @$(COMPILE_CC_PATH) && exit 0;\
1674 echo "The following command failed:" 1>&2;\
1675 echo "$(COMPILE_CC_PATH)" 1>&2;\
1676 $(COMPILE_CC_PATH) >/dev/null 2>&1
1678 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1679 @echo Compiling $*.c
1680 @$(COMPILE_CC_PATH) && exit 0;\
1681 echo "The following command failed:" 1>&2;\
1682 echo "$(COMPILE_CC_PATH)" 1>&2;\
1683 $(COMPILE_CC_PATH) >/dev/null 2>&1
1685 ### Start section of object files that require PTHREAD_CFLAGS
1686 ../nsswitch/wins.o: ../nsswitch/wins.c
1687 @echo Compiling $*.c
1688 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1689 echo "The following command failed:" 1>&2;\
1690 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1691 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1693 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1694 @echo Compiling $*.c
1695 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1696 echo "The following command failed:" 1>&2;\
1697 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1698 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1700 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1701 @echo Compiling $*.c
1702 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1703 echo "The following command failed:" 1>&2;\
1704 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1705 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1707 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1708 @echo Compiling $*.c
1709 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1710 echo "The following command failed:" 1>&2;\
1711 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1712 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1713 ### End section of object files that require PTHREAD_CFLAGS
1715 localedir.o: localedir.c Makefile
1716 @echo Compiling $*.c
1717 @$(COMPILE_CC_PATH) && exit 0;\
1718 echo "The following command failed:" 1>&2;\
1719 echo "$(COMPILE_CC_PATH)" 1>&2;\
1720 $(COMPILE_CC_PATH) >/dev/null 2>&1
1722 lib/pidfile.o: lib/pidfile.c
1723 @echo Compiling $*.c
1724 @$(COMPILE_CC_PATH) && exit 0;\
1725 echo "The following command failed:" 1>&2;\
1726 echo "$(COMPILE_CC_PATH)" 1>&2;\
1727 $(COMPILE_CC_PATH) >/dev/null 2>&1
1729 lib/version.o: lib/version.c include/version.h
1730 @echo Compiling $*.c
1731 @$(COMPILE_CC_PATH) && exit 0;\
1732 echo "The following command failed:" 1>&2;\
1733 echo "$(COMPILE_CC_PATH)" 1>&2;\
1734 $(COMPILE_CC_PATH) >/dev/null 2>&1
1736 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1737 @echo Compiling $*.c
1738 @$(COMPILE_CC_PATH) && exit 0;\
1739 echo "The following command failed:" 1>&2;\
1740 echo "$(COMPILE_CC_PATH)" 1>&2;\
1741 $(COMPILE_CC_PATH) >/dev/null 2>&1
1743 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1744 @echo Generating $@
1745 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1747 bin/.dummy:
1748 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1749 dir=bin $(MAKEDIR); fi
1750 @: >> $@ || : > $@ # what a fancy emoticon!
1752 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1753 @echo Linking $@
1754 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1755 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1756 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1757 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1758 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1760 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1761 @echo Linking $@
1762 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1763 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1764 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1765 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1767 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1768 @echo Linking $@
1769 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1770 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1771 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1773 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1774 @echo Linking $@
1775 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1776 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1777 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1778 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1780 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1781 @echo Linking $@
1782 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1783 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1784 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1785 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1787 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1788 @echo Linking $@
1789 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1790 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1791 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1792 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1793 $(ZLIB_LIBS)
1795 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1796 @echo Linking $@
1797 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1798 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1800 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1801 @echo Linking $@
1802 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1803 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1804 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1806 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1807 @echo Linking $@
1808 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1809 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1811 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1812 @echo Linking $@
1813 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1814 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1816 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1817 @echo Linking $@
1818 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1819 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1821 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1822 @echo Linking $@
1823 @$(CC) -DUSING_SMBCONTROL -o $@ \
1824 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1825 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1826 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1828 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1829 @echo Linking $@
1830 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1831 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1832 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1834 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1835 @echo Linking $@
1836 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1837 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1838 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1840 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1841 @echo Linking $@
1842 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1843 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1844 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1846 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1847 @echo Linking $@
1848 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1849 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1850 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1852 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1853 @echo Linking $@
1854 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1855 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1857 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1858 @echo Linking $@
1859 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1860 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1861 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1863 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1864 @echo Linking $@
1865 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1866 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1867 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1869 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1870 @echo Linking $@
1871 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1872 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1874 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1875 @echo Linking $@
1876 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1877 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1878 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1880 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1881 @echo Linking $@
1882 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1883 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1884 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1885 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1887 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1888 @echo Linking $@
1889 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1890 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1891 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1893 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1894 @echo Linking $@
1895 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1896 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1897 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1899 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1900 @echo Linking $@
1901 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1902 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1903 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1905 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1906 @echo Linking $@
1907 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1908 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1910 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1911 @echo Linking $@
1912 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1913 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1915 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1916 @echo Linking $@
1917 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1918 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1919 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1920 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1922 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1923 @echo Linking $@
1924 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1926 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1927 @echo Linking $@
1928 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1929 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1930 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1932 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1933 @echo Linking $@
1934 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1935 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1936 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1937 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1938 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1940 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1941 @echo Linking $@
1942 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1943 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1944 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1946 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1947 @echo Linking $@
1948 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1949 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1951 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1952 @echo Linking $@
1953 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1954 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1955 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1956 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1958 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1959 @echo Linking $@
1960 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1961 $(LIBS) $(LIBTALLOC_LIBS)
1963 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1964 @echo Linking $@
1965 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1966 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1967 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1968 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1970 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1971 @echo Linking $@
1972 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1975 #####################################################################
1977 # libraries
1979 #####################################################################
1981 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1984 #-------------------------------------------------------------------
1986 # libtalloc
1988 #-------------------------------------------------------------------
1991 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1992 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1994 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1995 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1996 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1997 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1998 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1999 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
2001 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
2002 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
2004 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
2005 @echo Linking shared library $@
2006 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
2008 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
2009 @rm -f $@
2010 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
2012 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
2013 @echo Linking non-shared library $@
2014 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2015 libtalloc: $(LIBTALLOC)
2017 cleanlibtalloc::
2018 -rm -f \
2019 $(LIBTALLOC_SYMS) \
2020 $(LIBTALLOC_STATIC_TARGET) \
2021 $(LIBTALLOC_SHARED_TARGET) \
2022 $(LIBTALLOC_SHARED_TARGET_SONAME)
2024 installlibtalloc:: installdirs libtalloc
2025 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2026 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2027 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2028 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2029 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2030 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2032 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2033 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2034 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2036 uninstalllibtalloc::
2037 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2038 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2039 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2040 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2042 libs:: libtalloc
2043 installlibs:: @INSTALL_LIBTALLOC@
2044 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2045 cleanlibs:: cleanlibtalloc
2046 shlibs test_shlibs: @LIBTALLOC_SHARED@
2048 showlibtalloc:
2049 @echo ""
2050 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2051 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2052 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2053 @echo ""
2054 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2055 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2056 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2057 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2058 @echo "LIBTALLOC = $(LIBTALLOC)"
2060 showlibs:: showlibtalloc
2062 #-------------------------------------------------------------------
2064 # libtdb
2066 #-------------------------------------------------------------------
2068 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2069 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2071 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2072 LIBTDB_SOVER=@LIBTDB_SOVER@
2073 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
2074 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2075 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2076 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2078 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2079 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2081 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2082 @echo Linking shared library $@
2083 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2084 @SONAMEFLAG@`basename $@`
2086 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
2087 @rm -f $@
2088 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2090 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2091 @echo Linking non-shared library $@
2092 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2094 libtdb: $(LIBTDB)
2096 cleanlibtdb::
2097 -rm -f \
2098 $(LIBTDB_SYMS) \
2099 $(LIBTDB_STATIC_TARGET) \
2100 $(LIBTDB_SHARED_TARGET) \
2101 $(LIBTDB_SHARED_TARGET_SONAME)
2104 installlibtdb:: installdirs libtdb
2105 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2106 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2107 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2108 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2109 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2110 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2112 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2113 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2114 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2116 uninstalllibtdb::
2117 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2118 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2119 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2120 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2122 libs:: libtdb
2123 installlibs:: @INSTALL_LIBTDB@
2124 uninstalllibs:: @UNINSTALL_LIBTDB@
2125 cleanlibs:: cleanlibtdb
2126 shlibs test_shlibs: @LIBTDB_SHARED@
2128 showlibtdb:
2129 @echo ""
2130 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2131 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2132 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2133 @echo ""
2134 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2135 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2136 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2137 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2138 @echo "LIBTDB = $(LIBTDB)"
2140 showlibs:: showlibtdb
2142 #-------------------------------------------------------------------
2144 # libwbclient
2146 #-------------------------------------------------------------------
2148 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2149 ../nsswitch/libwbclient/wbc_util.o \
2150 ../nsswitch/libwbclient/wbc_pwd.o \
2151 ../nsswitch/libwbclient/wbc_idmap.o \
2152 ../nsswitch/libwbclient/wbc_sid.o \
2153 ../nsswitch/libwbclient/wbc_guid.o \
2154 ../nsswitch/libwbclient/wbc_pam.o
2156 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2157 $(WBCOMMON_OBJ) \
2158 $(LIBREPLACE_OBJ) \
2159 ../lib/util/blocking.o \
2160 $(SOCKET_WRAPPER_OBJ)
2162 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2163 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2164 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
2165 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2166 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2167 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2169 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2170 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2172 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2173 @echo Linking shared library $@
2174 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2175 @SONAMEFLAG@`basename $@`
2177 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2178 @rm -f $@
2179 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2181 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2182 @echo Linking non-shared library $@
2183 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2185 libwbclient: $(LIBWBCLIENT)
2187 cleanlibwbclient::
2188 -rm -f \
2189 $(LIBWBCLIENT_SYMS) \
2190 $(LIBWBCLIENT_STATIC_TARGET) \
2191 $(LIBWBCLIENT_SHARED_TARGET) \
2192 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2194 installlibwbclient:: installdirs libwbclient
2195 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2196 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2197 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2198 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2199 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2200 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2202 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2203 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2204 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2206 uninstalllibwbclient::
2207 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2208 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2209 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2210 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2212 libs:: libwbclient
2213 installlibs:: @INSTALL_LIBWBCLIENT@
2214 uninstalllibs:: uninstalllibwbclient
2215 cleanlibs:: cleanlibwbclient
2216 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2218 showlibwbclient:
2219 @echo ""
2220 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2221 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2222 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2223 @echo ""
2224 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2225 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2226 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2227 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2228 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2230 showlibs:: showlibwbclient
2233 #-------------------------------------------------------------------
2235 # libaddns
2237 #-------------------------------------------------------------------
2240 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2241 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2242 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2243 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2244 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2245 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2246 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
2248 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2249 @echo Linking shared library $@
2250 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2251 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2252 @SONAMEFLAG@`basename $@`
2254 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2255 @rm -f $@
2256 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2258 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2259 @echo Linking non-shared library $@
2260 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2262 libaddns: $(LIBADDNS)
2264 cleanlibaddns::
2265 -rm -f \
2266 $(LIBADDNS_SHARED_TARGET) \
2267 $(LIBADDNS_SHARED_TARGET_SONAME) \
2268 $(LIBADDNS_STATIC_TARGET)
2270 installlibaddns:: installdirs libaddns
2271 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2272 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2273 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2274 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2275 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2276 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2278 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2280 uninstalllibaddns::
2281 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2282 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2283 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2285 libs:: libaddns
2286 installlibs:: @INSTALL_LIBADDNS@
2287 uninstalllibs:: @UNINSTALL_LIBADDNS@
2288 cleanlibs:: cleanlibaddns
2289 shlibs test_shlibs: @LIBADDNS_SHARED@
2291 showlibaddns:
2292 @echo ""
2293 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2294 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2295 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2296 @echo ""
2297 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2298 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2299 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2300 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2301 @echo "LIBADDNS = $(LIBADDNS)"
2303 showlibs:: showlibaddns
2305 #-------------------------------------------------------------------
2307 # libnetapi
2309 #-------------------------------------------------------------------
2311 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2312 lib/netapi/cm.o \
2313 librpc/gen_ndr/ndr_libnetapi.o \
2314 lib/netapi/libnetapi.o \
2315 lib/netapi/joindomain.o \
2316 lib/netapi/serverinfo.o \
2317 lib/netapi/getdc.o \
2318 lib/netapi/user.o \
2319 lib/netapi/group.o \
2320 lib/netapi/localgroup.o \
2321 lib/netapi/samr.o \
2322 lib/netapi/sid.o \
2323 lib/netapi/share.o \
2324 lib/netapi/file.o \
2325 lib/netapi/shutdown.o \
2326 lib/netapi/netlogon.o
2328 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2329 $(LIBSMBCONF_OBJ) \
2330 $(REG_SMBCONF_OBJ) \
2331 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2332 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2333 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2334 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2335 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2336 auth/token_util.o \
2337 $(LIBCLI_INITSHUTDOWN_OBJ) \
2338 $(LIBCLI_WKSSVC_OBJ) \
2339 $(LIBCLI_SRVSVC_OBJ) \
2340 $(LIBCLI_LSA_OBJ) \
2341 $(LIBCLI_SAMR_OBJ) \
2342 $(LIBCLI_NETLOGON_OBJ) \
2343 $(RPC_CLIENT_SCHANNEL_OBJ) \
2344 rpc_client/init_netlogon.o \
2345 rpc_client/init_samr.o
2347 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2348 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2349 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2350 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2351 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2352 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2354 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2355 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2357 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2358 @echo Linking shared library $@
2359 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2360 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2361 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2362 @SONAMEFLAG@`basename $@`
2364 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2365 @rm -f $@
2366 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2368 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2369 @echo Linking non-shared library $@
2370 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2372 libnetapi: $(LIBNETAPI)
2374 cleanlibnetapi::
2375 -rm -f \
2376 $(LIBNETAPI_SYMS) \
2377 $(LIBNETAPI_STATIC_TARGET) \
2378 $(LIBNETAPI_SHARED_TARGET) \
2379 $(LIBNETAPI_SHARED_TARGET_SONAME)
2381 installlibnetapi:: installdirs libnetapi
2382 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2383 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2384 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2385 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2386 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2387 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2389 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2390 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2391 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2393 uninstalllibnetapi::
2394 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2395 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2396 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2397 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2399 libs:: libnetapi
2400 installlibs:: @INSTALL_LIBNETAPI@
2401 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2402 cleanlibs:: cleanlibnetapi
2403 shlibs test_shlibs: @LIBNETAPI_SHARED@
2405 showlibnetapi:
2406 @echo ""
2407 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2408 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2409 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2410 @echo ""
2411 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2412 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2413 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2414 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2415 @echo "LIBNETAPI = $(LIBNETAPI)"
2417 showlibs:: showlibnetapi
2419 #-------------------------------------------------------------------
2421 # libsmbclient
2423 #-------------------------------------------------------------------
2425 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2426 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2427 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2428 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2429 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2430 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2431 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2433 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2434 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2436 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2437 @echo Linking shared library $@
2438 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2439 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2440 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2441 @SONAMEFLAG@`basename $@`
2443 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2444 @rm -f $@
2445 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2447 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2448 @echo Linking non-shared library $@
2449 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2451 libsmbclient: $(LIBSMBCLIENT)
2453 cleanlibsmbclient::
2454 -rm -f \
2455 $(LIBSMBCLIENT_SHARED_TARGET) \
2456 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2457 $(LIBSMBCLIENT_STATIC_TARGET)
2459 installlibsmbclient:: installdirs libsmbclient
2460 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2461 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2462 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2463 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2464 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2465 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2467 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2468 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2469 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2471 installclientlib:: installlibsmbclient
2473 uninstalllibsmbclient::
2474 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2475 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2476 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2477 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2479 uninstallclientlib:: uninstalllibsmbclient
2481 libs:: libsmbclient
2482 installlibs:: @INSTALL_LIBSMBCLIENT@
2483 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2484 cleanlibs:: cleanlibsmbclient
2485 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2487 showlibsmbclient:
2488 @echo ""
2489 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2490 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2491 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2492 @echo ""
2493 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2494 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2495 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2496 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2497 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2499 showlibs:: showlibsmbclient
2501 #-------------------------------------------------------------------
2503 # libsmbsharemodes
2505 #-------------------------------------------------------------------
2507 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2509 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2511 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2512 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2513 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2514 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2515 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2516 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2517 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2519 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2520 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2522 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2523 @echo Linking shared library $@
2524 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2525 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2526 @SONAMEFLAG@`basename $@`
2528 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2529 @rm -f $@
2530 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2532 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2533 @echo Linking non-shared library $@
2534 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2536 libsmbsharemodes: $(LIBSMBSHAREMODES)
2538 cleanlibsmbsharemodes::
2539 -rm -f \
2540 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2541 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2542 $(LIBSMBSHAREMODES_STATIC_TARGET)
2544 installlibsmbsharemodes:: installdirs libsmbsharemodes
2545 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2546 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2547 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2548 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2549 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2550 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2552 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2553 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2554 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2556 uninstalllibsmbsharemodes::
2557 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2558 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2559 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2560 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2562 libs:: libsmbsharemodes
2563 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2564 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2565 cleanlibs:: cleanlibsmbsharemodes
2566 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2568 showlibsmbsharemodes:
2569 @echo ""
2570 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2571 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2572 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2573 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2574 @echo ""
2575 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2576 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2577 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2578 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2579 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2581 showlibs:: showlibsmbsharemodes
2583 #-------------------------------------------------------------------
2585 # libbigballofmud
2587 #-------------------------------------------------------------------
2589 # This is probably wrong for anything other than the GNU linker.
2590 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2591 @echo Linking shared library $@
2592 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2593 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2594 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2595 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2596 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2598 # It would be nice to build a static bigballofmud too, but when I try
2599 # I get linker errors about dl_open and similar things. I'm not sure if
2600 # it can be fixed or if they just can't be called from a static
2601 # library.
2603 #####################################################################
2605 # shared modules
2607 #####################################################################
2609 # Linker command to link our shared libraries:
2610 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2611 -o $@ @SONAMEFLAG@`basename $@`
2612 # Linker command to link samba internal plugin modules:
2613 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2614 -o $@ @SONAMEFLAG@`basename $@`
2616 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2617 @echo "Linking $@"
2618 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2620 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2621 @echo "Linking $@"
2622 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2624 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2625 @echo "Linking $@"
2626 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2628 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2629 @echo "Linking $@"
2630 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2632 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2633 @echo "Linking $@"
2634 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2636 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2637 @echo "Linking $@"
2638 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2640 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2641 @echo "Linking $@"
2642 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2644 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2645 @echo "Linking $@"
2646 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2648 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2649 @echo "Linking $@"
2650 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2652 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2653 @echo "Linking $@"
2654 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2656 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2657 @echo "Linking $@"
2658 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2660 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2661 @echo "Linking $@"
2662 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2664 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2665 @echo "Linking $@"
2666 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2668 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2669 @echo "Linking $@"
2670 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2672 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2673 @echo "Linking $@"
2674 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2675 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2676 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2677 $(ZLIB_LIBS)
2679 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2680 @echo "Linking $@"
2681 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2682 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2683 $(LIBTDB_LIBS)
2685 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2686 @echo "Linking $@"
2687 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2688 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2689 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2691 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2692 @echo "Linking $@"
2693 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2694 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2695 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2697 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2698 @echo "Linking $@"
2699 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2700 @SONAMEFLAG@`basename $@`
2702 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2703 @echo "Linking shared library $@"
2704 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2705 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2707 ##########
2708 # Plugins:
2709 ##########
2711 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2712 @echo "Building plugin $@"
2713 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2715 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2716 @echo "Building plugin $@"
2717 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2719 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2720 @echo "Building plugin $@"
2721 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2723 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2724 @echo "Building plugin $@"
2725 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2727 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2728 @echo "Building plugin $@"
2729 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2731 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2732 @echo "Building plugin $@"
2733 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2735 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2736 @echo "Building plugin $@"
2737 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2739 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2740 @echo "Building plugin $@"
2741 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2743 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2744 @echo "Building plugin $@"
2745 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2747 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2748 @echo "Building plugin $@"
2749 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2751 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2752 @echo "Building plugin $@"
2753 @$(SHLD_MODULE) passdb/pdb_ads.o
2755 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2756 @echo "Building plugin $@"
2757 @$(SHLD_MODULE) passdb/pdb_tdb.o
2759 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2760 @echo "Building plugin $@"
2761 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2763 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2764 @echo "Building plugin $@"
2765 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2767 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2768 @echo "Building plugin $@"
2769 @$(SHLD_MODULE) winbindd/idmap_rid.o
2771 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2772 @echo "Building plugin $@"
2773 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2775 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2776 @echo "Building plugin $@"
2777 @$(SHLD_MODULE) winbindd/idmap_ad.o
2779 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2780 @echo "Building plugin $@"
2781 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2783 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2784 @echo "Building plugin $@"
2785 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2787 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2788 @echo "Building plugin $@"
2789 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2791 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2792 @echo "Building plugin $@"
2793 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2795 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2796 @echo "Building plugin $@"
2797 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2799 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2800 @echo "Building plugin $@"
2801 @$(SHLD_MODULE) $(CP850_OBJ)
2803 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2804 @echo "Building plugin $@"
2805 @$(SHLD_MODULE) $(CP437_OBJ)
2807 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2808 @echo "Building plugin $@"
2809 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2811 # NOTE, there is no build rule for a dynamic default VFS module because
2812 # this one MUST MUST MUST be built statically.
2814 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2815 @echo "Building plugin $@"
2816 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2818 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2819 @echo "Building plugin $@"
2820 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2822 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2823 @echo "Building plugin $@"
2824 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2826 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2827 @echo "Building plugin $@"
2828 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2830 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2831 @echo "Building plugin $@"
2832 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2834 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2835 @echo "Building plugin $@"
2836 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2838 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2839 @echo "Building plugin $@"
2840 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2842 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2843 @echo "Building plugin $@"
2844 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2846 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2847 @echo "Building plugin $@"
2848 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2850 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2851 @echo "Building plugin $@"
2852 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2854 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2855 @echo "Building plugin $@"
2856 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2858 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2859 @echo "Building plugin $@"
2860 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2862 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2863 @echo "Building plugin $@"
2864 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2866 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2867 @echo "Building plugin $@"
2868 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2870 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2871 @echo "Building plugin $@"
2872 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2874 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2875 @echo "Building plugin $@"
2876 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2878 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2879 @echo "Building plugin $@"
2880 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2882 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2883 @echo "Building plugin $@"
2884 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2886 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2887 @echo "Building plugin $@"
2888 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2890 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2891 @echo "Building plugin $@"
2892 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2894 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2895 @echo "Building plugin $@"
2896 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2898 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2899 @echo "Building plugin $@"
2900 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2902 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2903 @echo "Building plugin $@"
2904 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2906 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2907 @echo "Building plugin $@"
2908 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2910 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2911 @echo "Building plugin $@"
2912 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2914 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2915 @echo "Building plugin $@"
2916 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2918 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2919 @echo "Building plugin $@"
2920 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2922 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2923 @echo "Building plugin $@"
2924 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2926 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2927 @echo "Building plugin $@"
2928 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2930 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2931 @echo "Building plugin $@"
2932 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2934 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2935 @echo "Building plugin $@"
2936 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2938 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2939 @echo "Building plugin $@"
2940 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2942 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2943 @echo "Building plugin $@"
2944 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2946 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2947 @echo "Building plugin $@"
2948 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2950 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2951 @echo "Building plugin $@"
2952 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2954 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2955 @echo "Building plugin $@"
2956 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2958 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2959 @echo "Building plugin $@"
2960 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2962 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2963 @echo "Building plugin $@"
2964 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2966 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2967 @echo "Building plugin $@"
2968 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2970 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2971 @echo "Building plugin $@"
2972 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2974 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2975 @echo "Building plugin $@"
2976 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2978 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2979 @echo "Building plugin $@"
2980 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2982 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2983 @echo "Building plugin $@"
2984 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2986 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2987 @echo "Building plugin $@"
2988 @$(SHLD_MODULE) libgpo/gpext/registry.o
2990 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2991 @echo "Building plugin $@"
2992 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2994 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2995 @echo "Building plugin $@"
2996 @$(SHLD_MODULE) libgpo/gpext/security.o
2998 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2999 @echo "Building plugin $@"
3000 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
3002 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
3003 @echo "Building plugin $@"
3004 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
3006 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
3007 @echo "Building plugin $@"
3008 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
3010 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
3011 @echo "Building plugin $@"
3012 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
3014 bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
3015 @echo "Building plugin $@"
3016 @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
3018 #########################################################
3019 ## IdMap NSS plugins
3021 ## None here right now
3022 #########################################################
3024 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3025 @echo Linking $@
3026 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3027 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3028 $(LIBWBCLIENT_LIBS)
3030 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3031 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3032 @echo Linking $@
3033 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3034 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
3035 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3036 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3038 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3039 @echo "Linking shared library $@"
3040 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3041 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3042 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3044 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3045 @echo Linking $@
3046 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3047 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3049 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3050 @echo Linking $@
3051 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3052 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3054 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3055 @echo Linking $@
3056 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3058 bin/tdbrestore@EXEEXT@: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDB)
3059 @echo Linking $@
3060 @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3062 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3063 @echo Linking $@
3064 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3065 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3067 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3068 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3069 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3071 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3072 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3073 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3075 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3076 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3077 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3079 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3080 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3081 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3083 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3084 @echo Linking $@
3085 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3087 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3088 @echo "Linking $@"
3089 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3090 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3091 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3093 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3094 @echo "Linking $@"
3095 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3096 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3097 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3098 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3100 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3101 @echo "Linking $@"
3102 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3103 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3104 $(LDAP_LIBS) \
3105 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3107 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3108 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3110 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3111 @echo "Linking $@"
3112 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3113 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3114 $(LDAP_LIBS) \
3115 $(POPT_LIBS) \
3116 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3118 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3119 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3121 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3122 @echo "Linking $@"
3123 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3124 $(LDFLAGS) $(DYNEXP) \
3125 $(LIBS) $(POPT_LIBS) \
3126 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3127 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3129 install:: installservers installbin installman \
3130 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3131 @INSTALL_PAM_MODULES@ installlibs installmo
3133 install-everything:: install installmodules
3135 # DESTDIR is used here to prevent packagers wasting their time
3136 # duplicating the Makefile. Remove it and you will have the privelege
3137 # of package each samba release for muliple versions of multiple
3138 # distributions and operating systems, or at least supplying patches
3139 # to all the packaging files required for this, prior to committing
3140 # the removal of DESTDIR. Do not remove it even though you think it
3141 # is not used
3143 installdirs::
3144 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3145 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3146 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3147 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3149 installservers:: all installdirs
3150 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3152 installbin:: all installdirs
3153 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3155 # Some symlinks are required for the 'probing' of modules.
3156 # This mechanism should go at some point..
3157 installmodules:: modules installdirs
3158 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3159 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3160 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3161 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3162 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3163 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3164 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3165 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3166 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3167 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3168 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3169 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3170 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3171 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3172 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3173 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3174 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3175 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3176 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3178 installscripts:: installdirs
3179 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3181 installdat:: installdirs
3182 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3184 installmsg:: installdirs
3185 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3187 installswat:: installdirs installmsg
3188 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3190 installpammodules:: $(PAM_MODULES)
3191 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3192 @for module in $(PAM_MODULES); do \
3193 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3194 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3195 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3196 done
3198 # revert to the previously installed version
3199 revert::
3200 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3201 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3203 installman:: installdirs
3204 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3206 installmo:: all installdirs
3207 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3209 .PHONY: showlayout
3211 showlayout::
3212 @echo "Samba will be installed into:"
3213 @echo " prefix: $(prefix)"
3214 @echo " bindir: $(BINDIR)"
3215 @echo " sbindir: $(SBINDIR)"
3216 @echo " libdir: $(LIBDIR)"
3217 @echo " modulesdir: $(MODULESDIR)"
3218 @echo " vardir: $(VARDIR)"
3219 @echo " mandir: $(MANDIR)"
3220 @echo " privatedir: $(PRIVATE_DIR)"
3221 @echo " configdir: $(CONFIGDIR)"
3222 @echo " lockdir: $(LOCKDIR)"
3223 @echo " statedir: $(STATEDIR)"
3224 @echo " cachedir: $(CACHEDIR)"
3225 @echo " piddir: $(PIDDIR)"
3226 @echo " swatdir: $(SWATDIR)"
3227 @echo " datadir: ${DATADIR}"
3228 @echo " codepagedir: $(CODEPAGEDIR)"
3231 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3233 uninstallmo::
3234 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3236 uninstallman::
3237 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3239 uninstallservers::
3240 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3242 uninstallbin::
3243 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3245 uninstallmodules::
3246 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3247 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3248 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3249 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3250 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3251 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3252 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3253 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3255 uninstallscripts::
3256 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3258 uninstalldat::
3259 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3261 uninstallmsg::
3262 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3264 uninstallswat:: uninstallmsg
3265 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3267 uninstallpammodules::
3268 @for module in $(PAM_MODULES); do \
3269 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3270 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3271 done
3273 # Toplevel clean files
3274 TOPFILES=dynconfig.o localedir.o
3276 cleanlibs::
3277 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3278 ../lib/*/*.ho \
3279 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3280 ../librpc/*/*.o \
3281 ../libgpo/*.o ../libgpo/*/*.o \
3282 ../libds/*.o ../libds/*/*.o
3284 clean:: cleanlibs
3285 -rm -f include/build_env.h
3286 -rm -f smbd/build_options.c
3287 -rm -f $(PRECOMPILED_HEADER)
3288 -rm -f core */*~ *~ \
3289 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3290 ../testsuite/*/*.o \
3291 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3292 ../client/*.o \
3293 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3294 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3295 $(MODULES) $(TORTURE_PROGS) \
3296 $(EVERYTHING_PROGS) \
3297 bin/timelimit \
3298 .headers.stamp */src/*.o
3299 -rm -rf t_dir
3301 include/build_env.h: script/build_env.sh
3302 @echo Building include/build_env.h
3303 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3304 > $(builddir)/include/build_env.h
3306 proto::
3308 etags::
3309 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3311 ctags::
3312 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3314 realclean:: clean
3315 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3316 -rm -f script/installbin.sh script/uninstallbin.sh
3318 distclean:: realclean
3319 -rm -f smbadduser
3320 -rm -f include/config.h Makefile
3321 -rm -f config.status config.cache so_locations
3322 -rm -rf .deps TAGS
3324 realdistclean:: distclean
3325 -rm -f include/config.h.in
3326 -rm -f include/version.h
3327 -rm -f configure
3329 # this target is really just for my use. It only works on a limited
3330 # range of machines and is used to produce a list of potentially
3331 # dead (ie. unused) functions in the code. (tridge)
3332 finddead::
3333 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3334 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3335 comm -13 nmused.txt nmfns.txt
3338 # when configure.in is updated, reconfigure
3339 $(srcdir)/configure: $(srcdir)/configure.in
3340 @echo "WARNING: you need to rerun ./autogen.sh"
3342 config.status: $(srcdir)/configure
3343 @echo "WARNING: you need to run ./configure"
3345 Makefile: $(srcdir)/Makefile.in config.status
3346 @echo "WARNING: you need to run ./config.status"
3348 ######################################################################
3349 # Samba Testing Framework
3351 # Check shared libs for unresolved symbols
3352 test_shlibs:
3353 @echo "Testing $? "
3354 @$(LIB_PATH_VAR)=./bin && \
3355 export $(LIB_PATH_VAR) && \
3356 for module in $?; do \
3357 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3358 || exit 1; \
3359 done
3361 # Check for NSS module problems.
3362 test_nss_modules:: nss_modules
3363 @echo "Testing $(NSS_MODULES) "
3364 @$(LIB_PATH_VAR)=./bin && \
3365 export $(LIB_PATH_VAR) && \
3366 for module in $(NSS_MODULES); do \
3367 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3368 || exit 1; \
3369 done
3371 # Check for PAM module problems. Specifically, check that every module we
3372 # built can actually be loaded by a minimal PAM-aware application.
3373 test_pam_modules:: pam_modules
3374 @echo "Testing $(PAM_MODULES) "
3375 @$(LIB_PATH_VAR)=./bin && \
3376 export $(LIB_PATH_VAR) && \
3377 for module in $(PAM_MODULES); do \
3378 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3379 || exit 1; \
3380 done
3384 ## Targets for 'make test'
3387 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3389 oldtest:: all torture timelimit
3390 @echo Running Test suite
3391 @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}
3393 valgrindtest:: all torture timelimit
3394 @echo Running Test suite with valgrind
3395 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3396 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3397 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3398 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3399 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
3400 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3402 selftestdir = ../selftest
3404 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3406 test:: all torture timelimit
3407 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3408 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3409 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3410 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3411 SOURCEDIR="$(srcdir)" \
3412 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3413 SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
3414 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3415 $(srcdir)/selftest/s3-selftest.sh
3417 test-%:
3418 $(MAKE) test TESTS=$*
3420 buildfarm-test:
3421 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3423 subunit-test:
3424 $(MAKE) test SUBUNIT_FORMATTER=cat
3426 SELFTEST_TESTENV = dc
3428 testenv:
3429 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3431 gdbtestenv:
3432 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3433 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3434 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3435 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3436 TESTS="--testenv"
3438 valgrindtestenv:
3439 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3440 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3441 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3442 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3443 TESTS="--testenv"
3446 # Check for Winbind struct 32/64bit padding
3447 test_wbpad:
3448 @echo "Testing winbind request/response structure for 32/64bit padding"
3449 @./script/tests/wb_pad.sh || exit 1;
3452 ## Examples:
3455 libsmbclient_examples: libsmbclient
3456 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3458 clean_libsmbclient_examples:
3459 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3461 libnetapi_examples: libnetapi
3462 $(MAKE) -C lib/netapi/examples
3464 clean_libnetapi_examples:
3465 $(MAKE) -C lib/netapi/examples clean
3467 ../source4/configure: ../buildtools/scripts/configure.waf
3468 cd ../source4 && ./autogen.sh
3470 samba4-configure: ../source4/configure
3471 @$(MAKE) -C ../source4 reconfigure || ( cd ../source4 && \
3472 ./configure.developer --nonshared-binary=smbtorture --enable-auto-reconfigure )
3474 .PHONY: samba4-configure
3476 bin/smbtorture4: $(BINARY_PREREQS) samba4-configure
3477 cd ../source4 && make bin/smbtorture
3478 cp ../source4/bin/smbtorture bin/smbtorture4
3480 bin/ndrdump4: $(BINARY_PREREQS) samba4-configure
3481 cd ../source4 && make bin/ndrdump
3482 cp ../source4/bin/ndrdump bin/ndrdump4
3484 .PHONY: bin/smbtorture4