2 # Helper makefile to link shared libraries in a portable way.
3 # This is much simpler than libtool, and hopefully not too error-prone.
5 # The following variables need to be set on the command line to build
8 # CC contains the current compiler. This one MUST be defined
11 # LDFLAGS contains flags to be used when temporary object files (when building
12 # shared libraries) are created, or when an application is linked.
13 # SHARED_LDFLAGS contains flags to be used when the shared library is created.
15 SHARED_LDFLAGS=$(SHARED_LDFLAG)
18 # SHARED_RCFLAGS are flags used with windres, i.e. when build for Cygwin
20 SHARED_RCFLAGS=$(SHARED_RCFLAG)
24 # LIBNAME contains just the name of the library, without prefix ("lib"
25 # on Unix, "cyg" for certain forms under Cygwin...) or suffix (.a, .so,
26 # .dll, ...). This one MUST have a value when using this makefile to
27 # build shared libraries.
28 # For example, to build libfoo.so, you need to do the following:
32 # APPNAME contains just the name of the application, without suffix (""
33 # on Unix, ".exe" on Windows, ...). This one MUST have a value when using
34 # this makefile to build applications.
35 # For example, to build foo, you need to do the following:
39 # DSTDIR is the directory where the built file should end up in.
42 # SRCDIR is the top directory of the source tree.
45 # OBJECTS contains all the object files to link together into the application.
46 # This must contain at least one object file.
50 # LIBEXTRAS contains extra modules to link together with the library.
51 # For example, if a second library, say libbar.a needs to be linked into
52 # libfoo.so, you need to do the following:
54 # Note that this MUST be used when using the link_dso targets, to hold the
55 # names of all object files that go into the target shared object.
58 # LIBVERSION contains the current version of the library.
59 # For example, to build libfoo.so.1.2, you need to do the following:
63 # LIBCOMPATVERSIONS contains the compatibility versions (a list) of
64 # the library. They MUST be in decreasing order.
65 # For example, if libfoo.so.1.2.1 is backward compatible with libfoo.so.1.2
66 # and libfoo.so.1, you need to do the following:
67 #LIBCOMPATVERSIONS=1.2 1
68 # Note that on systems that use sonames, the last number will appear as
70 # It's also possible, for systems that support it (Tru64, for example),
71 # to add extra compatibility info with more precision, by adding a second
72 # list of versions, separated from the first with a semicolon, like this:
73 #LIBCOMPATVERSIONS=1.2 1;1.2.0 1.1.2 1.1.1 1.1.0 1.0.0
76 # LIBDEPS contains all the flags necessary to cover all necessary
77 # dependencies to other libraries.
80 #------------------------------------------------------------------------------
81 # The rest is private to this makefile.
87 echo "Trying to use this makefile interactively? Don't."
90 SHLIB_COMPAT=; SHLIB_SOVER=; \
91 if [ -n "$(LIBVERSION)$(LIBCOMPATVERSIONS)" ]; then \
93 for v in `echo "$(LIBVERSION) $(LIBCOMPATVERSIONS)" | cut -d';' -f1`; do \
94 SHLIB_SOVER_NODOT=$$v; \
96 if [ -n "$$prev" ]; then \
97 SHLIB_COMPAT="$$SHLIB_COMPAT .$$prev"; \
105 LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \
106 LDCMD="$${LDCMD:-$(CC)}"; LDFLAGS="$${LDFLAGS:-$(CFLAGS) $(LDFLAGS)}"; \
107 LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \
108 LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
109 echo LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
110 $${LDCMD} $${LDFLAGS} -o $${APPNAME:=$(APPNAME)} $(OBJECTS) $${LIBDEPS}; \
111 LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
112 $${LDCMD} $${LDFLAGS} -o $${APPNAME:=$(APPNAME)} $(OBJECTS) $${LIBDEPS} )
116 LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \
117 SHAREDCMD="$${SHAREDCMD:-$(CC)}"; \
118 SHAREDFLAGS="$${SHAREDFLAGS:-$(CFLAGS) $(SHARED_LDFLAGS)}"; \
119 LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \
120 LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
121 echo LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
122 $${SHAREDCMD} $${SHAREDFLAGS} \
123 -o $(DSTDIR)/$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX \
124 $$ALLSYMSFLAGS $$SHOBJECTS $$NOALLSYMSFLAGS $$LIBDEPS; \
125 LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \
126 $${SHAREDCMD} $${SHAREDFLAGS} \
127 -o $(DSTDIR)/$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX \
128 $$ALLSYMSFLAGS $$SHOBJECTS $$NOALLSYMSFLAGS $$LIBDEPS \
132 if [ -n "$$INHIBIT_SYMLINKS" ]; then :; else \
133 prev=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \
134 if [ -n "$$SHLIB_COMPAT" ]; then \
135 for x in $$SHLIB_COMPAT; do \
136 ( $(SET_X); rm -f $(DSTDIR)/$$SHLIB$$x$$SHLIB_SUFFIX; \
137 ln -s $$prev $(DSTDIR)/$$SHLIB$$x$$SHLIB_SUFFIX ); \
138 prev=$$SHLIB$$x$$SHLIB_SUFFIX; \
141 if [ -n "$$SHLIB_SOVER" ]; then \
142 ( $(SET_X); rm -f $(DSTDIR)/$$SHLIB$$SHLIB_SUFFIX; \
143 ln -s $$prev $(DSTDIR)/$$SHLIB$$SHLIB_SUFFIX ); \
147 LINK_SO_SHLIB= SHOBJECTS="$(DSTDIR)/lib$(LIBNAME).a $(LIBEXTRAS)"; $(LINK_SO)
148 LINK_SO_DSO= INHIBIT_SYMLINKS=yes; SHOBJECTS="$(LIBEXTRAS)"; $(LINK_SO)
150 LINK_SO_SHLIB_VIA_O= \
151 SHOBJECTS=$(DSTDIR)/lib$(LIBNAME).o; \
152 ALL=$$ALLSYMSFLAGS; ALLSYMSFLAGS=; NOALLSYMSFLAGS=; \
153 ( echo ld $(LDFLAGS) -r -o $$SHOBJECTS $$ALL lib$(LIBNAME).a $(LIBEXTRAS); \
154 ld $(LDFLAGS) -r -o $$SHOBJECTS $$ALL $(DSTDIR)/lib$(LIBNAME).a $(LIBEXTRAS) ); \
155 $(LINK_SO) && ( echo rm -f $$SHOBJECTS; rm -f $$SHOBJECTS )
157 LINK_SO_SHLIB_UNPACKED= \
158 UNPACKDIR=link_tmp.$$$$; rm -rf $$UNPACKDIR; mkdir $$UNPACKDIR; \
159 (cd $$UNPACKDIR; ar x ../$(DSTDIR)/lib$(LIBNAME).a) && \
160 ([ -z "$(LIBEXTRAS)" ] || cp $(LIBEXTRAS) $$UNPACKDIR) && \
161 SHOBJECTS=$$UNPACKDIR/*.o; \
162 $(LINK_SO) && rm -rf $$UNPACKDIR
164 DETECT_GNU_LD=($(CC) -Wl,-V /dev/null 2>&1 | grep '^GNU ld' )>/dev/null
167 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
169 SHLIB=$(LIBNAME).so; \
175 SHLIB=lib$(LIBNAME).so; \
176 ALLSYMSFLAGS='-Wl,--whole-archive'; \
177 NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
179 DO_GNU_APP=LDFLAGS="$(CFLAGS) $(LDFLAGS)"
181 #This is rather special. It's a special target with which one can link
182 #applications without bothering with any features that have anything to
183 #do with shared libraries, for example when linking against static
184 #libraries. It's mostly here to avoid a lot of conditionals everywhere
190 @ $(DO_GNU_DSO); $(LINK_SO_DSO)
192 @ $(DO_GNU_SO); $(LINK_SO_SHLIB)
194 @ $(DO_GNU_APP); $(LINK_APP)
196 link_shlib.linux-shared:
197 @$(PERL) $(SRCDIR)/util/mkdef.pl $(LIBNAME) linux >$(LIBNAME).map; \
199 ALLSYMSFLAGS='-Wl,--whole-archive,--version-script=$(LIBNAME).map'; \
203 @if $(DETECT_GNU_LD); then $(DO_GNU_DSO); else \
204 SHLIB=$(LIBNAME).so; \
209 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -nostdlib"; \
212 @if $(DETECT_GNU_LD); then $(DO_GNU_SO); else \
214 SHLIB=lib$(LIBNAME).so; \
217 ALLSYMSFLAGS="-Wl,-Bforcearchive"; \
219 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -nostdlib"; \
222 @if $(DETECT_GNU_LD); then $(DO_GNU_APP); else \
223 LDFLAGS="$(CFLAGS) $(LDFLAGS)"; \
226 # For Darwin AKA Mac OS/X (dyld)
227 # Originally link_dso.darwin produced .so, because it was hard-coded
228 # in dso_dlfcn module. At later point dso_dlfcn switched to .dylib
229 # extension in order to allow for run-time linking with vendor-
230 # supplied shared libraries such as libz, so that link_dso.darwin had
231 # to be harmonized with it. This caused minor controversy, because
232 # it was believed that dlopen can't be used to dynamically load
233 # .dylib-s, only so called bundle modules (ones linked with -bundle
234 # flag). The belief seems to be originating from pre-10.4 release,
235 # where dlfcn functionality was emulated by dlcompat add-on. In
236 # 10.4 dlopen was rewritten as native part of dyld and is documented
237 # to be capable of loading both dynamic libraries and bundles. In
238 # order to provide compatibility with pre-10.4 dlopen, modules are
239 # linked with -bundle flag, which makes .dylib extension misleading.
240 # It works, because dlopen is [and always was] extension-agnostic.
241 # Alternative to this heuristic approach is to develop specific
242 # MacOS X dso module relying on whichever "native" dyld interface.
244 @ SHLIB=$(LIBNAME); \
245 SHLIB_SUFFIX=.dylib; \
248 SHAREDFLAGS="$(CFLAGS) `echo $(SHARED_LDFLAGS) | sed s/dynamiclib/bundle/`"; \
251 @ $(CALC_VERSIONS); \
252 SHLIB=lib$(LIBNAME); \
253 SHLIB_SUFFIX=.dylib; \
254 ALLSYMSFLAGS='-all_load'; \
256 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS)"; \
257 if [ -n "$(LIBVERSION)" ]; then \
258 SHAREDFLAGS="$$SHAREDFLAGS -current_version $(LIBVERSION)"; \
260 if [ -n "$$SHLIB_SOVER_NODOT" ]; then \
261 SHAREDFLAGS="$$SHAREDFLAGS -compatibility_version $$SHLIB_SOVER_NODOT"; \
263 SHAREDFLAGS="$$SHAREDFLAGS -install_name $(INSTALLTOP)/$(LIBDIR)/$$SHLIB$(SHLIB_EXT)"; \
265 link_app.darwin: # is there run-path on darwin?
273 base=-Wl,--enable-auto-image-base; \
274 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-Bsymbolic"; \
277 @ $(CALC_VERSIONS); \
278 INHIBIT_SYMLINKS=yes; \
279 SHLIB=cyg$(LIBNAME); SHLIB_SOVER=-$(LIBVERSION); SHLIB_SUFFIX=.dll; \
280 dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \
281 echo "$(PERL) $(SRCDIR)/util/mkrc.pl $$dll_name |" \
282 "$(RC) $(SHARED_RCFLAGS) -o rc.o"; \
283 $(PERL) $(SRCDIR)/util/mkrc.pl $$dll_name | \
284 $(RC) $(SHARED_RCFLAGS) -o rc.o; \
285 ALLSYMSFLAGS='-Wl,--whole-archive'; \
286 NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
287 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,--enable-auto-image-base -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a rc.o"; \
288 $(LINK_SO_SHLIB) || exit 1; \
293 # link_dso.mingw-shared and link_app.mingw-shared are mapped to the
294 # corresponding cygwin targets, as they do the exact same thing.
296 @ $(CALC_VERSIONS); \
297 INHIBIT_SYMLINKS=yes; \
299 if expr $(PLATFORM) : mingw64 > /dev/null; then arch=-x64; fi; \
300 sover=`echo $(LIBVERSION) | sed -e 's/\./_/g'` ; \
301 SHLIB=lib$(LIBNAME); \
302 SHLIB_SOVER=-$$sover$$arch; \
304 dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \
305 base=; [ $(LIBNAME) = "crypto" -a -n "$(FIPSCANLIB)" ] && base=-Wl,--image-base,0x63000000; \
306 $(PERL) $(SRCDIR)/util/mkdef.pl 32 $(LIBNAME) \
307 | sed -e 's|^\(LIBRARY *\)$(LIBNAME)32|\1'"$$dll_name"'|' \
309 echo "$(PERL) $(SRCDIR)/util/mkrc.pl $$dll_name |" \
310 "$(RC) $(SHARED_RCFLAGS) -o rc.o"; \
311 $(PERL) $(SRCDIR)/util/mkrc.pl $$dll_name | \
312 $(RC) $(SHARED_RCFLAGS) -o rc.o; \
313 ALLSYMSFLAGS='-Wl,--whole-archive'; \
314 NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
315 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a $(LIBNAME).def rc.o"; \
316 $(LINK_SO_SHLIB) || exit 1; \
317 rm $(LIBNAME).def rc.o
320 @ if $(DETECT_GNU_LD); then \
323 SHLIB=$(LIBNAME).so; \
327 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-B,symbolic"; \
330 link_shlib.alpha-osf1:
331 @ if $(DETECT_GNU_LD); then \
334 SHLIB=lib$(LIBNAME).so; \
336 SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed -e 's/ */:/'`; \
337 if [ -n "$$SHLIB_HIST" ]; then \
338 SHLIB_HIST="$${SHLIB_HIST}:$(LIBVERSION)"; \
340 SHLIB_HIST="$(LIBVERSION)"; \
343 ALLSYMSFLAGS='-all'; \
344 NOALLSYMSFLAGS='-none'; \
345 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-B,symbolic"; \
346 if [ -n "$$SHLIB_HIST" ]; then \
347 SHAREDFLAGS="$$SHAREDFLAGS -set_version $$SHLIB_HIST"; \
352 @if $(DETECT_GNU_LD); then \
355 LDFLAGS="$(CFLAGS) $(LDFLAGS)"; \
360 @ if $(DETECT_GNU_LD); then \
364 SHLIB=$(LIBNAME).so; \
368 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-Bsymbolic"; \
372 @ if $(DETECT_GNU_LD); then \
376 SHLIB=lib$(LIBNAME).so; \
378 $(PERL) $(SRCDIR)/util/mkdef.pl $(LIBNAME) linux >$(LIBNAME).map; \
379 ALLSYMSFLAGS="-Wl,-z,allextract,-M,$(LIBNAME).map"; \
380 NOALLSYMSFLAGS="-Wl,-z,defaultextract"; \
381 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-Bsymbolic"; \
385 @ if $(DETECT_GNU_LD); then \
388 LDFLAGS="$(CFLAGS) $(LDFLAGS)"; \
392 # OpenServer 5 native compilers used
394 @ if $(DETECT_GNU_LD); then \
398 SHLIB=$(LIBNAME).so; \
402 SHAREDFLAGS="$(CFLAGS) -G -h $$SHLIB$$SHLIB_SUFFIX"; \
406 @ if $(DETECT_GNU_LD); then \
410 SHLIB=lib$(LIBNAME).so; \
414 SHAREDFLAGS="$(CFLAGS) -G -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
416 $(LINK_SO_SHLIB_UNPACKED)
418 @$(DETECT_GNU_LD) && $(DO_GNU_APP); \
421 # UnixWare 7 and OpenUNIX 8 native compilers used
423 @ if $(DETECT_GNU_LD); then \
427 ($(CC) -v 2>&1 | grep gcc) > /dev/null && SHARE_FLAG='-shared'; \
428 SHLIB=$(LIBNAME).so; \
432 SHAREDFLAGS="$(CFLAGS) $${SHARE_FLAG} -h $$SHLIB$$SHLIB_SUFFIX"; \
436 @ if $(DETECT_GNU_LD); then \
441 ($(CC) -v 2>&1 | grep gcc) > /dev/null && SHARE_FLAG='-shared'; \
442 SHLIB=lib$(LIBNAME).so; \
446 SHAREDFLAGS="$(CFLAGS) $${SHARE_FLAG} -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
448 $(LINK_SO_SHLIB_UNPACKED)
450 @$(DETECT_GNU_LD) && $(DO_GNU_APP); \
454 @ if $(DETECT_GNU_LD); then \
457 SHLIB=$(LIBNAME).so; \
461 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname,$$SHLIB$$SHLIB_SUFFIX,-B,symbolic"; \
465 @ if $(DETECT_GNU_LD); then \
469 SHLIB=lib$(LIBNAME).so; \
472 ($(CC) -v 2>&1 | grep gcc) > /dev/null && MINUSWL="-Wl,"; \
473 ALLSYMSFLAGS="$${MINUSWL}-all"; \
474 NOALLSYMSFLAGS="$${MINUSWL}-none"; \
475 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX,-B,symbolic"; \
479 @LDFLAGS="$(CFLAGS) $(LDFLAGS)"; \
482 # 32-bit PA-RISC HP-UX embeds the -L pathname of libs we link with, so
483 # we compensate for it with +cdp ../: and +cdp ./:. Yes, these rewrite
484 # rules imply that we can only link one level down in catalog structure,
485 # but that's what takes place for the moment of this writing. +cdp option
486 # was introduced in HP-UX 11.x and applies in 32-bit PA-RISC link
487 # editor context only [it's simply ignored in other cases, which are all
491 @if $(DETECT_GNU_LD); then $(DO_GNU_DSO); else \
492 SHLIB=$(LIBNAME).sl; \
493 expr "$(CFLAGS)" : '.*DSO_DLFCN' > /dev/null && SHLIB=$(LIBNAME).so; \
497 expr $(PLATFORM) : 'hpux64' > /dev/null && ALLSYMSFLAGS='-Wl,+forceload'; \
498 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+h,$$SHLIB$$SHLIB_SUFFIX,+cdp,../:,+cdp,./:"; \
500 rm -f $(DSTDIR)/$$SHLIB$$SHLIB_SUFFIX || :; \
501 $(LINK_SO_DSO) && chmod a=rx $(DSTDIR)/$$SHLIB$$SHLIB_SUFFIX
503 @if $(DETECT_GNU_LD); then $(DO_GNU_SO); else \
505 SHLIB=lib$(LIBNAME).sl; \
506 expr $(PLATFORM) : '.*ia64' > /dev/null && SHLIB=lib$(LIBNAME).so; \
508 ALLSYMSFLAGS='-Wl,-Fl'; \
510 expr $(PLATFORM) : 'hpux64' > /dev/null && ALLSYMSFLAGS='-Wl,+forceload'; \
511 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+h,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX,+cdp,../:,+cdp,./:"; \
513 rm -f $(DSTDIR)/$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX || :; \
514 $(LINK_SO_SHLIB) && chmod a=rx $(DSTDIR)/$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX
516 @if $(DETECT_GNU_LD); then $(DO_GNU_APP); else \
517 LDFLAGS="$(CFLAGS) $(LDFLAGS) -Wl,+s,+cdp,../:,+cdp,./:"; \
522 @OBJECT_MODE=`expr "x$(SHARED_LDFLAGS)" : 'x\-[a-z]*\(64\)'` || :; \
523 OBJECT_MODE=$${OBJECT_MODE:-32}; export OBJECT_MODE; \
524 SHLIB=$(LIBNAME).so; \
528 SHAREDFLAGS='$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-bexpall,-bnolibpath,-bM:SRE'; \
529 rm -f $(DSTDIR)/$$SHLIB$$SHLIB_SOVER 2>&1 > /dev/null ; \
532 @ $(CALC_VERSIONS); \
533 OBJECT_MODE=`expr "x$(SHARED_LDFLAGS)" : 'x\-[a-z]*\(64\)'` || : ; \
534 OBJECT_MODE=$${OBJECT_MODE:-32}; export OBJECT_MODE; \
535 SHLIB=lib$(LIBNAME).so; \
537 ALLSYMSFLAGS='-bnogc'; \
539 SHAREDFLAGS='$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-bexpall,-bnolibpath,-bM:SRE'; \
540 rm -f $(DSTDIR)/$$SHLIB$$SHLIB_SOVER 2>&1 > /dev/null ; \
541 $(LINK_SO_SHLIB_VIA_O)
543 LDFLAGS="$(CFLAGS) -Wl,-bsvr4 $(LDFLAGS)"; \
547 # Targets to build symbolic links when needed
548 symlink.gnu symlink.solaris symlink.svr3 symlink.svr5 symlink.irix \
550 @ $(CALC_VERSIONS); \
551 SHLIB=lib$(LIBNAME).so; \
554 @ $(CALC_VERSIONS); \
555 SHLIB=lib$(LIBNAME); \
556 SHLIB_SUFFIX=.dylib; \
559 @ $(CALC_VERSIONS); \
560 SHLIB=lib$(LIBNAME).sl; \
561 expr $(PLATFORM) : '.*ia64' > /dev/null && SHLIB=lib$(LIBNAME).so; \
563 # The following lines means those specific architectures do no symlinks
564 symlink.cygwin symlink.alpha-osf1 symlink.tru64 symlink.tru64-rpath:
566 # Compatibility targets
567 link_dso.bsd-gcc-shared link_dso.linux-shared link_dso.gnu-shared: link_dso.gnu
568 link_shlib.bsd-gcc-shared: link_shlib.linux-shared
569 link_shlib.gnu-shared: link_shlib.gnu
570 link_app.bsd-gcc-shared link_app.linux-shared link_app.gnu-shared: link_app.gnu
571 symlink.bsd-gcc-shared symlink.bsd-shared symlink.linux-shared symlink.gnu-shared: symlink.gnu
572 link_dso.bsd-shared: link_dso.bsd
573 link_shlib.bsd-shared: link_shlib.bsd
574 link_app.bsd-shared: link_app.bsd
575 link_dso.darwin-shared: link_dso.darwin
576 link_shlib.darwin-shared: link_shlib.darwin
577 link_app.darwin-shared: link_app.darwin
578 symlink.darwin-shared: symlink.darwin
579 link_dso.cygwin-shared: link_dso.cygwin
580 link_shlib.cygwin-shared: link_shlib.cygwin
581 link_app.cygwin-shared: link_app.cygwin
582 symlink.cygwin-shared: symlink.cygwin
583 link_dso.mingw-shared: link_dso.cygwin
584 link_shlib.mingw-shared: link_shlib.mingw
585 link_app.mingw-shared: link_app.cygwin
586 symlink.mingw-shared: symlink.cygwin
587 link_dso.alpha-osf1-shared: link_dso.alpha-osf1
588 link_shlib.alpha-osf1-shared: link_shlib.alpha-osf1
589 link_app.alpha-osf1-shared: link_app.alpha-osf1
590 symlink.alpha-osf1-shared: symlink.alpha-osf1
591 link_dso.tru64-shared: link_dso.tru64
592 link_shlib.tru64-shared: link_shlib.tru64
593 link_app.tru64-shared: link_app.tru64
594 symlink.tru64-shared: symlink.tru64
595 link_dso.tru64-shared-rpath: link_dso.tru64-rpath
596 link_shlib.tru64-shared-rpath: link_shlib.tru64-rpath
597 link_app.tru64-shared-rpath: link_app.tru64-rpath
598 symlink.tru64-shared-rpath: symlink.tru64-rpath
599 link_dso.solaris-shared: link_dso.solaris
600 link_shlib.solaris-shared: link_shlib.solaris
601 link_app.solaris-shared: link_app.solaris
602 symlink.solaris-shared: symlink.solaris
603 link_dso.svr3-shared: link_dso.svr3
604 link_shlib.svr3-shared: link_shlib.svr3
605 link_app.svr3-shared: link_app.svr3
606 symlink.svr3-shared: symlink.svr3
607 link_dso.svr5-shared: link_dso.svr5
608 link_shlib.svr5-shared: link_shlib.svr5
609 link_app.svr5-shared: link_app.svr5
610 symlink.svr5-shared: symlink.svr5
611 link_dso.irix-shared: link_dso.irix
612 link_shlib.irix-shared: link_shlib.irix
613 link_app.irix-shared: link_app.irix
614 symlink.irix-shared: symlink.irix
615 link_dso.hpux-shared: link_dso.hpux
616 link_shlib.hpux-shared: link_shlib.hpux
617 link_app.hpux-shared: link_app.hpux
618 symlink.hpux-shared: symlink.hpux
619 link_dso.aix-shared: link_dso.aix
620 link_shlib.aix-shared: link_shlib.aix
621 link_app.aix-shared: link_app.aix
622 symlink.aix-shared: symlink.aix