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
|
|
|
#
|
2024-01-11 02:33:22 +03:00
|
|
|
# Copyright 1998-2024 by Bill Spitzak and others.
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|
2011-07-19 08:49:30 +04:00
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
2020-06-10 17:24:39 +03:00
|
|
|
# https://www.fltk.org/COPYING.php
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# Please see the following page on how to report bugs and issues:
|
2005-04-16 04:13:17 +04:00
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# https://www.fltk.org/bugs.php
|
1998-10-20 20:41:24 +04:00
|
|
|
#
|
|
|
|
|
2015-03-07 21:37:56 +03:00
|
|
|
# FLTK version numbers
|
|
|
|
|
2020-06-13 16:19:27 +03:00
|
|
|
FL_VERSION = @FLTK_VERSION@
|
2015-03-25 23:06:54 +03:00
|
|
|
FL_DSO_VERSION = @FL_DSO_VERSION@
|
2015-03-07 21:37:56 +03:00
|
|
|
FL_ABI_VERSION = @FL_ABI_VERSION@
|
|
|
|
|
2021-04-28 13:41:40 +03:00
|
|
|
# FLTK version for documentation generation with doxygen
|
|
|
|
|
|
|
|
FLTK_VERSION = @FLTK_VERSION@
|
|
|
|
|
2022-09-10 08:44:23 +03:00
|
|
|
# FLTK configuration options: BUILD = { WIN | OSX | X11 | XFT | CAIROXLIB | WAYLANDX11 | WAYLAND }
|
2016-01-29 02:57:50 +03:00
|
|
|
|
2016-08-12 19:59:06 +03:00
|
|
|
BUILD = @BUILD@
|
2024-01-11 02:33:22 +03:00
|
|
|
UNAME = @UNAME@
|
2016-01-29 02:57:50 +03:00
|
|
|
|
2015-03-07 21:37:56 +03:00
|
|
|
# Standard configure variables
|
|
|
|
|
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@
|
2014-10-05 02:32:34 +04:00
|
|
|
|
2001-02-12 18:12:14 +03:00
|
|
|
# programs we use...
|
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@
|
2010-12-23 17:24:29 +03:00
|
|
|
CXXFLAGS = $(OPTIM) @LARGEFILE@ @PTHREAD_FLAGS@ @CPPFLAGS@ @CXXFLAGS@ $(FLTKFLAGS)
|
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@
|
|
|
|
|
2024-03-20 19:23:21 +03:00
|
|
|
# Test programs (optional, --disable-test):
|
|
|
|
TESTDIR = @TESTDIR@
|
|
|
|
|
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@
|
2018-02-23 22:41:52 +03:00
|
|
|
GLDLIBS = @GLLIBS@ @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
|
|
|
|
2023-05-09 17:19:12 +03:00
|
|
|
# optional extra build step for fluid:
|
|
|
|
FLUIDDIR = @FLUIDDIR@
|
|
|
|
|
2022-03-04 17:40:29 +03:00
|
|
|
# optional extra build step for libdecor:
|
|
|
|
LIBDECORDIR = @LIBDECORDIR@
|
2023-04-30 19:41:49 +03:00
|
|
|
LIBDECORDBUS = @LIBDECORDBUS@
|
2022-03-04 17:40:29 +03: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?
|
2022-03-22 23:47:22 +03: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
|
|
|
|
2020-06-10 17:24:39 +03:00
|
|
|
# Name and/or path of FLUID executable we use for building:
|
|
|
|
# depends on the build type (native or cross-compiler)
|
|
|
|
FLUID_BUILD = @FLUID_BUILD@
|
|
|
|
|
2023-01-21 19:14:41 +03:00
|
|
|
# Name of fltk-options executable we install
|
|
|
|
FLTK_OPTIONS = @FLTK_OPTIONS@$(EXEEXT)
|
|
|
|
|
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
|
2020-07-01 19:03:10 +03: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 $@
|
2012-12-05 18:53:03 +04:00
|
|
|
$(OSX_ONLY) ../fltk-config --post $@
|
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 $@
|
2020-07-01 19:03:10 +03:00
|
|
|
|
2010-12-17 13:43:41 +03:00
|
|
|
.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 $@
|