s3-dcerpc: move crypto stuff in /librpc/crypto
[Samba.git] / source3 / Makefile.in
blob6beced258023911006f7600b60e55791f3b1e877
1 #########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
5 # Copyright Andrew Bartlett 2002
6 # Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
7 # Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
8 # Copyright (C) 2006 Lars Mueller <lars@samba.org>
9 # Copyright (C) 2007 James Peach <jpeach@samba.org>
10 # Copyright (C) 2008 Michael Adam <obnox@samba.org>
11 ###########################################################################
13 prefix=@prefix@
14 exec_prefix=@exec_prefix@
15 sysconfdir=@sysconfdir@
16 localstatedir=@localstatedir@
17 datarootdir=@datarootdir@
19 selftest_prefix=@selftest_prefix@
20 selftest_shrdir=@selftest_shrdir@
21 smbtorture4_path=@smbtorture4_path@
22 smbtorture4_option=@smbtorture4_option@
23 selftest_custom_conf=@selftest_custom_conf@
25 LIBS=@LIBS@
26 CC=@CC@
27 SHLD=@SHLD@
28 LIB_PATH_VAR=@LIB_PATH_VAR@
30 ## Dynamic shared libraries build settings
31 DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
32 DSO_EXPORTS=@DSO_EXPORTS@
33 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
35 # The MODULE_EXPORTS variable contains the platform-specific linker flags
36 # needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
37 MODULE_EXPORTS=@MODULE_EXPORTS@
39 # Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
40 # (GCC) warnings. This is done automatically for --enable-developer,
41 # --enable-picky-developer and --enable-krb5developer.
42 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
43 CFLAGS=@CFLAGS@
44 CPP=@CPP@
45 CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
46 PICFLAG=@PICFLAG@
48 EXEEXT=@EXEEXT@
49 AR=@AR@
50 LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
51 LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
52 LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
54 WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
55 AWK=@AWK@
56 DYNEXP=@DYNEXP@
57 PERL=@PERL@
58 PYTHON=@PYTHON@
59 LIBDL=@LIBDL@
61 PIDL_ARGS=@PIDL_ARGS@
63 TERMLDFLAGS=@TERMLDFLAGS@
64 TERMLIBS=@TERMLIBS@
65 PRINT_LIBS=@PRINT_LIBS@
66 ZLIB_LIBS=@ZLIB_LIBS@
67 AUTH_LIBS=@AUTH_LIBS@
68 ACL_LIBS=@ACL_LIBS@
69 PASSDB_LIBS=@PASSDB_LIBS@
70 IDMAP_LIBS=@IDMAP_LIBS@
71 KRB5LIBS=@KRB5_LIBS@
72 LDAP_LIBS=@LDAP_LIBS@
73 NSCD_LIBS=@NSCD_LIBS@
74 UUID_LIBS=@UUID_LIBS@
75 LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
76 LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
77 PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
78 PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
79 DNSSD_LIBS=@DNSSD_LIBS@
80 AVAHI_LIBS=@AVAHI_LIBS@
81 POPT_LIBS=@POPTLIBS@
82 LIBTALLOC=@LIBTALLOC_STATIC@ @LIBTALLOC_SHARED@
83 LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
84 LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
85 LIBTDB=@LIBTDB_STATIC@ @LIBTDB_SHARED@
86 LIBTDB_LIBS=@LIBTDB_LIBS@
87 TDB_DEPS=@TDB_DEPS@
88 LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
89 LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
90 LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
91 LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
93 TALLOCTORT = @TALLOCTORT@
95 TDBBACKUP = @TDBBACKUP@
96 TDBTOOL = @TDBTOOL@
97 TDBDUMP = @TDBDUMP@
98 TDBTORTURE = @TDBTORTURE@
100 INSTALLCMD=@INSTALL@
101 INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
102 INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
103 UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
104 UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
106 VPATH=@srcdir@
107 srcdir=@abs_srcdir@
108 builddir=@abs_builddir@
109 # XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
110 # will search for a POSIX-compliant shell, and that might not be
111 # /bin/sh on some platforms. I guess it's not a big problem -- mbp
112 SHELL=/bin/sh
113 DESTDIR=/
115 # See the autoconf manual "Installation Directory Variables" for a
116 # discussion of the subtle use of these variables.
118 BASEDIR= @prefix@
119 BINDIR = @bindir@
120 # sbindir is mapped to bindir when compiling SAMBA in 2.0.x compatibility mode.
121 SBINDIR = @sbindir@
122 ROOTSBINDIR = @rootsbindir@
123 LIBDIR = @libdir@
124 MODULESDIR = @modulesdir@
125 INCLUDEDIR=@includedir@
126 PAMMODULESDIR = @pammodulesdir@
127 VFSLIBDIR = $(MODULESDIR)/vfs
128 PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
129 PDBLIBDIR = $(MODULESDIR)/pdb
130 RPCLIBDIR = $(MODULESDIR)/rpc
131 IDMAPLIBDIR = $(MODULESDIR)/idmap
132 NSSINFOLIBDIR = $(MODULESDIR)/nss_info
133 CHARSETLIBDIR = $(MODULESDIR)/charset
134 AUTHLIBDIR = $(MODULESDIR)/auth
135 CONFIGLIBDIR = $(MODULESDIR)/config
136 GPEXTLIBDIR = $(MODULESDIR)/gpext
137 CONFIGDIR = @configdir@
138 VARDIR = @localstatedir@
139 MANDIR = @mandir@
140 DATADIR = @datadir@
142 # The permissions to give the executables and other data
143 INSTALLPERMS_BIN = 0755
144 INSTALLPERMS_DATA = 0644
146 # set these to where to find various files
147 # These can be overridden by command line switches (see smbd(8))
148 # or in smb.conf (see smb.conf(5))
149 LOGFILEBASE = @logfilebase@
150 CONFIGFILE = $(CONFIGDIR)/smb.conf
151 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
152 NCALRPCDIR = @ncalrpcdir@
154 # This is where smbpasswd et al go
155 PRIVATEDIR = @privatedir@
157 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
158 PRIVATE_DIR = $(PRIVATEDIR)
160 # This is where SWAT images and help files go
161 SWATDIR = @swatdir@
163 # This is where locale(mo) files go
164 LOCALEDIR= @localedir@
166 # the directory where lock files go
167 LOCKDIR = @lockdir@
169 # FHS directories; equal to LOCKDIR if not using --with-fhs, but also settable
170 CACHEDIR = @cachedir@
171 STATEDIR = @statedir@
173 # Where to look for (and install) codepage databases.
174 CODEPAGEDIR = @codepagedir@
176 # the directory where pid files go
177 PIDDIR = @piddir@
179 FLAGS = -I. \
180 -I$(srcdir) \
181 @FLAGS1@ \
182 @SAMBA_CPPFLAGS@ \
183 $(CPPFLAGS) \
184 $(ISA) \
185 -I$(srcdir)/lib \
186 -I.. \
187 -I../source4 \
188 -D_SAMBA_BUILD_=3
190 PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
191 -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
192 -DCONFIGFILE=\"$(CONFIGFILE)\" \
193 -DSBINDIR=\"$(SBINDIR)\" \
194 -DBINDIR=\"$(BINDIR)\" \
195 -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
196 -DSWATDIR=\"$(SWATDIR)\" \
197 -DLOCKDIR=\"$(LOCKDIR)\" \
198 -DPIDDIR=\"$(PIDDIR)\" \
199 -DLIBDIR=\"$(LIBDIR)\" \
200 -DMODULESDIR=\"$(MODULESDIR)\" \
201 -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
202 -DSHLIBEXT=\"@SHLIBEXT@\" \
203 -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
204 -DCONFIGDIR=\"$(CONFIGDIR)\" \
205 -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
206 -DCACHEDIR=\"$(CACHEDIR)\" \
207 -DSTATEDIR=\"$(STATEDIR)\" \
208 -DLOCALEDIR=\"$(LOCALEDIR)\"
210 # Note that all executable programs now provide for an optional executable suffix.
212 SBIN_PROGS = bin/smbd@EXEEXT@ bin/nmbd@EXEEXT@ @SWAT_SBIN_TARGETS@ @EXTRA_SBIN_PROGS@
214 BIN_PROGS1 = bin/smbclient@EXEEXT@ bin/net@EXEEXT@ bin/smbspool@EXEEXT@ \
215 bin/testparm@EXEEXT@ bin/smbstatus@EXEEXT@ bin/smbget@EXEEXT@ \
216 bin/smbta-util@EXEEXT@
217 BIN_PROGS2 = bin/smbcontrol@EXEEXT@ bin/smbtree@EXEEXT@ $(TDBBACKUP) \
218 bin/nmblookup@EXEEXT@ bin/pdbedit@EXEEXT@ $(TDBDUMP) \
219 $(TDBTOOL)
220 BIN_PROGS3 = bin/smbpasswd@EXEEXT@ bin/rpcclient@EXEEXT@ bin/smbcacls@EXEEXT@ \
221 bin/profiles@EXEEXT@ bin/ntlm_auth@EXEEXT@ bin/sharesec@EXEEXT@ \
222 bin/smbcquotas@EXEEXT@ bin/eventlogadm@EXEEXT@
224 TORTURE_PROGS = bin/smbtorture@EXEEXT@ bin/msgtest@EXEEXT@ \
225 bin/masktest@EXEEXT@ bin/locktest@EXEEXT@ \
226 bin/locktest2@EXEEXT@ bin/nsstest@EXEEXT@ bin/vfstest@EXEEXT@ \
227 bin/pdbtest@EXEEXT@ $(TALLOCTORT) bin/replacetort@EXEEXT@ \
228 $(TDBTORTURE) \
229 bin/smbconftort@EXEEXT@ bin/vlp@EXEEXT@
231 BIN_PROGS = @EXTRA_BIN_PROGS@ \
232 $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
234 EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ \
235 $(TALLOCTORT) bin/replacetort@EXEEXT@ \
236 bin/log2pcap@EXEEXT@ \
237 bin/vlp@EXEEXT@ bin/smbiconv@EXEEXT@ \
238 bin/dbwrap_tool@EXEEXT@ \
239 bin/dbwrap_torture@EXEEXT@
241 PAM_MODULES = @PAM_MODULES@
243 NSS_MODULES = @NSS_MODULES@
245 SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
247 VFS_MODULES = @VFS_MODULES@
248 PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
249 PDB_MODULES = @PDB_MODULES@
250 RPC_MODULES = @RPC_MODULES@
251 IDMAP_MODULES = @IDMAP_MODULES@
252 CHARSET_MODULES = @CHARSET_MODULES@
253 AUTH_MODULES = @AUTH_MODULES@
254 NSS_INFO_MODULES = @NSS_INFO_MODULES@
255 GPEXT_MODULES = @GPEXT_MODULES@
256 MODULES = $(VFS_MODULES) $(PDB_MODULES) $(RPC_MODULES) $(IDMAP_MODULES) \
257 $(CHARSET_MODULES) $(AUTH_MODULES) $(NSS_INFO_MODULES) \
258 $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
260 EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
262 ######################################################################
263 # object file lists
264 ######################################################################
266 TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
267 lib/dbwrap.o lib/dbwrap_tdb.o \
268 lib/dbwrap_ctdb.o \
269 lib/g_lock.o \
270 lib/dbwrap_rbt.o
272 TDB_VALIDATE_OBJ = lib/tdb_validate.o
274 SMBLDAP_OBJ = @SMBLDAP@ @SMBLDAPUTIL@
276 VERSION_OBJ = lib/version.o
278 WBCOMMON_OBJ = ../nsswitch/wb_common.o
280 AFS_OBJ = lib/afs.o
282 AFS_SETTOKEN_OBJ = lib/afs_settoken.o
284 AVAHI_OBJ = @AVAHI_OBJ@
286 SERVER_MUTEX_OBJ = lib/server_mutex.o
288 PASSCHANGE_OBJ = libsmb/passchange.o
290 LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
291 ../librpc/ndr/ndr_compression.o \
292 librpc/gen_ndr/ndr_drsuapi.o \
293 ../librpc/ndr/ndr_drsblobs.o \
294 librpc/gen_ndr/ndr_drsblobs.o
296 ZLIB_OBJ = @ZLIB_OBJS@
298 COMPRESSION_OBJ = ../lib/compression/mszip.o \
299 ../lib/compression/lzxpress.o \
300 $(ZLIB_OBJ)
302 DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
303 $(COMPRESSION_OBJ)
305 LIBNDR_NTLMSSP_OBJ = librpc/gen_ndr/ndr_ntlmssp.o \
306 ../librpc/ndr/ndr_ntlmssp.o
308 LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
309 ../librpc/ndr/ndr.o \
310 ../librpc/ndr/ndr_misc.o \
311 librpc/gen_ndr/ndr_misc.o \
312 librpc/gen_ndr/ndr_security.o \
313 ../librpc/ndr/ndr_sec_helper.o \
314 ../librpc/ndr/ndr_string.o \
315 ../librpc/ndr/uuid.o \
316 librpc/ndr/util.o \
317 librpc/gen_ndr/ndr_dcerpc.o
319 LIBNDR_GEN_OBJ0 = librpc/gen_ndr/ndr_samr.o \
320 librpc/gen_ndr/ndr_lsa.o
322 LIBNDR_NETLOGON_OBJ = librpc/gen_ndr/ndr_netlogon.o \
323 ../librpc/ndr/ndr_netlogon.o
325 LIBNDR_SCHANNEL_OBJ = librpc/gen_ndr/ndr_schannel.o \
326 ../librpc/ndr/ndr_schannel.o
328 LIBNDR_SPOOLSS_OBJ = librpc/gen_ndr/ndr_spoolss.o \
329 ../librpc/ndr/ndr_spoolss_buf.o
331 LIBNDR_NTPRINTING_OBJ = librpc/gen_ndr/ndr_ntprinting.o \
332 ../librpc/ndr/ndr_ntprinting.o \
334 LIBNDR_PREG_OBJ = librpc/gen_ndr/ndr_preg.o \
335 librpc/ndr/ndr_preg.o
337 LIBNDR_XATTR_OBJ = librpc/gen_ndr/ndr_xattr.o \
338 ../librpc/ndr/ndr_xattr.o
340 LIBCLI_SPOOLSS_OBJ = librpc/gen_ndr/cli_spoolss.o \
341 librpc/gen_ndr/ndr_spoolss_c.o \
342 rpc_client/cli_spoolss.o \
343 rpc_client/init_spoolss.o
345 LIBCLI_EVENTLOG_OBJ = librpc/gen_ndr/cli_eventlog.o \
346 librpc/gen_ndr/ndr_eventlog_c.o
348 LIBCLI_WINREG_OBJ = librpc/gen_ndr/cli_winreg.o \
349 librpc/gen_ndr/ndr_winreg_c.o
351 LIBCLI_NTSVCS_OBJ = librpc/gen_ndr/cli_ntsvcs.o \
352 librpc/gen_ndr/ndr_ntsvcs_c.o
354 LIBCLI_DRSUAPI_OBJ = librpc/gen_ndr/cli_drsuapi.o \
355 librpc/gen_ndr/ndr_drsuapi_c.o
357 LIBCLI_DFS_OBJ = librpc/gen_ndr/cli_dfs.o \
358 librpc/gen_ndr/ndr_dfs_c.o
360 LIBCLI_ECHO_OBJ = librpc/gen_ndr/cli_echo.o \
361 librpc/gen_ndr/ndr_echo_c.o
363 LIBCLI_INITSHUTDOWN_OBJ = librpc/gen_ndr/cli_initshutdown.o \
364 librpc/gen_ndr/ndr_initshutdown_c.o
366 LIBCLI_DSSETUP_OBJ = librpc/gen_ndr/cli_dssetup.o \
367 librpc/gen_ndr/ndr_dssetup_c.o
369 LIBCLI_SVCCTL_OBJ = librpc/gen_ndr/cli_svcctl.o \
370 librpc/gen_ndr/ndr_svcctl_c.o
372 LIBCLI_WKSSVC_OBJ = librpc/gen_ndr/cli_wkssvc.o \
373 librpc/gen_ndr/ndr_wkssvc_c.o
375 LIBCLI_SRVSVC_OBJ = librpc/gen_ndr/cli_srvsvc.o \
376 librpc/gen_ndr/ndr_srvsvc_c.o
378 LIBCLI_LSA_OBJ = librpc/gen_ndr/cli_lsa.o \
379 librpc/gen_ndr/ndr_lsa_c.o \
380 rpc_client/cli_lsarpc.o \
381 rpc_client/init_lsa.o
383 LIBCLI_SAMR_OBJ = librpc/gen_ndr/cli_samr.o \
384 librpc/gen_ndr/ndr_samr_c.o \
385 rpc_client/cli_samr.o
387 LIBCLI_NETLOGON_OBJ = librpc/gen_ndr/cli_netlogon.o \
388 librpc/gen_ndr/ndr_netlogon_c.o \
389 rpc_client/cli_netlogon.o
391 LIBCLI_EPMAPPER_OBJ = librpc/gen_ndr/cli_epmapper.o \
392 librpc/gen_ndr/ndr_epmapper_c.o
394 LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
395 $(LIBNDR_GEN_OBJ0) \
396 librpc/gen_ndr/ndr_dfs.o \
397 librpc/gen_ndr/ndr_echo.o \
398 librpc/gen_ndr/ndr_winreg.o \
399 librpc/gen_ndr/ndr_initshutdown.o \
400 librpc/gen_ndr/ndr_srvsvc.o \
401 librpc/gen_ndr/ndr_eventlog.o \
402 $(LIBNDR_NETLOGON_OBJ) \
403 librpc/gen_ndr/ndr_dssetup.o \
404 librpc/gen_ndr/ndr_epmapper.o \
405 librpc/gen_ndr/ndr_ntsvcs.o \
406 $(LIBNDR_SPOOLSS_OBJ)
408 # this includes only the low level parse code, not stuff
409 # that requires knowledge of security contexts
410 REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
412 LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
414 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
415 NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
417 LIBSAMBAUTIL_OBJ = \
418 $(LIBREPLACE_OBJ) \
419 $(SOCKET_WRAPPER_OBJ) \
420 $(NSS_WRAPPER_OBJ)
422 UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
423 ../lib/util/xfile.o ../lib/util/util_strlist.o \
424 ../lib/util/util_file.o ../lib/util/data_blob.o \
425 ../lib/util/util.o ../lib/util/fsusage.o \
426 ../lib/util/params.o ../lib/util/talloc_stack.o \
427 ../lib/util/genrand.o ../lib/util/util_net.o \
428 ../lib/util/become_daemon.o ../lib/util/system.o \
429 ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
430 ../lib/util/smb_threads.o ../lib/util/util_id.o \
431 ../lib/util/blocking.o ../lib/util/rfc1738.o
433 CRYPTO_OBJ = ../lib/crypto/crc32.o ../lib/crypto/md5.o \
434 ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
435 ../lib/crypto/md4.o \
436 ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
437 ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o
439 LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \
440 lib/messages.o librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
441 lib/messages_ctdbd.o lib/packet.o lib/ctdbd_conn.o \
442 lib/interfaces.o lib/memcache.o \
443 lib/talloc_dict.o \
444 lib/serverid.o \
445 lib/util_sconn.o \
446 lib/util_transfer_file.o ../lib/async_req/async_sock.o \
447 $(TDB_LIB_OBJ) \
448 $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \
449 lib/interface.o lib/pidfile.o \
450 lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
451 lib/username.o \
452 ../libds/common/flag_mapping.o \
453 lib/util_pw.o lib/access.o lib/smbrun.o \
454 lib/bitmap.o lib/dprintf.o $(UTIL_REG_OBJ) \
455 lib/wins_srv.o \
456 lib/util_str.o lib/clobber.o lib/util_sid.o \
457 lib/util_unistr.o lib/util_file.o \
458 lib/util.o lib/util_names.o \
459 lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
460 lib/substitute.o lib/dbwrap_util.o \
461 lib/ms_fnmatch.o lib/select.o lib/errmap_unix.o \
462 lib/tallocmsg.o lib/dmallocmsg.o \
463 libsmb/clisigning.o libsmb/smb_signing.o \
464 lib/iconv.o lib/pam_errors.o intl/lang_tdb.o \
465 lib/conn_tdb.o lib/adt_tree.o lib/gencache.o \
466 lib/sessionid_tdb.o \
467 lib/module.o lib/events.o @LIBTEVENT_OBJ0@ \
468 lib/server_contexts.o \
469 lib/ldap_escape.o @CHARSET_STATIC@ \
470 lib/secdesc.o lib/util_seaccess.o ../libcli/security/secace.o \
471 ../libcli/security/sddl.o \
472 ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
473 lib/fncall.o \
474 libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
475 lib/file_id.o lib/idmap_cache.o \
476 ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o
478 LIB_DUMMY_OBJ = lib/dummysmbd.o lib/dummyroot.o
479 LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
481 READLINE_OBJ = lib/readline.o
483 # Also depends on $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
484 # Be sure to include them into your application
485 POPT_LIB_OBJ = lib/popt_common.o
487 PARAM_WITHOUT_REG_OBJ = dynconfig.o param/loadparm.o param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o
488 PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
489 PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
491 KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
493 LIBADDNS_OBJ0 = libaddns/dnsrecord.o libaddns/dnsutils.o libaddns/dnssock.o \
494 libaddns/dnsgss.o libaddns/dnsmarshall.o
495 LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
497 GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
499 LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
500 ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
501 libgpo/gpo_reg.o \
502 $(GPEXT_OBJ)
503 LIBGPO_OBJ = $(LIBGPO_OBJ0)
505 LIBADS_OBJ = libads/ldap.o \
506 libads/sasl.o libads/sasl_wrapping.o \
507 libads/krb5_setpw.o \
508 libads/kerberos_util.o \
509 libads/ldap_user.o \
510 libads/ads_struct.o libads/kerberos_keytab.o \
511 libads/disp_sec.o libads/ldap_utils.o \
512 libads/ldap_schema.o libads/util.o libads/ndr.o
514 LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \
515 ../librpc/ndr/ndr_krb5pac.o \
516 librpc/gen_ndr/ndr_krb5pac.o
518 LIBADS_PRINTER_OBJ = libads/ldap_printer.o
520 SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
521 librpc/gen_ndr/ndr_secrets.o
523 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
524 ../libcli/netlogon.o \
525 ../libcli/ndr_netlogon.o \
526 librpc/gen_ndr/ndr_nbt.o \
527 librpc/gen_ndr/ndr_svcctl.o \
528 ../librpc/ndr/ndr_svcctl.o
530 LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
531 libsmb/namequery.o ../libcli/nbt/lmhosts.o libsmb/conncache.o \
532 libads/dns.o libads/sitename_cache.o
534 NTERR_OBJ = libsmb/nterr.o libsmb/smberr.o
535 DOSERR_OBJ = ../libcli/util/doserr.o
536 ERRORMAP_OBJ = libsmb/errormap.o
537 DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
539 LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
541 LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
543 LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
544 $(SECRETS_OBJ)
546 LIBSMB_OBJ0 = \
547 ../libcli/auth/ntlm_check.o \
548 libsmb/ntlmssp.o \
549 libsmb/ntlmssp_wrap.o \
550 ../libcli/auth/ntlmssp.o \
551 ../libcli/auth/ntlmssp_sign.o \
552 $(LIBNDR_NTLMSSP_OBJ) \
553 ../libcli/auth/ntlmssp_ndr.o \
554 ../libcli/auth/ntlmssp_server.o
556 LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
557 $(LIBSMB_ERR_OBJ)
559 LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
560 LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o lib/ldb_compat.o
562 LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
563 ../lib/tsocket/tsocket_helpers.o \
564 ../lib/tsocket/tsocket_bsd.o
566 CLDAP_OBJ = libads/cldap.o \
567 ../libcli/cldap/cldap.o \
568 ../lib/util/idtree.o \
569 $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTSOCKET_OBJ)
571 TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
573 SCHANNEL_OBJ = ../libcli/auth/credentials.o \
574 ../libcli/auth/schannel_sign.o \
575 ../libcli/auth/schannel_state_tdb.o \
576 $(LIBNDR_SCHANNEL_OBJ)
578 LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
579 libsmb/clikrb5.o libsmb/clispnego.o \
580 ../libcli/auth/spnego_parse.o \
581 ../lib/util/asn1.o \
582 libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
583 libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
584 libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
585 libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
586 libsmb/clioplock.o libsmb/clirap2.o \
587 libsmb/smb_seal.o libsmb/async_smb.o \
588 $(LIBSAMBA_OBJ) \
589 $(LIBNMB_OBJ) \
590 $(LIBNBT_OBJ) \
591 $(CLDAP_OBJ) \
592 $(DRSUAPI_OBJ)
594 LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
595 rpc_client/cli_pipe.o \
596 librpc/crypto/gse_krb5.o \
597 librpc/crypto/gse.o \
598 librpc/rpc/dcerpc_spnego.o \
599 librpc/rpc/rpc_common.o \
600 rpc_client/rpc_transport_np.o \
601 rpc_client/rpc_transport_sock.o \
602 rpc_client/rpc_transport_tstream.o \
603 ../librpc/rpc/binding.o \
604 ../librpc/rpc/dcerpc_util.o \
605 ../librpc/rpc/binding_handle.o \
606 librpc/rpc/dcerpc_helpers.o \
607 $(LIBCLI_EPMAPPER_OBJ)
609 LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
612 # registry-related objects
614 UTIL_REG_OBJ = ../libcli/registry/util_reg.o
616 REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
617 REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
618 REG_INIT_FULL_OBJ = registry/reg_init_full.o
620 REGFIO_OBJ = registry/regfio.o \
621 $(REG_PARSE_PRS_OBJ)
623 REG_API_REGF_OBJ = registry/reg_api_regf.o
625 REGOBJS_OBJ = registry/reg_objects.o
627 REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
629 REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
631 REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
632 registry/reg_backend_shares.o \
633 registry/reg_backend_netlogon_params.o \
634 registry/reg_backend_prod_options.o \
635 registry/reg_backend_tcpip_params.o \
636 registry/reg_backend_hkpt_params.o \
637 registry/reg_backend_current_version.o \
638 registry/reg_backend_perflib.o
640 REG_BASE_OBJ = registry/reg_api.o \
641 registry/reg_dispatcher.o \
642 registry/reg_cachehook.o \
643 $(REGOBJS_OBJ) \
644 registry/reg_util_internal.o \
645 lib/util_nttoken.o \
646 $(REG_BACKENDS_BASE_OBJ) \
647 $(REG_INIT_BASIC_OBJ)
649 REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
650 registry/reg_util_token.o \
651 registry/reg_api_util.o \
652 $(REG_BACKENDS_SMBCONF_OBJ) \
653 $(REG_INIT_SMBCONF_OBJ)
655 REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
656 $(REG_BACKENDS_EXTRA_OBJ) \
657 $(REG_INIT_FULL_OBJ) \
658 registry/reg_eventlog.o \
659 registry/reg_perfcount.o \
660 librpc/gen_ndr/ndr_perfcount.o
662 LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
664 RPC_LSARPC_OBJ = rpc_server/srv_lsa_nt.o \
665 librpc/gen_ndr/srv_lsa.o
667 RPC_NETLOGON_OBJ = rpc_server/srv_netlog_nt.o \
668 librpc/gen_ndr/srv_netlogon.o
670 RPC_SAMR_OBJ = rpc_server/srv_samr_nt.o \
671 rpc_server/srv_samr_util.o \
672 rpc_server/srv_samr_chgpasswd.o \
673 librpc/gen_ndr/srv_samr.o
675 RPC_INITSHUTDOWN_OBJ = librpc/gen_ndr/srv_initshutdown.o rpc_server/srv_initshutdown_nt.o
677 RPC_WINREG_OBJ = rpc_server/srv_winreg_nt.o \
678 librpc/gen_ndr/srv_winreg.o
680 RPC_DSSETUP_OBJ = rpc_server/srv_dssetup_nt.o librpc/gen_ndr/srv_dssetup.o
682 RPC_SRVSVC_OBJ = rpc_server/srv_srvsvc_nt.o \
683 librpc/gen_ndr/srv_srvsvc.o
685 RPC_WKSSVC_OBJ = librpc/gen_ndr/srv_wkssvc.o \
686 rpc_server/srv_wkssvc_nt.o
688 RPC_SVCCTL_OBJ = rpc_server/srv_svcctl_nt.o \
689 librpc/gen_ndr/srv_svcctl.o \
690 services/svc_spoolss.o services/svc_rcinit.o services/services_db.o \
691 services/svc_netlogon.o services/svc_winreg.o \
692 services/svc_wins.o
694 RPC_NTSVCS_OBJ = rpc_server/srv_ntsvcs_nt.o \
695 librpc/gen_ndr/srv_ntsvcs.o
697 RPC_NETDFS_OBJ = librpc/gen_ndr/srv_dfs.o \
698 rpc_server/srv_dfs_nt.o
700 RPC_SPOOLSS_OBJ = rpc_server/srv_spoolss_nt.o \
701 rpc_server/srv_spoolss_util.o \
702 librpc/gen_ndr/srv_spoolss.o
704 RPC_EVENTLOG_OBJ = rpc_server/srv_eventlog_nt.o \
705 $(LIB_EVENTLOG_OBJ) librpc/gen_ndr/srv_eventlog.o
707 NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
708 librpc/gen_ndr/ndr_named_pipe_auth.o
710 RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
711 rpc_server/rpc_handles.o
713 RPC_SERVICE = rpc_server/rpc_server.o
715 RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
716 $(RPC_NCACN_NP) $(RPC_SERVICE)
718 RPC_RPCECHO_OBJ = rpc_server/srv_echo_nt.o librpc/gen_ndr/srv_echo.o
720 RPC_SERVER_OBJ = @RPC_STATIC@ $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
721 $(LIBCLI_SPOOLSS_OBJ) \
722 $(LIBCLI_WINREG_OBJ) \
723 $(LIBCLI_SRVSVC_OBJ) \
724 $(LIBCLI_LSA_OBJ) \
725 $(LIBCLI_SAMR_OBJ) \
726 $(LIBCLI_NETLOGON_OBJ) \
727 $(RPC_CLIENT_SCHANNEL_OBJ) \
728 rpc_client/init_netlogon.o \
729 rpc_client/init_samr.o
731 RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
733 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
735 PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
737 PRIVILEGES_OBJ = lib/privileges.o
739 PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
741 PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
742 passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \
743 passdb/util_unixsids.o passdb/lookup_sid.o \
744 passdb/login_cache.o @PDB_STATIC@ \
745 passdb/account_pol.o $(PRIVILEGES_OBJ) \
746 lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ)
748 DEVEL_HELP_WEIRD_OBJ = modules/weird.o
749 CP850_OBJ = modules/CP850.o
750 CP437_OBJ = modules/CP437.o
751 CHARSET_MACOSXFS_OBJ = modules/charset_macosxfs.o
753 GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
755 PROFILE_OBJ = profile/profile.o
756 PROFILES_OBJ = utils/profiles.o \
757 $(LIBSMB_ERR_OBJ) \
758 $(PARAM_OBJ) \
759 $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
760 $(POPT_LIB_OBJ) \
761 $(REGFIO_OBJ)
763 OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o \
764 smbd/oplock_onefs.o
766 NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
767 librpc/gen_ndr/ndr_notify.o
769 FNAME_UTIL_OBJ = smbd/filename_util.o
771 VFS_DEFAULT_OBJ = modules/vfs_default.o
772 VFS_AUDIT_OBJ = modules/vfs_audit.o
773 VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
774 VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
775 VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
776 VFS_RECYCLE_OBJ = modules/vfs_recycle.o
777 VFS_NETATALK_OBJ = modules/vfs_netatalk.o
778 VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
779 VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
780 VFS_CAP_OBJ = modules/vfs_cap.o
781 VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
782 VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
783 VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
784 VFS_AFSACL_OBJ = modules/vfs_afsacl.o
785 VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o
786 VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
787 VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
788 VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o modules/nfs4_acls.o
789 VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
790 VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o modules/nfs4_acls.o
791 VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
792 VFS_IRIXACL_OBJ = modules/vfs_irixacl.o
793 VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
794 VFS_CATIA_OBJ = modules/vfs_catia.o
795 VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
796 VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
797 VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
798 VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
799 VFS_COMMIT_OBJ = modules/vfs_commit.o
800 VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o modules/nfs4_acls.o
801 VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
802 VFS_READAHEAD_OBJ = modules/vfs_readahead.o
803 VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
804 VFS_FILEID_OBJ = modules/vfs_fileid.o
805 VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
806 VFS_PREOPEN_OBJ = modules/vfs_preopen.o
807 VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
808 VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
809 VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
810 VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
811 VFS_ONEFS_OBJ = modules/vfs_onefs.o modules/onefs_acl.o modules/onefs_system.o \
812 modules/onefs_open.o modules/onefs_streams.o modules/onefs_dir.o \
813 modules/onefs_cbrl.o modules/onefs_notify.o modules/onefs_config.o
814 VFS_ONEFS_SHADOW_COPY_OBJ = modules/vfs_onefs_shadow_copy.o modules/onefs_shadow_copy.o
815 PERFCOUNT_ONEFS_OBJ = modules/perfcount_onefs.o
816 PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
817 VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
818 VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
819 VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
820 VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
822 PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o
824 SLCACHE_OBJ = libsmb/samlogon_cache.o
826 DCUTIL_OBJ = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
828 AUTH_BUILTIN_OBJ = auth/auth_builtin.o
829 AUTH_DOMAIN_OBJ = auth/auth_domain.o
830 AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
831 AUTH_SERVER_OBJ = auth/auth_server.o
832 AUTH_UNIX_OBJ = auth/auth_unix.o
833 AUTH_WINBIND_OBJ = auth/auth_winbind.o
834 AUTH_WBC_OBJ = auth/auth_wbc.o
835 AUTH_SCRIPT_OBJ = auth/auth_script.o
836 AUTH_NETLOGOND_OBJ = auth/auth_netlogond.o
838 AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
839 auth/server_info.o \
840 auth/server_info_sam.o \
841 auth/user_info.o \
842 auth/user_util.o \
843 auth/user_krb5.o \
844 auth/auth_compat.o auth/auth_ntlmssp.o \
845 $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
847 MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
849 SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
851 BUILDOPT_OBJ = smbd/build_options.o
853 SMBD_OBJ_SRV = smbd/server_reload.o \
854 smbd/files.o smbd/connection.o \
855 smbd/utmp.o smbd/session.o \
856 smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o \
857 smbd/share_access.o smbd/fileio.o \
858 smbd/ipc.o smbd/lanman.o smbd/negprot.o \
859 smbd/message.o smbd/nttrans.o smbd/pipes.o \
860 smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
861 smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
862 smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
863 smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
864 smbd/posix_acls.o lib/sysacls.o \
865 smbd/process.o smbd/service.o smbd/error.o \
866 printing/printspoolss.o \
867 lib/sysquotas.o lib/sysquotas_linux.o \
868 lib/sysquotas_xfs.o lib/sysquotas_4A.o \
869 lib/sysquotas_nfs.o \
870 smbd/fake_file.o \
871 smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
872 $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
873 smbd/dmapi.o smbd/signing.o \
874 smbd/file_access.o \
875 smbd/dnsregister.o smbd/globals.o \
876 smbd/smb2_server.o \
877 smbd/smb2_signing.o \
878 smbd/smb2_glue.o \
879 smbd/smb2_negprot.o \
880 smbd/smb2_sesssetup.o \
881 smbd/smb2_tcon.o \
882 smbd/smb2_create.o \
883 smbd/smb2_close.o \
884 smbd/smb2_flush.o \
885 smbd/smb2_read.o \
886 smbd/smb2_write.o \
887 smbd/smb2_lock.o \
888 smbd/smb2_ioctl.o \
889 smbd/smb2_keepalive.o \
890 smbd/smb2_find.o \
891 smbd/smb2_notify.o \
892 smbd/smb2_getinfo.o \
893 smbd/smb2_setinfo.o \
894 smbd/smb2_break.o \
895 ../libcli/smb/smb2_create_blob.o \
896 $(MANGLE_OBJ) @VFS_STATIC@
898 SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
899 $(RPC_SERVER_OBJ) \
900 $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
901 $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
902 $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
903 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
904 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
905 $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
906 $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
907 $(LIBSMBCONF_OBJ) \
908 $(PRIVILEGES_BASIC_OBJ) \
909 $(REGFIO_OBJ) \
910 $(REG_API_REGF_OBJ) \
911 $(LIBNDR_XATTR_OBJ)
913 PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
914 printing/print_cups.o printing/print_generic.o \
915 printing/lpq_parse.o printing/load.o \
916 printing/print_iprint.o printing/print_standard.o \
917 printing/printer_list.o
919 PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
920 PRINTBACKEND_OBJ = printing/printing.o \
921 printing/nt_printing.o \
922 printing/nt_printing_tdb.o \
923 printing/nt_printing_migrate.o \
924 printing/nt_printing_ads.o \
925 librpc/gen_ndr/ndr_ntprinting.o \
926 ../librpc/ndr/ndr_ntprinting.o \
927 $(PRINTBASE_OBJ)
929 SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
931 NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
932 nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
933 nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
934 nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
935 nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
936 nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
937 nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
938 nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
939 nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
940 nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
941 nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
942 nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
944 NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
945 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
946 $(LIBNDR_GEN_OBJ0)
948 SWAT_OBJ1 = web/cgi.o web/diagnose.o web/startstop.o web/statuspage.o \
949 web/swat.o web/neg_lang.o
951 SWAT_OBJ = $(SWAT_OBJ1) $(PARAM_OBJ) $(PRINTING_OBJ) $(PRINTBASE_OBJ) $(LIBSMB_OBJ) \
952 $(LOCKING_OBJ) $(PASSDB_OBJ) $(KRBCLIENT_OBJ) \
953 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) $(PLAINTEXT_AUTH_OBJ) \
954 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
955 $(PASSCHANGE_OBJ) $(FNAME_UTIL_OBJ) \
956 $(LIBCLI_SAMR_OBJ) \
957 rpc_client/init_lsa.o
959 STATUS_OBJ = utils/status.o utils/status_profile.o \
960 $(LOCKING_OBJ) $(PARAM_OBJ) \
961 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
962 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
964 SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
965 $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
967 SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
968 $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
969 $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
970 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
971 $(LIBMSRPC_GEN_OBJ) \
972 $(LIBMSRPC_OBJ) \
973 $(LIBCLI_SRVSVC_OBJ)
975 TESTPARM_OBJ = utils/testparm.o \
976 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
977 $(LIBSMB_ERR_OBJ)
979 SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
980 $(LIB_NONSMBD_OBJ) \
981 $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
983 TEST_LP_LOAD_OBJ = param/test_lp_load.o \
984 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
985 $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
987 PASSWD_UTIL_OBJ = utils/passwd_util.o
989 SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
990 $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
991 $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
992 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
993 $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
994 $(LIBCLI_SAMR_OBJ) \
995 rpc_client/init_lsa.o
997 PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
998 $(LIBSAMBA_OBJ) $(LIBTSOCKET_OBJ) \
999 $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
1000 $(LIBCLI_LDAP_NDR_OBJ) \
1001 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) ../lib/util/asn1.o
1003 SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
1005 DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
1007 RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
1008 rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
1009 rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
1010 rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
1011 rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
1012 rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
1013 rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
1014 rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
1015 rpcclient/cmd_winreg.o \
1016 $(DISPLAY_SEC_OBJ)
1018 RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
1019 $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1020 $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
1021 $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
1022 $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
1023 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1024 $(LIBCLI_SPOOLSS_OBJ) \
1025 $(LIBCLI_EVENTLOG_OBJ) \
1026 $(LIBCLI_NTSVCS_OBJ) \
1027 $(LIBCLI_DRSUAPI_OBJ) \
1028 $(LIBCLI_DFS_OBJ) \
1029 $(LIBCLI_ECHO_OBJ) \
1030 $(LIBCLI_DSSETUP_OBJ) \
1031 $(LIBCLI_WKSSVC_OBJ) \
1032 $(LIBCLI_SRVSVC_OBJ) \
1033 $(LIBCLI_LSA_OBJ) \
1034 $(LIBCLI_SAMR_OBJ) \
1035 $(LIBCLI_WINREG_OBJ) \
1036 $(LIBCLI_NETLOGON_OBJ) \
1037 $(RPC_CLIENT_SCHANNEL_OBJ) \
1038 rpc_client/init_netlogon.o \
1039 rpc_client/init_samr.o
1041 PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
1042 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
1044 LIBSMBCLIENT_THREAD_OBJ = \
1045 libsmb/libsmb_thread_impl.o \
1046 libsmb/libsmb_thread_posix.o
1048 LIBSMBCLIENT_OBJ0 = \
1049 libsmb/libsmb_cache.o \
1050 libsmb/libsmb_compat.o \
1051 libsmb/libsmb_context.o \
1052 libsmb/libsmb_dir.o \
1053 libsmb/libsmb_file.o \
1054 libsmb/libsmb_misc.o \
1055 libsmb/libsmb_path.o \
1056 libsmb/libsmb_printjob.o \
1057 libsmb/libsmb_server.o \
1058 libsmb/libsmb_stat.o \
1059 libsmb/libsmb_xattr.o \
1060 libsmb/libsmb_setget.o
1062 LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
1063 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1064 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1065 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1066 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1067 $(LIBCLI_SRVSVC_OBJ) \
1068 $(LIBCLI_LSA_OBJ)
1070 LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
1072 # This shared library is intended for linking with unit test programs
1073 # to test Samba internals. It's called libbigballofmud.so to
1074 # discourage casual usage.
1076 LIBBIGBALLOFMUD_MAJOR = 0
1078 LIBBIGBALLOFMUD_OBJ = $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1079 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(PASSDB_OBJ) \
1080 $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) $(SMBLDAP_OBJ)
1082 CLIENT_OBJ1 = client/client.o client/clitar.o \
1083 client/dnsbrowse.o \
1084 $(LIBMSRPC_OBJ)
1086 CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
1087 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
1088 $(READLINE_OBJ) $(POPT_LIB_OBJ) \
1089 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1090 $(DISPLAY_SEC_OBJ) \
1091 $(LIBCLI_SRVSVC_OBJ)
1093 LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
1094 ../lib/smbconf/smbconf_util.o \
1095 ../lib/smbconf/smbconf_txt.o \
1096 lib/smbconf/smbconf_reg.o \
1097 lib/smbconf/smbconf_init.o
1099 SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
1101 SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
1102 $(LIB_NONSMBD_OBJ) \
1103 $(PARAM_OBJ) \
1104 $(LIBSMB_ERR_OBJ) \
1105 $(POPT_LIB_OBJ)
1107 LIBNET_OBJ = libnet/libnet_join.o \
1108 libnet/libnet_keytab.o \
1109 librpc/gen_ndr/ndr_libnet_join.o
1111 LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
1112 libnet/libnet_dssync_keytab.o \
1113 ../libcli/drsuapi/repl_decrypt.o
1115 LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
1116 libnet/libnet_samsync_ldif.o \
1117 libnet/libnet_samsync_passdb.o \
1118 libnet/libnet_samsync_display.o \
1119 libnet/libnet_samsync_keytab.o \
1120 ../libcli/samsync/decrypt.o
1122 NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
1123 utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
1124 utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
1125 utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
1126 utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
1127 utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
1128 utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
1129 utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
1130 $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
1131 utils/net_conf.o utils/net_join.o utils/net_user.o \
1132 utils/net_group.o utils/net_file.o utils/net_registry.o \
1133 auth/token_util.o utils/net_dom.o utils/net_share.o \
1134 utils/net_g_lock.o \
1135 utils/net_serverid.o \
1136 utils/net_eventlog.o \
1137 utils/net_printing.o \
1138 $(LIBNDR_NTPRINTING_OBJ) \
1139 $(LIBNDR_PREG_OBJ) \
1140 $(LIBCLI_SPOOLSS_OBJ) \
1141 $(LIBCLI_WINREG_OBJ) \
1142 $(LIBCLI_DRSUAPI_OBJ) \
1143 $(LIBCLI_INITSHUTDOWN_OBJ) \
1144 $(LIBCLI_DSSETUP_OBJ) \
1145 $(LIBCLI_SVCCTL_OBJ) \
1146 $(LIBCLI_WKSSVC_OBJ) \
1147 $(LIBCLI_SRVSVC_OBJ) \
1148 $(LIBCLI_LSA_OBJ) \
1149 $(LIBCLI_SAMR_OBJ) \
1150 $(LIBCLI_NETLOGON_OBJ) \
1151 $(RPC_CLIENT_SCHANNEL_OBJ) \
1152 rpc_client/init_netlogon.o \
1153 rpc_client/init_samr.o \
1154 registry/reg_parse.o registry/reg_format.o \
1155 registry/reg_parse_internal.o registry/reg_import.o \
1156 lib/cbuf.o lib/srprs.o
1158 # these are not processed by make proto
1159 NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
1161 NET_OBJ = $(NET_OBJ1) \
1162 $(NET_OBJ2) @FAKE_KASERVER_OBJ@\
1163 $(PARAM_WITHOUT_REG_OBJ) $(LIBSMB_OBJ) \
1164 $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1165 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LIBADDNS_OBJ0) \
1166 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1167 $(LIBADS_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) $(POPT_LIB_OBJ) \
1168 $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
1169 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) $(READLINE_OBJ) \
1170 $(LIBGPO_OBJ) @BUILD_INIPARSER@ $(DISPLAY_SEC_OBJ) \
1171 $(REG_SMBCONF_OBJ) \
1172 $(LIBNET_OBJ) $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
1173 $(LIBSMBCONF_OBJ) \
1174 $(REGFIO_OBJ) \
1175 $(PRIVILEGES_BASIC_OBJ) \
1176 $(LIB_EVENTLOG_OBJ) localedir.o
1178 CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1179 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1180 $(LIBNDR_GEN_OBJ0)
1182 NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
1183 $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1185 SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
1186 torture/denytest.o torture/mangle_test.o \
1187 torture/nbench.o \
1188 torture/test_posix_append.o
1190 SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
1191 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1192 @LIBWBCLIENT_STATIC@ \
1193 ../nsswitch/libwbclient/wbc_async.o \
1194 ../nsswitch/libwbclient/wb_reqtrans.o \
1195 $(LIBNDR_GEN_OBJ0)
1197 MASKTEST_OBJ = torture/masktest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1198 $(LIB_NONSMBD_OBJ) \
1199 $(LIBNDR_GEN_OBJ0)
1201 MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
1202 $(LIB_NONSMBD_OBJ) \
1203 $(LIBNDR_GEN_OBJ0)
1205 LOCKTEST_OBJ = torture/locktest.o $(PARAM_OBJ) $(LOCKING_OBJ) $(KRBCLIENT_OBJ) \
1206 $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
1207 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1209 NSSTEST_OBJ = torture/nsstest.o $(LIBSAMBAUTIL_OBJ)
1211 PDBTEST_OBJ = torture/pdbtest.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1212 $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1213 $(SMBLDAP_OBJ) $(POPT_LIB_OBJ) \
1214 $(LIBNDR_GEN_OBJ0)
1216 VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ)
1218 SMBICONV_OBJ = $(PARAM_OBJ) torture/smbiconv.o $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
1220 LOG2PCAP_OBJ = utils/log2pcaphex.o
1222 LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
1223 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1224 $(LIBNDR_GEN_OBJ0) $(FNAME_UTIL_OBJ)
1226 SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1227 $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
1228 $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1229 $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
1230 $(LIBCLI_LSA_OBJ)
1232 SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
1233 $(PARAM_OBJ) \
1234 $(LIB_NONSMBD_OBJ) \
1235 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
1236 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1237 $(LIBCLI_LSA_OBJ)
1239 EVTLOGADM_OBJ0 = utils/eventlogadm.o
1241 EVTLOGADM_OBJ = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1242 $(LIBSMB_ERR_OBJ) \
1243 registry/reg_eventlog.o $(LIB_EVENTLOG_OBJ) \
1244 librpc/gen_ndr/ndr_eventlog.o \
1245 librpc/gen_ndr/ndr_lsa.o
1247 SHARESEC_OBJ0 = utils/sharesec.o
1248 SHARESEC_OBJ = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1249 $(LIBSMB_ERR_OBJ) \
1250 $(POPT_LIB_OBJ)
1252 TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
1253 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
1255 REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
1256 @libreplacedir@/test/getifaddrs.o \
1257 @libreplacedir@/test/os2_delete.o \
1258 @libreplacedir@/test/strptime.o \
1259 @libreplacedir@/test/main.o \
1260 $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
1262 DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
1264 SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
1265 $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
1266 $(LIBNDR_GEN_OBJ0)
1268 WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
1269 $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
1271 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
1272 pam_smbpass/pam_smb_acct.o pam_smbpass/support.o ../lib/util/asn1.o
1273 PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1274 $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
1275 $(LIBTSOCKET_OBJ)
1277 IDMAP_RW_OBJ = winbindd/idmap_rw.o
1279 IDMAP_OBJ = winbindd/idmap.o winbindd/idmap_util.o $(IDMAP_RW_OBJ) @IDMAP_STATIC@
1281 NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
1283 IDMAP_HASH_OBJ = \
1284 winbindd/idmap_hash/idmap_hash.o \
1285 winbindd/idmap_hash/mapfile.o
1287 IDMAP_ADEX_OBJ = \
1288 winbindd/idmap_adex/idmap_adex.o \
1289 winbindd/idmap_adex/cell_util.o \
1290 winbindd/idmap_adex/likewise_cell.o \
1291 winbindd/idmap_adex/provider_unified.o \
1292 winbindd/idmap_adex/gc_util.o \
1293 winbindd/idmap_adex/domain_util.o
1295 WINBINDD_OBJ1 = \
1296 winbindd/winbindd.o \
1297 winbindd/winbindd_group.o \
1298 winbindd/winbindd_util.o \
1299 winbindd/winbindd_cache.o \
1300 winbindd/winbindd_pam.o \
1301 winbindd/winbindd_misc.o \
1302 winbindd/winbindd_cm.o \
1303 winbindd/winbindd_wins.o \
1304 winbindd/winbindd_msrpc.o \
1305 winbindd/winbindd_rpc.o \
1306 winbindd/winbindd_reconnect.o \
1307 winbindd/winbindd_ads.o \
1308 winbindd/winbindd_samr.o \
1309 winbindd/winbindd_dual.o \
1310 winbindd/winbindd_dual_ndr.o \
1311 winbindd/winbindd_dual_srv.o \
1312 librpc/gen_ndr/cli_wbint.o \
1313 librpc/gen_ndr/ndr_wbint_c.o \
1314 librpc/gen_ndr/srv_wbint.o \
1315 librpc/gen_ndr/ndr_wbint.o \
1316 winbindd/winbindd_async.o \
1317 winbindd/winbindd_creds.o \
1318 winbindd/winbindd_cred_cache.o \
1319 winbindd/winbindd_ccache_access.o \
1320 winbindd/winbindd_domain.o \
1321 winbindd/winbindd_idmap.o \
1322 winbindd/winbindd_locator.o \
1323 winbindd/winbindd_ndr.o \
1324 winbindd/wb_ping.o \
1325 winbindd/wb_lookupsid.o \
1326 winbindd/wb_lookupname.o \
1327 winbindd/wb_sid2uid.o \
1328 winbindd/wb_sid2gid.o \
1329 winbindd/wb_uid2sid.o \
1330 winbindd/wb_gid2sid.o \
1331 winbindd/wb_queryuser.o \
1332 winbindd/wb_lookupuseraliases.o \
1333 winbindd/wb_lookupusergroups.o \
1334 winbindd/wb_getpwsid.o \
1335 winbindd/wb_gettoken.o \
1336 winbindd/wb_seqnum.o \
1337 winbindd/wb_seqnums.o \
1338 winbindd/wb_group_members.o \
1339 winbindd/wb_getgrsid.o \
1340 winbindd/wb_query_user_list.o \
1341 winbindd/wb_fill_pwent.o \
1342 winbindd/wb_next_pwent.o \
1343 winbindd/wb_next_grent.o \
1344 winbindd/wb_dsgetdcname.o \
1345 winbindd/winbindd_lookupsid.o \
1346 winbindd/winbindd_lookupname.o \
1347 winbindd/winbindd_sid_to_uid.o \
1348 winbindd/winbindd_sid_to_gid.o \
1349 winbindd/winbindd_uid_to_sid.o \
1350 winbindd/winbindd_gid_to_sid.o \
1351 winbindd/winbindd_allocate_uid.o \
1352 winbindd/winbindd_allocate_gid.o \
1353 winbindd/winbindd_getpwsid.o \
1354 winbindd/winbindd_getpwnam.o \
1355 winbindd/winbindd_getpwuid.o \
1356 winbindd/winbindd_getsidaliases.o \
1357 winbindd/winbindd_getuserdomgroups.o \
1358 winbindd/winbindd_getgroups.o \
1359 winbindd/winbindd_show_sequence.o \
1360 winbindd/winbindd_getgrgid.o \
1361 winbindd/winbindd_getgrnam.o \
1362 winbindd/winbindd_getusersids.o \
1363 winbindd/winbindd_lookuprids.o \
1364 winbindd/winbindd_setpwent.o \
1365 winbindd/winbindd_getpwent.o \
1366 winbindd/winbindd_endpwent.o \
1367 winbindd/winbindd_setgrent.o \
1368 winbindd/winbindd_getgrent.o \
1369 winbindd/winbindd_endgrent.o \
1370 winbindd/winbindd_dsgetdcname.o \
1371 winbindd/winbindd_getdcname.o \
1372 winbindd/winbindd_list_users.o \
1373 winbindd/winbindd_list_groups.o \
1374 winbindd/winbindd_check_machine_acct.o \
1375 winbindd/winbindd_change_machine_acct.o \
1376 winbindd/winbindd_ping_dc.o \
1377 winbindd/winbindd_pam_auth.o \
1378 winbindd/winbindd_pam_auth_crap.o \
1379 winbindd/winbindd_pam_chauthtok.o \
1380 winbindd/winbindd_pam_chng_pswd_auth_crap.o \
1381 winbindd/winbindd_pam_logoff.o \
1382 auth/auth_util.o \
1383 auth/token_util.o \
1384 auth/user_util.o \
1385 auth/check_samsec.o \
1386 auth/server_info.o \
1387 auth/server_info_sam.o \
1388 auth/user_info.o \
1389 auth/pampass.o \
1390 ../nsswitch/libwbclient/wb_reqtrans.o
1392 WINBINDD_OBJ = \
1393 $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
1394 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1395 $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
1396 $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
1397 $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
1398 $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
1399 $(RPC_NCACN_NP) $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
1400 $(NPA_TSTREAM_OBJ) \
1401 $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
1402 $(LIBADS_SERVER_OBJ) \
1403 $(TDB_VALIDATE_OBJ) \
1404 $(LIBCLI_DSSETUP_OBJ) \
1405 $(LIBCLI_LSA_OBJ) \
1406 $(LIBCLI_SAMR_OBJ) \
1407 $(LIBCLI_NETLOGON_OBJ) \
1408 rpc_client/init_netlogon.o \
1409 rpc_client/init_samr.o
1411 WBINFO_OBJ = ../nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
1412 $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
1413 lib/winbind_util.o $(WBCOMMON_OBJ)
1415 WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
1417 WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
1418 WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
1420 POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
1421 ../lib/popt/popthelp.o ../lib/popt/poptparse.o
1423 INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
1424 ../lib/iniparser_build/strlib.o
1426 TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
1427 $(SOCKET_WRAPPER_OBJ)
1429 TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
1430 $(SOCKET_WRAPPER_OBJ)
1432 TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
1433 $(SOCKET_WRAPPER_OBJ)
1435 TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
1436 $(SOCKET_WRAPPER_OBJ)
1439 NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
1441 NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \
1442 ../lib/util/asn1.o ../libcli/auth/spnego_parse.o libsmb/clikrb5.o libads/kerberos.o \
1443 libsmb/samlogon_cache.o \
1444 $(LIBADS_SERVER_OBJ) \
1445 $(PASSDB_OBJ) $(LIBTSOCKET_OBJ) $(GROUPDB_OBJ) \
1446 $(SMBLDAP_OBJ) $(LIBNMB_OBJ) \
1447 $(WBCOMMON_OBJ) \
1448 $(LIBCLI_LDAP_NDR_OBJ) \
1449 $(LIBNDR_GEN_OBJ0) $(LIBNDR_NETLOGON_OBJ) @BUILD_INIPARSER@
1452 VLP_OBJ = printing/tests/vlp.o \
1453 ../lib/util/util_tdb.o \
1454 $(LIBSAMBAUTIL_OBJ) \
1455 param/util.o
1457 RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
1458 $(LIBSMB_OBJ) \
1459 $(PARAM_OBJ) \
1460 $(PASSDB_OBJ) \
1461 $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
1462 $(LIB_NONSMBD_OBJ) \
1463 $(KRBCLIENT_OBJ) \
1464 $(LIBMSRPC_OBJ) \
1465 $(LIBMSRPC_GEN_OBJ)
1467 DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
1468 $(PARAM_OBJ) \
1469 $(LIB_NONSMBD_OBJ) \
1470 $(LIBSMB_ERR_OBJ)
1472 DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
1473 $(PARAM_OBJ) \
1474 $(LIB_NONSMBD_OBJ) \
1475 $(LIBSMB_ERR_OBJ) \
1476 $(POPT_LIB_OBJ)
1478 SPLIT_TOKENS_OBJ = utils/split_tokens.o \
1479 $(PARAM_OBJ) \
1480 $(LIB_NONSMBD_OBJ) \
1481 $(POPT_LIB_OBJ) \
1482 $(LIBSAMBA_OBJ)
1484 ######################################################################
1485 # now the rules...
1486 ######################################################################
1487 all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
1488 $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
1489 $(EXTRA_ALL_TARGETS)
1491 basics:: samba3-idl
1493 nss_modules:: $(NSS_MODULES)
1495 pam_modules:: $(PAM_MODULES)
1497 pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
1499 pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
1501 gpext_modules:: $(GPEXT_MODULES)
1503 torture:: SHOWFLAGS basics $(TORTURE_PROGS) @SMBTORTURE4@
1505 smbtorture : SHOWFLAGS bin/smbtorture@EXEEXT@
1507 masktest : SHOWFLAGS bin/masktest@EXEEXT@
1509 msgtest : SHOWFLAGS bin/msgtest@EXEEXT@
1511 locktest : SHOWFLAGS bin/locktest@EXEEXT@
1513 smbcacls : SHOWFLAGS bin/smbcacls@EXEEXT@
1515 smbcquotas : SHOWFLAGS bin/smbcquotas@EXEEXT@
1517 locktest2 : SHOWFLAGS bin/locktest2@EXEEXT@
1519 debug2html : SHOWFLAGS bin/debug2html@EXEEXT@
1521 smbfilter : SHOWFLAGS bin/smbfilter@EXEEXT@
1523 eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
1525 sharesec: SHOWFLAGS bin/sharesec@EXEEXT@
1527 talloctort : SHOWFLAGS $(TALLOCTORT)
1529 replacetort : SHOWFLAGS bin/replacetort@EXEEXT@
1531 smbconftort : SHOWFLAGS bin/smbconftort@EXEEXT@
1533 timelimit : SHOWFLAGS bin/timelimit@EXEEXT@
1535 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
1536 @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
1537 bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol@EXEEXT@
1539 wins : SHOWFLAGS @WINBIND_WINS_NSS@
1541 modules:: SHOWFLAGS $(MODULES)
1544 #####################################################################
1545 ## Perl IDL Compiler
1547 IDL_FILES = librpc/idl/messaging.idl \
1548 librpc/idl/libnetapi.idl \
1549 librpc/idl/notify.idl \
1550 librpc/idl/wbint.idl \
1551 librpc/idl/perfcount.idl \
1552 librpc/idl/secrets.idl \
1553 librpc/idl/libnet_join.idl \
1554 librpc/idl/preg.idl
1556 samba3-idl::
1557 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1558 srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
1559 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1560 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
1562 idl_full::
1563 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1564 srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
1565 @PIDL_OUTPUTDIR="librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
1566 srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
1568 #####################################################################
1571 everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
1572 $(EVERYTHING_PROGS)
1574 .SUFFIXES:
1575 .SUFFIXES: .c .o .lo
1577 .PHONY: showflags SHOWFLAGS
1579 showflags: SHOWFLAGS
1581 SHOWFLAGS::
1582 @echo "Using CFLAGS = $(CFLAGS)"
1583 @echo " PICFLAG = $(PICFLAG)"
1584 @echo " LIBS = $(LIBS)"
1585 @echo " LDFLAGS = $(LDFLAGS)"
1586 @echo " DYNEXP = $(DYNEXP)"
1587 @echo " LDSHFLAGS = $(LDSHFLAGS)"
1588 @echo " SHLIBEXT = @SHLIBEXT@"
1589 @echo " SONAMEFLAG = @SONAMEFLAG@"
1591 # "showcflags" target for debuggin how CFLAGS are composed:
1593 .PHONY: showcflags SHOWCFLAGS
1595 showcflags: SHOWCFLAGS
1597 SHOWCFLAGS::
1598 @echo "CFLAGS = $(CFLAGS)"
1599 @echo "FLAGS = $(FLAGS)"
1600 @echo ""
1601 @echo "FLAGS1 = @FLAGS1@"
1602 @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
1603 @echo "CPPFLAGS = $(CPPFLAGS)"
1604 @echo "ISA = $(ISA)"
1606 MAKEDIR = || exec false; \
1607 if test -d "$$dir"; then :; else \
1608 echo mkdir "$$dir"; \
1609 mkdir -p "$$dir" >/dev/null 2>&1 || \
1610 test -d "$$dir" || \
1611 mkdir "$$dir" || \
1612 exec false; fi || exec false
1614 # Run a static checker.
1615 CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
1616 # Compile a source file.
1617 COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
1618 # Compile a source file with the installation paths defined.
1619 COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
1621 COMPILE = $(COMPILE_CC)
1623 .c.o:
1624 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
1625 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
1626 @if test -n "$(CC_CHECKER)"; then \
1627 echo "Checking $*.c with '$(CC_CHECKER)'";\
1628 $(CHECK_CC); \
1630 @echo Compiling $*.c
1631 @$(COMPILE) && exit 0;\
1632 echo "The following command failed:" 1>&2;\
1633 echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
1634 $(COMPILE_CC) >/dev/null 2>&1
1635 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
1637 PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
1639 # this adds support for precompiled headers. To use it, install a snapshot
1640 # of gcc-3.4 and run 'make pch' before you do the main build.
1641 pch::
1642 rm -f $(PRECOMPILED_HEADER)
1643 $(MAKE) $(PRECOMPILED_HEADER)
1645 $(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
1646 $(COMPILE)
1648 BINARY_PREREQS = bin/.dummy
1650 # These dependencies are only approximately correct: we want to make
1651 # sure Samba's paths are updated if ./configure is re-run. Really it
1652 # would be nice if "make prefix=/opt/samba all" also rebuilt things,
1653 # but since we also require "make install prefix=/opt/samba" *not* to
1654 # rebuild it's a bit hard.
1656 dynconfig.o: dynconfig.c Makefile
1657 @echo Compiling $*.c
1658 @$(COMPILE_CC_PATH) && exit 0;\
1659 echo "The following command failed:" 1>&2;\
1660 echo "$(COMPILE_CC_PATH)" 1>&2;\
1661 $(COMPILE_CC_PATH) >/dev/null 2>&1
1663 ../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
1664 @echo Compiling $*.c
1665 @$(COMPILE_CC_PATH) && exit 0;\
1666 echo "The following command failed:" 1>&2;\
1667 echo "$(COMPILE_CC_PATH)" 1>&2;\
1668 $(COMPILE_CC_PATH) >/dev/null 2>&1
1670 ### Start section of object files that require PTHREAD_CFLAGS
1671 ../nsswitch/wins.o: ../nsswitch/wins.c
1672 @echo Compiling $*.c
1673 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1674 echo "The following command failed:" 1>&2;\
1675 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1676 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1678 ../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
1679 @echo Compiling $*.c
1680 @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
1681 echo "The following command failed:" 1>&2;\
1682 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1683 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1685 libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
1686 @echo Compiling $*.c
1687 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1688 echo "The following command failed:" 1>&2;\
1689 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1690 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1692 libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
1693 @echo Compiling $*.c
1694 @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
1695 echo "The following command failed:" 1>&2;\
1696 echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
1697 $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
1698 ### End section of object files that require PTHREAD_CFLAGS
1700 localedir.o: localedir.c Makefile
1701 @echo Compiling $*.c
1702 @$(COMPILE_CC_PATH) && exit 0;\
1703 echo "The following command failed:" 1>&2;\
1704 echo "$(COMPILE_CC_PATH)" 1>&2;\
1705 $(COMPILE_CC_PATH) >/dev/null 2>&1
1707 lib/pidfile.o: lib/pidfile.c
1708 @echo Compiling $*.c
1709 @$(COMPILE_CC_PATH) && exit 0;\
1710 echo "The following command failed:" 1>&2;\
1711 echo "$(COMPILE_CC_PATH)" 1>&2;\
1712 $(COMPILE_CC_PATH) >/dev/null 2>&1
1714 lib/version.o: lib/version.c include/version.h
1715 @echo Compiling $*.c
1716 @$(COMPILE_CC_PATH) && exit 0;\
1717 echo "The following command failed:" 1>&2;\
1718 echo "$(COMPILE_CC_PATH)" 1>&2;\
1719 $(COMPILE_CC_PATH) >/dev/null 2>&1
1721 smbd/build_options.o: smbd/build_options.c Makefile include/config.h include/build_env.h include/proto.h
1722 @echo Compiling $*.c
1723 @$(COMPILE_CC_PATH) && exit 0;\
1724 echo "The following command failed:" 1>&2;\
1725 echo "$(COMPILE_CC_PATH)" 1>&2;\
1726 $(COMPILE_CC_PATH) >/dev/null 2>&1
1728 smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
1729 @echo Generating $@
1730 @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/config.h.in
1732 bin/.dummy:
1733 @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
1734 dir=bin $(MAKEDIR); fi
1735 @: >> $@ || : > $@ # what a fancy emoticon!
1737 bin/smbd@EXEEXT@: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) @BUILD_POPT@
1738 @echo Linking $@
1739 @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
1740 $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
1741 $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
1742 $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1743 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1745 bin/nmbd@EXEEXT@: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1746 @echo Linking $@
1747 @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1748 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1749 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(POPT_LIBS) \
1750 $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
1752 bin/swat@EXEEXT@: $(BINARY_PREREQS) $(SWAT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1753 @echo Linking $@
1754 @$(CC) -o $@ $(SWAT_OBJ) $(LDFLAGS) $(DYNEXP) $(PRINT_LIBS) \
1755 $(AUTH_LIBS) $(LIBS) $(PASSDB_LIBS) $(POPT_LIBS) $(KRB5LIBS) \
1756 $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1758 bin/rpcclient@EXEEXT@: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1759 @echo Linking $@
1760 @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
1761 $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1762 $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1763 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
1765 bin/smbclient@EXEEXT@: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1766 @echo Linking $@
1767 @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
1768 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
1769 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
1770 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1772 bin/net@EXEEXT@: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT) $(LIBNETAPI)
1773 @echo Linking $@
1774 @$(CC) -o $@ $(NET_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1775 $(POPT_LIBS) $(KRB5LIBS) $(UUID_LIBS) $(LDAP_LIBS) \
1776 $(PASSDB_LIBS) $(TERMLDFLAGS) $(TERMLIBS) $(NSCD_LIBS) \
1777 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBNETAPI_LIBS) \
1778 $(ZLIB_LIBS)
1780 bin/profiles@EXEEXT@: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1781 @echo Linking $@
1782 @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1783 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1785 bin/smbspool@EXEEXT@: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1786 @echo Linking $@
1787 @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
1788 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1789 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1791 bin/testparm@EXEEXT@: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1792 @echo Linking $@
1793 @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1794 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1796 bin/smbta-util@EXEEXT@: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1797 @echo Linking $@
1798 @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1799 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1801 bin/smbstatus@EXEEXT@: $(BINARY_PREREQS) $(STATUS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1802 @echo Linking $@
1803 @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1804 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1806 bin/smbcontrol@EXEEXT@: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1807 @echo Linking $@
1808 @$(CC) -DUSING_SMBCONTROL -o $@ \
1809 $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
1810 $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
1811 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1813 bin/smbtree@EXEEXT@: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1814 @echo Linking $@
1815 @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
1816 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1817 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1819 bin/smbpasswd@EXEEXT@: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1820 @echo Linking $@
1821 @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
1822 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1823 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1825 bin/pdbedit@EXEEXT@: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1826 @echo Linking $@
1827 @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1828 $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
1829 $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
1831 bin/smbget@EXEEXT@: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1832 @echo Linking $@
1833 @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1834 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1835 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1837 bin/nmblookup@EXEEXT@: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1838 @echo Linking $@
1839 @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1840 $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1842 bin/smbtorture@EXEEXT@: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1843 @echo Linking $@
1844 @$(CC) -o $@ $(SMBTORTURE_OBJ) $(LDFLAGS) $(DYNEXP) \
1845 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
1846 $(LIBTDB_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
1848 bin/talloctort@EXEEXT@: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1849 @echo Linking $@
1850 @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
1851 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1852 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1854 bin/replacetort@EXEEXT@: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1855 @echo Linking $@
1856 @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
1857 $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
1859 bin/smbconftort@EXEEXT@: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1860 @echo Linking $@
1861 @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
1862 $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1863 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1865 bin/masktest@EXEEXT@: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1866 @echo Linking $@
1867 @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1868 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1869 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1870 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1872 bin/msgtest@EXEEXT@: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1873 @echo Linking $@
1874 @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1875 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1876 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1878 bin/smbcacls@EXEEXT@: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1879 @echo Linking $@
1880 @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
1881 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1882 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1884 bin/smbcquotas@EXEEXT@: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1885 @echo Linking $@
1886 @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
1887 $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
1888 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1890 bin/eventlogadm@EXEEXT@: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDB)
1891 @echo Linking $@
1892 @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
1893 $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1895 bin/sharesec@EXEEXT@: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1896 @echo Linking $@
1897 @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
1898 $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1900 bin/locktest@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1901 @echo Linking $@
1902 @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1903 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1904 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1905 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1907 bin/nsstest@EXEEXT@: $(BINARY_PREREQS) $(NSSTEST_OBJ)
1908 @echo Linking $@
1909 @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
1911 bin/pdbtest@EXEEXT@: $(BINARY_PREREQS) $(PDBTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1912 @echo Linking $@
1913 @$(CC) -o $@ $(PDBTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
1914 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) \
1915 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1917 bin/vfstest@EXEEXT@: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1918 @echo Linking $@
1919 @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
1920 $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
1921 $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
1922 @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
1923 $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
1925 bin/smbiconv@EXEEXT@: $(BINARY_PREREQS) $(SMBICONV_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB)
1926 @echo Linking $@
1927 @$(CC) -o $@ $(SMBICONV_OBJ) $(LDFLAGS) $(TERMLDFLAGS) \
1928 $(TERMLIBS) $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1929 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
1931 bin/log2pcap@EXEEXT@: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1932 @echo Linking $@
1933 @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
1934 $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
1936 bin/locktest2@EXEEXT@: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1937 @echo Linking $@
1938 @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
1939 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1940 $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1941 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1943 bin/debug2html@EXEEXT@: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
1944 @echo Linking $@
1945 @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
1946 $(LIBS) $(LIBTALLOC_LIBS)
1948 bin/smbfilter@EXEEXT@: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
1949 @echo Linking $@
1950 @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
1951 $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
1952 @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
1953 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS)
1955 bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
1956 @echo Linking $@
1957 @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
1960 #####################################################################
1962 # libraries
1964 #####################################################################
1966 MKSYMS_SH = $(srcdir)/script/mksyms.sh
1969 #-------------------------------------------------------------------
1971 # libtalloc
1973 #-------------------------------------------------------------------
1976 LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
1977 LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
1979 LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@
1980 LIBTALLOC_SOVER=@LIBTALLOC_SOVER@
1981 LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER)
1982 LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
1983 LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@
1984 LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h
1986 $(LIBTALLOC_SYMS): $(LIBTALLOC_HEADERS)
1987 @$(MKSYMS_SH) $(AWK) $@ $(LIBTALLOC_HEADERS)
1989 $(LIBTALLOC_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTALLOC_OBJ) $(LIBTALLOC_SYMS)
1990 @echo Linking shared library $@
1991 @$(SHLD_DSO) $(LIBTALLOC_OBJ) $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
1993 $(LIBTALLOC_SHARED_TARGET): $(LIBTALLOC_SHARED_TARGET_SONAME)
1994 @rm -f $@
1995 @ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $@
1997 $(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
1998 @echo Linking non-shared library $@
1999 @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
2000 libtalloc: $(LIBTALLOC)
2002 cleanlibtalloc::
2003 -rm -f \
2004 $(LIBTALLOC_SYMS) \
2005 $(LIBTALLOC_STATIC_TARGET) \
2006 $(LIBTALLOC_SHARED_TARGET) \
2007 $(LIBTALLOC_SHARED_TARGET_SONAME)
2009 installlibtalloc:: installdirs libtalloc
2010 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2011 -$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2012 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2013 -if test -r $(LIBTALLOC_SHARED_TARGET_SONAME) ; then \
2014 ln -f -s `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
2015 $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
2017 -$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2018 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2019 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include
2021 uninstalllibtalloc::
2022 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
2023 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET_SONAME)`
2024 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_STATIC_TARGET)`
2025 -rm -f $(DESTDIR)${prefix}/include/talloc.h
2027 libs:: libtalloc
2028 installlibs:: @INSTALL_LIBTALLOC@
2029 uninstalllibs:: @UNINSTALL_LIBTALLOC@
2030 cleanlibs:: cleanlibtalloc
2031 shlibs test_shlibs: @LIBTALLOC_SHARED@
2033 showlibtalloc:
2034 @echo ""
2035 @echo "LIBTALLOC_SHARED = @LIBTALLOC_SHARED@"
2036 @echo "LIBTALLOC_STATIC = @LIBTALLOC_STATIC@"
2037 @echo "LIBTALLOC_LIBS = $(LIBTALLOC_LIBS)"
2038 @echo ""
2039 @echo "LIBTALLOC_SHARED_TARGET = $(LIBTALLOC_SHARED_TARGET)"
2040 @echo "LIBTALLOC_SOVER = $(LIBTALLOC_SOVER)"
2041 @echo "LIBTALLOC_SHARED TARGET_SONAME = $(LIBTALLOC_SHARED_TARGET_SONAME)"
2042 @echo "LIBTALLOC_STATIC_TARGET = $(LIBTALLOC_STATIC_TARGET)"
2043 @echo "LIBTALLOC = $(LIBTALLOC)"
2045 showlibs:: showlibtalloc
2047 #-------------------------------------------------------------------
2049 # libtdb
2051 #-------------------------------------------------------------------
2053 LIBTDB_OBJ0 = @LIBTDB_OBJ0@
2054 LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
2056 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
2057 LIBTDB_SOVER=@LIBTDB_SOVER@
2058 LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER)
2059 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
2060 LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@
2061 LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h
2063 $(LIBTDB_SYMS): $(LIBTDB_HEADERS)
2064 @$(MKSYMS_SH) $(AWK) $@ $(LIBTDB_HEADERS)
2066 $(LIBTDB_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBTDB_OBJ) $(LIBTDB_SYMS)
2067 @echo Linking shared library $@
2068 @$(SHLD_DSO) $(LIBTDB_OBJ) $(LIBREPLACE_LIBS) $(TDB_DEPS) \
2069 @SONAMEFLAG@`basename $@`
2071 $(LIBTDB_SHARED_TARGET): $(LIBTDB_SHARED_TARGET_SONAME)
2072 @rm -f $@
2073 @ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` $@
2075 $(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
2076 @echo Linking non-shared library $@
2077 @-$(AR) -rc $@ $(LIBTDB_OBJ0)
2079 libtdb: $(LIBTDB)
2081 cleanlibtdb::
2082 -rm -f \
2083 $(LIBTDB_SYMS) \
2084 $(LIBTDB_STATIC_TARGET) \
2085 $(LIBTDB_SHARED_TARGET) \
2086 $(LIBTDB_SHARED_TARGET_SONAME)
2089 installlibtdb:: installdirs libtdb
2090 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2091 -$(INSTALLLIBCMD_SH) $(LIBTDB_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2092 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2093 -if test -r $(LIBTDB_SHARED_TARGET_SONAME) ; then \
2094 ln -f -s `basename $(LIBTDB_SHARED_TARGET_SONAME)` \
2095 $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)` ; \
2097 -$(INSTALLLIBCMD_A) $(LIBTDB_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2098 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2099 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTDB_HEADERS) $(DESTDIR)${prefix}/include
2101 uninstalllibtdb::
2102 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET)`
2103 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_SHARED_TARGET_SONAME)`
2104 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBTDB_STATIC_TARGET)`
2105 -rm -f $(DESTDIR)${prefix}/include/tdb.h
2107 libs:: libtdb
2108 installlibs:: @INSTALL_LIBTDB@
2109 uninstalllibs:: @UNINSTALL_LIBTDB@
2110 cleanlibs:: cleanlibtdb
2111 shlibs test_shlibs: @LIBTDB_SHARED@
2113 showlibtdb:
2114 @echo ""
2115 @echo "LIBTDB_SHARED = @LIBTDB_SHARED@"
2116 @echo "LIBTDB_STATIC = @LIBTDB_STATIC@"
2117 @echo "LIBTDB_LIBS = $(LIBTDB_LIBS)"
2118 @echo ""
2119 @echo "LIBTDB_SHARED_TARGET = $(LIBTDB_SHARED_TARGET)"
2120 @echo "LIBTDB_SOVER = $(LIBTDB_SOVER)"
2121 @echo "LIBTDB_SHARED TARGET_SONAME = $(LIBTDB_SHARED_TARGET_SONAME)"
2122 @echo "LIBTDB_STATIC_TARGET = $(LIBTDB_STATIC_TARGET)"
2123 @echo "LIBTDB = $(LIBTDB)"
2125 showlibs:: showlibtdb
2127 #-------------------------------------------------------------------
2129 # libwbclient
2131 #-------------------------------------------------------------------
2133 LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
2134 ../nsswitch/libwbclient/wbc_util.o \
2135 ../nsswitch/libwbclient/wbc_pwd.o \
2136 ../nsswitch/libwbclient/wbc_idmap.o \
2137 ../nsswitch/libwbclient/wbc_sid.o \
2138 ../nsswitch/libwbclient/wbc_guid.o \
2139 ../nsswitch/libwbclient/wbc_pam.o
2141 LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
2142 $(WBCOMMON_OBJ) \
2143 $(LIBREPLACE_OBJ) \
2144 ../lib/util/blocking.o \
2145 $(SOCKET_WRAPPER_OBJ)
2147 LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
2148 LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
2149 LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER)
2150 LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
2151 LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
2152 LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
2154 $(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
2155 @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
2157 $(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
2158 @echo Linking shared library $@
2159 @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
2160 @SONAMEFLAG@`basename $@`
2162 $(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2163 @rm -f $@
2164 @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
2166 $(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2167 @echo Linking non-shared library $@
2168 @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
2170 libwbclient: $(LIBWBCLIENT)
2172 cleanlibwbclient::
2173 -rm -f \
2174 $(LIBWBCLIENT_SYMS) \
2175 $(LIBWBCLIENT_STATIC_TARGET) \
2176 $(LIBWBCLIENT_SHARED_TARGET) \
2177 $(LIBWBCLIENT_SHARED_TARGET_SONAME)
2179 installlibwbclient:: installdirs libwbclient
2180 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2181 -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2182 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2183 -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
2184 ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
2185 $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
2187 -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
2188 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2189 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2191 uninstalllibwbclient::
2192 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
2193 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
2194 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
2195 -rm -f $(DESTDIR)${prefix}/include/wbclient.h
2197 libs:: libwbclient
2198 installlibs:: @INSTALL_LIBWBCLIENT@
2199 uninstalllibs:: uninstalllibwbclient
2200 cleanlibs:: cleanlibwbclient
2201 shlibs test_shlibs: @LIBWBCLIENT_SHARED@
2203 showlibwbclient:
2204 @echo ""
2205 @echo "LIBWBCLIENT_SHARED = @LIBWBCLIENT_SHARED@"
2206 @echo "LIBWBCLIENT_STATIC = @LIBWBCLIENT_STATIC@"
2207 @echo "LIBWBCLIENT_LIBS = $(LIBWBCLIENT_LIBS)"
2208 @echo ""
2209 @echo "LIBWBCLIENT_SHARED_TARGET = $(LIBWBCLIENT_SHARED_TARGET)"
2210 @echo "LIBWBCLIENT_SOVER = $(LIBWBCLIENT_SOVER)"
2211 @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
2212 @echo "LIBWBCLIENT_STATIC_TARGET = $(LIBWBCLIENT_STATIC_TARGET)"
2213 @echo "LIBWBCLIENT = $(LIBWBCLIENT)"
2215 showlibs:: showlibwbclient
2218 #-------------------------------------------------------------------
2220 # libaddns
2222 #-------------------------------------------------------------------
2225 LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@
2226 LIBADDNS_SOVER=@LIBADDNS_SOVER@
2227 LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER)
2228 LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@
2229 LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@
2230 #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@
2231 LIBADDNS_HEADERS=$(srcdir)/libaddns/addns.h
2233 $(LIBADDNS_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBADDNS_OBJ) $(LIBTALLOC)
2234 @echo Linking shared library $@
2235 @$(SHLD_DSO) $(LIBADDNS_OBJ) $(LIBS) \
2236 $(KRB5LIBS) $(UUID_LIBS) $(LIBTALLOC_LIBS) \
2237 @SONAMEFLAG@`basename $@`
2239 $(LIBADDNS_SHARED_TARGET): $(LIBADDNS_SHARED_TARGET_SONAME)
2240 @rm -f $@
2241 @ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` $@
2243 $(LIBADDNS_STATIC_TARGET): $(BINARY_PREREQS) $(LIBADDNS_OBJ0)
2244 @echo Linking non-shared library $@
2245 @-$(AR) -rc $@ $(LIBADDNS_OBJ0)
2247 libaddns: $(LIBADDNS)
2249 cleanlibaddns::
2250 -rm -f \
2251 $(LIBADDNS_SHARED_TARGET) \
2252 $(LIBADDNS_SHARED_TARGET_SONAME) \
2253 $(LIBADDNS_STATIC_TARGET)
2255 installlibaddns:: installdirs libaddns
2256 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2257 -$(INSTALLLIBCMD_SH) $(LIBADDNS_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2258 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2259 -if test -r $(LIBADDNS_SHARED_TARGET_SONAME) ; then \
2260 ln -f -s `basename $(LIBADDNS_SHARED_TARGET_SONAME)` \
2261 $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)` ; \
2263 -$(INSTALLLIBCMD_A) $(LIBADDNS_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2265 uninstalllibaddns::
2266 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET_SONAME)`
2267 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_SHARED_TARGET)`
2268 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBADDNS_STATIC_TARGET)`
2270 libs:: libaddns
2271 installlibs:: @INSTALL_LIBADDNS@
2272 uninstalllibs:: @UNINSTALL_LIBADDNS@
2273 cleanlibs:: cleanlibaddns
2274 shlibs test_shlibs: @LIBADDNS_SHARED@
2276 showlibaddns:
2277 @echo ""
2278 @echo "LIBADDNS_SHARED = @LIBADDNS_SHARED@"
2279 @echo "LIBADDNS_STATIC = @LIBADDNS_STATIC@"
2280 @echo "LIBADDNS_LIBS = $(LIBADDNS_LIBS)"
2281 @echo ""
2282 @echo "LIBADDNS_SHARED_TARGET = $(LIBADDNS_SHARED_TARGET)"
2283 @echo "LIBADDNS_SOVER = $(LIBADDNS_SOVER)"
2284 @echo "LIBADDNS_SHARED TARGET_SONAME = $(LIBADDNS_SHARED_TARGET_SONAME)"
2285 @echo "LIBADDNS_STATIC_TARGET = $(LIBADDNS_STATIC_TARGET)"
2286 @echo "LIBADDNS = $(LIBADDNS)"
2288 showlibs:: showlibaddns
2290 #-------------------------------------------------------------------
2292 # libnetapi
2294 #-------------------------------------------------------------------
2296 LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
2297 lib/netapi/cm.o \
2298 librpc/gen_ndr/ndr_libnetapi.o \
2299 lib/netapi/libnetapi.o \
2300 lib/netapi/joindomain.o \
2301 lib/netapi/serverinfo.o \
2302 lib/netapi/getdc.o \
2303 lib/netapi/user.o \
2304 lib/netapi/group.o \
2305 lib/netapi/localgroup.o \
2306 lib/netapi/samr.o \
2307 lib/netapi/sid.o \
2308 lib/netapi/share.o \
2309 lib/netapi/file.o \
2310 lib/netapi/shutdown.o \
2311 lib/netapi/netlogon.o
2313 LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
2314 $(LIBSMBCONF_OBJ) \
2315 $(REG_SMBCONF_OBJ) \
2316 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
2317 $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
2318 $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
2319 $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
2320 $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
2321 auth/token_util.o \
2322 $(LIBCLI_INITSHUTDOWN_OBJ) \
2323 $(LIBCLI_WKSSVC_OBJ) \
2324 $(LIBCLI_SRVSVC_OBJ) \
2325 $(LIBCLI_LSA_OBJ) \
2326 $(LIBCLI_SAMR_OBJ) \
2327 $(LIBCLI_NETLOGON_OBJ) \
2328 $(RPC_CLIENT_SCHANNEL_OBJ) \
2329 rpc_client/init_netlogon.o \
2330 rpc_client/init_samr.o
2332 LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
2333 LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
2334 LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER)
2335 LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
2336 LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
2337 LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
2339 $(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
2340 @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
2342 $(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2343 @echo Linking shared library $@
2344 @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
2345 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2346 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
2347 @SONAMEFLAG@`basename $@`
2349 $(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
2350 @rm -f $@
2351 @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
2353 $(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
2354 @echo Linking non-shared library $@
2355 @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
2357 libnetapi: $(LIBNETAPI)
2359 cleanlibnetapi::
2360 -rm -f \
2361 $(LIBNETAPI_SYMS) \
2362 $(LIBNETAPI_STATIC_TARGET) \
2363 $(LIBNETAPI_SHARED_TARGET) \
2364 $(LIBNETAPI_SHARED_TARGET_SONAME)
2366 installlibnetapi:: installdirs libnetapi
2367 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2368 -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2369 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2370 -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
2371 ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
2372 $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
2374 -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2375 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2376 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
2378 uninstalllibnetapi::
2379 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
2380 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
2381 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
2382 -rm -f $(DESTDIR)${prefix}/include/netapi.h
2384 libs:: libnetapi
2385 installlibs:: @INSTALL_LIBNETAPI@
2386 uninstalllibs:: @UNINSTALL_LIBNETAPI@
2387 cleanlibs:: cleanlibnetapi
2388 shlibs test_shlibs: @LIBNETAPI_SHARED@
2390 showlibnetapi:
2391 @echo ""
2392 @echo "LIBNETAPI_SHARED = @LIBNETAPI_SHARED@"
2393 @echo "LIBNETAPI_STATIC = @LIBNETAPI_STATIC@"
2394 @echo "LIBNETAPI_LIBS = $(LIBNETAPI_LIBS)"
2395 @echo ""
2396 @echo "LIBNETAPI_SHARED_TARGET = $(LIBNETAPI_SHARED_TARGET)"
2397 @echo "LIBNETAPI_SOVER = $(LIBNETAPI_SOVER)"
2398 @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
2399 @echo "LIBNETAPI_STATIC_TARGET = $(LIBNETAPI_STATIC_TARGET)"
2400 @echo "LIBNETAPI = $(LIBNETAPI)"
2402 showlibs:: showlibnetapi
2404 #-------------------------------------------------------------------
2406 # libsmbclient
2408 #-------------------------------------------------------------------
2410 LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
2411 LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
2412 LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
2413 LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
2414 LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
2415 LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
2416 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
2418 $(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
2419 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
2421 $(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2422 @echo Linking shared library $@
2423 @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
2424 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
2425 $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
2426 @SONAMEFLAG@`basename $@`
2428 $(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
2429 @rm -f $@
2430 @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
2432 $(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
2433 @echo Linking non-shared library $@
2434 @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
2436 libsmbclient: $(LIBSMBCLIENT)
2438 cleanlibsmbclient::
2439 -rm -f \
2440 $(LIBSMBCLIENT_SHARED_TARGET) \
2441 $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
2442 $(LIBSMBCLIENT_STATIC_TARGET)
2444 installlibsmbclient:: installdirs libsmbclient
2445 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2446 -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2447 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2448 -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
2449 ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
2450 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
2452 -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2453 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2454 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
2456 installclientlib:: installlibsmbclient
2458 uninstalllibsmbclient::
2459 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
2460 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
2461 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
2462 -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
2464 uninstallclientlib:: uninstalllibsmbclient
2466 libs:: libsmbclient
2467 installlibs:: @INSTALL_LIBSMBCLIENT@
2468 uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
2469 cleanlibs:: cleanlibsmbclient
2470 shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
2472 showlibsmbclient:
2473 @echo ""
2474 @echo "LIBSMBCLIENT_SHARED = @LIBSMBCLIENT_SHARED@"
2475 @echo "LIBSMBCLIENT_STATIC = @LIBSMBCLIENT_STATIC@"
2476 @echo "LIBSMBCLIENT_LIBS = $(LIBSMBCLIENT_LIBS)"
2477 @echo ""
2478 @echo "LIBSMBCLIENT_SHARED_TARGET = $(LIBSMBCLIENT_SHARED_TARGET)"
2479 @echo "LIBSMBCLIENT_SOVER = $(LIBSMBCLIENT_SOVER)"
2480 @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
2481 @echo "LIBSMBCLIENT_STATIC_TARGET = $(LIBSMBCLIENT_STATIC_TARGET)"
2482 @echo "LIBSMBCLIENT = $(LIBSMBCLIENT)"
2484 showlibs:: showlibsmbclient
2486 #-------------------------------------------------------------------
2488 # libsmbsharemodes
2490 #-------------------------------------------------------------------
2492 LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o
2494 LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
2496 LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
2497 LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
2498 LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
2499 LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
2500 LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
2501 LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
2502 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
2504 $(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
2505 @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
2507 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDB)
2508 @echo Linking shared library $@
2509 @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
2510 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
2511 @SONAMEFLAG@`basename $@`
2513 $(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
2514 @rm -f $@
2515 @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
2517 $(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
2518 @echo Linking non-shared library $@
2519 @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
2521 libsmbsharemodes: $(LIBSMBSHAREMODES)
2523 cleanlibsmbsharemodes::
2524 -rm -f \
2525 $(LIBSMBSHAREMODES_SHARED_TARGET) \
2526 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
2527 $(LIBSMBSHAREMODES_STATIC_TARGET)
2529 installlibsmbsharemodes:: installdirs libsmbsharemodes
2530 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
2531 -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
2532 @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2533 -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
2534 ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
2535 $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
2537 -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
2538 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
2539 -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
2541 uninstalllibsmbsharemodes::
2542 -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
2543 -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
2544 -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
2545 -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
2547 libs:: libsmbsharemodes
2548 installlibs:: @INSTALL_LIBSMBSHAREMODES@
2549 uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
2550 cleanlibs:: cleanlibsmbsharemodes
2551 shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
2553 showlibsmbsharemodes:
2554 @echo ""
2555 @echo "LIBSMBSHAREMODES_SHARED = @LIBSMBSHAREMODES_SHARED@"
2556 @echo "LIBSMBSHAREMODES_STATIC = @LIBSMBSHAREMODES_STATIC@"
2557 @echo "LIBSMBSHAREMODES_TARGET = @LIBSMBSHAREMODES_TARGET@"
2558 @echo "LIBSMBSHAREMODES_LIBS = $(LIBSMBSHAREMODES_LIBS)"
2559 @echo ""
2560 @echo "LIBSMBSHAREMODES_SHARED_TARGET = $(LIBSMBSHAREMODES_SHARED_TARGET)"
2561 @echo "LIBSMBSHAREMODES_SOVER = $(LIBSMBSHAREMODES_SOVER)"
2562 @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
2563 @echo "LIBSMBSHAREMODES_STATIC_TARGET = $(LIBSMBSHAREMODES_STATIC_TARGET)"
2564 @echo "LIBSMBSHAREMODES = $(LIBSMBSHAREMODES)"
2566 showlibs:: showlibsmbsharemodes
2568 #-------------------------------------------------------------------
2570 # libbigballofmud
2572 #-------------------------------------------------------------------
2574 # This is probably wrong for anything other than the GNU linker.
2575 bin/libbigballofmud.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBBIGBALLOFMUD_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2576 @echo Linking shared library $@
2577 @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBBIGBALLOFMUD_OBJ) \
2578 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2579 $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS) -lz \
2580 @SONAMEFLAG@`basename $@`.$(LIBBIGBALLOFMUD_MAJOR)
2581 ln -snf libbigballofmud.so bin/libbigballofmud.so.0
2583 # It would be nice to build a static bigballofmud too, but when I try
2584 # I get linker errors about dl_open and similar things. I'm not sure if
2585 # it can be fixed or if they just can't be called from a static
2586 # library.
2588 #####################################################################
2590 # shared modules
2592 #####################################################################
2594 # Linker command to link our shared libraries:
2595 SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
2596 -o $@ @SONAMEFLAG@`basename $@`
2597 # Linker command to link samba internal plugin modules:
2598 SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
2599 -o $@ @SONAMEFLAG@`basename $@`
2601 bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
2602 @echo "Linking $@"
2603 @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
2605 bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
2606 @echo "Linking $@"
2607 @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
2609 bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
2610 @echo "Linking $@"
2611 @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
2613 bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
2614 @echo "Linking $@"
2615 @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
2617 bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
2618 @echo "Linking $@"
2619 @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
2621 bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
2622 @echo "Linking $@"
2623 @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
2625 bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
2626 @echo "Linking $@"
2627 @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
2629 bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
2630 @echo "Linking $@"
2631 @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
2633 bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
2634 @echo "Linking $@"
2635 @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
2637 bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
2638 @echo "Linking $@"
2639 @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
2641 bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
2642 @echo "Linking $@"
2643 @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
2645 bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
2646 @echo "Linking $@"
2647 @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
2649 bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
2650 @echo "Linking $@"
2651 @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
2653 bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
2654 @echo "Linking $@"
2655 @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
2657 bin/winbindd@EXEEXT@: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
2658 @echo "Linking $@"
2659 @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
2660 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
2661 $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) \
2662 $(ZLIB_LIBS)
2664 bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDB)
2665 @echo "Linking $@"
2666 @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
2667 $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
2668 $(LIBTDB_LIBS)
2670 @WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
2671 @echo "Linking $@"
2672 @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
2673 $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
2674 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2676 @WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDB)
2677 @echo "Linking $@"
2678 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
2679 $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
2680 @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
2682 bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
2683 @echo "Linking $@"
2684 @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
2685 @SONAMEFLAG@`basename $@`
2687 bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
2688 @echo "Linking shared library $@"
2689 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
2690 $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
2692 ##########
2693 # Plugins:
2694 ##########
2696 bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
2697 @echo "Building plugin $@"
2698 @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
2700 bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
2701 @echo "Building plugin $@"
2702 @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
2704 bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
2705 @echo "Building plugin $@"
2706 @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
2708 bin/netlogond.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_NETLOGOND_OBJ)
2709 @echo "Building plugin $@"
2710 @$(SHLD_MODULE) $(AUTH_NETLOGOND_OBJ)
2712 bin/smbserver.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SERVER_OBJ)
2713 @echo "Building plugin $@"
2714 @$(SHLD_MODULE) $(AUTH_SERVER_OBJ)
2716 bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
2717 @echo "Building plugin $@"
2718 @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
2720 bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
2721 @echo "Building plugin $@"
2722 @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
2724 bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
2725 @echo "Building plugin $@"
2726 @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
2728 bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
2729 @echo "Building plugin $@"
2730 @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
2732 bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o
2733 @echo "Building plugin $@"
2734 @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o $(LDAP_LIBS)
2736 bin/ads.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ads.o
2737 @echo "Building plugin $@"
2738 @$(SHLD_MODULE) passdb/pdb_ads.o
2740 bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
2741 @echo "Building plugin $@"
2742 @$(SHLD_MODULE) passdb/pdb_tdb.o
2744 bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
2745 @echo "Building plugin $@"
2746 @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
2748 bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
2749 @echo "Building plugin $@"
2750 @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
2752 bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
2753 @echo "Building plugin $@"
2754 @$(SHLD_MODULE) winbindd/idmap_rid.o
2756 bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
2757 @echo "Building plugin $@"
2758 @$(SHLD_MODULE) winbindd/idmap_passdb.o
2760 bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
2761 @echo "Building plugin $@"
2762 @$(SHLD_MODULE) winbindd/idmap_ad.o
2764 bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
2765 @echo "Building plugin $@"
2766 @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
2768 bin/adex.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_ADEX_OBJ)
2769 @echo "Building plugin $@"
2770 @$(SHLD_MODULE) $(IDMAP_ADEX_OBJ)
2772 bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2773 @echo "Building plugin $@"
2774 @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
2776 bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2777 @echo "Building plugin $@"
2778 @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
2780 bin/weird.@SHLIBEXT@: $(BINARY_PREREQS) $(DEVEL_HELP_WEIRD_OBJ)
2781 @echo "Building plugin $@"
2782 @$(SHLD_MODULE) $(DEVEL_HELP_WEIRD_OBJ)
2784 bin/CP850.@SHLIBEXT@: $(BINARY_PREREQS) $(CP850_OBJ)
2785 @echo "Building plugin $@"
2786 @$(SHLD_MODULE) $(CP850_OBJ)
2788 bin/CP437.@SHLIBEXT@: $(BINARY_PREREQS) $(CP437_OBJ)
2789 @echo "Building plugin $@"
2790 @$(SHLD_MODULE) $(CP437_OBJ)
2792 bin/macosxfs.@SHLIBEXT@: $(BINARY_PREREQS) $(CHARSET_MACOSXFS_OBJ)
2793 @echo "Building plugin $@"
2794 @$(SHLD_MODULE) $(CHARSET_MACOSXFS_OBJ) -framework CoreFoundation
2796 # NOTE, there is no build rule for a dynamic default VFS module because
2797 # this one MUST MUST MUST be built statically.
2799 bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
2800 @echo "Building plugin $@"
2801 @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
2803 bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
2804 @echo "Building plugin $@"
2805 @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
2807 bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
2808 @echo "Building plugin $@"
2809 @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
2811 bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
2812 @echo "Building plugin $@"
2813 @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
2815 bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
2816 @echo "Building plugin $@"
2817 @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
2819 bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
2820 @echo "Building plugin $@"
2821 @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
2823 bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
2824 @echo "Building plugin $@"
2825 @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
2827 bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
2828 @echo "Building plugin $@"
2829 @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
2831 bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
2832 @echo "Building plugin $@"
2833 @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
2835 bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
2836 @echo "Building plugin $@"
2837 @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
2839 bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
2840 @echo "Building plugin $@"
2841 @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
2843 bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
2844 @echo "Building plugin $@"
2845 @$(SHLD_MODULE) $(VFS_CAP_OBJ)
2847 bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
2848 @echo "Building plugin $@"
2849 @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
2851 bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
2852 @echo "Building plugin $@"
2853 @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
2855 bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
2856 @echo "Building plugin $@"
2857 @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
2859 bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
2860 @echo "Building plugin $@"
2861 @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
2863 bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
2864 @echo "Building plugin $@"
2865 @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
2867 bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
2868 @echo "Building plugin $@"
2869 @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
2871 bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
2872 @echo "Building plugin $@"
2873 @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
2875 bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
2876 @echo "Building plugin $@"
2877 @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ)
2879 bin/irixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_IRIXACL_OBJ)
2880 @echo "Building plugin $@"
2881 @$(SHLD_MODULE) $(VFS_IRIXACL_OBJ)
2883 bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
2884 @echo "Building plugin $@"
2885 @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
2887 bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
2888 @echo "Building plugin $@"
2889 @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
2891 bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
2892 @echo "Building plugin $@"
2893 @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
2895 bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
2896 @echo "Building plugin $@"
2897 @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
2899 bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
2900 @echo "Building plugin $@"
2901 @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
2903 bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
2904 @echo "Building plugin $@"
2905 @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
2907 bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
2908 @echo "Building plugin $@"
2909 @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
2911 bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
2912 @echo "Building plugin $@"
2913 @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
2915 bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
2916 @echo "Building plugin $@"
2917 @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
2919 bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
2920 @echo "Building plugin $@"
2921 @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
2923 bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
2924 @echo "Building plugin $@"
2925 @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
2927 bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
2928 @echo "Building plugin $@"
2929 @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
2931 bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
2932 @echo "Building plugin $@"
2933 @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
2935 bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
2936 @echo "Building plugin $@"
2937 @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
2939 bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
2940 @echo "Building plugin $@"
2941 @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
2943 bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
2944 @echo "Building plugin $@"
2945 @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
2947 bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2948 @echo "Building plugin $@"
2949 @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
2951 bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
2952 @echo "Building plugin $@"
2953 @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
2955 bin/onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_OBJ)
2956 @echo "Building plugin $@"
2957 @$(SHLD_MODULE) $(VFS_ONEFS_OBJ) @ONEFS_LIBS@
2959 bin/onefs_shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2960 @echo "Building plugin $@"
2961 @$(SHLD_MODULE) $(VFS_ONEFS_SHADOW_COPY_OBJ)
2963 bin/pc_onefs.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_ONEFS_OBJ)
2964 @echo "Building plugin $@"
2965 @$(SHLD_MODULE) $(PERFCOUNT_ONEFS_OBJ)
2967 bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
2968 @echo "Building plugin $@"
2969 @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
2971 bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
2972 @echo "Building plugin $@"
2973 @$(SHLD_MODULE) libgpo/gpext/registry.o
2975 bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
2976 @echo "Building plugin $@"
2977 @$(SHLD_MODULE) libgpo/gpext/scripts.o
2979 bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
2980 @echo "Building plugin $@"
2981 @$(SHLD_MODULE) libgpo/gpext/security.o
2983 bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
2984 @echo "Building plugin $@"
2985 @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
2987 bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
2988 @echo "Building plugin $@"
2989 @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
2991 bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
2992 @echo "Building plugin $@"
2993 @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
2995 bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
2996 @echo "Building plugin $@"
2997 @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
2999 #########################################################
3000 ## IdMap NSS plugins
3002 ## None here right now
3003 #########################################################
3005 bin/wbinfo@EXEEXT@: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3006 @echo Linking $@
3007 @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
3008 $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
3009 $(LIBWBCLIENT_LIBS)
3011 bin/ntlm_auth@EXEEXT@: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
3012 $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3013 @echo Linking $@
3014 @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
3015 $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \
3016 $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3017 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
3019 bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
3020 @echo "Linking shared library $@"
3021 @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
3022 $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
3023 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)
3025 bin/tdbbackup@EXEEXT@: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDB)
3026 @echo Linking $@
3027 @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
3028 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3030 bin/tdbtool@EXEEXT@: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3031 @echo Linking $@
3032 @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
3033 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3035 bin/tdbdump@EXEEXT@: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDB)
3036 @echo Linking $@
3037 @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDB_LIBS) $(LIBREPLACE_LIBS)
3039 bin/tdbtorture@EXEEXT@: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3040 @echo Linking $@
3041 @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
3042 $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3044 bin/t_strcmp@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strcmp.o
3045 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3046 torture/t_strcmp.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3048 bin/t_strstr@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strstr.o
3049 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3050 torture/t_strstr.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3052 bin/t_strappend@EXEEXT@: $(BINARY_PREREQS) $(LIBTALLOC) bin/libbigballofmud.@SHLIBEXT@ torture/t_strappend.o
3053 $(CC) -o $@ $(DYNEXP) $(LIBS) $(LIBTALLOC_LIBS) \
3054 torture/t_strappend.o -L ./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3056 bin/t_stringoverflow@EXEEXT@: $(BINARY_PREREQS) bin/libbigballofmud.@SHLIBEXT@ torture/t_stringoverflow.o
3057 $(CC) -o $@ $(DYNEXP) torture/t_stringoverflow.o \
3058 -L./bin -lbigballofmud $(LIBWBCLIENT_LIBS)
3060 bin/timelimit@EXEEXT@: script/tests/timelimit.o
3061 @echo Linking $@
3062 @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
3064 bin/rpc_open_tcp@EXEEXT@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3065 @echo "Linking $@"
3066 @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
3067 $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
3068 $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
3070 bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3071 @echo "Linking $@"
3072 @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
3073 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3074 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3075 $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3077 bin/dbwrap_tool@EXEEXT@: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDB)
3078 @echo "Linking $@"
3079 @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
3080 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3081 $(LDAP_LIBS) \
3082 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3084 install-dbwrap_tool:: bin/dbwrap_tool@EXEEXT@
3085 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3087 bin/dbwrap_torture@EXEEXT@: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
3088 @echo "Linking $@"
3089 @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
3090 $(LDFLAGS) $(DYNEXP) $(LIBS) \
3091 $(LDAP_LIBS) \
3092 $(POPT_LIBS) \
3093 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3095 install-dbwrap_torture:: bin/dbwrap_torture@EXEEXT@
3096 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
3098 bin/split_tokens@EXEEXT@: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
3099 @echo "Linking $@"
3100 @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
3101 $(LDFLAGS) $(DYNEXP) \
3102 $(LIBS) $(POPT_LIBS) \
3103 $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
3104 $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
3106 install:: installservers installbin installman \
3107 installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
3108 @INSTALL_PAM_MODULES@ installlibs installmo
3110 install-everything:: install installmodules
3112 # DESTDIR is used here to prevent packagers wasting their time
3113 # duplicating the Makefile. Remove it and you will have the privelege
3114 # of package each samba release for muliple versions of multiple
3115 # distributions and operating systems, or at least supplying patches
3116 # to all the packaging files required for this, prior to committing
3117 # the removal of DESTDIR. Do not remove it even though you think it
3118 # is not used
3120 installdirs::
3121 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
3122 $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
3123 $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
3124 $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
3126 installservers:: all installdirs
3127 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3129 installbin:: all installdirs
3130 @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3132 # Some symlinks are required for the 'probing' of modules.
3133 # This mechanism should go at some point..
3134 installmodules:: modules installdirs
3135 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3136 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3137 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3138 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3139 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
3140 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3141 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3142 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3143 @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3144 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
3145 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam_compat.@SHLIBEXT@
3146 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ ldapsam_compat.@SHLIBEXT@
3147 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
3148 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
3149 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
3150 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
3151 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
3152 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/adex.@SHLIBEXT@ adex.@SHLIBEXT@
3153 @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
3155 installscripts:: installdirs
3156 @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3158 installdat:: installdirs
3159 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3161 installmsg:: installdirs
3162 @$(SHELL) $(srcdir)/script/installmsg.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
3164 installswat:: installdirs installmsg
3165 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3167 installpammodules:: $(PAM_MODULES)
3168 @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
3169 @for module in $(PAM_MODULES); do \
3170 echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3171 $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
3172 "$(DESTDIR)/$(PAMMODULESDIR)"; \
3173 done
3175 # revert to the previously installed version
3176 revert::
3177 @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
3178 @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
3180 installman:: installdirs
3181 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
3183 installmo:: all installdirs
3184 @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3186 .PHONY: showlayout
3188 showlayout::
3189 @echo "Samba will be installed into:"
3190 @echo " prefix: $(prefix)"
3191 @echo " bindir: $(BINDIR)"
3192 @echo " sbindir: $(SBINDIR)"
3193 @echo " libdir: $(LIBDIR)"
3194 @echo " modulesdir: $(MODULESDIR)"
3195 @echo " vardir: $(VARDIR)"
3196 @echo " mandir: $(MANDIR)"
3197 @echo " privatedir: $(PRIVATE_DIR)"
3198 @echo " configdir: $(CONFIGDIR)"
3199 @echo " lockdir: $(LOCKDIR)"
3200 @echo " statedir: $(STATEDIR)"
3201 @echo " cachedir: $(CACHEDIR)"
3202 @echo " piddir: $(PIDDIR)"
3203 @echo " swatdir: $(SWATDIR)"
3204 @echo " datadir: ${DATADIR}"
3205 @echo " codepagedir: $(CODEPAGEDIR)"
3208 uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
3210 uninstallmo::
3211 @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
3213 uninstallman::
3214 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
3216 uninstallservers::
3217 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
3219 uninstallbin::
3220 @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
3222 uninstallmodules::
3223 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
3224 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
3225 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(RPCLIBDIR) $(RPC_MODULES)
3226 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
3227 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(CHARSETLIBDIR) $(CHARSET_MODULES)
3228 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
3229 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
3230 @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
3232 uninstallscripts::
3233 @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
3235 uninstalldat::
3236 @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3238 uninstallmsg::
3239 @$(SHELL) $(srcdir)/script/uninstallmsg.sh $(DESTDIR) $(LIBDIR) $(srcdir)
3241 uninstallswat:: uninstallmsg
3242 @$(SHELL) $(srcdir)/script/uninstallswat.sh $(DESTDIR) $(SWATDIR) $(srcdir)
3244 uninstallpammodules::
3245 @for module in $(PAM_MODULES); do \
3246 echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
3247 rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
3248 done
3250 # Toplevel clean files
3251 TOPFILES=dynconfig.o localedir.o
3253 cleanlibs::
3254 -rm -f ../lib/*/*.o ../lib/*/*/*.o \
3255 ../lib/*/*.ho \
3256 ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
3257 ../librpc/*/*.o \
3258 ../libgpo/*.o ../libgpo/*/*.o \
3259 ../libds/*.o ../libds/*/*.o
3261 clean:: cleanlibs
3262 -rm -f include/build_env.h
3263 -rm -f smbd/build_options.c
3264 -rm -f $(PRECOMPILED_HEADER)
3265 -rm -f core */*~ *~ \
3266 */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
3267 ../testsuite/*/*.o \
3268 ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
3269 ../client/*.o \
3270 */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
3271 $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
3272 $(MODULES) $(TORTURE_PROGS) \
3273 $(EVERYTHING_PROGS) \
3274 bin/timelimit \
3275 .headers.stamp */src/*.o
3276 -rm -rf t_dir
3278 include/build_env.h: script/build_env.sh
3279 @echo Building include/build_env.h
3280 @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
3281 > $(builddir)/include/build_env.h
3283 proto::
3285 etags::
3286 find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
3288 ctags::
3289 ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
3291 realclean:: clean
3292 -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
3293 -rm -f script/installbin.sh script/uninstallbin.sh
3295 distclean:: realclean
3296 -rm -f smbadduser
3297 -rm -f include/config.h Makefile
3298 -rm -f config.status config.cache so_locations
3299 -rm -rf .deps TAGS
3301 realdistclean:: distclean
3302 -rm -f include/config.h.in
3303 -rm -f include/version.h
3304 -rm -f configure
3306 # this target is really just for my use. It only works on a limited
3307 # range of machines and is used to produce a list of potentially
3308 # dead (ie. unused) functions in the code. (tridge)
3309 finddead::
3310 nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
3311 nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
3312 comm -13 nmused.txt nmfns.txt
3315 # when configure.in is updated, reconfigure
3316 $(srcdir)/configure: $(srcdir)/configure.in
3317 @echo "WARNING: you need to rerun ./autogen.sh"
3319 config.status: $(srcdir)/configure
3320 @echo "WARNING: you need to run ./configure"
3322 Makefile: $(srcdir)/Makefile.in config.status
3323 @echo "WARNING: you need to run ./config.status"
3325 ######################################################################
3326 # Samba Testing Framework
3328 # Check shared libs for unresolved symbols
3329 test_shlibs:
3330 @echo "Testing $? "
3331 @$(LIB_PATH_VAR)=./bin && \
3332 export $(LIB_PATH_VAR) && \
3333 for module in $?; do \
3334 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3335 || exit 1; \
3336 done
3338 # Check for NSS module problems.
3339 test_nss_modules:: nss_modules
3340 @echo "Testing $(NSS_MODULES) "
3341 @$(LIB_PATH_VAR)=./bin && \
3342 export $(LIB_PATH_VAR) && \
3343 for module in $(NSS_MODULES); do \
3344 ./script/tests/dlopen.sh $(LIBDL) $${module} \
3345 || exit 1; \
3346 done
3348 # Check for PAM module problems. Specifically, check that every module we
3349 # built can actually be loaded by a minimal PAM-aware application.
3350 test_pam_modules:: pam_modules
3351 @echo "Testing $(PAM_MODULES) "
3352 @$(LIB_PATH_VAR)=./bin && \
3353 export $(LIB_PATH_VAR) && \
3354 for module in $(PAM_MODULES); do \
3355 ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
3356 || exit 1; \
3357 done
3361 ## Targets for 'make test'
3364 TEST_EXTRA_ARGS = ${smbtorture4_option} ${selftest_shrdir} ${selftest_custom_conf}
3366 oldtest:: all torture timelimit
3367 @echo Running Test suite
3368 @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}
3370 valgrindtest:: all torture timelimit
3371 @echo Running Test suite with valgrind
3372 @LIB_PATH_VAR=$(LIB_PATH_VAR) \
3373 NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3374 WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3375 SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3376 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
3377 PERL="$(PERL)" $(srcdir)/script/tests/selftest.sh ${selftest_prefix} all ${TEST_EXTRA_ARGS}
3379 selftestdir = ../selftest
3381 S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
3383 test:: all torture timelimit
3384 @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
3385 SAMBA4SHAREDDIR="$(builddir)/bin/shared" SMBTORTURE4=$(smbtorture4_path) \
3386 NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
3387 SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
3388 SOURCEDIR="$(srcdir)" \
3389 RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
3390 PERL="$(PERL)" PYTHON="$(PYTHON)" \
3391 $(srcdir)/selftest/s3-selftest.sh
3393 test-%:
3394 $(MAKE) test TESTS=$*
3396 buildfarm-test:
3397 $(MAKE) test RUN_FROM_BUILD_FARM=yes
3399 SELFTEST_TESTENV = dc
3401 testenv:
3402 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
3404 gdbtestenv:
3405 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3406 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3407 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3408 SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
3409 TESTS="--testenv"
3411 valgrindtestenv:
3412 $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
3413 NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
3414 WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
3415 SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
3416 TESTS="--testenv"
3419 # Check for Winbind struct 32/64bit padding
3420 test_wbpad:
3421 @echo "Testing winbind request/response structure for 32/64bit padding"
3422 @./script/tests/wb_pad.sh || exit 1;
3425 ## Examples:
3428 libsmbclient_examples: libsmbclient
3429 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
3431 clean_libsmbclient_examples:
3432 $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
3434 libnetapi_examples: libnetapi
3435 $(MAKE) -C lib/netapi/examples
3437 clean_libnetapi_examples:
3438 $(MAKE) -C lib/netapi/examples clean
3440 ../source4/configure: ../buildtools/scripts/configure.waf
3441 cd ../source4 && ./autogen.sh
3443 samba4-configure: ../source4/configure
3444 @$(MAKE) -C ../source4 reconfigure || ( cd ../source4 && \
3445 ./configure.developer --nonshared-binary=smbtorture --enable-auto-reconfigure )
3447 .PHONY: samba4-configure
3449 bin/smbtorture4: $(BINARY_PREREQS) samba4-configure
3450 cd ../source4 && ../buildtools/bin/waf build --targets=smbtorture
3451 cp ../source4/bin/smbtorture bin/smbtorture4
3453 bin/ndrdump4: $(BINARY_PREREQS) samba4-configure
3454 cd ../source4 && ../buildtools/bin/waf build --targets=ndrdump
3455 cp ../source4/bin/ndrdump bin/ndrdump4
3457 .PHONY: bin/smbtorture4