config.mk 25 KB

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