Blame config.mk.in

Packit 78deda
# This is a make file inclusion, to be included in all the Netpbm make
Packit 78deda
# files.
Packit 78deda
Packit 78deda
# This file is meant to contain variable settings that customize the
Packit 78deda
# build for a particular target system configuration.
Packit 78deda
Packit 78deda
# The distribution contains the file config.mk.in.  You edit
Packit 78deda
# config.mk.in in ways relevant to your particular environment 
Packit 78deda
# to create config.mk.  The "configure" program will do this
Packit 78deda
# for you in simple cases.
Packit 78deda
Packit 78deda
# Some of the variables that the including make file must set for this
Packit 78deda
# file to work:
Packit 78deda
#
Packit 78deda
#  SRCDIR: The directory at the top of the Netpbm source tree.  Note that
Packit 78deda
#  this is typically a relative directory, and it must be relative to the
Packit 78deda
#  make file that includes this file.
Packit 78deda
Packit 78deda
DEFAULT_TARGET = nonmerge
Packit 78deda
#DEFAULT_TARGET = merge
Packit 78deda
Packit 78deda
# Fiasco has some special requirements that make it fail to compile on
Packit 78deda
# some systems, and since it isn't very important, just set this to "N"
Packit 78deda
# and skip it on those systems unless you want to debug it and fix it.
Packit 78deda
# OpenBSD:
Packit 78deda
#BUILD_FIASCO = N
Packit 78deda
BUILD_FIASCO = Y
Packit 78deda
Packit 78deda
# The following are commands for the build process to use.  These values
Packit 78deda
# do not get built into anything.
Packit 78deda
Packit 78deda
# The C compiler (including macro preprocessor)
Packit 78deda
#CC = gcc
Packit 78deda
# Note that 'cc' is usually an alias for whatever is the main compiler
Packit 78deda
# on a system, e.g. the GNU Compiler on Linux.
Packit 78deda
CC = cc
Packit 78deda
Packit 78deda
# The linker.
Packit 78deda
LD = $(CC)
Packit 78deda
#LD = ld
Packit 78deda
#Tru64:
Packit 78deda
#LD = cc
Packit 78deda
#LD = gcc 
Packit 78deda
Packit 78deda
#If the linker identified above is a compiler that invokes a linker
Packit 78deda
#(as in 'cc foo.o -o foo'), set LINKERISCOMPILER.  The main difference is
Packit 78deda
#that we expect a compiler to take linker options in the '-Wl,-opt1,val1'
Packit 78deda
#syntax whereas the actual linker would take '-opt1 val1'.
Packit 78deda
LINKERISCOMPILER=Y
Packit 78deda
#If $(LD) is 'ld':
Packit 78deda
#LINKERISCOMPILER=N
Packit 78deda
Packit 78deda
#LINKER_CAN_DO_EXPLICIT_LIBRARY means the linker specified above can
Packit 78deda
#take a library as just another link object argument, as in 'ld
Packit 78deda
#pnmtojpeg.o /usr/local/lib/libjpeg.so ...'  as opposed to requiring a
Packit 78deda
#-l option as in 'ld pnmtojpeg.o -L/usr/local/lib -l jpeg'.
Packit 78deda
#This variable controls how 'libopt' gets built.  Note that with some
Packit 78deda
#linkers, you can specify a shared library explicitly, but then it has
Packit 78deda
#to live in that exact place at run time.  That's not good enough for us.
Packit 78deda
Packit 78deda
LINKER_CAN_DO_EXPLICIT_LIBRARY=N
Packit 78deda
#GNU:
Packit 78deda
#LINKER_CAN_DO_EXPLICIT_LIBRARY=Y
Packit 78deda
Packit 78deda
# This is the name of the header file that declares the types
Packit 78deda
# uint32_t, etc.  This name is used as #include $(INTTYPES_H)  .
Packit 78deda
# Set to null if the types come automatically without including anything.
Packit 78deda
Packit 78deda
# We have a report (2005.09.17) that on IRIX 5.3 with the native IDO
Packit 78deda
# cc, inttypes.h and sys/types.h conflict (and Netpbm programs include
Packit 78deda
# sys/types for other things), so for that environment, <inttypes.h>
Packit 78deda
# won't work, but "inttypes_netpbm.h" might.
Packit 78deda
Packit 78deda
INTTYPES_H = <inttypes.h>
Packit 78deda
# Linux libc5:
Packit 78deda
#INTTYPES_H = <types.h>
Packit 78deda
# Solaris:
Packit 78deda
# Solaris has <sys/inttypes.h>, but it doesn't define int_fast2_t, etc.
Packit 78deda
#INTTYPES_H = "inttypes_netpbm.h"
Packit 78deda
# Others:
Packit 78deda
#INTTYPES_H = <sys/stdint.h>
Packit 78deda
#INTTYPES_H = <sys/types.h>
Packit 78deda
# The automatically generated Netpbm version:
Packit 78deda
#INTTYPES_H = "inttypes_netpbm.h"
Packit 78deda
Packit 78deda
# HAVE_INT64 tells whether, assuming you include the header indicated by
Packit 78deda
# INTTYPES_H, you have the int64_t type and related stuff.  (If you don't
Packit 78deda
# the build will omit certain code that does 64 bit computations).
Packit 78deda
HAVE_INT64 = Y
Packit 78deda
#HAVE_INT64 = N
Packit 78deda
Packit 78deda
# WANT_SSE tells whether the build should use SSE instructions, via the the
Packit 78deda
# standard SSE intrinsics (operators such as '_mm_movemask_epi8').  SSE
Packit 78deda
# instructions are faster than traditional instructions, but aren't available
Packit 78deda
# on all CPUs.  Also, the standard intrinsics are not available in all
Packit 78deda
# compilers.  Even if you say N here, Netpbm may still be built with some
Packit 78deda
# SSE exploitation (e.g. SSE floating point) because the compiler will 
Packit 78deda
# do it automatically.  You can add a -nomsse or -nomsse2 option to
Packit 78deda
# CFLAGS or CFLAGS_PERSONAL to stop that.
Packit 78deda
WANT_SSE = N
Packit 78deda
#WANT_SSE = Y
Packit 78deda
Packit 78deda
# CC and LD are for building the Netpbm programs, which are not necessarily
Packit 78deda
# intended to run on the same system on which Make is running.  But when we 
Packit 78deda
# build a build tool such as Libopt, it is meant to run only on the same 
Packit 78deda
# system on which the Make is running.  The variables below define programs
Packit 78deda
# to use to compile and link build tools.
Packit 78deda
CC_FOR_BUILD = $(CC)
Packit 78deda
LD_FOR_BUILD = $(LD)
Packit 78deda
CFLAGS_FOR_BUILD = $(CFLAGS_CONFIG)
Packit 78deda
LDFLAGS_FOR_BUILD = $(LDFLAGS)
Packit 78deda
Packit 78deda
# WINDRES is the program that creates a linkable object file from 
Packit 78deda
# a Windows Icon (.ico) file.
Packit 78deda
WINDRES = windres
Packit 78deda
Packit 78deda
# MAKE is set automatically by Make to what was used to invoke Make.
Packit 78deda
Packit 78deda
INSTALL = $(SRCDIR)/buildtools/install.sh
Packit 78deda
#Solaris:
Packit 78deda
#INSTALL = /usr/ucb/install
Packit 78deda
#Tru64:
Packit 78deda
#INSTALL = installbsd
Packit 78deda
#OSF1:
Packit 78deda
#INSTALL = $(SRCDIR)/buildtools/installosf
Packit 78deda
#Red Hat Linux:
Packit 78deda
#INSTALL = install
Packit 78deda
Packit 78deda
# STRIPFLAG is the option you pass to the above install program to make it
Packit 78deda
# strip unnecessary information out of binaries.
Packit Service 14610d
STRIPFLAG =
Packit 78deda
# If you don't want to strip the binaries, just leave it null:
Packit 78deda
#STRIPFLAG = 
Packit 78deda
Packit 78deda
SYMLINK = ln -s
Packit 78deda
# At least some Windows environments don't have any concept of symbolic
Packit 78deda
# links, but direct copies are usually a passable alternative.
Packit 78deda
#SYMLINK = cp
Packit 78deda
Packit 78deda
#MANPAGE_FORMAT is "nroff" or "cat".  It determines in what format the
Packit 78deda
#pointer man pages are installed (ready to nroff, or ready to cat).  
Packit 78deda
#A pointer man pages is just a single-paragraph pages that tells you there is
Packit 78deda
#no man page for the program, to look at the HTML documentation instead.
Packit 78deda
MANPAGE_FORMAT = nroff
Packit 78deda
#MANPAGE_FORMAT = cat
Packit 78deda
Packit 78deda
AR = ar
Packit 78deda
RANLIB = ranlib
Packit 78deda
# IRIX, SCO don't have Ranlib:
Packit 78deda
#RANLIB = true
Packit 78deda
Packit 78deda
# LEX is the beginning of a shell command that runs a Lex-like
Packit 78deda
# pattern matcher generator.  Null string means there isn't any such
Packit 78deda
# command.  That means the build will skip parts that need one.
Packit 78deda
Packit 78deda
LEX = flex
Packit 78deda
# Solaris:
Packit 78deda
# LEX = flex -e
Packit 78deda
# Windows Mingw:
Packit 78deda
# LEX =
Packit 78deda
# 
Packit 78deda
# LEX = lex
Packit 78deda
Packit 78deda
# PKG_CONFIG is the beginning of a shell command that tells things about how
Packit 78deda
# some package (e.g. the PNG library) is installed on the build system.  For
Packit 78deda
# example, it can tell what link options you need to link the PNG library to a
Packit 78deda
# program.
Packit 78deda
PKG_CONFIG = pkg-config
Packit 78deda
Packit 78deda
# C compiler options 
Packit 78deda
Packit 78deda
# gcc:
Packit 78deda
# -ansi and -Werror should work too, but are not included
Packit 78deda
# by default because there's no point in daring the build to fail.
Packit 78deda
# -pedantic isn't a problem because it causes at worst a warning.
Packit 78deda
#CFLAGS = -O3 -ffast-math -pedantic -fno-common \
Packit 78deda
#          -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit \
Packit 78deda
#          -Wwrite-strings -Wmissing-prototypes -Wundef -Wno-unknown-pragmas
Packit 78deda
# The merged programs have a main_XXX subroutine instead of main(),
Packit 78deda
# which would cause a warning with -Wmissing-declarations or 
Packit 78deda
# -Wmissing-prototypes.
Packit 78deda
#CFLAGS_MERGE = -Wno-missing-declarations -Wno-missing-prototypes
Packit 78deda
# A user of DEC Tru64 4.0F in May 2000 needed -DLONG_32 for ppmtompeg,
Packit 78deda
# but word size-sensitive code was removed from parallel.c in September 2004.
Packit 78deda
# A user of Tru64 5.1A in July 2003 needed NOT to have -DLONG_32.  In
Packit 78deda
# theory, you need this if on your system, long is 32 bits and int is not.
Packit 78deda
# But it may be completely irrelevant today.
Packit 78deda
#Tru64:
Packit 78deda
#CFLAGS = -O2 -std1 -DLONG_32
Packit 78deda
#CFLAGS = -O2 -std1
Packit 78deda
#AIX:
Packit 78deda
#CFLAGS= -O3
Packit 78deda
#HP-UX:
Packit 78deda
#CFLAGS= -O3 -fPIC
Packit 78deda
#IRIX:
Packit 78deda
#CFLAGS= -n32 -O3
Packit 78deda
#Amiga with GNU compiler:
Packit 78deda
#CFLAGS= -m68020-60 -ffast-math -mstackextend 
Packit 78deda
# You can add -noixemul for Amiga and successfully compile most of the 
Packit 78deda
# programs.  (Of the remaining ones, if you can supply your own strtod() 
Packit 78deda
# function, most of them will build with -noixemul).  So try building 
Packit 78deda
# with 'make --keep-going CADD=-noixemul' first, then just 'make' to build
Packit 78deda
# everything that failed for lack of the ixemul library in the first step.
Packit 78deda
# That way, the parts that don't required the ixemul library won't indicate
Packit 78deda
# a dependency on it.
Packit 78deda
#OpenBSD:
Packit 78deda
#CFLAGS = -I/usr/local/include
Packit 78deda
Packit 78deda
# EXE is a suffix that the linker puts on any executable it generates.
Packit 78deda
# In cygwin, this is .exe and most programs deal with its existence without
Packit 78deda
# us having to know about it.  Some don't though, so set this:
Packit 78deda
Packit 78deda
EXE =
Packit 78deda
#Cygwin, DJGPP/Windows:
Packit 78deda
#EXE = .exe
Packit 78deda
  
