2000-06-14 00:33:36 +04:00
|
|
|
#
|
2005-02-25 00:55:12 +03:00
|
|
|
# "$Id$"
|
2000-06-14 00:33:36 +04:00
|
|
|
#
|
|
|
|
# Make include file for the Fast Light Tool Kit (FLTK).
|
|
|
|
#
|
2009-01-12 17:52:45 +03:00
|
|
|
# Copyright 1998-2009 by Bill Spitzak and others.
|
2000-06-14 00:33:36 +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.
|
|
|
|
#
|
2007-05-18 23:04:14 +04:00
|
|
|
# Please report all bugs and problems on the following page:
|
2000-06-14 00:33:36 +04:00
|
|
|
#
|
2007-05-18 23:04:14 +04:00
|
|
|
# http://www.fltk.org/str.php
|
2000-06-14 00:33:36 +04:00
|
|
|
#
|
|
|
|
|
2007-05-18 23:04:14 +04:00
|
|
|
prefix = /usr/local
|
|
|
|
exec_prefix = ${prefix}
|
|
|
|
bindir = ${exec_prefix}/bin
|
|
|
|
datadir = ${prefix}/share
|
|
|
|
datarootdir = @datarootdir@
|
|
|
|
includedir = ${prefix}/include
|
|
|
|
libdir = ${exec_prefix}/lib
|
|
|
|
mandir = ${prefix}/man
|
|
|
|
srcdir = .
|
|
|
|
docdir = $(datadir)/doc/fltk
|
2000-06-14 00:33:36 +04:00
|
|
|
|
|
|
|
|
2002-07-14 21:03:31 +04:00
|
|
|
# programs we use...
|
2007-05-18 23:04:14 +04:00
|
|
|
HTMLDOC =
|
|
|
|
INSTALL = /bin/install -c
|
|
|
|
LN = ln -s
|
|
|
|
NROFF =
|
|
|
|
RM = rm -f
|
|
|
|
RMDIR = rm -rf
|
|
|
|
SHELL = /bin/sh
|
|
|
|
STRIP = strip
|
2002-07-14 21:03:31 +04:00
|
|
|
|
2000-06-14 00:33:36 +04:00
|
|
|
# compiler names:
|
|
|
|
CXX = g++
|
|
|
|
CC = gcc
|
2001-12-21 17:17:00 +03:00
|
|
|
MAKEDEPEND = $(CXX) -M
|
2000-06-14 00:33:36 +04:00
|
|
|
|
|
|
|
# flags for C++ compiler:
|
2007-05-18 23:04:14 +04:00
|
|
|
ARCHFLAGS =
|
|
|
|
OPTIM = -O3 -Wall -Wunused -Wno-format-y2k -fno-exceptions -fno-strict-aliasing
|
|
|
|
CFLAGS = $(OPTIM) -mno-cygwin -mwindows -DWIN32 -mno-cygwin
|
|
|
|
CXXFLAGS = $(OPTIM) -mno-cygwin -mwindows -DWIN32 -mno-cygwin
|
2000-06-14 00:33:36 +04:00
|
|
|
|
|
|
|
# program to make the archive:
|
2001-10-17 00:19:22 +04:00
|
|
|
LIBNAME = ../lib/libfltk.a
|
2002-03-28 16:32:22 +03:00
|
|
|
FLLIBNAME = ../lib/libfltk_forms.a
|
2001-10-17 00:19:22 +04:00
|
|
|
GLLIBNAME = ../lib/libfltk_gl.a
|
2002-07-09 00:14:07 +04:00
|
|
|
IMGLIBNAME = ../lib/libfltk_images.a
|
2007-05-18 23:04:14 +04:00
|
|
|
LIBCOMMAND = /mingw/bin/ar cr
|
2004-07-23 23:26:27 +04:00
|
|
|
LIBEXT = .a
|
2000-06-14 00:33:36 +04:00
|
|
|
RANLIB = ranlib
|
2007-05-18 23:04:14 +04:00
|
|
|
DSONAME = mgwfltknox-1.1.dll
|
|
|
|
FLDSONAME = mgwfltknox_forms-1.1.dll
|
|
|
|
GLDSONAME = mgwfltknox_gl-1.1.dll
|
|
|
|
IMGDSONAME = mgwfltknox_images-1.1.dll
|
|
|
|
DSOCOMMAND = $(CXX) $(DSOFLAGS) -shared -Wl,--whole-archive -Wl,--export-all-symbols -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-import -Wl,--enable-auto-image-base -o $@
|
|
|
|
|
|
|
|
# libraries to link with:
|
|
|
|
AUDIOLIBS = -lwinmm
|
|
|
|
DSOFLAGS = -mwindows -mno-cygwin
|
|
|
|
LDFLAGS = $(OPTIM) -mwindows -mno-cygwin -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
|
|
|
|
LDLIBS = -lole32 -luuid -lcomctl32 -lwsock32
|
|
|
|
GLDLIBS = -lglu32 -lopengl32 -lole32 -luuid -lcomctl32 -lwsock32
|
|
|
|
LINKFLTK = ../lib/libfltk.a
|
|
|
|
LINKFLTKGL = ../lib/libfltk_gl.a
|
|
|
|
LINKFLTKFORMS = ../lib/libfltk_forms.a ../lib/libfltk.a
|
|
|
|
LINKFLTKIMG = ../lib/libfltk_images.a ../lib/libfltk.a $(IMAGELIBS)
|
|
|
|
LINKSHARED = -L../src -lfltk_images -lfltk_forms -lfltk $(IMAGELIBS)
|
|
|
|
IMAGELIBS = -L../lib -lfltk_png -lfltk_z -lfltk_jpeg
|
2004-10-19 00:22:25 +04:00
|
|
|
|
|
|
|
# image libraries to build...
|
|
|
|
IMAGEDIRS = jpeg zlib png
|
|
|
|
|
|
|
|
# The extension to use for executables...
|
|
|
|
EXEEXT = .exe
|
2000-06-14 00:33:36 +04:00
|
|
|
|
2002-05-24 18:50:20 +04:00
|
|
|
# Do we build the OpenGL demos?
|
2007-05-18 23:04:14 +04:00
|
|
|
GLDEMOS = gldemos
|
2002-05-24 18:50:20 +04:00
|
|
|
|
|
|
|
# Do we build the threads demo?
|
2007-05-18 23:04:14 +04:00
|
|
|
THREADS = threads.exe
|
2002-05-24 18:50:20 +04:00
|
|
|
|
2004-10-19 00:22:25 +04:00
|
|
|
# Name of FLUID executable we install
|
2007-05-18 23:04:14 +04:00
|
|
|
FLUID = fluid-shared$(EXEEXT)
|
2004-10-19 00:22:25 +04:00
|
|
|
|
|
|
|
# Possible steps after linking...
|
|
|
|
POSTBUILD = :
|
|
|
|
|
|
|
|
# Man page extensions...
|
|
|
|
CAT1EXT = 1
|
|
|
|
CAT3EXT = 3
|
2007-05-18 23:04:14 +04:00
|
|
|
CAT6EXT = 6
|
|
|
|
|
|
|
|
#
|
|
|
|
# Installation programs...
|
|
|
|
#
|
|
|
|
|
|
|
|
INSTALL_BIN = $(INSTALL) -m 755
|
|
|
|
INSTALL_DATA = $(INSTALL) -m 644
|
|
|
|
INSTALL_DIR = $(INSTALL) -d
|
|
|
|
INSTALL_LIB = $(INSTALL) -m 755
|
|
|
|
INSTALL_MAN = $(INSTALL) -m 644
|
|
|
|
INSTALL_SCRIPT = $(INSTALL) -m 755
|
|
|
|
|
|
|
|
# Additional GUI install/uninstall targets...
|
|
|
|
INSTALL_DESKTOP =
|
|
|
|
UNINSTALL_DESKTOP =
|
2004-10-19 00:22:25 +04:00
|
|
|
|
2000-06-14 00:33:36 +04:00
|
|
|
# Be quiet when building...
|
|
|
|
.SILENT:
|
|
|
|
|
|
|
|
# Build commands and filename extensions...
|
2007-05-18 23:04:14 +04:00
|
|
|
.SUFFIXES: .0 .1 .3 .6 .c .cxx .h .fl .man .o .z $(EXEEXT)
|
2000-06-14 00:33:36 +04:00
|
|
|
|
2007-05-18 23:04:14 +04:00
|
|
|
.o$(EXEEXT):
|
|
|
|
echo Linking $@...
|
|
|
|
$(CXX) $(ARCHFLAGS) $(LDFLAGS) $< $(LINKFLTK) $(LDLIBS) -o $@
|
|
|
|
$(POSTBUILD) $@ ../FL/mac.r
|
2000-06-14 00:33:36 +04:00
|
|
|
|
|
|
|
.c.o:
|
2007-05-18 23:04:14 +04:00
|
|
|
echo Compiling $<...
|
|
|
|
$(CC) -I.. $(ARCHFLAGS) -I../png -I../jpeg -I../zlib $(CFLAGS) -c $<
|
2000-06-14 00:33:36 +04:00
|
|
|
|
|
|
|
.cxx.o:
|
2007-05-18 23:04:14 +04:00
|
|
|
echo Compiling $<...
|
|
|
|
$(CXX) -I.. $(ARCHFLAGS) -I../png -I../jpeg -I../zlib $(CXXFLAGS) -c $<
|
|
|
|
|
|
|
|
.man.0 .man.1 .man.3 .man.6:
|
|
|
|
echo Formatting $<...
|
|
|
|
rm -f $@
|
|
|
|
$(NROFF) -man $< >$@
|
|
|
|
|
|
|
|
.man.z:
|
|
|
|
echo Formatting $<...
|
|
|
|
rm -f $@ t.z
|
|
|
|
$(NROFF) -man $< >t
|
|
|
|
pack -f t
|
|
|
|
mv t.z $@
|
2000-06-14 00:33:36 +04:00
|
|
|
|
|
|
|
#
|
2005-02-25 00:55:12 +03:00
|
|
|
# End of "$Id$".
|
2000-06-14 00:33:36 +04:00
|
|
|
#
|
2007-05-18 23:04:14 +04:00
|
|
|
|