source: trunk/server/source3/Makefile.in@ 1000

Last change on this file since 1000 was 980, checked in by Silvan Scherrer, 9 years ago

samba server: adjust some mmap stuff and fix a Makefile issue

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