Packit 78deda
# linker options.  
Packit 78deda
Packit 78deda
# LDFLAGS is often set as an environment variable;  A setting here overrides
Packit 78deda
# it.  So either make sure you want to override it, or do a "LDFLAGS +=" here.
Packit 78deda
Packit 78deda
# LDFLAGS is usually not the right place for a -L option, because we put
Packit 78deda
# LDFLAGS _before_ our own -L options, so it would cancel out our
Packit 78deda
# specific selection of libraries.  For example, if you say
Packit 78deda
# LDFLAGS=/usr/local/lib and an old copy of the libnetpbm is in
Packit 78deda
# /usr/local/lib, then you'd be linking against that old copy instead of
Packit 78deda
# the copy you just built, which is located by a -L option later on the
Packit 78deda
# link command.  LIBS is the right variable for adding -L options.  LIBS
Packit 78deda
# goes after any of our make files' own -L options.
Packit 78deda
Packit 78deda
# Eunice users may want to use -noshare so that the executables can
Packit 78deda
# run standalone:
Packit 78deda
#LDFLAGS += -noshare
Packit 78deda
#Tru64:
Packit 78deda
# Russ Allberry says on 2001.06.09 that -oldstyle_liblookup may be necessary
Packit 78deda
# to keep from finding an ancient system libjpeg.so that isn't compatible with
Packit 78deda
# NetPBM.  Michael Long found that /usr/local/lib is not in the default
Packit 78deda
# search path, or not soon enough, and he was getting an old libjpeg that
Packit 78deda
# caused all the jpeg symbol references to be unresolved.  He had installed
Packit 78deda
# a new libjpeg in /usr/local/lib.
Packit 78deda
#LDFLAGS += -call_shared -oldstyle_liblookup -L/usr/local/lib
Packit 78deda
#AIX:
Packit 78deda
#LDFLAGS += -L /usr/pubsw/lib
Packit 78deda
#HP-UX:
Packit 78deda
#LDFLAGS += -Wl,+b,/usr/pubsw/lib
Packit 78deda
#IRIX:
Packit 78deda
#LDFLAGS += -n32
Packit 78deda
Packit 78deda
# Linker options for created Netpbm shared libraries.
Packit 78deda
Packit 78deda
# Here, $(SONAME) resolves to the soname for the shared library being created.
Packit 78deda
# The following are gcc options.  This works on GNU libc systems.
Packit 78deda
LDSHLIB = -shared -Wl,-soname,$(SONAME)
Packit 78deda
# You need -nostart instead of -shared on BeOS.  Though the BeOS compiler is
Packit 78deda
# ostensibly gcc, it has the -nostart option, which is not mentioned in gcc
Packit 78deda
# documentation and doesn't exist in at least one non-BeOS installation.
Packit 78deda
# BeOS doesn't have sonames built in.
Packit 78deda
#LDSHLIB = -nostart
Packit 78deda
#LDSHLIB = -G
Packit 78deda
# Solaris, SunOS with GNU Ld, SCO:
Packit 78deda
# These systems have no soname option.
Packit 78deda
#LDSHLIB = -shared
Packit 78deda
# Solaris with Sun Ld:
Packit 78deda
#LDSHLIB = -Wl,-Bdynamic,-G,-h,$(SONAME) 
Packit 78deda
#Tru64:
Packit 78deda
#LDSHLIB = -shared -expect_unresolved "*"
Packit 78deda
#IRIX:
Packit 78deda
#LDSHLIB = -shared -n32
Packit 78deda
#AIX GNU compiler/linker:
Packit 78deda
#LDSHLIB = -shared
Packit 78deda
#AIX Visual Age C:
Packit 78deda
#LDSHLIB = -qmkshrobj
Packit 78deda
#Mac OSX:
Packit 78deda
# According to experiments done by Peter A Crowley in May 2007, if
Packit 78deda
# libnetpbm goes in a standard place such as /usr/local/lib,
Packit 78deda
# programs need not be built with libnetpbm's location included.
Packit 78deda
# But if it goes elsewhere, the link-editor must include the
Packit 78deda
# location in the executable.  It finds the runtime location by
Packit 78deda
# looking inside the library.  The information in the library
Packit 78deda
# comes from the install_name option with which the library was
Packit 78deda
# built.  It's an alternative to the -rpath option on other systems.
Packit 78deda
#LDSHLIB=-dynamiclib
Packit 78deda
#LDSHLIB=-dynamiclib -install_name $(NETPBMLIB_RUNTIME_PATH)/libnetpbm.$(MAJ).dylib
Packit 78deda
Packit 78deda
# LDRELOC is the command to combine two .o files (relocateable object files)
Packit 78deda
# into a single .o file that can later be linked into something else.  NONE
Packit 78deda
# means no such command is available.
Packit 78deda
Packit 78deda
LDRELOC = NONE
Packit 78deda
# GNU Ld:
Packit 78deda
# Older GNU Ld misspells the option as --relocateable.  Newer GNU Ld
Packit 78deda
# correctly spells it --relocatable.  The abbreviation --reloc works on
Packit 78deda
# both.
Packit 78deda
#LDRELOC = ld --reloc
Packit 78deda
#LDRELOC = ld -r
Packit 78deda
Packit 78deda
Packit 78deda
# On older systems, you have to make shared libraries out of position
Packit 78deda
# independent code, so you need -fpic or fPIC here.  (The rule is: if
Packit 78deda
# -fpic works, use it.  If it bombs, go to fPIC).  On newer systems,
Packit 78deda
# it isn't necessary, but can save real memory at the expense of
Packit 78deda
# execution speed.  Without position independent code, the library
Packit 78deda
# loader may have to patch addresses into the executable text.  On an
Packit 78deda
# older system, this would cause a program crash because the loader
Packit 78deda
# would be writing into read-only shared memory.  But on newer
Packit 78deda
# systems, the system silently creates a private mapping of the page
Packit 78deda
# or segment being modified (the "copy on write" phenomenon).  So it
Packit 78deda
# needs its own private real page frame.  In one experiment, A second
Packit 78deda
# copy of Pbmtext used 16K less real memory when built with -fpic than
Packit 78deda
# when built without.  2001.06.02.
Packit 78deda
Packit 78deda
# We have seen -fPIC required on IA64 and AMD64 machines (GNU
Packit 78deda
# compiler/linker).  Build-time linking fails without it.  I don't
Packit 78deda
# know why -- history seems to be repeating itself.  2005.02.23.
Packit 78deda
Packit 78deda
CFLAGS_SHLIB = 
Packit 78deda
# Gcc:
Packit 78deda
#CFLAGS_SHLIB = -fpic
Packit 78deda
#CFLAGS_SHLIB = -fPIC
Packit 78deda
# Sun compiler:
Packit 78deda
#CFLAGS_SHLIB = -Kpic
Packit 78deda
#CFLAGS_SHLIB = -KPIC
Packit 78deda
Packit 78deda
# SHLIB_CLIB is the link option to include the C library in a shared library,
Packit 78deda
# normally "-lc".  On typical systems, this serves no purpose.  On some,
Packit 78deda
# though, it causes information about which C library to use to be recorded
Packit 78deda
# in the shared library and thus choose the correct library among several or
Packit 78deda
# avoid using an incompatible one.  But on some systems, the link fails.
Packit 78deda
# On 2002.09.30, "John H. DuBois III" <spcecdt@armory.com> reports that on 
Packit 78deda
# SCO OpenServer, he gets the following error message with -lc:
Packit 78deda
#
Packit 78deda
#  -lc; relocations referenced  ;  from file(s) /usr/ccs/lib/libc.so(random.o);
Packit 78deda
#   fatal error: relocations remain against allocatable but non-writable 
Packit 78deda
#   section: ; .text
Packit 78deda
Packit 78deda
SHLIB_CLIB = -lc
Packit 78deda
# SCO:
Packit 78deda
#SHLIB_CLIB =
Packit 78deda
Packit 78deda
# On some systems you have to build into an executable the list of
Packit 78deda
# directories where its dynamically linked libraries can be found at
Packit 78deda
# run time.  This is typically done with a -R or -rpath linker
Packit 78deda
# option.  Even on systems that don't require it, you might prefer to do
Packit 78deda
# that rather than set up environment variables or configuration files
Packit 78deda
# to tell the system where the libraries are.  A "Y" here means to put
Packit 78deda
# the directory information in the executable at link time.
Packit 78deda
Packit 78deda
NEED_RUNTIME_PATH = N
Packit 78deda
# Solaris, SunOS, NetBSD, AIX:
Packit 78deda
#NEED_RUNTIME_PATH = Y
Packit 78deda
Packit 78deda
# RPATHOPTNAME is the option you use on the link command to specify
Packit 78deda
# a runtime search path for a shared library.  It is meaningless unless
Packit 78deda
# NEED_RUNTIME_PATH is Y.
Packit 78deda
RPATHOPTNAME = -rpath
Packit 78deda
Packit 78deda
# The following variables tell where your various libraries on which
Packit 78deda
# Netpbm depends live.  The LIBxxx variable is a full file
Packit 78deda
# specification of the link library (not necessarily the library used
Packit 78deda
# at run time).  e.g. "/usr/local/lib/graphics/libjpeg.so".  It usually
Packit 78deda
# doesn't matter if the library prefix and suffix are right -- you can
Packit 78deda
# use "lib" and ".so" or ".a" regardless of what your system actually
Packit 78deda
# uses because these just turn into "-L" and "-l" linker options
Packit 78deda
# anyway.  ".a" implies a static library for some purposes, though.
Packit 78deda
# If you don't have the library in question, use a value of NONE for
Packit 78deda
# LIBxxx and the build will simply skip the programs that require that
Packit 78deda
# library.  If the library is in your linker's (or the Netpbm build's)
Packit 78deda
# default search path, leave off the directory part, e.g. "libjpeg.so".
Packit 78deda
Packit 78deda
# The xxxHDR_DIR variable is the directory in which the interface
Packit 78deda
# headers for the library live (e.g. /usr/include).  If they are in your
Packit 78deda
# compiler's default search path, set this variable to null.
Packit 78deda
Packit 78deda
# This is where the Netpbm shared libraries will reside when Netpbm is
Packit 78deda
# fully installed.  In some configurations, the Netpbm builder builds
Packit 78deda
# this information into the Netpbm executables.  This does NOT affect
Packit 78deda
# where the Netpbm installer installs the libraries.  A null value
Packit 78deda
# means the libraries are in a default search path used by the runtime
Packit 78deda
# library loader.
Packit 78deda
NETPBMLIB_RUNTIME_PATH = 
Packit 78deda
#NETPBMLIB_RUNTIME_PATH = /usr/lib/netpbm
Packit 78deda
Packit 78deda
# The TIFF library.  See above.  If you want to build the tiff
Packit 78deda
# converters, you must have the tiff library already installed.
Packit 78deda
Packit 78deda
TIFFLIB = NONE
Packit 78deda
TIFFHDR_DIR =
Packit 78deda
Packit 78deda
#TIFFLIB = libtiff.so
Packit 78deda
#TIFFHDR_DIR = /usr/include/libtiff
Packit 78deda
#NetBSD:
Packit 78deda
#TIFFLIB = $(LOCALBASE)/lib/libtiff.so
Packit 78deda
#TIFFHDR_DIR = $(LOCALBASE)/include
Packit 78deda
# OSF, Tru64:
Packit 78deda
#TIFFLIB = /usr/local1/DEC/lib/libtiff.so
Packit 78deda
#TIFFHDR_DIR = /usr/local1/DEC/include
Packit 78deda
Packit 78deda
# Some TIFF libraries do Jpeg and/or Z (flate) compression and thus any
Packit 78deda
# program linked with the TIFF library needs a Jpeg and/or Z library.  Some
Packit 78deda
# TIFF libraries have such library statically linked in, but others need it to
Packit 78deda
# be linked with the program at link-edit time or dynamically at program load
Packit 78deda
# time.  Make this 'N' if your TIFF library doesn't need such linking.  As of
Packit 78deda
# 2005.01, the most usual build of the TIFF library appears to require both.
Packit 78deda
TIFFLIB_NEEDS_JPEG = Y
Packit 78deda
TIFFLIB_NEEDS_Z = Y
Packit 78deda
Packit 78deda
# The JPEG library.  See above.  If you want to build the jpeg
Packit 78deda
# converters you must have the jpeg library already installed.
Packit 78deda
Packit 78deda
# Tiff files can use JPEG compression, so the Tiff library can reference
Packit 78deda
# the JPEG library.  If your Tiff library references a dynamic JPEG 
Packit 78deda
# library, you must specify at least JPEGLIB here, or the Tiff
Packit 78deda
# converters will not build.  Note that your Tiff library may have the
Packit 78deda
# JPEG stuff statically linked in, in which case you won't need 
Packit 78deda
# JPEGLIB in order to build the Tiff converters.
Packit 78deda
Packit 78deda
JPEGLIB = NONE
Packit 78deda
JPEGHDR_DIR =
Packit 78deda
#JPEGLIB = libjpeg.so
Packit 78deda
#JPEGHDR_DIR = /usr/include/jpeg
Packit 78deda
# Netbsd:
Packit 78deda
#JPEGLIB = ${LOCALBASE}/lib/libjpeg.so
Packit 78deda
#JPEGHDR_DIR = ${LOCALBASE}/include
Packit 78deda
# OSF, Tru64:
Packit 78deda
#JPEGLIB = /usr/local1/DEC/libjpeg.so
Packit 78deda
#JPEGHDR_DIR = /usr/local1/DEC/include
Packit 78deda
# Typical:
Packit 78deda
#JPEGLIB = /usr/local/lib/libjpeg.so
Packit 78deda
#JPEGHDR_DIR = /usr/local/include
Packit 78deda
# Don't build JPEG stuff:
Packit 78deda
#JPEGLIB = NONE
Packit 78deda
Packit 78deda
Packit 78deda
# The PNG library.  See above.  If you want to build the PNG
Packit 78deda
# converters you must have the PNG library already installed.
Packit 78deda
Packit 78deda
# The PNG library, by convention starting around April 2002, gets installed
Packit 78deda
# with names that include a version number, such as libpng10.a and header
Packit 78deda
# files in /usr/include/libpng10.  But there is conventionally an unnumbered
Packit 78deda
# alias (e.g. libpng.a, /usr/include/libpng) for the preferred version.
Packit 78deda
#
Packit 78deda
# Recent versions of the library (since some time in the 2002-2006 period)
Packit 78deda
# have an associated 'libpng-config' that tells how to link it.  The make
Packit 78deda
# files will use that program if it exists (must be in the PATH).  In that
Packit 78deda
# case, PNGLIB and PNGHDR_DIR are irrelevant, but PNGVER is still meaningful,
Packit 78deda
# because the make file runs 'libpng$(PNGVER)-config'.
Packit 78deda
#
Packit 78deda
# Even more recent versions have the more modern Pkgconfig database entry
Packit 78deda
# to tell how to link it.  The make files will try to use that first.
Packit 78deda
#
Packit 78deda
# The normal way to choose the libpng the Netpbm build uses from among multiple
Packit 78deda
# versions on your system is not to mess with the variables below, but rather
Packit 78deda
# to mess with PKG_CONFIG_PATH or PATH environment variable so that the version
Packit 78deda
# you want to use appears first in the search path.
Packit 78deda
Packit 78deda
PNGLIB = NONE
Packit 78deda
PNGHDR_DIR =
Packit 78deda
PNGVER = 
Packit 78deda
#PNGLIB = libpng$(PNGVER).so
Packit 78deda
#PNGHDR_DIR = /usr/include/libpng$(PNGVER)
Packit 78deda
# NetBSD:
Packit 78deda
#PNGLIB = $(LOCALBASE)/lib/libpng$(PNGVER).so
Packit 78deda
#PNGHDR_DIR = $(LOCALBASE)/include
Packit 78deda
# OSF/Tru64:
Packit 78deda
#PNGLIB = /usr/local1/DEC/lib/libpng$(PNGVER).so
Packit 78deda
#PNGHDR_DIR = /usr/local1/DEC/include
Packit 78deda
Packit 78deda
# The zlib compression library.  See above.  You need it to build
Packit 78deda
# anything that needs the PNG library (see above).  If you selected
Packit 78deda
# NONE for the PNG library, it doesn't matter what you specify here --
Packit 78deda
# it won't get used.
Packit 78deda
#
Packit 78deda
# If you have 'libpng-config' (see above), these are irrelevant.
Packit 78deda
Packit 78deda
ZLIB = NONE
Packit 78deda
ZHDR_DIR = 
Packit 78deda
#ZLIB = libz.so
Packit 78deda
Packit 78deda
# The JBIG lossless image compression library (aka JBIG-KIT):
Packit 78deda
Packit 78deda
JBIGLIB = $(INTERNAL_JBIGLIB)
Packit 78deda
JBIGHDR_DIR = $(INTERNAL_JBIGHDR_DIR)
Packit 78deda
Packit 78deda
# The Jasper JPEG-2000 image compression library (aka JasPer):
Packit Service 14610d
JASPERLIB = "" 
Packit Service 14610d
JASPERHDR_DIR = "/usr/include/jasper"
Packit 78deda
# JASPERDEPLIBS is the libraries (-l options or file names) on which
Packit 78deda
# The Jasper library depends -- i.e. what you have to link into any
Packit 78deda
# executable that links in the Jasper library.
Packit Service 14610d
JASPERDEPLIBS = -ljasper
Packit 78deda
#JASPERDEPLIBS = -ljpeg
Packit 78deda
Packit 78deda
# And the Utah Raster Toolkit (aka URT aka RLE) library:
Packit 78deda
Packit 78deda
URTLIB = $(BUILDDIR)/urt/librle.a
Packit 78deda
URTHDR_DIR = $(SRCDIR)/urt
Packit 78deda
Packit 78deda
# The X11 library has facilities for talking to an X Window System
Packit 78deda
# server.  It is required by Pamx.
Packit 78deda
Packit 78deda
X11LIB = NONE
Packit 78deda
X11HDR_DIR =
Packit 78deda
Packit 78deda
#X11LIB = /usr/lib/libX11.so
Packit 78deda
#X11HDR_DIR =
Packit 78deda
Packit 78deda
# The Linux SVGA library (Svgalib) is a facility for displaying graphics
Packit 78deda
# on the Linux console.  It is required by Ppmsvgalib.
Packit 78deda
Packit 78deda
LINUXSVGALIB = NONE
Packit 78deda
LINUXSVGAHDR_DIR = 
Packit 78deda
Packit 78deda
#LINUXSVGALIB = /usr/lib/libvga.so
Packit 78deda
#LINUXSVGAHDR_DIR = /usr/include/vgalib
Packit 78deda
Packit 78deda
# WINICON_OBJECT is the object file to bind into all Netpbm executables
Packit 78deda
# to provide the icon for Windows to use for it.  Null for none.
Packit 78deda
WINICON_OBJECT =
Packit 78deda
#WINICON_OBJECT = $(BUILDDIR)/icon/netpbm.o
Packit 78deda
Packit 78deda
# If you don't want any network functions, set OMIT_NETWORK to "Y".
Packit 78deda
# The only thing that requires network functions is the option in
Packit 78deda
# ppmtompeg to run it on multiple computers simultaneously.  On some
Packit 78deda
# systems network functions don't work or we haven't figured out how to 
Packit 78deda
# make them work, or they just aren't worth the effort.  
Packit 78deda
OMIT_NETWORK =
Packit 78deda
#DJGPP/Windows, Tru64:
Packit 78deda
#   (there's some minor header problem that prevents network functions from 
Packit 78deda
#   building on Tru64 2000.10.06)
Packit 78deda
#OMIT_NETWORK = Y
Packit 78deda
Packit 78deda
# These are -l options to link in the network libraries.  Often, these are
Packit 78deda
# built into the standard C library, so this can be null.  This is irrelevant
Packit 78deda
# if OMIT_NETWORK is "Y".
Packit 78deda
Packit 78deda
NETWORKLD = 
Packit 78deda
# Solaris, SunOS:
Packit 78deda
#NETWORKLD = -lsocket -lnsl
Packit 78deda
# SCO:
Packit 78deda
#NETWORKLD = -lsocket, -lresolv
Packit 78deda
Packit 78deda
# DONT_HAVE_PROCESS_MGMT is Y if this system doesn't have the usual
Packit 78deda
# Unix process management stuff - fork, wait, etc.  N for a regular Unix
Packit 78deda
# system.
Packit 78deda
DONT_HAVE_PROCESS_MGMT = N
Packit 78deda
Packit 78deda
# The following variables are used only by 'make install' (and the
Packit 78deda
# variants of it).  Paths here don't, for example, get built into any
Packit 78deda
# programs.
Packit 78deda
Packit 78deda
# This is where everything goes when you do 'make package', unless you
Packit 78deda
# override it by setting 'pkgdir' on the Make command line.
Packit 78deda
PKGDIR_DEFAULT = /tmp/netpbm
Packit 78deda
Packit 78deda
# This is where test results are written when you do 'make check', unless
Packit 78deda
# you override it by setting 'resultdir' on the Make command line.
Packit 78deda
RESULTDIR_DEFAULT = /tmp/netpbm-test
Packit 78deda
Packit 78deda
# Subdirectory of the package directory ($(pkgdir)) in which man pages
Packit 78deda
# go.
Packit 78deda
PKGMANDIR = man
Packit 78deda
Packit 78deda
# File permissions for installed files.
Packit 78deda
# Note that on some systems (e.g. Solaris), 'install' can't use the 
Packit 78deda
# mnemonic permissions - you have to use octal.
Packit 78deda
Packit 78deda
# binaries (pbmmake, etc)
Packit 78deda
INSTALL_PERM_BIN =  755       # u=rwx,go=rx
Packit 78deda
# shared libraries (libpbm.so, etc)
Packit 78deda
INSTALL_PERM_LIBD = 755       # u=rwx,go=rx
Packit 78deda
# static libraries (libpbm.a, etc)
Packit 78deda
INSTALL_PERM_LIBS = 644       # u=rw,go=r
Packit 78deda
# header files (pbm.h, etc)
Packit 78deda
INSTALL_PERM_HDR =  644       # u=rw,go=r
Packit 78deda
# man pages (pbmmake.1, etc)
Packit 78deda
INSTALL_PERM_MAN =  644       # u=rw,go=r
Packit 78deda
# data files (pnmtopalm color maps, etc)
Packit 78deda
INSTALL_PERM_DATA = 644       # u=rw,go=r
Packit 78deda
Packit 78deda
# Specify the suffix that want the man pages to have.
Packit 78deda
Packit 78deda
SUFFIXMANUALS1 = 1
Packit 78deda
SUFFIXMANUALS3 = 3
Packit 78deda
SUFFIXMANUALS5 = 5
Packit 78deda
Packit 78deda
#NETPBMLIBTYPE tells the kind of libraries that will get built to hold the
Packit 78deda
#Netpbm library functions.  The value is used only in make file tests.
Packit 78deda
# "unixshared" means a unix-style shared library, typically named like 
Packit 78deda
# libxyz.so.2.3
Packit 78deda
NETPBMLIBTYPE = unixshared
Packit 78deda
# "unixstatic" means a unix-style static library, (like libxyz.a)
Packit 78deda
#NETPBMLIBTYPE = unixstatic
Packit 78deda
# "dll" means a Windows DLL shared library
Packit 78deda
#NETPBMLIBTYPE = dll
Packit 78deda
# "dylib" means a Darwin/Mac OS shared library
Packit 78deda
#NETPBMLIBTYPE = dylib
Packit 78deda
Packit 78deda
#NETPBMLIBSUFFIX is the suffix used on whatever kind of library is 
Packit 78deda
#selected above.  All this is used for is to construct library names.
Packit 78deda
#The make files never examine the actual value.
Packit 78deda
NETPBMLIBSUFFIX = so
Packit 78deda
Packit 78deda
# "a" is the suffix for unix-style static libraries.  It is also
Packit 78deda
# traditionally used for shared libraries on AIX.  The Visual Age C
Packit 78deda
# manual says sometimes .so works on AIX, and GNU software for AIX
Packit 78deda
# 5.1.0 does indeed use it.  In our experiments, it works fine if you
Packit 78deda
# name the library file explicitly on the link, but isn't in the -l
Packit 78deda
# search order.  If you name the library explicitly on the link, the
Packit 78deda
# library must live in exactly the same position at run time, so we
Packit 78deda
# can't use that.  Therefore, you cannot build both static and shared
Packit 78deda
# libraries with AIX.  You have to choose.
Packit 78deda
#NETPBMLIBSUFFIX = a
Packit 78deda
# For HP-UX shared libraries:
Packit 78deda
#NETPBMLIBSUFFIX = sl
Packit 78deda
# Darwin/Mac OS shared library:
Packit 78deda
#NETPBMLIBSUFFIX = dylib
Packit 78deda
# Windows shared library:
Packit 78deda
#NETPBMLIBSUFFIX = dll
Packit 78deda
Packit 78deda
#STATICLIB_TOO is "Y" to signify that you want a static library built
Packit 78deda
#and installed in addition to whatever library type you specified by
Packit 78deda
#NETPBMLIBTYPE.  If NETPBMLIBTYPE specified a static library,
Packit 78deda
#STATICLIB_TOO simply has no effect.
Packit 78deda
STATICLIB_TOO = Y
Packit 78deda
#STATICLIB_TOO = N
Packit 78deda
Packit 78deda
#STATICLIBSUFFIX is the suffix that static libraries have.  It's
Packit 78deda
#meaningless if you aren't building static libraries.
Packit 78deda
STATICLIBSUFFIX = a
Packit 78deda
Packit 78deda
#SHLIBPREFIXLIST is a blank-delimited list of prefixes that a filename
Packit 78deda
#of a shared library may have on this system.  Traditionally, it's
Packit 78deda
#just "lib", as in libc or libnetpbm.  On Windows, though, varying
Packit 78deda
#prefixes are used when multiple alternative forms of a library are
Packit 78deda
#available.  The first prefix in this list is what we use to name the
Packit 78deda
#Netpbm shared libraries.
Packit 78deda
#
Packit 78deda
# This variable controls how 'libopt' gets built.
Packit 78deda
#
Packit 78deda
SHLIBPREFIXLIST = lib
Packit 78deda
#Cygwin:
Packit 78deda
#SHLIBPREFIXLIST = cyg lib
Packit 78deda
Packit 78deda
NETPBMSHLIBPREFIX = $(firstword $(SHLIBPREFIXLIST))
Packit 78deda
Packit 78deda
#DLLVER is used to version the DLLs built on cygwin or other
Packit 78deda
#windowsish platforms.  We can't add this to LIBROOT, or we'd
Packit 78deda
#version the static libs (which is bad).  We can't add this
Packit 78deda
#at the end of the name (like unix does with so numbers) because
Packit 78deda
#windows will only load dlls whose name ends in "dll".  So,
Packit 78deda
#we have this variable, which becomes the end of the library "root" name
Packit 78deda
#for DLLs only.
Packit 78deda
#
Packit 78deda
# This variable controls how 'libopt' gets built.
Packit 78deda
#
Packit 78deda
DLLVER =
Packit 78deda
#Cygwin
Packit 78deda
#DLLVER = $(NETPBM_MAJOR_RELEASE)
Packit 78deda
Packit 78deda
#NETPBM_DOCURL is the URL of the main documentation page for Netpbm.
Packit 78deda
#This is a directory which contains a file for each Netpbm program,
Packit 78deda
#library, and file type.  E.g. The documentation for jpegtopnm might be in
Packit 78deda
#http://netpbm.sourceforge.net/doc/jpegtopnm.html .  This value gets
Packit 78deda
#installed in the man pages (which say no more than to read the webpage)
Packit 78deda
#and in the Manweb netpbm.url file.
Packit 78deda
NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/
Packit 78deda
#For a system with no web access, but a local copy of the doc:
Packit 78deda
#NETPBM_DOCURL = file:/usr/doc/netpbm/
Packit 78deda
Packit 78deda
# RGB_DB_PATH is where Netpbm looks for the color database when the RGBDEF
Packit 78deda
# environment variable is not set.  See pm_config.in.h for details.
Packit 78deda
RGB_DB_PATH = /usr/local/netpbm/rgb.txt:/usr/share/netpbm/rgb.txt:/etc/X11/rgb.txt:/usr/lib/X11/rgb.txt:/usr/share/X11/rgb.txt:/usr/X11R6/lib/X11/rgb.txt