Set CXX_LINK, CXX_LINK_STATIC, and CXX_LINK_SHARED, parallel to CC_ versions.
[krb5.git] / src / config / pre.in
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 # Mac OS X 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
20 WHAT = unix
21 SHELL=/bin/sh
22
23 all:: all-$(WHAT)
24
25 clean:: clean-$(WHAT)
26
27 distclean:: distclean-$(WHAT)
28
29 install:: install-$(WHAT)
30
31 check:: check-$(WHAT)
32
33 install-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.
72 all-unix:: all-postrecurse
73 all-postrecurse: all-recurse
74 all-recurse: all-prerecurse
75
76 all-prerecurse:
77 all-postrecurse:
78
79 clean-unix:: clean-postrecurse
80 clean-postrecurse: clean-recurse
81 clean-recurse: clean-prerecurse
82
83 clean-prerecurse:
84 clean-postrecurse:
85
86 distclean-unix: distclean-postrecurse
87 distclean-postrecurse: distclean-recurse
88 distclean-recurse: distclean-prerecurse
89
90 distclean-prerecurse:
91 distclean-postrecurse:
92
93 install-unix:: install-postrecurse
94 install-postrecurse: install-recurse
95 install-recurse: install-prerecurse
96
97 install-prerecurse:
98 install-postrecurse:
99
100 install-headers-unix:: install-headers-postrecurse
101 install-headers-postrecurse: install-headers-recurse
102 install-headers-recurse: install-headers-prerecurse
103
104 install-headers-prerecurse:
105 install-headers-postrecurse:
106
107 check-unix:: check-postrecurse
108 check-postrecurse: check-recurse
109 check-recurse: check-prerecurse
110
111 check-prerecurse:
112 check-postrecurse:
113
114 Makefiles: Makefiles-postrecurse
115 Makefiles-postrecurse: Makefiles-recurse
116 Makefiles-recurse: Makefiles-prerecurse
117
118 Makefiles-prerecurse:
119 Makefiles-postrecurse:
120
121 generate-files-mac: generate-files-mac-postrecurse
122 generate-files-mac-postrecurse: generate-files-mac-recurse
123 generate-files-mac-recurse: generate-files-mac-prerecurse
124 generate-files-mac-prerecurse:
125
126 #
127 # end recursion rule support
128 ##############################
129
130 # Directory syntax:
131 #
132 # begin relative path
133 REL=
134 # this is magic... should only be used for preceding a program invocation
135 C=./
136 # "/" for UNIX, "\" for Windows; *sigh*
137 S=/
138
139 #SUBDIRS = @subdirs@ $(LOCAL_SUBDIRS)
140 SUBDIRS_@top_srcdir@ = @subdirs@
141 SUBDIRS = $(SUBDIRS_@srcdir@) $(LOCAL_SUBDIRS)
142 #
143 srcdir = @srcdir@
144 SRCTOP = @srcdir@/$(BUILDTOP)
145 top_srcdir = @top_srcdir@
146 VPATH = @srcdir@
147 CONFIG_RELTOPDIR = @CONFIG_RELTOPDIR@
148
149 FAKEDEST=$(BUILDTOP)/util/fakedest
150 FAKEPREFIX=$(FAKEDEST)/$(prefix)
151 FAKELIBDIR=$(FAKEPREFIX)/lib
152
153 # DEFS          set by configure
154 # DEFINES       set by local Makefile.in
155 # LOCALINCLUDES set by local Makefile.in
156 # CPPFLAGS      user override
157 # CFLAGS        user override but starts off set by configure
158 # PTHREAD_CFLAGS set by configure, not included in CFLAGS so that we
159 #               don't pull the pthreads library into shared libraries
160 ALL_CFLAGS = $(DEFS) $(DEFINES) $(KRB_INCLUDES) $(LOCALINCLUDES) \
161         -DKRB5_DEPRECATED=1 \
162         $(CPPFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS)
163 ALL_CXXFLAGS = $(DEFS) $(DEFINES) $(KRB_INCLUDES) $(LOCALINCLUDES) \
164         -DKRB5_DEPRECATED=1 \
165         $(CPPFLAGS) $(CXXFLAGS) $(PTHREAD_CFLAGS)
166
167 CFLAGS = @CFLAGS@
168 CXXFLAGS = @CXXFLAGS@
169 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
170 PTHREAD_LIBS = @PTHREAD_LIBS@
171 THREAD_LINKOPTS = $(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
172 CPPFLAGS = @CPPFLAGS@
173 DEFS = @DEFS@
174 CC = @CC@
175 CXX = @CXX@
176 LD = $(PURE) @LD@
177 DEPLIBS = @DEPLIBS@
178 KRB_INCLUDES = -I$(BUILDTOP)/include -I$(SRCTOP)/include
179 LDFLAGS = @LDFLAGS@
180 LD_UNRESOLVED_PREFIX = @LD_UNRESOLVED_PREFIX@
181 LD_SHLIBDIR_PREFIX = @LD_SHLIBDIR_PREFIX@
182 LDARGS = @LDARGS@
183 LIBS = @LIBS@
184 SRVLIBS = @SRVLIBS@
185 SRVDEPLIBS = @SRVDEPLIBS@
186 CLNTLIBS = @CLNTLIBS@
187 CLNTDEPLIBS = @CLNTDEPLIBS@
188
189 INSTALL=@INSTALL@
190 INSTALL_STRIP=
191 INSTALL_PROGRAM=@INSTALL_PROGRAM@ $(INSTALL_STRIP)
192 INSTALL_SCRIPT=@INSTALL_PROGRAM@
193 INSTALL_DATA=@INSTALL_DATA@
194 INSTALL_SHLIB=@INSTALL_SHLIB@
195 INSTALL_SETUID=$(INSTALL) $(INSTALL_STRIP) -m 4755 -o root
196 ## This is needed because autoconf will sometimes define @exec_prefix@ to be
197 ## ${prefix}.
198 prefix=@prefix@
199 INSTALL_PREFIX=$(prefix)
200 INSTALL_EXEC_PREFIX=@exec_prefix@
201 exec_prefix=@exec_prefix@
202 datarootdir=@datarootdir@
203 SHLIB_TAIL_COMP=@SHLIB_TAIL_COMP@
204
205 datadir = @datadir@
206 EXAMPLEDIR = $(datadir)/examples/krb5
207
208 KRB5MANROOT = @mandir@
209 ADMIN_BINDIR = @sbindir@
210 SERVER_BINDIR = @sbindir@
211 CLIENT_BINDIR =@bindir@
212 ADMIN_MANDIR = $(KRB5MANROOT)/man8
213 SERVER_MANDIR = $(KRB5MANROOT)/man8
214 CLIENT_MANDIR = $(KRB5MANROOT)/man1
215 FILE_MANDIR = $(KRB5MANROOT)/man5
216 KRB5_LIBDIR = @libdir@
217 KRB5_SHLIBDIR = @libdir@$(SHLIB_TAIL_COMP)
218 KRB5_INCDIR = @includedir@
219 MODULE_DIR = @libdir@/krb5/plugins
220 KRB5_DB_MODULE_DIR = $(MODULE_DIR)/kdb
221 KRB5_PA_MODULE_DIR = $(MODULE_DIR)/preauth
222 KRB5_LIBKRB5_MODULE_DIR = $(MODULE_DIR)/libkrb5
223 KRB5_INCSUBDIRS = \
224         $(KRB5_INCDIR)/krb5 \
225         $(KRB5_INCDIR)/gssapi \
226         $(KRB5_INCDIR)/kerberosIV \
227         $(KRB5_INCDIR)/gssrpc
228
229 #
230 # Macros used by the KADM5 (OV-based) unit test system.
231 # XXX check which of these are actually used!
232 #
233 TESTDIR         = $(BUILDTOP)/kadmin/testing
234 STESTDIR        = $(SRCTOP)/kadmin/testing
235 COMPARE_DUMP    = $(TESTDIR)/scripts/compare_dump.pl
236 FIX_CONF_FILES  = $(TESTDIR)/scripts/fixup-conf-files.pl
237 INITDB          = $(STESTDIR)/scripts/init_db
238 MAKE_KEYTAB     = $(TESTDIR)/scripts/make-host-keytab.pl
239 LOCAL_MAKE_KEYTAB= $(TESTDIR)/scripts/make-host-keytab.pl
240 RESTORE_FILES   = $(STESTDIR)/scripts/restore_files.sh
241 SAVE_FILES      = $(STESTDIR)/scripts/save_files.sh
242 ENV_SETUP       = $(TESTDIR)/scripts/env-setup.sh
243 CLNTTCL         = $(TESTDIR)/util/ovsec_kadm_clnt_tcl
244 SRVTCL          = $(TESTDIR)/util/ovsec_kadm_srv_tcl
245 # Dejagnu variables.
246 # We have to set the host with --host so that setup_xfail will work.
247 # If we don't set it, then the host type used is "native", which
248 # doesn't match "*-*-*".
249 host=@krb5_cv_host@
250 DEJAFLAGS       = $(DEJALFLAGS) $(CLFLAGS) --debug --srcdir $(srcdir) --host \
251                    $(host)
252 RUNTEST         = runtest $(DEJAFLAGS)
253
254 START_SERVERS   = $(STESTDIR)/scripts/start_servers $(TEST_SERVER) $(TEST_PATH)
255 START_SERVERS_LOCAL = $(STESTDIR)/scripts/start_servers_local
256
257 STOP_SERVERS    = $(STESTDIR)/scripts/stop_servers $(TEST_SERVER) $(TEST_PATH)
258 STOP_SERVERS_LOCAL = $(STESTDIR)/scripts/stop_servers_local
259 #
260 # End of macros for the KADM5 unit test system.
261 #
262
263 transform = @program_transform_name@
264
265 RM = rm -f
266 CP = cp
267 MV = mv -f
268 CHMOD=chmod
269 RANLIB = @RANLIB@
270 ARCHIVE = @ARCHIVE@
271 ARADD = @ARADD@
272 LN = @LN_S@
273 AWK = @AWK@
274 LEX = @LEX@
275 LEXLIB = @LEXLIB@
276 YACC = @YACC@
277 PERL = @PERL@
278 AUTOCONF = autoconf
279 AUTOCONFFLAGS =
280 AUTOHEADER = autoheader
281 AUTOHEADERFLAGS =
282 MOVEIFCHANGED = $(SRCTOP)/config/move-if-changed
283
284 HOST_TYPE = @HOST_TYPE@
285 SHEXT = @SHEXT@
286 STEXT=@STEXT@
287 VEXT=@VEXT@
288
289 TOPLIBD = $(BUILDTOP)/lib
290
291 OBJEXT = o
292 LIBEXT = a
293 EXEEXT =
294
295 #
296 # variables for libraries, for use in linking programs
297 # -- this may want to get broken out into a separate frag later
298 #
299 #
300 # Note: the following variables must be set in any Makefile.in that
301 # uses KRB5_BUILD_PROGRAM
302 #
303 # PROG_LIBPATH  list of dirs, in -Ldir form, to search for libraries at link
304 # PROG_RPATH    list of dirs, in dir1:dir2 form, for rpath purposes
305 #
306 # invocation is like:
307 # prog: foo.o bar.o $(KRB5_BASE_DEPLIBS)
308 #       $(CC_LINK) -o $@ foo.o bar.o $(KRB5_BASE_LIBS)
309
310
311 CC_LINK=@CC_LINK@
312 CXX_LINK=@CXX_LINK@
313
314 # prefix (with no spaces after) for rpath flag to cc
315 RPATH_FLAG=@RPATH_FLAG@
316
317 # this gets set by configure to either $(STLIBEXT) or $(SHLIBEXT),
318 # depending on whether we're building with shared libraries.
319 DEPLIBEXT=@DEPLIBEXT@
320
321 KADMCLNT_DEPLIB = $(TOPLIBD)/libkadm5clnt$(DEPLIBEXT)
322 KADMSRV_DEPLIB  = $(TOPLIBD)/libkadm5srv$(DEPLIBEXT)
323 KDB5_DEPLIB     = $(TOPLIBD)/libkdb5$(DEPLIBEXT)
324 GSSRPC_DEPLIB   = $(TOPLIBD)/libgssrpc$(DEPLIBEXT)
325 GSS_DEPLIB      = $(TOPLIBD)/libgssapi_krb5$(DEPLIBEXT)
326 KRB4_DEPLIB     = @KRB4_DEPLIB@         # $(TOPLIBD)/libkrb4$(DEPLIBEXT)
327 DES425_DEPLIB   = @DES425_DEPLIB@       # $(TOPLIBD)/libdes425$(DEPLIBEXT)
328 KRB5_DEPLIB     = $(TOPLIBD)/libkrb5$(DEPLIBEXT)
329 CRYPTO_DEPLIB   = $(TOPLIBD)/libk5crypto$(DEPLIBEXT)
330 COM_ERR_DEPLIB  = $(COM_ERR_DEPLIB-@COM_ERR_VERSION@)
331 COM_ERR_DEPLIB-sys = # empty
332 COM_ERR_DEPLIB-k5 = $(TOPLIBD)/libcom_err$(DEPLIBEXT)
333 SUPPORT_LIBNAME=krb5support
334 SUPPORT_DEPLIB  = $(TOPLIBD)/lib$(SUPPORT_LIBNAME)$(DEPLIBEXT)
335
336 # These are forced to use ".a" as an extension because they're never
337 # built shared.
338 SS_DEPLIB       = $(SS_DEPLIB-@SS_VERSION@)
339 SS_DEPLIB-k5    = $(TOPLIBD)/libss.a
340 SS_DEPLIB-sys   =
341 PTY_DEPLIB      = $(TOPLIBD)/libpty.a
342 APPUTILS_DEPLIB = $(TOPLIBD)/libapputils.a
343
344 KRB5_BASE_DEPLIBS       = $(KRB5_DEPLIB) $(CRYPTO_DEPLIB) $(COM_ERR_DEPLIB) $(SUPPORT_DEPLIB)
345 KRB4COMPAT_DEPLIBS      = $(KRB4_DEPLIB) $(DES425_DEPLIB) $(KRB5_BASE_DEPLIBS)
346 KDB5_DEPLIBS            = $(KDB5_DEPLIB)
347 GSS_DEPLIBS             = $(GSS_DEPLIB)
348 GSSRPC_DEPLIBS          = $(GSSRPC_DEPLIB) $(GSS_DEPLIBS)
349 KADM_COMM_DEPLIBS       = $(GSSRPC_DEPLIBS) $(KDB5_DEPLIBS) $(GSSRPC_DEPLIBS)
350 KADMSRV_DEPLIBS         = $(KADMSRV_DEPLIB) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS)
351 KADMCLNT_DEPLIBS        = $(KADMCLNT_DEPLIB) $(KADM_COMM_DEPLIBS)
352
353 # Header file dependencies we might override.
354 # See util/depfix.sed.
355 # Also see depend-verify-* in post.in, which wants to confirm that we're using
356 # the in-tree versions.
357 COM_ERR_VERSION = @COM_ERR_VERSION@
358 COM_ERR_DEPS    = $(COM_ERR_DEPS-@COM_ERR_VERSION@)
359 COM_ERR_DEPS-sys =
360 COM_ERR_DEPS-k5 = $(BUILDTOP)/include/com_err.h
361 SS_VERSION      = @SS_VERSION@
362 SS_DEPS         = $(SS_DEPS-@SS_VERSION@)
363 SS_DEPS-sys     =
364 SS_DEPS-k5      = $(BUILDTOP)/include/ss/ss.h $(BUILDTOP)/include/ss/ss_err.h
365
366 # Header file dependencies that might depend on whether krb4 support
367 # is compiled.
368
369 KRB_ERR_H_DEP   = @KRB_ERR_H_DEP@
370
371 # LIBS gets substituted in... e.g. -lnsl -lsocket
372
373 # GEN_LIB is -lgen if needed for regexp
374 GEN_LIB         = @GEN_LIB@
375
376 SS_LIB          = $(SS_LIB-@SS_VERSION@)
377 SS_LIB-sys      = @SS_LIB@
378 SS_LIB-k5       = $(TOPLIBD)/libss.a
379 KDB5_LIB        = -lkdb5
380
381 DL_LIB          = @DL_LIB@
382
383 KRB5_LIB                        = -lkrb5
384 K5CRYPTO_LIB                    = -lk5crypto
385 COM_ERR_LIB                     = -lcom_err
386 GSS_KRB5_LIB                    = -lgssapi_krb5
387 SUPPORT_LIB                     = -l$(SUPPORT_LIBNAME)
388
389 # KRB4_LIB is -lkrb4 if building --with-krb4
390 # needs fixing if ever used on Mac OS X!
391 KRB4_LIB        = @KRB4_LIB@
392
393 # DES425_LIB is -ldes425 if building --with-krb4
394 # needs fixing if ever used on Mac OS X!
395 DES425_LIB      = @DES425_LIB@
396
397 # HESIOD_LIBS is -lhesiod...
398 HESIOD_LIBS     = @HESIOD_LIBS@
399
400 KRB5_BASE_LIBS  = $(KRB5_LIB) $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB) $(GEN_LIB) $(LIBS) $(DL_LIB)
401 KRB4COMPAT_LIBS = $(KRB4_LIB) $(DES425_LIB) $(KRB5_BASE_LIBS)
402 KDB5_LIBS       = $(KDB5_LIB)
403 GSS_LIBS        = $(GSS_KRB5_LIB)
404 # needs fixing if ever used on Mac OS X!
405 GSSRPC_LIBS     = -lgssrpc $(GSS_LIBS)
406 KADM_COMM_LIBS  = $(GSSRPC_LIBS)
407 # need fixing if ever used on Mac OS X!
408 KADMSRV_LIBS    = -lkadm5srv $(HESIOD_LIBS) $(KDB5_LIBS) $(KADM_COMM_LIBS)
409 KADMCLNT_LIBS   = -lkadm5clnt $(KADM_COMM_LIBS)
410
411 # need fixing if ever used on Mac OS X!
412 PTY_LIB         = -lpty
413
414 # libutil for NetBSD, et al. for openpty(), etc.
415 UTIL_LIB        = @UTIL_LIB@
416
417 # Misc stuff for linking server programs (and maybe some others,
418 # eventually) but which we don't want to install.
419 APPUTILS_LIB    = -lapputils
420
421 #
422 # some more stuff for --with-krb4
423 KRB4_LIBPATH    = @KRB4_LIBPATH@
424 KRB4_INCLUDES   = @KRB4_INCLUDES@
425
426 #
427 # variables for --with-tcl=
428 TCL_LIBS        = @TCL_LIBS@
429 TCL_LIBPATH     = @TCL_LIBPATH@
430 TCL_RPATH       = @TCL_RPATH@
431 TCL_MAYBE_RPATH = @TCL_MAYBE_RPATH@
432 TCL_INCLUDES    = @TCL_INCLUDES@
433
434 # error table rules
435 #
436 ### /* these are invoked as $(...) foo.et, which works, but could be better */
437 COMPILE_ET= $(COMPILE_ET-@COM_ERR_VERSION@)
438 COMPILE_ET-sys= compile_et
439 COMPILE_ET-k5= $(BUILDTOP)/util/et/compile_et -d $(SRCTOP)/util/et
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 #
477 MAKE_COMMANDS= $(MAKE_COMMANDS-@SS_VERSION@)
478 MAKE_COMMANDS-sys= mk_cmds
479 MAKE_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
493 LN_S=@LN_S@
494 AR=@AR@
495
496 # Set to "lib$(LIBBASE)$(STEXT) lib$(LIBBASE)$(SHEXT) lib$(LIBBASE)$(PFEXT)" or
497 # some subset thereof by configure; determines which types of libs get
498 # built.
499 LIBLIST=$(LIBLIST_@SHLIB_HAVE_MINOR_VERS@)
500 LIBLIST_yes=lib$(LIBBASE)$(SHLIBEXT) lib$(LIBBASE)$(SHLIBSEXT)
501 LIBLIST_no=lib$(LIBBASE)$(SHLIBEXT)
502
503 # Set by configure; list of library symlinks to make to $(TOPLIBD)
504 LIBLINKS=$(LIBLINKS_@SHLIB_HAVE_MINOR_VERS@)
505 LIBLINKS_yes=$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)
506 LIBLINKS_no=$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)
507
508 # Set by configure; list of install targets
509 LIBINSTLIST=$(LIBINSTLIST_@SHLIB_HAVE_MINOR_VERS@)
510 LIBINSTLIST_yes=install-shlib-soname
511 LIBINSTLIST_no=install-shared
512
513 # Some of these should really move to pre.in, since programs will need
514 # it too. (e.g. stuff that has dependencies on the libraries)
515
516 # usually .a
517 STLIBEXT_if_static=@STLIBEXT@
518 STLIBEXT=.a-nobuild
519
520 # usually .so.$(LIBMAJOR).$(LIBMINOR)
521 SHLIBVEXT=@SHLIBVEXT@
522
523 # usually .so.$(LIBMAJOR) (to allow for major-version compat)
524 SHLIBSEXT=@SHLIBSEXT@
525
526 # usually .so
527 SHLIBEXT=@SHLIBEXT@
528
529 # usually _p.a
530 PFLIBEXT=@PFLIBEXT@
531
532 #
533 DYNOBJEXT=@DYNOBJEXT@
534 MAKE_DYNOBJ_COMMAND=@MAKE_DYNOBJ_COMMAND@
535 DYNOBJ_EXPDEPS=@DYNOBJ_EXPDEPS@
536 DYNOBJ_EXPFLAGS=@DYNOBJ_EXPFLAGS@
537
538 # File with symbol names to be exported, both functions and data,
539 # currently not distinguished.
540 SHLIB_EXPORT_FILE=$(srcdir)/$(LIBPREFIX)$(LIBBASE).exports
541
542 # File that needs to be current for building the shared library,
543 # usually SHLIB_EXPORT_FILE, but not always, if we have to convert
544 # it to another, intermediate form for the linker.
545 SHLIB_EXPORT_FILE_DEP=@SHLIB_EXPORT_FILE_DEP@
546
547 # Command to run to build a shared library.
548 # In systems that require multiple commands, like AIX, it may need
549 # to change to rearrange where the various parameters fit in.
550 MAKE_SHLIB_COMMAND=@MAKE_SHLIB_COMMAND@
551
552 # flags for explicit libraries depending on this one,
553 # e.g. "-R$(SHLIB_RPATH) $(SHLIB_SHLIB_DIRFLAGS) $(SHLIB_EXPLIBS)"
554 SHLIB_EXPFLAGS=@SHLIB_EXPFLAGS@
555
556 ## Parameters to be set by configure for use in libobj.in:
557
558 # Set to "OBJS.ST OBJS.SH OBJS.PF" or some subset thereof by
559 # configure; determines which types of object files get built.
560 OBJLISTS=OBJS.SH
561
562 # Note that $(LIBSRCS) *cannot* contain any variable references, or
563 # the suffix substitution will break on some platforms!
564 SHLIBOBJS=$(STLIBOBJS:.o=@SHOBJEXT@)
565 PFLIBOBJS=$(STLIBOBJS:.o=@PFOBJEXT@)
566
567 # "$(CC) -G", "$(LD) -Bshareable", etc.
568 LDCOMBINE=@LDCOMBINE@
569
570 # "-h $@", "-h lib$(LIBNAME).$(LIBMAJOR)", etc.
571 SONAME=@SONAME@
572
573
574 #
575 # rules to make various types of object files
576 #
577 PICFLAGS=@PICFLAGS@
578 PROFFLAGS=@PROFFLAGS@
579
580 # platform-dependent temporary files that should get cleaned up
581 EXTRA_FILES=@EXTRA_FILES@
582
583 VALGRIND=
584 # Need absolute paths here because under kshd or ftpd we may run programs
585 # while in other directories.
586 VALGRIND_LOGDIR = `cd $(BUILDTOP)&&pwd`
587 VALGRIND1 = valgrind --tool=memcheck --log-file=$(VALGRIND_LOGDIR)/vg --trace-children=yes -v --leak-check=yes --suppressions=`cd $(SRCTOP)&&pwd`/util/valgrind-suppressions
588
589 ##
590 ## end of pre.in
591 ############################################################