New fltk-config script for 1.1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
5a64091595
commit
ddf259f2bb
2
CHANGES
2
CHANGES
@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.0b2
|
CHANGES IN FLTK 1.1.0b2
|
||||||
|
|
||||||
|
- New fltk-config script.
|
||||||
|
|
||||||
- Fixed image/text label handling; in b1 the label
|
- Fixed image/text label handling; in b1 the label
|
||||||
needed a non-blank text string to display the image.
|
needed a non-blank text string to display the image.
|
||||||
This bug also caused all sorts of crashes and display
|
This bug also caused all sorts of crashes and display
|
||||||
|
8
Makefile
8
Makefile
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# "$Id: Makefile,v 1.12.2.6.2.4 2001/08/02 20:09:25 easysw Exp $"
|
# "$Id: Makefile,v 1.12.2.6.2.5 2001/09/29 15:57:32 easysw Exp $"
|
||||||
#
|
#
|
||||||
# Top-level makefile for the Fast Light Tool Kit (FLTK).
|
# Top-level makefile for the Fast Light Tool Kit (FLTK).
|
||||||
#
|
#
|
||||||
@ -38,6 +38,10 @@ install: makeinclude
|
|||||||
(cd $$dir; $(MAKE) $(MFLAGS) install) || break;\
|
(cd $$dir; $(MAKE) $(MFLAGS) install) || break;\
|
||||||
done
|
done
|
||||||
(cd documentation; $(MAKE) $(MFLAGS) install)
|
(cd documentation; $(MAKE) $(MFLAGS) install)
|
||||||
|
-mkdir -p $(bindir)
|
||||||
|
rm -f $(bindir)/fltk-config
|
||||||
|
-cp fltk-config $(bindir)
|
||||||
|
-chmod +x $(bindir)/fltk-config
|
||||||
|
|
||||||
depend: makeinclude
|
depend: makeinclude
|
||||||
@for dir in $(DIRS); do\
|
@for dir in $(DIRS); do\
|
||||||
@ -67,5 +71,5 @@ configure: configure.in
|
|||||||
autoconf
|
autoconf
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of "$Id: Makefile,v 1.12.2.6.2.4 2001/08/02 20:09:25 easysw Exp $".
|
# End of "$Id: Makefile,v 1.12.2.6.2.5 2001/09/29 15:57:32 easysw Exp $".
|
||||||
#
|
#
|
||||||
|
40
configure.in
40
configure.in
@ -1,7 +1,7 @@
|
|||||||
dnl -*- sh -*-
|
dnl -*- sh -*-
|
||||||
dnl the "configure" script is made from this by running GNU "autoconf"
|
dnl the "configure" script is made from this by running GNU "autoconf"
|
||||||
dnl
|
dnl
|
||||||
dnl "$Id: configure.in,v 1.33.2.31.2.7 2001/08/11 16:09:26 easysw Exp $"
|
dnl "$Id: configure.in,v 1.33.2.31.2.8 2001/09/29 15:57:32 easysw Exp $"
|
||||||
dnl
|
dnl
|
||||||
dnl Configuration script for the Fast Light Tool Kit (FLTK).
|
dnl Configuration script for the Fast Light Tool Kit (FLTK).
|
||||||
dnl
|
dnl
|
||||||
@ -30,11 +30,11 @@ AC_INIT(src/Fl.cxx)
|
|||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
|
|
||||||
LINKFLTK="-lfltk"
|
LINKFLTK="-lfltk"
|
||||||
LINKFLTKGL="-lfltkgl"
|
LINKFLTKGL="-lfltk_gl"
|
||||||
GLDEMOS="gldemos"
|
GLDEMOS="gldemos"
|
||||||
|
|
||||||
LIBNAME="../lib/libfltk.a"
|
LIBNAME="../lib/libfltk.a"
|
||||||
GLLIBNAME="../lib/libfltkgl.a"
|
GLLIBNAME="../lib/libfltk_gl.a"
|
||||||
if test "$RANLIB" != ":"; then
|
if test "$RANLIB" != ":"; then
|
||||||
LIBCOMMAND="ar cr"
|
LIBCOMMAND="ar cr"
|
||||||
else
|
else
|
||||||
@ -64,39 +64,53 @@ AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],
|
|||||||
fi])
|
fi])
|
||||||
AC_ARG_ENABLE(gl, [ --enable-gl turn on OpenGL support [default=yes]])
|
AC_ARG_ENABLE(gl, [ --enable-gl turn on OpenGL support [default=yes]])
|
||||||
AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [default=no]],[
|
AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [default=no]],[
|
||||||
|
DSOLINK=""
|
||||||
|
AC_SUBST(DSOLINK)
|
||||||
if eval "test x$enable_shared = xyes"; then
|
if eval "test x$enable_shared = xyes"; then
|
||||||
PICFLAG=1
|
PICFLAG=1
|
||||||
case $uname in
|
case $uname in
|
||||||
SunOS* | UNIX_S*)
|
SunOS* | UNIX_S*)
|
||||||
DSONAME="libfltk.so.1.1"
|
DSONAME="libfltk.so.1.1"
|
||||||
GLDSONAME="libfltkgl.so.1.1"
|
GLDSONAME="libfltk_gl.so.1.1"
|
||||||
DSOCOMMAND="\$(CXX) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
|
DSOCOMMAND="\$(CXX) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
|
||||||
|
if test "$libdir" != "/usr/lib"; then
|
||||||
|
DSOLINK="-R$libdir"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
HP-UX*)
|
HP-UX*)
|
||||||
DSONAME="libfltk.sl.1.1"
|
DSONAME="libfltk.sl.1.1"
|
||||||
GLDSONAME="libfltkgl.sl.1.1"
|
GLDSONAME="libfltk_gl.sl.1.1"
|
||||||
DSOCOMMAND="ld -b -z +h \$@ $DEBUGFLAG -o"
|
DSOCOMMAND="ld -b -z +h \$@ $DEBUGFLAG -o"
|
||||||
|
if test "$libdir" != "/usr/lib"; then
|
||||||
|
DSOLINK="-Wl,-rpath,$libdir"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
IRIX* | OSF1*)
|
IRIX* | OSF1*)
|
||||||
DSONAME="libfltk.so.1.1"
|
DSONAME="libfltk.so.1.1"
|
||||||
GLDSONAME="libfltkgl.so.1.1"
|
GLDSONAME="libfltk_gl.so.1.1"
|
||||||
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
|
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
|
||||||
|
if test "$libdir" != "/usr/lib" - a "$libdir" != "/usr/lib32"; then
|
||||||
|
DSOLINK="-Wl,-rpath,$libdir"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
FreeBSD* | NetBSD* | OpenBSD*)
|
FreeBSD* | NetBSD* | OpenBSD* | Linux*)
|
||||||
DSONAME="libfltk.so.1.1"
|
DSONAME="libfltk.so.1.1"
|
||||||
GLDSONAME="libfltkgl.so.1.1"
|
GLDSONAME="libfltk_gl.so.1.1"
|
||||||
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
|
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
|
||||||
|
if test "$libdir" != "/usr/lib"; then
|
||||||
|
DSOLINK="-Wl,-rpath,$libdir"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
AIX*)
|
AIX*)
|
||||||
DSONAME="libfltk_s.a"
|
DSONAME="libfltk_s.a"
|
||||||
GLDSONAME="libfltkgl_s.a"
|
GLDSONAME="libfltk_gl_s.a"
|
||||||
DSOCOMMAND="\$(CXX) -Wl,-bexpall,-bM:SRE,-bnoentry -o"
|
DSOCOMMAND="\$(CXX) -Wl,-bexpall,-bM:SRE,-bnoentry -o"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Warning: shared libraries may not be supported. Trying -shared"
|
echo "Warning: shared libraries may not be supported. Trying -shared"
|
||||||
echo " option with compiler."
|
echo " option with compiler."
|
||||||
DSONAME="libfltk.so.1.1"
|
DSONAME="libfltk.so.1.1"
|
||||||
GLDSONAME="libfltkgl.so.1.1"
|
GLDSONAME="libfltk_gl.so.1.1"
|
||||||
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
|
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -442,8 +456,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CONFIG_HEADER(config.h:configh.in)
|
AC_CONFIG_HEADER(config.h:configh.in)
|
||||||
AC_OUTPUT(makeinclude)
|
AC_OUTPUT(makeinclude fltk-config)
|
||||||
|
|
||||||
|
chmod +x fltk-config
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl End of "$Id: configure.in,v 1.33.2.31.2.7 2001/08/11 16:09:26 easysw Exp $".
|
dnl End of "$Id: configure.in,v 1.33.2.31.2.8 2001/09/29 15:57:32 easysw Exp $".
|
||||||
dnl
|
dnl
|
||||||
|
169
fltk-config.in
169
fltk-config.in
@ -1,24 +1,39 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
#
|
#
|
||||||
# fltk-config
|
# "$Id: fltk-config.in,v 1.12.2.1 2001/09/29 15:57:32 easysw Exp $"
|
||||||
#
|
#
|
||||||
# original version by James Dean Palmer, adapted by Vincent Penne
|
# FLTK configuration utility.
|
||||||
#
|
#
|
||||||
# "$Id: fltk-config.in,v 1.12 2001/08/05 10:48:38 spitzak Exp $"
|
# Original version Copyright 2000 by James Dean Palmer
|
||||||
|
# Adapted by Vincent Penne and Michael Sweet
|
||||||
|
#
|
||||||
|
# This library is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU Library General Public
|
||||||
|
# License as published by the Free Software Foundation; either
|
||||||
|
# version 2 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This library is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# Library General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Library General Public
|
||||||
|
# License along with this library; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
# USA.
|
||||||
|
#
|
||||||
|
# Please report all bugs and problems to "fltk-bugs@fltk.org".
|
||||||
#
|
#
|
||||||
|
|
||||||
MAJOR_VERSION=2
|
MAJOR_VERSION=1
|
||||||
MINOR_VERSION=0
|
MINOR_VERSION=1
|
||||||
PATCH_VERSION=0
|
PATCH_VERSION=0
|
||||||
VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
|
VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
|
||||||
|
APIVERSION="$MAJOR_VERSION.$MINOR_VERSION"
|
||||||
|
|
||||||
### BEGIN fltk-config
|
### BEGIN fltk-config
|
||||||
|
|
||||||
# Calculate the prefix from the location of *this* file
|
prefix=@prefix@
|
||||||
prefix=`echo "$0" | sed 's/\/bin\/fltk-config//
|
|
||||||
s/\/fltk-config//'`
|
|
||||||
|
|
||||||
#prefix=@prefix@
|
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
exec_prefix_set=no
|
exec_prefix_set=no
|
||||||
bindir=@bindir@
|
bindir=@bindir@
|
||||||
@ -33,23 +48,16 @@ CC="@CC@"
|
|||||||
# flags for C++ compiler:
|
# flags for C++ compiler:
|
||||||
CFLAGS="@CFLAGS@"
|
CFLAGS="@CFLAGS@"
|
||||||
CXXFLAGS="@CXXFLAGS@"
|
CXXFLAGS="@CXXFLAGS@"
|
||||||
|
LDFLAGS="@LDFLAGS@"
|
||||||
|
LDLIBS="@LDFLAGS@ -lX11 -lXext @X_EXTRA_LIBS@"
|
||||||
|
|
||||||
# program to make the archive:
|
# program to make the archive:
|
||||||
LIBNAME="@LIBNAME@"
|
LIBNAME="@LIBNAME@"
|
||||||
LIBCOMMAND="@LIBCOMMAND@"
|
DSONAME="@DSONAME@"
|
||||||
RANLIB="@RANLIB@"
|
DSOLINK="@DSOLINK@"
|
||||||
DSOLIBNAME="@DSOLIBNAME@"
|
|
||||||
DSOCOMMAND="@DSOCOMMAND@"
|
|
||||||
|
|
||||||
# flags for the linker
|
|
||||||
LD_PLUGIN_FLAGS="@LD_PLUGIN_FLAGS@"
|
|
||||||
|
|
||||||
# libraries to link with:
|
# libraries to link with:
|
||||||
IMAGELIBS="@LIBPNG@ @LIBJPEG@"
|
IMAGELIBS="@IMAGELIBS@"
|
||||||
|
|
||||||
# programs to make archive and build DSOs
|
|
||||||
RANLIB="@RANLIB@"
|
|
||||||
DSOCOMMAND="@DSOCOMMAND@"
|
|
||||||
|
|
||||||
usage ()
|
usage ()
|
||||||
{
|
{
|
||||||
@ -58,15 +66,12 @@ Options:
|
|||||||
[--prefix[=DIR]] return/set where FLTK is installed
|
[--prefix[=DIR]] return/set where FLTK is installed
|
||||||
[--exec-prefix[=DIR]]
|
[--exec-prefix[=DIR]]
|
||||||
[--version]
|
[--version]
|
||||||
|
[--api-version]
|
||||||
|
|
||||||
options telling what we are doing :
|
options telling what we are doing :
|
||||||
[--use-gl] use GL
|
[--use-gl] use GL
|
||||||
[--use-images] use extra image formats (PNG, Jpeg)
|
[--use-images] use extra image formats (PNG, JPEG)
|
||||||
[--use-glut] use glut compatibility layer
|
[--use-glut] use glut compatibility layer
|
||||||
[--use-forms] use forms compatibility layer
|
|
||||||
[--multithread] build a multithreaded program
|
|
||||||
[--build-plugin] build a plugin
|
|
||||||
[--no-plugins] build a program unable to load plugins (Linux only)
|
|
||||||
|
|
||||||
options telling what information we request
|
options telling what information we request
|
||||||
[--cflags] return flags to compile C using FLTK
|
[--cflags] return flags to compile C using FLTK
|
||||||
@ -112,28 +117,15 @@ do
|
|||||||
--version)
|
--version)
|
||||||
echo $VERSION
|
echo $VERSION
|
||||||
;;
|
;;
|
||||||
--use-gl)
|
--api-version)
|
||||||
use_gl=yes
|
echo $APIVERSION
|
||||||
;;
|
;;
|
||||||
--use-glut)
|
--use-gl | --use-glut)
|
||||||
use_glut=yes
|
|
||||||
use_gl=yes
|
use_gl=yes
|
||||||
;;
|
;;
|
||||||
--use-images)
|
--use-images)
|
||||||
use_images=yes
|
use_images=yes
|
||||||
;;
|
;;
|
||||||
--use-forms)
|
|
||||||
use_forms=yes
|
|
||||||
;;
|
|
||||||
--multithread)
|
|
||||||
use_threads=yes
|
|
||||||
;;
|
|
||||||
--build-plugin)
|
|
||||||
build_plugin=yes
|
|
||||||
;;
|
|
||||||
--no-plugins)
|
|
||||||
no_plugins=yes
|
|
||||||
;;
|
|
||||||
--cflags)
|
--cflags)
|
||||||
echo_cflags=yes
|
echo_cflags=yes
|
||||||
;;
|
;;
|
||||||
@ -156,46 +148,36 @@ do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if test "$includedir" != /usr/include; then
|
||||||
|
includes=-I$includedir
|
||||||
|
else
|
||||||
|
includes=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then
|
||||||
|
libs=-L$libdir
|
||||||
|
else
|
||||||
|
libs=
|
||||||
|
fi
|
||||||
|
|
||||||
# Calculate needed libraries
|
# Calculate needed libraries
|
||||||
LDLIBS=""
|
LDSTATIC="$libdir/libfltk.a $LDLIBS"
|
||||||
LDSTATIC=""
|
LDLIBS="$libs -lfltk $LDLIBS"
|
||||||
LIBS=""
|
LIBS="$LIBS $libdir/libfltk.a"
|
||||||
if test "$use_forms" = "yes"; then
|
|
||||||
LDLIBS="$LDLIBS -lfltk_forms"
|
|
||||||
LDSTATIC="$LDSTATIC $prefix/lib/libfltk_forms.a"
|
|
||||||
LIBS="$LIBS $prefix/lib/libfltk_forms.a"
|
|
||||||
fi
|
|
||||||
if test "$use_glut" = "yes"; then
|
|
||||||
LDLIBS="$LDLIBS -lfltk_glut"
|
|
||||||
LDSTATIC="$LDSTATIC $prefix/lib/libfltk_glut.a"
|
|
||||||
LIBS="$LIBS $prefix/lib/libfltk_glut.a"
|
|
||||||
fi
|
|
||||||
if test "$use_gl" = "yes"; then
|
if test "$use_gl" = "yes"; then
|
||||||
LDLIBS="$LDLIBS -lfltk_gl @GLLIB@"
|
LDLIBS="-lfltk_gl @GLLIB@ $LDLIBS"
|
||||||
LDSTATIC="$LDSTATIC $prefix/lib/libfltk_gl.a @GLLIB@"
|
LDSTATIC="$libdir/libfltk_gl.a @GLLIB@ $LDSTATIC"
|
||||||
LIBS="$LIBS $prefix/lib/libfltk_gl.a"
|
LIBS="$LIBS $libdir/libfltk_gl.a"
|
||||||
fi
|
fi
|
||||||
if test "$use_images" = "yes"; then
|
if test "$use_images" = "yes"; then
|
||||||
LDLIBS="$LDLIBS -lfltk_images $IMAGELIBS"
|
LDLIBS="$LDLIBS $IMAGELIBS"
|
||||||
LDSTATIC="$LDSTATIC $prefix/lib/libfltk_images.a $IMAGELIBS"
|
LDSTATIC="$LDSTATIC $IMAGELIBS"
|
||||||
LIBS="$LIBS $prefix/lib/libfltk_images.a"
|
|
||||||
fi
|
|
||||||
if test "$build_plugin" = "yes"; then
|
|
||||||
LDLIBS="$LDLIBS $LD_PLUGIN_FLAGS"
|
|
||||||
LDSTATIC="$LDSTATIC $LD_PLUGIN_FLAGS"
|
|
||||||
fi
|
|
||||||
LDLIBS="$LDLIBS -lfltk @LDFLAGS@ @LIBS@ @LDLIBS@ -lm"
|
|
||||||
LDSTATIC="$LDSTATIC $prefix/lib/libfltk.a @LDFLAGS@ @LIBS@ @LDLIBS@ -lm"
|
|
||||||
LIBS="$LIBS $prefix/lib/libfltk.a"
|
|
||||||
if test "$use_threads" = "yes"; then
|
|
||||||
LDLIBS="$LDLIBS @THREADSLIBS@"
|
|
||||||
LDSTATIC="$LDSTATIC @THREADSLIBS@"
|
|
||||||
fi
|
|
||||||
if test "$no_plugins" = "no"; then
|
|
||||||
LDLIBS="$LDLIBS @LD_DLOPEN_FLAGS@"
|
|
||||||
LDSTATIC="$LDSTATIC @LD_DLOPEN_FLAGS@"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LDLIBS="$DSOLINK $LDLIBS -lm"
|
||||||
|
LDSTATIC="$LDSTATIC -lm"
|
||||||
|
|
||||||
# Answer to user requests
|
# Answer to user requests
|
||||||
if test -n "$echo_help"; then usage 1
|
if test -n "$echo_help"; then usage 1
|
||||||
fi
|
fi
|
||||||
@ -209,30 +191,27 @@ if test "$echo_exec_prefix" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$echo_cflags" = "yes"; then
|
if test "$echo_cflags" = "yes"; then
|
||||||
includes=-I`echo "$0" | sed 's/\/bin\/fltk-config/\/include/
|
echo $includes $CFLAGS
|
||||||
s/\/fltk-config//'`
|
|
||||||
echo $includes $CFLAGS
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$echo_cxxflags" = "yes"; then
|
if test "$echo_cxxflags" = "yes"; then
|
||||||
includes=-I`echo "$0" | sed 's/\/bin\/fltk-config/\/include/
|
echo $includes $CXXFLAGS
|
||||||
s/\/fltk-config//'`
|
|
||||||
echo $includes $CXXFLAGS
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$echo_ldflags" = "yes"; then
|
if test "$echo_ldflags" = "yes"; then
|
||||||
my_libs=
|
my_libs=
|
||||||
libdirs=-L${exec_prefix}/lib
|
libdirs=$libs
|
||||||
for i in $LDLIBS ; do
|
|
||||||
if test $i != -L${exec_prefix}/lib ; then
|
for i in $LDLIBS ; do
|
||||||
if test -z "$my_libs" ; then
|
if test $i != -L$libdir ; then
|
||||||
my_libs="$i"
|
if test -z "$my_libs" ; then
|
||||||
else
|
my_libs="$i"
|
||||||
my_libs="$my_libs $i"
|
else
|
||||||
fi
|
my_libs="$my_libs $i"
|
||||||
fi
|
fi
|
||||||
done
|
fi
|
||||||
echo $libdirs $my_libs
|
done
|
||||||
|
echo $libdirs $my_libs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$echo_ldstaticflags" = "yes"; then
|
if test "$echo_ldstaticflags" = "yes"; then
|
||||||
|
40
src/Makefile
40
src/Makefile
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# "$Id: Makefile,v 1.18.2.14.2.10 2001/09/29 14:38:59 easysw Exp $"
|
# "$Id: Makefile,v 1.18.2.14.2.11 2001/09/29 15:57:32 easysw Exp $"
|
||||||
#
|
#
|
||||||
# Library makefile for the Fast Light Tool Kit (FLTK).
|
# Library makefile for the Fast Light Tool Kit (FLTK).
|
||||||
#
|
#
|
||||||
@ -189,16 +189,16 @@ $(GLLIBNAME): $(GLOBJECTS)
|
|||||||
$(LIBCOMMAND) $@ $(GLOBJECTS)
|
$(LIBCOMMAND) $@ $(GLOBJECTS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
libfltkgl.so.1.1 libfltkgl.sl.1.1: $(GLOBJECTS)
|
libfltk_gl.so.1.1 libfltk_gl.sl.1.1: $(GLOBJECTS)
|
||||||
echo $(DSOCOMMAND) $@ ...
|
echo $(DSOCOMMAND) $@ ...
|
||||||
$(DSOCOMMAND) $@ $(GLOBJECTS)
|
$(DSOCOMMAND) $@ $(GLOBJECTS)
|
||||||
|
|
||||||
libfltkgl_s.a: $(GLOBJECTS)
|
libfltk_gl_s.a: $(GLOBJECTS)
|
||||||
echo $(DSOCOMMAND) libfltkgl_s.o ...
|
echo $(DSOCOMMAND) libfltk_gl_s.o ...
|
||||||
$(DSOCOMMAND) libfltkgl_s.o $(GLOBJECTS)
|
$(DSOCOMMAND) libfltk_gl_s.o $(GLOBJECTS)
|
||||||
echo $(LIBCOMMAND) libfltkgl_s.a libfltkgl_s.o
|
echo $(LIBCOMMAND) libfltk_gl_s.a libfltk_gl_s.o
|
||||||
$(LIBCOMMAND) libfltkgl_s.a libfltkgl_s.o
|
$(LIBCOMMAND) libfltk_gl_s.a libfltk_gl_s.o
|
||||||
chmod +x libfltkgl_s.a
|
chmod +x libfltk_gl_s.a
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
-@ rm -f *.o *.do $(DSONAME) $(LIBRARY) $(CLEAN) core *~ ../include/*~ makedepend cmap
|
-@ rm -f *.o *.do $(DSONAME) $(LIBRARY) $(CLEAN) core *~ ../include/*~ makedepend cmap
|
||||||
@ -231,19 +231,19 @@ install: $(LIBNAME) $(DSONAME) $(GLLIBNAME) $(GLDSONAME)
|
|||||||
rm -f $(libdir)/libfltk_s.a;\
|
rm -f $(libdir)/libfltk_s.a;\
|
||||||
cp libfltk_s.a $(libdir); \
|
cp libfltk_s.a $(libdir); \
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltkgl.so.1.1; then\
|
if test x$(GLDSONAME) = xlibfltk_gl.so.1.1; then\
|
||||||
rm -f $(libdir)/libfltkgl.so*;\
|
rm -f $(libdir)/libfltk_gl.so*;\
|
||||||
cp libfltkgl.so.1.1 $(libdir); \
|
cp libfltk_gl.so.1.1 $(libdir); \
|
||||||
ln -s libfltkgl.so.1.1 $(libdir)/libfltkgl.so;\
|
ln -s libfltk_gl.so.1.1 $(libdir)/libfltk_gl.so;\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltkgl.sl.1.1; then\
|
if test x$(GLDSONAME) = xlibfltk_gl.sl.1.1; then\
|
||||||
rm -f $(libdir)/libfltkgl.sl*;\
|
rm -f $(libdir)/libfltk_gl.sl*;\
|
||||||
cp libfltkgl.sl.1.1 $(libdir); \
|
cp libfltk_gl.sl.1.1 $(libdir); \
|
||||||
ln -s libfltkgl.sl.1.1 $(libdir)/libfltkgl.sl;\
|
ln -s libfltk_gl.sl.1.1 $(libdir)/libfltk_gl.sl;\
|
||||||
fi
|
fi
|
||||||
if test x$(GLDSONAME) = xlibfltkgl_s.a; then\
|
if test x$(GLDSONAME) = xlibfltk_gl_s.a; then\
|
||||||
rm -f $(libdir)/libfltkgl_s.a;\
|
rm -f $(libdir)/libfltk_gl_s.a;\
|
||||||
cp libfltkgl_s.a $(libdir); \
|
cp libfltk_gl_s.a $(libdir); \
|
||||||
fi
|
fi
|
||||||
echo "Installing include files..."
|
echo "Installing include files..."
|
||||||
-mkdir -p $(includedir)
|
-mkdir -p $(includedir)
|
||||||
@ -258,5 +258,5 @@ install: $(LIBNAME) $(DSONAME) $(GLLIBNAME) $(GLDSONAME)
|
|||||||
ln -s FL $(includedir)/Fl
|
ln -s FL $(includedir)/Fl
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of "$Id: Makefile,v 1.18.2.14.2.10 2001/09/29 14:38:59 easysw Exp $".
|
# End of "$Id: Makefile,v 1.18.2.14.2.11 2001/09/29 15:57:32 easysw Exp $".
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user