xref: /freebsd/crypto/krb5/src/config/pre.in (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1############################################################
2## config/pre.in
3## common prefix for all Makefile.in in the Kerberos V5 tree.
4##
5
6# These are set per-directory by autoconf 2.52 and 2.53:
7#  srcdir=@srcdir@
8#  top_srcdir=@top_srcdir@
9# but these are only set by autoconf 2.53, and thus not useful to us on
10# macOS yet (as of 10.2):
11#  abs_srcdir=@abs_srcdir@
12#  abs_top_srcdir=@abs_top_srcdir@
13#  builddir=@builddir@
14#  abs_builddir=@abs_builddir@
15#  top_builddir=@top_builddir@
16#  abs_top_builddir=@abs_top_builddir@
17# The "top" variables refer to the directory with the configure (or
18# config.status) script.
19
20WHAT = unix
21SHELL=/bin/sh
22
23all: all-$(WHAT)
24
25clean: clean-$(WHAT)
26
27distclean: distclean-$(WHAT)
28
29install: install-$(WHAT)
30
31check: check-$(WHAT)
32
33install-headers: install-headers-$(WHAT)
34
35##############################
36# Recursion rule support
37#
38
39# The commands for the recursion targets live in config/post.in.
40#
41# General form of recursion rules:
42#
43# Each recursive target foo-unix has related targets: foo-prerecurse,
44# foo-recurse, and foo-postrecurse
45#
46# The foo-recurse rule is in post.in.  It is what actually recursively
47# calls make.
48#
49# foo-recurse depends on foo-prerecurse, so any targets that must be
50# built before descending into subdirectories must be dependencies of
51# foo-prerecurse.
52#
53# foo-postrecurse depends on foo-recurse, but targets that must be
54# built after descending into subdirectories should be have
55# foo-recurse as dependencies in addition to being listed under
56# foo-postrecurse, to avoid ordering issues.
57#
58# The foo-prerecurse, foo-recurse, and foo-postrecurse rules are all
59# single-colon rules, to avoid nasty ordering problems with
60# double-colon rules.
61#
62# e.g.
63# all: includes foo
64# foo:
65#	echo foo
66# includes:
67#	echo bar
68# includes:
69#	echo baz
70#
71# will result in "bar", "foo", "baz" on AIX, and possibly others.
72all-unix: all-postrecurse
73all-postrecurse: all-recurse
74all-recurse: all-prerecurse
75
76all-prerecurse:
77all-postrecurse:
78
79clean-unix:: clean-postrecurse
80clean-postrecurse: clean-recurse
81clean-recurse: clean-prerecurse
82
83clean-prerecurse:
84clean-postrecurse:
85
86distclean-unix: distclean-postrecurse
87distclean-postrecurse: distclean-recurse
88distclean-recurse: distclean-prerecurse
89
90distclean-prerecurse:
91distclean-postrecurse:
92
93install-unix: install-postrecurse
94install-postrecurse: install-recurse
95install-recurse: install-prerecurse
96
97install-prerecurse:
98install-postrecurse:
99
100install-headers-unix: install-headers-postrecurse
101install-headers-postrecurse: install-headers-recurse
102install-headers-recurse: install-headers-prerecurse
103
104install-headers-prerecurse:
105install-headers-postrecurse:
106
107check-unix: check-postrecurse
108check-postrecurse: check-recurse
109check-recurse: check-prerecurse
110
111check-prerecurse:
112check-postrecurse:
113
114Makefiles: Makefiles-postrecurse
115Makefiles-postrecurse: Makefiles-recurse
116Makefiles-recurse: Makefiles-prerecurse
117
118Makefiles-prerecurse:
119Makefiles-postrecurse:
120
121generate-files-mac: generate-files-mac-postrecurse
122generate-files-mac-postrecurse: generate-files-mac-recurse
123generate-files-mac-recurse: generate-files-mac-prerecurse
124generate-files-mac-prerecurse:
125
126#
127# end recursion rule support
128##############################
129
130# Directory syntax:
131#
132# begin relative path
133REL=
134# this is magic... should only be used for preceding a program invocation
135C=./
136# "/" for UNIX, "\" for Windows; *sigh*
137S=/
138
139#
140srcdir = @srcdir@
141top_srcdir = @top_srcdir@
142VPATH = @srcdir@
143CONFIG_RELTOPDIR = @CONFIG_RELTOPDIR@
144
145# DEFS		set by configure
146# DEFINES	set by local Makefile.in
147# LOCALINCLUDES	set by local Makefile.in
148# CPPFLAGS	user override
149# CFLAGS	user override but starts off set by configure
150# WARN_CFLAGS	user override but starts off set by configure
151# PTHREAD_CFLAGS set by configure, not included in CFLAGS so that we
152#		don't pull the pthreads library into shared libraries
153# ASAN_FLAGS    set by configure when --enable-asan is used
154ALL_CFLAGS = $(DEFS) $(DEFINES) $(KRB_INCLUDES) $(LOCALINCLUDES) \
155	-DKRB5_DEPRECATED=1 \
156	-DKRB5_PRIVATE \
157	$(CPPFLAGS) $(CFLAGS) $(WARN_CFLAGS) $(PTHREAD_CFLAGS) $(ASAN_FLAGS)
158ALL_CXXFLAGS = $(DEFS) $(DEFINES) $(KRB_INCLUDES) $(LOCALINCLUDES) \
159	-DKRB5_DEPRECATED=1 \
160	-DKRB5_PRIVATE \
161	$(CPPFLAGS) $(CXXFLAGS) $(WARN_CXXFLAGS) $(PTHREAD_CFLAGS) \
162	$(ASAN_FLAGS)
163
164CFLAGS = @CFLAGS@
165CXXFLAGS = @CXXFLAGS@
166WARN_CFLAGS = @WARN_CFLAGS@
167WARN_CXXFLAGS = @WARN_CXXFLAGS@
168ASAN_FLAGS = @ASAN_FLAGS@
169PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
170PTHREAD_LIBS = @PTHREAD_LIBS@
171THREAD_LINKOPTS = $(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
172CPPFLAGS = @CPPFLAGS@
173DEFS = @DEFS@
174CC = @CC@
175CXX = @CXX@
176LD = $(PURE) @LD@
177KRB_INCLUDES = -I$(BUILDTOP)/include -I$(top_srcdir)/include
178LDFLAGS = @LDFLAGS@
179LIBS = @LIBS@
180
181INSTALL=@INSTALL@
182INSTALL_STRIP=
183INSTALL_PROGRAM=@INSTALL_PROGRAM@ $(INSTALL_STRIP)
184INSTALL_SCRIPT=@INSTALL_PROGRAM@
185INSTALL_DATA=@INSTALL_DATA@
186INSTALL_SHLIB=@INSTALL_SHLIB@
187INSTALL_SETUID=$(INSTALL) $(INSTALL_STRIP) -m 4755 -o root
188## This is needed because autoconf will sometimes define @exec_prefix@ to be
189## ${prefix}.
190prefix=@prefix@
191INSTALL_PREFIX=$(prefix)
192INSTALL_EXEC_PREFIX=@exec_prefix@
193exec_prefix=@exec_prefix@
194datarootdir=@datarootdir@
195localstatedir=@localstatedir@
196runstatedir=@runstatedir@
197datadir = @datadir@
198EXAMPLEDIR = $(datadir)/examples/krb5
199
200KRB5MANROOT = @mandir@
201ADMIN_BINDIR = @sbindir@
202SERVER_BINDIR = @sbindir@
203CLIENT_BINDIR =@bindir@
204PKGCONFIG_DIR = @libdir@/pkgconfig
205ADMIN_MANDIR = $(KRB5MANROOT)/man8
206SERVER_MANDIR = $(KRB5MANROOT)/man8
207CLIENT_MANDIR = $(KRB5MANROOT)/man1
208FILE_MANDIR = $(KRB5MANROOT)/man5
209ADMIN_CATDIR = $(KRB5MANROOT)/cat8
210SERVER_CATDIR = $(KRB5MANROOT)/cat8
211CLIENT_CATDIR = $(KRB5MANROOT)/cat1
212FILE_CATDIR = $(KRB5MANROOT)/cat5
213OVERVIEW_MANDIR = $(KRB5MANROOT)/man7
214OVERVIEW_CATDIR = $(KRB5MANROOT)/cat7
215KRB5_LIBDIR = @libdir@
216KRB5_INCDIR = @includedir@
217MODULE_DIR = @libdir@/krb5/plugins
218KRB5_DB_MODULE_DIR = $(MODULE_DIR)/kdb
219KRB5_PA_MODULE_DIR = $(MODULE_DIR)/preauth
220KRB5_AD_MODULE_DIR = $(MODULE_DIR)/authdata
221KRB5_LIBKRB5_MODULE_DIR = $(MODULE_DIR)/libkrb5
222KRB5_TLS_MODULE_DIR = $(MODULE_DIR)/tls
223KRB5_LOCALEDIR = @localedir@
224GSS_MODULE_DIR = @libdir@/gss
225KRB5_INCSUBDIRS = \
226	$(KRB5_INCDIR)/kadm5 \
227	$(KRB5_INCDIR)/krb5 \
228	$(KRB5_INCDIR)/gssapi \
229	$(KRB5_INCDIR)/gssrpc
230
231SKIPTESTS	= $(BUILDTOP)/skiptests
232
233RUNPYTEST	= PYTHONPATH=$(top_srcdir)/util VALGRIND="$(VALGRIND)" \
234			$(PYTHON)
235
236
237transform = @program_transform_name@
238
239RM = rm -f
240CP = cp
241MV = mv -f
242RANLIB = @RANLIB@
243AWK = @AWK@
244YACC = @YACC@
245PERL = @PERL@
246PYTHON = @PYTHON@
247AUTOCONF = autoconf
248AUTOCONFFLAGS =
249AUTOHEADER = autoheader
250AUTOHEADERFLAGS =
251MOVEIFCHANGED = $(top_srcdir)/config/move-if-changed
252
253TOPLIBD = $(BUILDTOP)/lib
254
255OBJEXT = o
256EXEEXT =
257
258#
259# variables for libraries, for use in linking programs
260# -- this may want to get broken out into a separate frag later
261#
262# invocation is like:
263# prog: foo.o bar.o $(KRB5_BASE_DEPLIBS)
264# 	$(CC_LINK) -o $@ foo.o bar.o $(KRB5_BASE_LIBS)
265
266CC_LINK=@CC_LINK@ $(ASAN_FLAGS)
267CXX_LINK=@CXX_LINK@ $(ASAN_FLAGS)
268
269# Makefile.in files which build programs can override the list of
270# directories to look for dependent libraries in (in the form -Ldir1
271# -Ldir2 ...) and also the list of rpath directories to search (in the
272# form dir1:dir2:...).
273PROG_LIBPATH=-L$(TOPLIBD)
274PROG_RPATH=$(KRB5_LIBDIR)
275
276# Library Makefile.in files can override this list of directories to
277# look for dependent libraries in (in the form -Ldir1 -Ldir2 ...) and
278# also the list of rpath directories to search (in the form
279# dir1:dir2:...)
280SHLIB_DIRS=-L$(TOPLIBD)
281SHLIB_RDIRS=$(KRB5_LIBDIR)
282
283# Multi-directory library Makefile.in files should override this list
284# of object files with the full list.
285STOBJLISTS=OBJS.ST
286
287# prefix (with no spaces after) for rpath flag to cc
288RPATH_FLAG=@RPATH_FLAG@
289
290# link flags to add PROG_RPATH to the rpath
291PROG_RPATH_FLAGS=@PROG_RPATH_FLAGS@
292
293# this gets set by configure to either $(STLIBEXT) or $(SHLIBEXT),
294# depending on whether we're building with shared libraries.
295DEPLIBEXT=@DEPLIBEXT@
296
297KDB5_PLUGIN_DEPLIBS = @KDB5_PLUGIN_DEPLIBS@
298KDB5_PLUGIN_LIBS = @KDB5_PLUGIN_LIBS@
299
300KADMCLNT_DEPLIB	= $(TOPLIBD)/libkadm5clnt_mit$(DEPLIBEXT)
301KADMSRV_DEPLIB	= $(TOPLIBD)/libkadm5srv_mit$(DEPLIBEXT)
302KDB5_DEPLIB	= $(TOPLIBD)/libkdb5$(DEPLIBEXT)
303GSSRPC_DEPLIB	= $(TOPLIBD)/libgssrpc$(DEPLIBEXT)
304GSS_DEPLIB	= $(TOPLIBD)/libgssapi_krb5$(DEPLIBEXT)
305KRB5_DEPLIB	= $(TOPLIBD)/libkrb5$(DEPLIBEXT)
306CRYPTO_DEPLIB	= $(TOPLIBD)/libk5crypto$(DEPLIBEXT)
307COM_ERR_DEPLIB	= $(COM_ERR_DEPLIB-@COM_ERR_VERSION@)
308COM_ERR_DEPLIB-sys = # empty
309COM_ERR_DEPLIB-intlsys = # empty
310COM_ERR_DEPLIB-k5 = $(TOPLIBD)/libcom_err$(DEPLIBEXT)
311COM_ERR_LIB = @COM_ERR_LIB@
312SUPPORT_LIBNAME=krb5support
313SUPPORT_DEPLIB	= $(TOPLIBD)/lib$(SUPPORT_LIBNAME)$(DEPLIBEXT)
314
315# These are forced to use ".a" as an extension because they're never
316# built shared.
317SS_DEPLIB	= $(SS_DEPLIB-@SS_VERSION@)
318SS_DEPLIB-k5	= $(TOPLIBD)/libss.a
319SS_DEPLIB-sys	=
320APPUTILS_DEPLIB	= $(TOPLIBD)/libapputils.a
321
322KRB5_BASE_DEPLIBS	= $(KRB5_DEPLIB) $(CRYPTO_DEPLIB) $(COM_ERR_DEPLIB) $(SUPPORT_DEPLIB)
323KDB5_DEPLIBS		= $(KDB5_DEPLIB) $(KDB5_PLUGIN_DEPLIBS)
324GSS_DEPLIBS		= $(GSS_DEPLIB)
325GSSRPC_DEPLIBS		= $(GSSRPC_DEPLIB) $(GSS_DEPLIBS)
326KADM_COMM_DEPLIBS	= $(GSSRPC_DEPLIBS) $(KDB5_DEPLIBS) $(GSSRPC_DEPLIBS)
327KADMSRV_DEPLIBS		= $(KADMSRV_DEPLIB) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS)
328KADMCLNT_DEPLIBS	= $(KADMCLNT_DEPLIB) $(KADM_COMM_DEPLIBS)
329
330# Header file dependencies we might override.
331# See util/depfix.sed.
332# Also see depend-verify-* in post.in, which wants to confirm that we're using
333# the in-tree versions.
334COM_ERR_VERSION = @COM_ERR_VERSION@
335COM_ERR_DEPS	= $(COM_ERR_DEPS-@COM_ERR_VERSION@)
336COM_ERR_DEPS-sys =
337COM_ERR_DEPS-intlsys =
338COM_ERR_DEPS-k5	= $(BUILDTOP)/include/com_err.h
339SS_VERSION	= @SS_VERSION@
340SS_DEPS		= $(SS_DEPS-@SS_VERSION@)
341SS_DEPS-sys	=
342SS_DEPS-k5	= $(BUILDTOP)/include/ss/ss.h $(BUILDTOP)/include/ss/ss_err.h
343VERTO_VERSION	= @VERTO_VERSION@
344VERTO_DEPS	= $(VERTO_DEPS-@VERTO_VERSION@)
345VERTO_DEPS-sys	=
346VERTO_DEPS-k5	= $(BUILDTOP)/include/verto.h
347
348# LIBS gets substituted in... e.g. -lnsl -lsocket
349
350# GEN_LIB is -lgen if needed for regexp
351GEN_LIB		= @GEN_LIB@
352
353# Editline or readline flags and libraries.
354RL_CFLAGS	= @RL_CFLAGS@
355RL_LIBS		= @RL_LIBS@
356
357SS_LIB		= $(SS_LIB-@SS_VERSION@)
358SS_LIB-sys	= @SS_LIB@
359SS_LIB-k5	= $(TOPLIBD)/libss.a $(RL_LIBS)
360KDB5_LIB	= -lkdb5 $(KDB5_PLUGIN_LIBS)
361
362VERTO_DEPLIB	= $(VERTO_DEPLIB-@VERTO_VERSION@)
363VERTO_DEPLIB-sys = # empty
364VERTO_DEPLIB-k5	= $(TOPLIBD)/libverto$(DEPLIBEXT)
365VERTO_CFLAGS	= @VERTO_CFLAGS@
366VERTO_LIBS	= @VERTO_LIBS@
367
368DL_LIB		= @DL_LIB@
369
370CMOCKA_LIBS	= @CMOCKA_LIBS@
371LDAP_LIBS	= @LDAP_LIBS@
372LMDB_LIBS	= @LMDB_LIBS@
373
374KRB5_LIB			= -lkrb5
375K5CRYPTO_LIB			= -lk5crypto
376GSS_KRB5_LIB			= -lgssapi_krb5
377SUPPORT_LIB			= -l$(SUPPORT_LIBNAME)
378
379# HESIOD_LIBS is -lhesiod...
380HESIOD_LIBS	= @HESIOD_LIBS@
381
382KRB5_BASE_LIBS	= $(KRB5_LIB) $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB) $(GEN_LIB) $(LIBS) $(DL_LIB)
383KDB5_LIBS	= $(KDB5_LIB) $(GSSRPC_LIBS)
384GSS_LIBS	= $(GSS_KRB5_LIB)
385# needs fixing if ever used on macOS!
386GSSRPC_LIBS	= -lgssrpc $(GSS_LIBS)
387KADM_COMM_LIBS	= $(GSSRPC_LIBS)
388# need fixing if ever used on macOS!
389KADMSRV_LIBS	= -lkadm5srv_mit $(HESIOD_LIBS) $(KDB5_LIBS) $(KADM_COMM_LIBS)
390KADMCLNT_LIBS	= -lkadm5clnt_mit $(KADM_COMM_LIBS)
391
392# Misc stuff for linking server programs (and maybe some others,
393# eventually) but which we don't want to install.
394APPUTILS_LIB	= -lapputils
395
396# So test programs can find their libraries without "make install", etc.
397RUN_SETUP=@KRB5_RUN_ENV@
398RUN_VARS=@KRB5_RUN_VARS@
399
400# Appropriate command prefix for most C test programs: use libraries
401# from the build tree, avoid referencing the installed krb5.conf and
402# message catalog, and use valgrind when asked.
403RUN_TEST=$(RUN_SETUP) KRB5_CONFIG=$(top_srcdir)/config-files/krb5.conf \
404    LC_ALL=C $(VALGRIND)
405
406# libk5crypto dependencies
407CRYPTO_IMPL_CFLAGS	= @CRYPTO_IMPL_CFLAGS@
408CRYPTO_IMPL_LIBS	= @CRYPTO_IMPL_LIBS@
409
410# TLS implementation selection
411TLS_IMPL	= @TLS_IMPL@
412TLS_IMPL_CFLAGS = @TLS_IMPL_CFLAGS@
413TLS_IMPL_LIBS	= @TLS_IMPL_LIBS@
414
415# SPAKE preauth back-end libraries
416SPAKE_OPENSSL_LIBS = @SPAKE_OPENSSL_LIBS@
417
418# Whether we have the SASL header file for the LDAP KDB module
419HAVE_SASL = @HAVE_SASL@
420
421# Whether we are building support for NIST SPAKE groups using OpenSSL
422HAVE_SPAKE_OPENSSL = @HAVE_SPAKE_OPENSSL@
423
424# Whether we are building the LMDB KDB module
425HAVE_LMDB = @HAVE_LMDB@
426
427# Whether we have libresolv 1.1.5 for URI discovery tests
428HAVE_RESOLV_WRAPPER = @HAVE_RESOLV_WRAPPER@
429
430SIZEOF_TIME_T = @SIZEOF_TIME_T@
431
432# error table rules
433#
434### /* these are invoked as $(...) foo.et, which works, but could be better */
435COMPILE_ET= $(COMPILE_ET-@COM_ERR_VERSION@)
436COMPILE_ET-sys= compile_et
437COMPILE_ET-intlsys= compile_et --textdomain mit-krb5
438COMPILE_ET-k5= $(BUILDTOP)/util/et/compile_et -d $(top_srcdir)/util/et \
439	--textdomain mit-krb5
440
441.SUFFIXES:  .h .c .et .ct
442
443# These versions cause both .c and .h files to be generated at once.
444# But GNU make doesn't understand this, and parallel builds can trigger
445# both of them at once, causing them to stomp on each other.  The versions
446# below only update one of the files, so compile_et has to get run twice,
447# but it won't break parallel builds.
448#.et.h: ; $(COMPILE_ET) $<
449#.et.c: ; $(COMPILE_ET) $<
450
451.et.h:
452	$(RM) et-h-$*.et et-h-$*.c et-h-$*.h
453	$(CP) $< et-h-$*.et
454	$(COMPILE_ET) et-h-$*.et
455	$(MV) et-h-$*.h $*.h
456	$(RM) et-h-$*.et et-h-$*.c
457.et.c:
458	$(RM) et-c-$*.et et-c-$*.c et-c-$*.h
459	$(CP) $< et-c-$*.et
460	$(COMPILE_ET) et-c-$*.et
461	$(MV) et-c-$*.c $*.c
462	$(RM) et-c-$*.et et-c-$*.h
463
464# rule to make object files
465#
466.SUFFIXES: .cpp .c .o
467.c.o:
468	$(CC) $(ALL_CFLAGS) -c $<
469# Use .cpp because that's what autoconf uses in its test.
470# If the compiler doesn't accept a .cpp suffix here, it wouldn't
471# have accepted it when autoconf tested it.
472.cpp.o:
473	$(CXX) $(ALL_CXXFLAGS) -c $<
474
475# ss command table rules
476#
477MAKE_COMMANDS= $(MAKE_COMMANDS-@SS_VERSION@)
478MAKE_COMMANDS-sys= mk_cmds
479MAKE_COMMANDS-k5= $(BUILDTOP)/util/ss/mk_cmds
480
481.ct.c:
482	$(MAKE_COMMANDS) $<
483
484## Parameters to be set by configure for use in lib.in:
485##
486#
487# These settings are for building shared libraries only.  Including
488# libpriv.in will override with values appropriate for static
489# libraries that we don't install.  Some values will depend on whether
490# the platform supports major and minor version number extensions on
491# shared libraries, hence the FOO_@@ settings.
492
493LN_S=@LN_S@
494AR=@AR@
495
496# Set to "lib$(LIBBASE)$(STLIBEXT) lib$(LIBBASE)$(SHLIBEXT)" or some
497# subset thereof by configure; determines which types of libs get
498# built.
499LIBLIST=@LIBLIST@
500
501# Set by configure; list of library symlinks to make to $(TOPLIBD)
502LIBLINKS=@LIBLINKS@
503
504# Set by configure; name of plugin module to build (libfoo.a or foo.so)
505PLUGIN=@PLUGIN@
506
507# Set by configure; symlink for plugin module for static plugin linking
508PLUGINLINK=@PLUGINLINK@
509
510# Set by configure; list of install targets for libraries
511LIBINSTLIST=@LIBINSTLIST@
512
513# Set by configure; install target
514PLUGININST=@PLUGININST@
515
516# Some of these should really move to pre.in, since programs will need
517# it too. (e.g. stuff that has dependencies on the libraries)
518
519# usually .a
520STLIBEXT=@STLIBEXT@
521
522# usually .so.$(LIBMAJOR).$(LIBMINOR)
523SHLIBVEXT=@SHLIBVEXT@
524
525# usually .so.$(LIBMAJOR) (to allow for major-version compat)
526SHLIBSEXT=@SHLIBSEXT@
527
528# usually .so
529SHLIBEXT=@SHLIBEXT@
530
531# usually _p.a
532PFLIBEXT=@PFLIBEXT@
533
534#
535DYNOBJEXT=@DYNOBJEXT@
536MAKE_DYNOBJ_COMMAND=@MAKE_DYNOBJ_COMMAND@
537DYNOBJ_EXPDEPS=@DYNOBJ_EXPDEPS@
538DYNOBJ_EXPFLAGS=@DYNOBJ_EXPFLAGS@
539
540# For some platforms, a flag which causes shared library creation to
541# check for undefined symbols.  Suppressed when using --enable-asan.
542UNDEF_CHECK=@UNDEF_CHECK@
543
544# File with symbol names to be exported, both functions and data,
545# currently not distinguished.
546SHLIB_EXPORT_FILE=$(srcdir)/$(LIBPREFIX)$(LIBBASE).exports
547
548# File that needs to be current for building the shared library,
549# usually SHLIB_EXPORT_FILE, but not always, if we have to convert
550# it to another, intermediate form for the linker.
551SHLIB_EXPORT_FILE_DEP=@SHLIB_EXPORT_FILE_DEP@
552
553# Export file checker to run when building in maintainer mode on
554# Linux.  This gets included in LDCOMBINE_TAIL.
555EXPORT_CHECK_CMD = && $(PERL) -w $(top_srcdir)/util/export-check.pl \
556	$(SHLIB_EXPORT_FILE) $@
557EXPORT_CHECK = @MAINT@ $(EXPORT_CHECK_CMD)
558
559# Command to run to build a shared library.
560# In systems that require multiple commands, like AIX, it may need
561# to change to rearrange where the various parameters fit in.
562MAKE_SHLIB_COMMAND=@MAKE_SHLIB_COMMAND@
563
564# run path flags for explicit libraries depending on this one,
565# e.g. "-R$(SHLIB_RPATH)"
566SHLIB_RPATH_FLAGS=@SHLIB_RPATH_FLAGS@
567
568# flags for explicit libraries depending on this one,
569# e.g. "$(SHLIB_RPATH_FLAGS) $(SHLIB_SHLIB_DIRFLAGS) $(SHLIB_EXPLIBS)"
570SHLIB_EXPFLAGS=@SHLIB_EXPFLAGS@
571
572## Parameters to be set by configure for use in libobj.in:
573
574# Set to "OBJS.ST OBJS.SH OBJS.PF" or some subset thereof by
575# configure; determines which types of object files get built.
576OBJLISTS=@OBJLISTS@
577
578# Note that $(LIBSRCS) *cannot* contain any variable references, or
579# the suffix substitution will break on some platforms!
580SHLIBOBJS=$(STLIBOBJS:.o=@SHOBJEXT@)
581PFLIBOBJS=$(STLIBOBJS:.o=@PFOBJEXT@)
582
583#
584# rules to make various types of object files
585#
586PICFLAGS=@PICFLAGS@
587PROFFLAGS=@PROFFLAGS@
588
589# platform-dependent temporary files that should get cleaned up
590EXTRA_FILES=@EXTRA_FILES@
591
592VALGRIND=
593# Need absolute paths here because under kshd or ftpd we may run programs
594# while in other directories.
595VALGRIND_LOGDIR = `cd $(BUILDTOP)&&pwd`
596VALGRIND1 = valgrind --tool=memcheck --log-file=$(VALGRIND_LOGDIR)/vg.%p --trace-children=yes --leak-check=yes --suppressions=`cd $(top_srcdir)&&pwd`/util/valgrind-suppressions
597
598# Set OFFLINE=yes to disable tests that assume network connectivity.
599# (Specifically, this concerns the ability to fetch DNS data for
600# mit.edu, to verify that SRV queries are working.)  Note that other
601# tests still assume that the local hostname can be resolved into
602# something that looks like an FQDN, with an IPv4 address.
603OFFLINE=no
604
605# Used when running Python tests.
606PYTESTFLAGS=
607
608##
609## end of pre.in
610############################################################
611