Updated shared library code to create symbolic links to .so.1 or .sl.1
files... git-svn-id: file:///fltk/svn/fltk/trunk@165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
47e5607d87
commit
13070ee270
10
Makefile
10
Makefile
@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: Makefile,v 1.7 1998/11/05 16:04:35 mike Exp $"
|
||||
# "$Id: Makefile,v 1.8 1998/12/18 13:53:26 mike Exp $"
|
||||
#
|
||||
# Top-level makefile for the Fast Light Tool Kit (FLTK).
|
||||
#
|
||||
@ -44,6 +44,12 @@ install: makeinclude
|
||||
fi;\
|
||||
(cd $$dir;$(MAKE) install);\
|
||||
done
|
||||
@if test "$(LIBNAME)" = libfltk.so.1; then\
|
||||
ln -s libfltk.so.1 $(libdir)/libfltk.so;\
|
||||
fi
|
||||
@if test "$(LIBNAME)" = libfltk.sl.1; then\
|
||||
ln -s libfltk.sl.1 $(libdir)/libfltk.sl;\
|
||||
fi
|
||||
|
||||
depend: makeinclude
|
||||
@for dir in $(DIRS); do\
|
||||
@ -65,5 +71,5 @@ makeinclude: configure configh.in makeinclude.in
|
||||
./configure
|
||||
|
||||
#
|
||||
# End of "$Id: Makefile,v 1.7 1998/11/05 16:04:35 mike Exp $".
|
||||
# End of "$Id: Makefile,v 1.8 1998/12/18 13:53:26 mike Exp $".
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
dnl# -*- sh -*-
|
||||
dnl# the "configure" script is made from this by running GNU "autoconf"
|
||||
dnl#
|
||||
dnl# "$Id: configure.in,v 1.15 1998/12/07 14:57:26 mike Exp $"
|
||||
dnl# "$Id: configure.in,v 1.16 1998/12/18 13:53:27 mike Exp $"
|
||||
dnl#
|
||||
dnl# Configuration script for the Fast Light Tool Kit (FLTK).
|
||||
dnl#
|
||||
@ -48,20 +48,24 @@ if eval "test x$enable_shared = xyes"; then
|
||||
SunOS* | UNIX_S*)
|
||||
LIBNAME="libfltk.so.1"
|
||||
LIBCOMMAND="\$(CXX) -G $DEBUGFLAG -o"
|
||||
ln -s libfltk.so.1 lib/libfltk.so
|
||||
;;
|
||||
HP-UX*)
|
||||
LIBNAME="libfltk.sl.1"
|
||||
LIBCOMMAND="ld -b -z +h libfltk.sl.1 $DEBUGFLAGS -o"
|
||||
ln -s libfltk.sl.1 lib/libfltk.sl
|
||||
;;
|
||||
OSF1* | IRIX*)
|
||||
LIBNAME="libfltk.so.1"
|
||||
LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o"
|
||||
ln -s libfltk.so.1 lib/libfltk.so
|
||||
;;
|
||||
*)
|
||||
echo "Warning: shared libraries may not be supported. Trying -shared"
|
||||
echo " option to compiler."
|
||||
LIBNAME="libfltk.so.1"
|
||||
LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o"
|
||||
ln -s libfltk.so.1 lib/libfltk.so
|
||||
;;
|
||||
esac
|
||||
fi])
|
||||
@ -162,5 +166,5 @@ AC_CONFIG_HEADER(config.h:configh.in)
|
||||
AC_OUTPUT(makeinclude)
|
||||
|
||||
dnl#
|
||||
dnl# End of "$Id: configure.in,v 1.15 1998/12/07 14:57:26 mike Exp $".
|
||||
dnl# End of "$Id: configure.in,v 1.16 1998/12/18 13:53:27 mike Exp $".
|
||||
dnl#
|
||||
|
Loading…
Reference in New Issue
Block a user