summaryrefslogtreecommitdiff
path: root/netpbm/config.mk
blob: 4f88157330fb4dbfbb9f4ea0bfd038e1e342b658 (plain)
    1 ####This file was automatically created by 'configure.'
    2 ####Many variables are set twice -- a generic setting, then 
    3 ####a system-specific override at the bottom of the file.
    4 ####
    5 # This is a make file inclusion, to be included in all the Netpbm make
    6 # files.
    7 
    8 # This file is meant to contain variable settings that customize the
    9 # build for a particular target system configuration.
   10 
   11 # The distribution contains the file config.mk.in.  You edit
   12 # config.mk.in in ways relevant to your particular environment 
   13 # to create config.mk.  The "configure" program will do this
   14 # for you in simple cases.
   15 
   16 # Some of the variables that the including make file must set for this
   17 # file to work:
   18 #
   19 #  SRCDIR: The directory at the top of the Netpbm source tree.  Note that
   20 #  this is typically a relative directory, and it must be relative to the
   21 #  make file that includes this file.
   22 
   23 DEFAULT_TARGET = nonmerge
   24 #DEFAULT_TARGET = merge
   25 
   26 # Fiasco has some special requirements that make it fail to compile on
   27 # some systems, and since it isn't very important, just set this to "N"
   28 # and skip it on those systems unless you want to debug it and fix it.
   29 # OpenBSD:
   30 #BUILD_FIASCO = N
   31 BUILD_FIASCO = Y
   32 
   33 # The following are commands for the build process to use.  These values
   34 # do not get built into anything.
   35 
   36 # The C compiler (including macro preprocessor)
   37 CC ?= gcc
   38 # Note that 'cc' is usually an alias for whatever is the main compiler
   39 # on a system, e.g. the GNU Compiler on Linux.
   40 #CC = cc
   41 
   42 # The linker.
   43 LD = $(CC)
   44 #LD = ld
   45 #Tru64:
   46 #LD = cc
   47 #LD = gcc 
   48 
   49 #If the linker identified above is a compiler that invokes a linker
   50 #(as in 'cc foo.o -o foo'), set LINKERISCOMPILER.  The main difference is
   51 #that we expect a compiler to take linker options in the '-Wl,-opt1,val1'
   52 #syntax whereas the actual linker would take '-opt1 val1'.
   53 LINKERISCOMPILER=Y
   54 #If $(LD) is 'ld':
   55 #LINKERISCOMPILER=N
   56 
   57 #LINKER_CAN_DO_EXPLICIT_LIBRARY means the linker specified above can
   58 #take a library as just another link object argument, as in 'ld
   59 #pnmtojpeg.o /usr/local/lib/libjpeg.so ...'  as opposed to requiring a
   60 #-l option as in 'ld pnmtojpeg.o -L/usr/local/lib -l jpeg'.
   61 #This variable controls how 'libopt' gets built.  Note that with some
   62 #linkers, you can specify a shared library explicitly, but then it has
   63 #to live in that exact place at run time.  That's not good enough for us.
   64 
   65 LINKER_CAN_DO_EXPLICIT_LIBRARY=N
   66 #GNU:
   67 #LINKER_CAN_DO_EXPLICIT_LIBRARY=Y
   68 
   69 # This is the name of the header file that declares the types
   70 # uint32_t, etc.  This name is used as #include $(INTTYPES_H)  .
   71 # Set to null if the types come automatically without including anything.
   72 
   73 # We have a report (2005.09.17) that on IRIX 5.3 with the native IDO
   74 # cc, inttypes.h and sys/types.h conflict (and Netpbm programs include
   75 # sys/types for other things), so for that environment, <inttypes.h>
   76 # won't work, but "inttypes_netpbm.h" might.
   77 
   78 INTTYPES_H = <inttypes.h>
   79 # Linux libc5:
   80 #INTTYPES_H = <types.h>
   81 # Solaris:
   82 # Solaris has <sys/inttypes.h>, but it doesn't define int_fast2_t, etc.
   83 #INTTYPES_H = "inttypes_netpbm.h"
   84 # Others:
   85 #INTTYPES_H = <sys/stdint.h>
   86 #INTTYPES_H = <sys/types.h>
   87 # The automatically generated Netpbm version:
   88 #INTTYPES_H = "inttypes_netpbm.h"
   89 
   90 # HAVE_INT64 tells whether, assuming you include the header indicated by
   91 # INTTYPES_H, you have the int64_t type and related stuff.  (If you don't
   92 # the build will omit certain code that does 64 bit computations).
   93 HAVE_INT64 = Y
   94 #HAVE_INT64 = N
   95 
   96 # CC and LD are for building the Netpbm programs, which are not necessarily
   97 # intended to run on the same system on which Make is running.  But when we 
   98 # build a build tool such as Libopt, it is meant to run only on the same 
   99 # system on which the Make is running.  The variables below define programs
  100 # to use to compile and link build tools.
  101 CC_FOR_BUILD = $(CC)
  102 LD_FOR_BUILD = $(LD)
  103 CFLAGS_FOR_BUILD = $(CFLAGS)
  104 LDFLAGS_FOR_BUILD = $(LDFLAGS)
  105 
  106 # MAKE is set automatically by Make to what was used to invoke Make.
  107 
  108 INSTALL = $(SRCDIR)/buildtools/install.sh
  109 #Solaris:
  110 #INSTALL = /usr/ucb/install
  111 #Tru64:
  112 #INSTALL = installbsd
  113 #OSF1:
  114 #INSTALL = $(SRCDIR)/buildtools/installosf
  115 #Red Hat Linux:
  116 #INSTALL = install
  117 
  118 # STRIPFLAG is the option you pass to the above install program to make it
  119 # strip unnecessary information out of binaries.
  120 STRIPFLAG = -s
  121 # If you don't want to strip the binaries, just leave it null:
  122 #STRIPFLAG = 
  123 
  124 SYMLINK = ln -s
  125 # At least some Windows environments don't have any concept of symbolic
  126 # links, but direct copies are usually a passable alternative.
  127 #SYMLINK = cp
  128 
  129 #MANPAGE_FORMAT is "nroff" or "cat".  It determines in what format the
  130 #pointer man pages are installed (ready to nroff, or ready to cat).  
  131 #A pointer man pages is just a single-paragraph pages that tells you there is
  132 #no man page for the program, to look at the HTML documentation instead.
  133 MANPAGE_FORMAT = nroff
  134 #MANPAGE_FORMAT = cat
  135 
  136 AR = ar
  137 RANLIB = ranlib
  138 # IRIX, SCO don't have Ranlib:
  139 #RANLIB = true
  140 
  141 # LEX is the beginning of a shell command that runs a Lex-like
  142 # pattern matcher generator.  Null string means there isn't any such
  143 # command.  That means the build will skip parts that need one.
  144 
  145 LEX = flex
  146 # Solaris:
  147 # LEX = flex -e
  148 # Windows Mingw:
  149 # LEX =
  150 # 
  151 # LEX = lex
  152 
  153 # C compiler options 
  154 
  155 # gcc:
  156 # -ansi and -Werror should work too, but are not included
  157 # by default because there's no point in daring the build to fail.
  158 # -pedantic isn't a problem because it causes at worst a warning.
  159 #CFLAGS = -O3 -ffast-math -pedantic -fno-common \
  160 #          -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit \
  161 #          -Wwrite-strings -Wmissing-prototypes -Wundef -Wno-unknown-pragmas
  162 # The merged programs have a main_XXX subroutine instead of main(),
  163 # which would cause a warning with -Wmissing-declarations or 
  164 # -Wmissing-prototypes.
  165 #CFLAGS_MERGE = -Wno-missing-declarations -Wno-missing-prototypes
  166 # A user of DEC Tru64 4.0F in May 2000 needed -DLONG_32 for ppmtompeg,
  167 # but word size-sensitive code was removed from parallel.c in September 2004.
  168 # A user of Tru64 5.1A in July 2003 needed NOT to have -DLONG_32.  In
  169 # theory, you need this if on your system, long is 32 bits and int is not.
  170 # But it may be completely irrelevant today.
  171 #Tru64:
  172 #CFLAGS = -O2 -std1 -DLONG_32
  173 #CFLAGS = -O2 -std1
  174 #AIX:
  175 #CFLAGS= -O3
  176 #HP-UX:
  177 #CFLAGS= -O3 -fPIC
  178 #IRIX:
  179 #CFLAGS= -n32 -O3
  180 #Amiga with GNU compiler:
  181 #CFLAGS= -m68020-60 -ffast-math -mstackextend 
  182 # You can add -noixemul for Amiga and successfully compile most of the 
  183 # programs.  (Of the remaining ones, if you can supply your own strtod() 
  184 # function, most of them will build with -noixemul).  So try building 
  185 # with 'make --keep-going CADD=-noixemul' first, then just 'make' to build
  186 # everything that failed for lack of the ixemul library in the first step.
  187 # That way, the parts that don't required the ixemul library won't indicate
  188 # a dependency on it.
  189 #OpenBSD:
  190 #CFLAGS = -I/usr/local/include
  191 
  192 # EXE is a suffix that the linker puts on any executable it generates.
  193 # In cygwin, this is .exe and most programs deal with its existence without
  194 # us having to know about it.  Some don't though, so set this:
  195 
  196 EXE =
  197 #Cygwin, DJGPP/Windows:
  198 #EXE = .exe
  199   
  200 # linker options.  
  201 
  202 # LDFLAGS is often set as an environment variable;  A setting here overrides
  203 # it.  So either make sure you want to override it, or do a "LDFLAGS +=" here.
  204 
  205 # LDFLAGS is usually not the right place for a -L option, because we put
  206 # LDFLAGS _before_ our own -L options, so it would cancel out our
  207 # specific selection of libraries.  For example, if you say
  208 # LDFLAGS=/usr/local/lib and an old copy of the libnetpbm is in
  209 # /usr/local/lib, then you'd be linking against that old copy instead of
  210 # the copy you just built, which is located by a -L option later on the
  211 # link command.  LIBS is the right variable for adding -L options.  LIBS
  212 # goes after any of our make files' own -L options.
  213 
  214 # Eunice users may want to use -noshare so that the executables can
  215 # run standalone:
  216 #LDFLAGS += -noshare
  217 #Tru64:
  218 # Russ Allberry says on 2001.06.09 that -oldstyle_liblookup may be necessary
  219 # to keep from finding an ancient system libjpeg.so that isn't compatible with
  220 # NetPBM.  Michael Long found that /usr/local/lib is not in the default
  221 # search path, or not soon enough, and he was getting an old libjpeg that
  222 # caused all the jpeg symbol references to be unresolved.  He had installed
  223 # a new libjpeg in /usr/local/lib.
  224 #LDFLAGS += -call_shared -oldstyle_liblookup -L/usr/local/lib
  225 #AIX:
  226 #LDFLAGS += -L /usr/pubsw/lib
  227 #HP-UX:
  228 #LDFLAGS += -Wl,+b,/usr/pubsw/lib
  229 #IRIX:
  230 #LDFLAGS += -n32
  231 
  232 # Linker options for created Netpbm shared libraries.
  233 
  234 # Here, $(SONAME) resolves to the soname for the shared library being created.
  235 # The following are gcc options.  This works on GNU libc systems.
  236 LDSHLIB = -shared -Wl,-soname,$(SONAME)
  237 # You need -nostart instead of -shared on BeOS.  Though the BeOS compiler is
  238 # ostensibly gcc, it has the -nostart option, which is not mentioned in gcc
  239 # documentation and doesn't exist in at least one non-BeOS installation.
  240 # BeOS doesn't have sonames built in.
  241 #LDSHLIB = -nostart
  242 #LDSHLIB = -G
  243 # Solaris, SunOS with GNU Ld, SCO:
  244 # These systems have no soname option.
  245 #LDSHLIB = -shared
  246 # Solaris with Sun Ld:
  247 #LDSHLIB = -Wl,-Bdynamic,-G,-h,$(SONAME) 
  248 #Tru64:
  249 #LDSHLIB = -shared -expect_unresolved "*"
  250 #IRIX:
  251 #LDSHLIB = -shared -n32
  252 #AIX GNU compiler/linker:
  253 #LDSHLIB = -shared
  254 #AIX Visual Age C:
  255 #LDSHLIB = -qmkshrobj
  256 #Mac OSX:
  257 # According to experiments done by Peter A Crowley in May 2007, if
  258 # libnetpbm goes in a standard place such as /usr/local/lib,
  259 # programs need not be built with libnetpbm's location included.
  260 # But if it goes elsewhere, the link-editor must include the
  261 # location in the executable.  It finds the runtime location by
  262 # looking inside the library.  The information in the library
  263 # comes from the install_name option with which the library was
  264 # built.  It's an alternative to the -rpath option on other systems.
  265 #LDSHLIB=-dynamiclib
  266 #LDSHLIB=-dynamiclib -install_name $(NETPBMLIB_RUNTIME_PATH)/libnetpbm.$(MAJ).dylib
  267 
  268 # LDRELOC is the command to combine two .o files (relocateable object files)
  269 # into a single .o file that can later be linked into something else.  NONE
  270 # means no such command is available.
  271 
  272 LDRELOC = NONE
  273 # GNU Ld:
  274 # Older GNU Ld misspells the option as --relocateable.  Newer GNU Ld
  275 # correctly spells it --relocatable.  The abbreviation --reloc works on
  276 # both.
  277 #LDRELOC = ld --reloc
  278 #LDRELOC = ld -r
  279 
  280 
  281 # On older systems, you have to make shared libraries out of position
  282 # independent code, so you need -fpic or fPIC here.  (The rule is: if
  283 # -fpic works, use it.  If it bombs, go to fPIC).  On newer systems,
  284 # it isn't necessary, but can save real memory at the expense of
  285 # execution speed.  Without position independent code, the library
  286 # loader may have to patch addresses into the executable text.  On an
  287 # older system, this would cause a program crash because the loader
  288 # would be writing into read-only shared memory.  But on newer
  289 # systems, the system silently creates a private mapping of the page
  290 # or segment being modified (the "copy on write" phenomenon).  So it
  291 # needs its own private real page frame.  In one experiment, A second
  292 # copy of Pbmtext used 16K less real memory when built with -fpic than
  293 # when built without.  2001.06.02.
  294 
  295 # We have seen -fPIC required on IA64 and AMD64 machines (GNU
  296 # compiler/linker).  Build-time linking fails without it.  I don't
  297 # know why -- history seems to be repeating itself.  2005.02.23.
  298 
  299 CFLAGS_SHLIB = 
  300 # Gcc:
  301 #CFLAGS_SHLIB = -fpic
  302 #CFLAGS_SHLIB = -fPIC
  303 # Sun compiler:
  304 #CFLAGS_SHLIB = -Kpic
  305 #CFLAGS_SHLIB = -KPIC
  306 
  307 # SHLIB_CLIB is the link option to include the C library in a shared library,
  308 # normally "-lc".  On typical systems, this serves no purpose.  On some,
  309 # though, it causes information about which C library to use to be recorded
  310 # in the shared library and thus choose the correct library among several or
  311 # avoid using an incompatible one.  But on some systems, the link fails.
  312 # On 2002.09.30, "John H. DuBois III" <spcecdt@armory.com> reports that on 
  313 # SCO OpenServer, he gets the following error message with -lc:
  314 #
  315 #  -lc; relocations referenced  ;  from file(s) /usr/ccs/lib/libc.so(random.o);
  316 #   fatal error: relocations remain against allocatable but non-writable 
  317 #   section: ; .text
  318 
  319 SHLIB_CLIB = -lc
  320 # SCO:
  321 #SHLIB_CLIB =
  322 
  323 # On some systems you have to build into an executable the list of
  324 # directories where its dynamically linked libraries can be found at
  325 # run time.  This is typically done with a -R or -rpath linker
  326 # option.  Even on systems that don't require it, you might prefer to do
  327 # that rather than set up environment variables or configuration files
  328 # to tell the system where the libraries are.  A "Y" here means to put
  329 # the directory information in the executable at link time.
  330 
  331 NEED_RUNTIME_PATH = N
  332 # Solaris, SunOS, NetBSD, AIX:
  333 #NEED_RUNTIME_PATH = Y
  334 
  335 # RPATHOPTNAME is the option you use on the link command to specify
  336 # a runtime search path for a shared library.  It is meaningless unless
  337 # NEED_RUNTIME_PATH is Y.
  338 RPATHOPTNAME = -rpath
  339 
  340 # The following variables tell where your various libraries on which
  341 # Netpbm depends live.  The LIBxxx variable is a full file
  342 # specification of the link library (not necessarily the library used
  343 # at run time).  e.g. "/usr/local/lib/graphics/libjpeg.so".  It usually
  344 # doesn't matter if the library prefix and suffix are right -- you can
  345 # use "lib" and ".so" or ".a" regardless of what your system actually
  346 # uses because these just turn into "-L" and "-l" linker options
  347 # anyway.  ".a" implies a static library for some purposes, though.
  348 # If you don't have the library in question, use a value of NONE for
  349 # LIBxxx and the build will simply skip the programs that require that
  350 # library.  If the library is in your linker's (or the Netpbm build's)
  351 # default search path, leave off the directory part, e.g. "libjpeg.so".
  352 
  353 # The xxxHDR_DIR variable is the directory in which the interface
  354 # headers for the library live (e.g. /usr/include).  If they are in your
  355 # compiler's default search path, set this variable to null.
  356 
  357 # This is where the Netpbm shared libraries will reside when Netpbm is
  358 # fully installed.  In some configurations, the Netpbm builder builds
  359 # this information into the Netpbm executables.  This does NOT affect
  360 # where the Netpbm installer installs the libraries.  A null value
  361 # means the libraries are in a default search path used by the runtime
  362 # library loader.
  363 NETPBMLIB_RUNTIME_PATH = 
  364 #NETPBMLIB_RUNTIME_PATH = /usr/lib/netpbm
  365 
  366 # The TIFF library.  See above.  If you want to build the tiff
  367 # converters, you must have the tiff library already installed.
  368 
  369 TIFFLIB = NONE
  370 TIFFHDR_DIR =
  371 
  372 #TIFFLIB = libtiff.so
  373 #TIFFHDR_DIR = /usr/include/libtiff
  374 #NetBSD:
  375 #TIFFLIB = $(LOCALBASE)/lib/libtiff.so
  376 #TIFFHDR_DIR = $(LOCALBASE)/include
  377 # OSF, Tru64:
  378 #TIFFLIB = /usr/local1/DEC/lib/libtiff.so
  379 #TIFFHDR_DIR = /usr/local1/DEC/include
  380 
  381 # Some TIFF libraries do Jpeg and/or Z (flate) compression and thus any
  382 # program linked with the TIFF library needs a Jpeg and/or Z library.
  383 # Some TIFF libraries have such library statically linked in, but others
  384 # need it to be dynamically linked at program load time.
  385 # Make this 'N' if youf TIFF library doesn't need such dynamic linking.
  386 # As of 2005.01, the most usual build of the TIFF library appears to require
  387 # both.
  388 TIFFLIB_NEEDS_JPEG = Y
  389 TIFFLIB_NEEDS_Z = Y
  390 
  391 # The JPEG library.  See above.  If you want to build the jpeg
  392 # converters you must have the jpeg library already installed.
  393 
  394 # Tiff files can use JPEG compression, so the Tiff library can reference
  395 # the JPEG library.  If your Tiff library references a dynamic JPEG 
  396 # library, you must specify at least JPEGLIB here, or the Tiff
  397 # converters will not build.  Note that your Tiff library may have the
  398 # JPEG stuff statically linked in, in which case you won't need 
  399 # JPEGLIB in order to build the Tiff converters.
  400 
  401 JPEGLIB = NONE
  402 JPEGHDR_DIR =
  403 #JPEGLIB = libjpeg.so
  404 #JPEGHDR_DIR = /usr/include/jpeg
  405 # Netbsd:
  406 #JPEGLIB = ${LOCALBASE}/lib/libjpeg.so
  407 #JPEGHDR_DIR = ${LOCALBASE}/include
  408 # OSF, Tru64:
  409 #JPEGLIB = /usr/local1/DEC/libjpeg.so
  410 #JPEGHDR_DIR = /usr/local1/DEC/include
  411 # Typical:
  412 #JPEGLIB = /usr/local/lib/libjpeg.so
  413 #JPEGHDR_DIR = /usr/local/include
  414 # Don't build JPEG stuff:
  415 #JPEGLIB = NONE
  416 
  417 
  418 # The PNG library.  See above.  If you want to build the PNG
  419 # converters you must have the PNG library already installed.
  420 
  421 # The PNG library, by convention starting around April 2002, gets installed
  422 # with names that include a version number, such as libpng10.a and header
  423 # files in /usr/include/libpng10.  But there is conventionally an unnumbered
  424 # alias (e.g. libpng.a, /usr/include/libpng) for the preferred version.
  425 #
  426 # Recent versions of the library (since some time in the 2002-2006 period)
  427 # have an associated 'libpng-config' that tells how to link it.  The make
  428 # files will use that program if it exists (must be in the PATH).  In that
  429 # case, PNGLIB and PNGHDR_DIR are irrelevant, but PNGVER is still meaningful,
  430 # because the make file runs 'libpng$(PNGVER)-config'.
  431 #
  432 # Even more recent versions have the more modern Pkgconfig database entry
  433 # to tell how to link it.  The make files will try to use that first.
  434 #
  435 # The normal way to choose the libpng the Netpbm build uses from among multiple
  436 # versions on your system is not to mess with the variables below, but rather
  437 # to mess with PKG_CONFIG_PATH or PATH environment variable so that the version
  438 # you want to use appears first in the search path.
  439 
  440 PNGLIB = NONE
  441 PNGHDR_DIR =
  442 PNGVER = 
  443 #PNGLIB = libpng$(PNGVER).so
  444 #PNGHDR_DIR = /usr/include/libpng$(PNGVER)
  445 # NetBSD:
  446 #PNGLIB = $(LOCALBASE)/lib/libpng$(PNGVER).so
  447 #PNGHDR_DIR = $(LOCALBASE)/include
  448 # OSF/Tru64:
  449 #PNGLIB = /usr/local1/DEC/lib/libpng$(PNGVER).so
  450 #PNGHDR_DIR = /usr/local1/DEC/include
  451 
  452 # The zlib compression library.  See above.  You need it to build
  453 # anything that needs the PNG library (see above).  If you selected
  454 # NONE for the PNG library, it doesn't matter what you specify here --
  455 # it won't get used.
  456 #
  457 # If you have 'libpng-config' (see above), these are irrelevant.
  458 
  459 ZLIB = NONE
  460 ZHDR_DIR = 
  461 #ZLIB = libz.so
  462 
  463 # The JBIG lossless image compression library (aka JBIG-KIT):
  464 
  465 JBIGLIB = $(BUILDDIR)/converter/other/jbig/libjbig.a
  466 JBIGHDR_DIR = $(SRCDIR)/converter/other/jbig
  467 
  468 # The Jasper JPEG-2000 image compression library (aka JasPer):
  469 JASPERLIB = $(INTERNAL_JASPERLIB)
  470 JASPERHDR_DIR = $(INTERNAL_JASPERHDR_DIR)
  471 # JASPERDEPLIBS is the libraries (-l options or file names) on which
  472 # The Jasper library depends -- i.e. what you have to link into any
  473 # executable that links in the Jasper library.
  474 JASPERDEPLIBS =
  475 #JASPERDEPLIBS = -ljpeg
  476 
  477 # And the Utah Raster Toolkit (aka URT aka RLE) library:
  478 
  479 URTLIB = $(BUILDDIR)/urt/librle.a
  480 URTHDR_DIR = $(SRCDIR)/urt
  481 
  482 # The X11 library has facilities for talking to an X Window System
  483 # server.  It is required by Pamx.
  484 
  485 X11LIB = NONE
  486 X11HDR_DIR =
  487 
  488 #X11LIB = /usr/lib/libX11.so
  489 #X11HDR_DIR =
  490 
  491 # The Linux SVGA library (Svgalib) is a facility for displaying graphics
  492 # on the Linux console.  It is required by Ppmsvgalib.
  493 
  494 LINUXSVGALIB = NONE
  495 LINUXSVGAHDR_DIR = 
  496 
  497 #LINUXSVGALIB = /usr/lib/libvga.so
  498 #LINUXSVGAHDR_DIR = /usr/include/vgalib
  499 
  500 # If you don't want any network functions, set OMIT_NETWORK to "y".
  501 # The only thing that requires network functions is the option in
  502 # ppmtompeg to run it on multiple computers simultaneously.  On some
  503 # systems network functions don't work or we haven't figured out how to 
  504 # make them work, or they just aren't worth the effort.  
  505 OMIT_NETWORK =
  506 #DJGPP/Windows, Tru64:
  507 #   (there's some minor header problem that prevents network functions from 
  508 #   building on Tru64 2000.10.06)
  509 #OMIT_NETWORK = y
  510 
  511 # These are -l options to link in the network libraries.  Often, these are
  512 # built into the standard C library, so this can be null.  This is irrelevant
  513 # if OMIT_NETWORK is "y".
  514 
  515 NETWORKLD = 
  516 # Solaris, SunOS:
  517 #NETWORKLD = -lsocket -lnsl
  518 # SCO:
  519 #NETWORKLD = -lsocket, -lresolv
  520 
  521 # DONT_HAVE_PROCESS_MGMT is Y if this system doesn't have the usual
  522 # Unix process management stuff - fork, wait, etc.  N for a regular Unix
  523 # system.
  524 DONT_HAVE_PROCESS_MGMT = N
  525 
  526 # The following variables are used only by 'make install' (and the
  527 # variants of it).  Paths here don't, for example, get built into any
  528 # programs.
  529 
  530 # This is where everything goes when you do 'make package', unless you
  531 # override it by setting 'pkgdir' on the Make command line.
  532 PKGDIR_DEFAULT = /tmp/netpbm
  533 
  534 # Subdirectory of the package directory ($(pkgdir)) in which man pages
  535 # go.
  536 PKGMANDIR = man
  537 
  538 # File permissions for installed files.
  539 # Note that on some systems (e.g. Solaris), 'install' can't use the 
  540 # mnemonic permissions - you have to use octal.
  541 
  542 # binaries (pbmmake, etc)
  543 INSTALL_PERM_BIN =  755       # u=rwx,go=rx
  544 # shared libraries (libpbm.so, etc)
  545 INSTALL_PERM_LIBD = 755       # u=rwx,go=rx
  546 # static libraries (libpbm.a, etc)
  547 INSTALL_PERM_LIBS = 644       # u=rw,go=r
  548 # header files (pbm.h, etc)
  549 INSTALL_PERM_HDR =  644       # u=rw,go=r
  550 # man pages (pbmmake.1, etc)
  551 INSTALL_PERM_MAN =  644       # u=rw,go=r
  552 # data files (pnmtopalm color maps, etc)
  553 INSTALL_PERM_DATA = 644       # u=rw,go=r
  554 
  555 # Specify the suffix that want the man pages to have.
  556 
  557 SUFFIXMANUALS1 = 1
  558 SUFFIXMANUALS3 = 3
  559 SUFFIXMANUALS5 = 5
  560 
  561 #NETPBMLIBTYPE tells the kind of libraries that will get built to hold the
  562 #Netpbm library functions.  The value is used only in make file tests.
  563 # "unixshared" means a unix-style shared library, typically named like 
  564 # libxyz.so.2.3
  565 NETPBMLIBTYPE = unixshared
  566 # "unixstatic" means a unix-style static library, (like libxyz.a)
  567 #NETPBMLIBTYPE = unixstatic
  568 # "dll" means a Windows DLL shared library
  569 #NETPBMLIBTYPE = dll
  570 # "dylib" means a Darwin/Mac OS shared library
  571 #NETPBMLIBTYPE = dylib
  572 
  573 #NETPBMLIBSUFFIX is the suffix used on whatever kind of library is 
  574 #selected above.  All this is used for is to construct library names.
  575 #The make files never examine the actual value.
  576 NETPBMLIBSUFFIX = so
  577 
  578 # "a" is the suffix for unix-style static libraries.  It is also
  579 # traditionally used for shared libraries on AIX.  The Visual Age C
  580 # manual says sometimes .so works on AIX, and GNU software for AIX
  581 # 5.1.0 does indeed use it.  In our experiments, it works fine if you
  582 # name the library file explicitly on the link, but isn't in the -l
  583 # search order.  If you name the library explicitly on the link, the
  584 # library must live in exactly the same position at run time, so we
  585 # can't use that.  Therefore, you cannot build both static and shared
  586 # libraries with AIX.  You have to choose.
  587 #NETPBMLIBSUFFIX = a
  588 # For HP-UX shared libraries:
  589 #NETPBMLIBSUFFIX = sl
  590 # Darwin/Mac OS shared library:
  591 #NETPBMLIBSUFFIX = dylib
  592 # Windows shared library:
  593 #NETPBMLIBSUFFIX = dll
  594 
  595 #STATICLIB_TOO is "y" to signify that you want a static library built
  596 #and installed in addition to whatever library type you specified by
  597 #NETPBMLIBTYPE.  If NETPBMLIBTYPE specified a static library,
  598 #STATICLIB_TOO simply has no effect.
  599 STATICLIB_TOO = y
  600 #STATICLIB_TOO = n
  601 
  602 #STATICLIBSUFFIX is the suffix that static libraries have.  It's
  603 #meaningless if you aren't building static libraries.
  604 STATICLIBSUFFIX = a
  605 
  606 #SHLIBPREFIXLIST is a blank-delimited list of prefixes that a filename
  607 #of a shared library may have on this system.  Traditionally, it's
  608 #just "lib", as in libc or libnetpbm.  On Windows, though, varying
  609 #prefixes are used when multiple alternative forms of a library are
  610 #available.  The first prefix in this list is what we use to name the
  611 #Netpbm shared libraries.
  612 #
  613 # This variable controls how 'libopt' gets built.
  614 #
  615 SHLIBPREFIXLIST = lib
  616 #Cygwin:
  617 #SHLIBPREFIXLIST = cyg lib
  618 
  619 NETPBMSHLIBPREFIX = $(firstword $(SHLIBPREFIXLIST))
  620 
  621 #DLLVER is used to version the DLLs built on cygwin or other
  622 #windowsish platforms.  We can't add this to LIBROOT, or we'd
  623 #version the static libs (which is bad).  We can't add this
  624 #at the end of the name (like unix does with so numbers) because
  625 #windows will only load dlls whose name ends in "dll".  So,
  626 #we have this variable, which becomes the end of the library "root" name
  627 #for DLLs only.
  628 #
  629 # This variable controls how 'libopt' gets built.
  630 #
  631 DLLVER =
  632 #Cygwin
  633 #DLLVER = $(NETPBM_MAJOR_RELEASE)
  634 
  635 #NETPBM_DOCURL is the URL of the main documentation page for Netpbm.
  636 #This is a directory which contains a file for each Netpbm program,
  637 #library, and file type.  E.g. The documentation for jpegtopnm might be in
  638 #http://netpbm.sourceforge.net/doc/jpegtopnm.html .  This value gets
  639 #installed in the man pages (which say no more than to read the webpage)
  640 #and in the Webman netpbm.url file.
  641 NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/
  642 #For a system with no web access, but a local copy of the doc:
  643 #NETPBM_DOCURL = file:/usr/doc/netpbm/
  644 
  645 
  646 
  647 
  648 
  649 ####Lines above were copied from config.mk.in by 'configure'.
  650 ####Lines below were added by 'configure' based on the GNU platform.
  651 DEFAULT_TARGET = nonmerge
  652 NETPBMLIBTYPE=unixshared
  653 NETPBMLIBSUFFIX=so
  654 STATICLIB_TOO=y
  655 CFLAGS = #CFLAGS# -O3 -ffast-math -pedantic -fno-common -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit -Wwrite-strings -Wmissing-prototypes -Wundef -Wno-unknown-pragmas
  656 CFLAGS_MERGE = -Wno-missing-declarations -Wno-missing-prototypes
  657 LDRELOC = ld --reloc
  658 LINKER_CAN_DO_EXPLICIT_LIBRARY=Y
  659 LINKERISCOMPILER = Y
  660 CFLAGS_SHLIB += -fPIC
  661 TIFFLIB = libtiff.so
  662 JPEGLIB = libjpeg.so
  663 ZLIB = libz.so
  664 NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/

Generated by cgit