1998-10-20 20:41:24 +04:00
|
|
|
#
|
2005-02-25 00:55:12 +03:00
|
|
|
# "$Id$"
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|
1998-10-21 18:00:53 +04:00
|
|
|
# Make include file for the Fast Light Tool Kit (FLTK).
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|
2010-11-29 00:28:30 +03:00
|
|
|
# Copyright 1998-2010 by Bill Spitzak and others.
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2005-04-16 04:13:17 +04:00
|
|
|
# Please report all bugs and problems on the following page:
|
|
|
|
#
|
|
|
|
# http://www.fltk.org/str.php
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|
|
|
|
|
2002-07-14 21:03:31 +04:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
datadir = @datadir@
|
2007-02-08 22:17:47 +03:00
|
|
|
datarootdir = @datarootdir@
|
2002-07-14 21:03:31 +04:00
|
|
|
includedir = @includedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
mandir = @mandir@
|
|
|
|
srcdir = @srcdir@
|
2005-04-21 15:24:18 +04:00
|
|
|
docdir = $(datadir)/doc/fltk
|
2002-07-14 21:03:31 +04:00
|
|
|
VPATH = @srcdir@
|
2010-12-17 13:43:41 +03:00
|
|
|
USEMMFILES = @USEMMFILES@
|
2001-02-12 18:12:14 +03:00
|
|
|
# programs we use...
|
2002-07-14 21:03:31 +04:00
|
|
|
HTMLDOC = @HTMLDOC@
|
2008-10-15 19:58:04 +04:00
|
|
|
DOXYDOC = @DOXYDOC@
|
2007-02-06 22:35:28 +03:00
|
|
|
INSTALL = @INSTALL@
|
2002-07-14 21:03:31 +04:00
|
|
|
LN = ln -s
|
|
|
|
NROFF = @NROFF@
|
|
|
|
RM = rm -f
|
|
|
|
RMDIR = rm -rf
|
2002-07-26 18:22:02 +04:00
|
|
|
SHELL = /bin/sh
|
2002-07-14 21:03:31 +04:00
|
|
|
STRIP = strip
|
2001-02-12 18:12:14 +03:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
# compiler names:
|
2002-07-14 21:03:31 +04:00
|
|
|
CXX = @CXX@
|
|
|
|
CC = @CC@
|
|
|
|
MAKEDEPEND = @MAKEDEPEND@
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2010-12-08 12:48:07 +03:00
|
|
|
# (Windows) resource compiler
|
|
|
|
RC = @RC@
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
# flags for C++ compiler:
|
2006-06-19 22:29:31 +04:00
|
|
|
ARCHFLAGS = @ARCHFLAGS@
|
2002-07-14 21:03:31 +04:00
|
|
|
OPTIM = @OPTIM@
|
2007-02-05 21:39:27 +03:00
|
|
|
CFLAGS = $(OPTIM) @LARGEFILE@ @PTHREAD_FLAGS@ @CPPFLAGS@ @CFLAGS@
|
|
|
|
CXXFLAGS = $(OPTIM) @LARGEFILE@ @PTHREAD_FLAGS@ @CPPFLAGS@ @CXXFLAGS@
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
# program to make the archive:
|
2002-07-14 21:03:31 +04:00
|
|
|
LIBNAME = @LIBNAME@
|
|
|
|
FLLIBNAME = @FLLIBNAME@
|
|
|
|
GLLIBNAME = @GLLIBNAME@
|
|
|
|
IMGLIBNAME = @IMGLIBNAME@
|
Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo lib
+ added new USE_CAIRO config preprocessor def.
to differentiate from HAVE_CAIRO so that we can use the cairo lib
without forcing the full fltk lib to be linked against it.
In that case, cairo autolink context functionality which needs fltk lib
instrumentation is disabled.
+ added new --enable-cairoext, which correspond to previous --enable-cairo.
now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib
from referencing cairo.
In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is
created. This lib, similarly to local versions of png,jpeg and zlib,
is not generated if cairo is not enabled.
+ added cairo to fltk-config : now new --use-cairo flag is available
+ modified all unix like makefiles to now generate minimum cairo deps and also
new libfltk_cairo lib.
+ added new cairo subdir to permit conditional fltk_cairo lib generation.
+ vc2005 project minimum update to compile without be broken, but still needs
to create a similar fltk_cairo independent lib. For now, it works as before
with a dedicated cairo env. similar to --enable-cairoext context in unix.
+ regression tested ok with cairo disabled on win32, mac osx, mingw.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19 05:42:35 +04:00
|
|
|
CAIROLIBNAME = @CAIROLIBNAME@
|
2002-07-14 21:03:31 +04:00
|
|
|
LIBCOMMAND = @LIBCOMMAND@
|
2004-07-23 23:26:27 +04:00
|
|
|
LIBEXT = @LIBEXT@
|
2002-07-14 21:03:31 +04:00
|
|
|
RANLIB = @RANLIB@
|
|
|
|
DSONAME = @DSONAME@
|
|
|
|
FLDSONAME = @FLDSONAME@
|
|
|
|
GLDSONAME = @GLDSONAME@
|
|
|
|
IMGDSONAME = @IMGDSONAME@
|
2008-10-19 14:19:11 +04:00
|
|
|
CAIRODSONAME = @CAIRODSONAME@
|
2002-07-14 21:03:31 +04:00
|
|
|
DSOCOMMAND = @DSOCOMMAND@
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2008-12-29 22:45:46 +03:00
|
|
|
LIBBASENAME = @LIBBASENAME@
|
|
|
|
FLLIBBASENAME = @FLLIBBASENAME@
|
|
|
|
GLLIBBASENAME = @GLLIBBASENAME@
|
|
|
|
IMGLIBBASENAME = @IMGLIBBASENAME@
|
|
|
|
CAIROLIBBASENAME= @CAIROLIBBASENAME@
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
# libraries to link with:
|
2005-12-05 03:55:01 +03:00
|
|
|
AUDIOLIBS = @AUDIOLIBS@
|
Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo lib
+ added new USE_CAIRO config preprocessor def.
to differentiate from HAVE_CAIRO so that we can use the cairo lib
without forcing the full fltk lib to be linked against it.
In that case, cairo autolink context functionality which needs fltk lib
instrumentation is disabled.
+ added new --enable-cairoext, which correspond to previous --enable-cairo.
now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib
from referencing cairo.
In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is
created. This lib, similarly to local versions of png,jpeg and zlib,
is not generated if cairo is not enabled.
+ added cairo to fltk-config : now new --use-cairo flag is available
+ modified all unix like makefiles to now generate minimum cairo deps and also
new libfltk_cairo lib.
+ added new cairo subdir to permit conditional fltk_cairo lib generation.
+ vc2005 project minimum update to compile without be broken, but still needs
to create a similar fltk_cairo independent lib. For now, it works as before
with a dedicated cairo env. similar to --enable-cairoext context in unix.
+ regression tested ok with cairo disabled on win32, mac osx, mingw.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19 05:42:35 +04:00
|
|
|
CAIROLIBS = @CAIROLIBS@
|
|
|
|
CAIROFLAGS = @CAIROFLAGS@
|
2007-11-21 07:43:28 +03:00
|
|
|
DSOFLAGS = -L. @DSOFLAGS@
|
2006-07-25 23:06:56 +04:00
|
|
|
LDFLAGS = $(OPTIM) @LDFLAGS@
|
|
|
|
LDLIBS = @LIBS@
|
|
|
|
GLDLIBS = @GLLIB@ @LIBS@
|
2005-08-08 04:44:38 +04:00
|
|
|
LINKFLTK = @LINKFLTK@
|
|
|
|
LINKFLTKGL = @LINKFLTKGL@
|
|
|
|
LINKFLTKFORMS = @LINKFLTKFORMS@ @LINKFLTK@
|
|
|
|
LINKFLTKIMG = @LINKFLTKIMG@ @LINKFLTK@ $(IMAGELIBS)
|
Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo lib
+ added new USE_CAIRO config preprocessor def.
to differentiate from HAVE_CAIRO so that we can use the cairo lib
without forcing the full fltk lib to be linked against it.
In that case, cairo autolink context functionality which needs fltk lib
instrumentation is disabled.
+ added new --enable-cairoext, which correspond to previous --enable-cairo.
now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib
from referencing cairo.
In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is
created. This lib, similarly to local versions of png,jpeg and zlib,
is not generated if cairo is not enabled.
+ added cairo to fltk-config : now new --use-cairo flag is available
+ modified all unix like makefiles to now generate minimum cairo deps and also
new libfltk_cairo lib.
+ added new cairo subdir to permit conditional fltk_cairo lib generation.
+ vc2005 project minimum update to compile without be broken, but still needs
to create a similar fltk_cairo independent lib. For now, it works as before
with a dedicated cairo env. similar to --enable-cairoext context in unix.
+ regression tested ok with cairo disabled on win32, mac osx, mingw.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19 05:42:35 +04:00
|
|
|
LINKFLTKCAIRO = @LINKFLTKCAIRO@ $(CAIROLIBS)
|
2008-10-26 01:06:31 +04:00
|
|
|
FLTKCAIROOPTION = @FLTKCAIROOPTION@
|
Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo lib
+ added new USE_CAIRO config preprocessor def.
to differentiate from HAVE_CAIRO so that we can use the cairo lib
without forcing the full fltk lib to be linked against it.
In that case, cairo autolink context functionality which needs fltk lib
instrumentation is disabled.
+ added new --enable-cairoext, which correspond to previous --enable-cairo.
now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib
from referencing cairo.
In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is
created. This lib, similarly to local versions of png,jpeg and zlib,
is not generated if cairo is not enabled.
+ added cairo to fltk-config : now new --use-cairo flag is available
+ modified all unix like makefiles to now generate minimum cairo deps and also
new libfltk_cairo lib.
+ added new cairo subdir to permit conditional fltk_cairo lib generation.
+ vc2005 project minimum update to compile without be broken, but still needs
to create a similar fltk_cairo independent lib. For now, it works as before
with a dedicated cairo env. similar to --enable-cairoext context in unix.
+ regression tested ok with cairo disabled on win32, mac osx, mingw.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19 05:42:35 +04:00
|
|
|
LINKSHARED = @DSOLINK@ @LINKSHARED@ $(IMAGELIBS) $(CAIROLIBS)
|
2005-08-08 20:00:53 +04:00
|
|
|
IMAGELIBS = -L../lib @IMAGELIBS@
|
2002-08-05 21:58:16 +04:00
|
|
|
|
2004-07-06 04:18:49 +04:00
|
|
|
# image libraries to build...
|
|
|
|
IMAGEDIRS = @JPEG@ @ZLIB@ @PNG@
|
Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo lib
+ added new USE_CAIRO config preprocessor def.
to differentiate from HAVE_CAIRO so that we can use the cairo lib
without forcing the full fltk lib to be linked against it.
In that case, cairo autolink context functionality which needs fltk lib
instrumentation is disabled.
+ added new --enable-cairoext, which correspond to previous --enable-cairo.
now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib
from referencing cairo.
In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is
created. This lib, similarly to local versions of png,jpeg and zlib,
is not generated if cairo is not enabled.
+ added cairo to fltk-config : now new --use-cairo flag is available
+ modified all unix like makefiles to now generate minimum cairo deps and also
new libfltk_cairo lib.
+ added new cairo subdir to permit conditional fltk_cairo lib generation.
+ vc2005 project minimum update to compile without be broken, but still needs
to create a similar fltk_cairo independent lib. For now, it works as before
with a dedicated cairo env. similar to --enable-cairoext context in unix.
+ regression tested ok with cairo disabled on win32, mac osx, mingw.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19 05:42:35 +04:00
|
|
|
CAIRODIR = @CAIRODIR@
|
2002-08-05 21:58:16 +04:00
|
|
|
# The extension to use for executables...
|
|
|
|
EXEEXT = @EXEEXT@
|
1998-10-20 20:41:24 +04:00
|
|
|
|
2001-08-02 22:15:44 +04:00
|
|
|
# Do we build the OpenGL demos?
|
2002-07-14 21:03:31 +04:00
|
|
|
GLDEMOS = @GLDEMOS@
|
2001-08-02 22:15:44 +04:00
|
|
|
|
2001-12-15 00:02:24 +03:00
|
|
|
# Do we build the threads demo?
|
2002-07-14 21:03:31 +04:00
|
|
|
THREADS = @THREADS@
|
|
|
|
|
|
|
|
# Name of FLUID executable we install
|
2002-08-05 21:58:16 +04:00
|
|
|
FLUID = @FLUID@$(EXEEXT)
|
2001-11-18 15:48:38 +03:00
|
|
|
|
2008-02-26 18:26:08 +03:00
|
|
|
# Possible steps for OS X build only
|
|
|
|
OSX_ONLY = @OSX_ONLY@
|
|
|
|
|
2001-02-12 18:34:37 +03:00
|
|
|
# Man page extensions...
|
2002-07-14 21:03:31 +04:00
|
|
|
CAT1EXT = @CAT1EXT@
|
|
|
|
CAT3EXT = @CAT3EXT@
|
2006-01-15 21:36:16 +03:00
|
|
|
CAT6EXT = @CAT6EXT@
|
2001-02-12 18:34:37 +03:00
|
|
|
|
2007-02-06 22:35:28 +03:00
|
|
|
#
|
|
|
|
# Installation programs...
|
|
|
|
#
|
|
|
|
|
|
|
|
INSTALL_BIN = $(INSTALL) -m 755
|
|
|
|
INSTALL_DATA = $(INSTALL) -m 644
|
2007-05-03 19:49:59 +04:00
|
|
|
INSTALL_DIR = $(INSTALL) -d
|
2007-02-06 22:35:28 +03:00
|
|
|
INSTALL_LIB = $(INSTALL) -m 755
|
|
|
|
INSTALL_MAN = $(INSTALL) -m 644
|
|
|
|
INSTALL_SCRIPT = $(INSTALL) -m 755
|
|
|
|
|
2006-01-15 06:16:09 +03:00
|
|
|
# Additional GUI install/uninstall targets...
|
|
|
|
INSTALL_DESKTOP = @INSTALL_DESKTOP@
|
|
|
|
UNINSTALL_DESKTOP = @UNINSTALL_DESKTOP@
|
|
|
|
|
2000-04-26 02:17:00 +04:00
|
|
|
# Be quiet when building...
|
|
|
|
.SILENT:
|
|
|
|
|
|
|
|
# Build commands and filename extensions...
|
2010-12-17 13:43:41 +03:00
|
|
|
.SUFFIXES: .0 .1 .3 .6 .c .cxx .mm .h .fl .man .o .z $(EXEEXT)
|
2000-04-26 02:17:00 +04:00
|
|
|
|
2001-11-30 00:24:49 +03:00
|
|
|
.o$(EXEEXT):
|
|
|
|
echo Linking $@...
|
2006-07-25 23:06:56 +04:00
|
|
|
$(CXX) $(ARCHFLAGS) $(LDFLAGS) $< $(LINKFLTK) $(LDLIBS) -o $@
|
2000-04-26 02:17:00 +04:00
|
|
|
|
|
|
|
.c.o:
|
2001-12-13 00:57:17 +03:00
|
|
|
echo Compiling $<...
|
2008-09-11 03:56:49 +04:00
|
|
|
$(CC) -I.. $(ARCHFLAGS) @PNGINC@ @JPEGINC@ @ZLIBINC@ $(CFLAGS) -c $< -o $@
|
2000-04-26 02:17:00 +04:00
|
|
|
|
|
|
|
.cxx.o:
|
2001-12-13 00:57:17 +03:00
|
|
|
echo Compiling $<...
|
2010-12-17 13:43:41 +03:00
|
|
|
$(CXX) -I.. $(ARCHFLAGS) @PNGINC@ @JPEGINC@ @ZLIBINC@ $(CXXFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
.mm.o:
|
|
|
|
echo Compiling $<...
|
|
|
|
$(CXX) -I.. $(ARCHFLAGS) $(CXXFLAGS) -x objective-c++ -c $< -o $@
|
|
|
|
|
2000-04-26 02:17:00 +04:00
|
|
|
|
2006-08-29 22:44:59 +04:00
|
|
|
.man.0 .man.1 .man.3 .man.6:
|
2001-02-12 18:12:14 +03:00
|
|
|
echo Formatting $<...
|
2001-02-12 18:34:37 +03:00
|
|
|
rm -f $@
|
2001-02-12 18:12:14 +03:00
|
|
|
$(NROFF) -man $< >$@
|
|
|
|
|
|
|
|
.man.z:
|
|
|
|
echo Formatting $<...
|
2001-02-12 18:34:37 +03:00
|
|
|
rm -f $@ t.z
|
2001-02-12 18:12:14 +03:00
|
|
|
$(NROFF) -man $< >t
|
|
|
|
pack -f t
|
2001-02-12 18:34:37 +03:00
|
|
|
mv t.z $@
|
2001-02-12 18:12:14 +03:00
|
|
|
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|
2005-02-25 00:55:12 +03:00
|
|
|
# End of "$Id$".
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|