]>
Commit | Line | Data |
---|---|---|
894fea37 ML |
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 | |
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 | PNGLIB = NONE | |
433 | PNGHDR_DIR = | |
434 | PNGVER = | |
435 | #PNGLIB = libpng$(PNGVER).so | |
436 | #PNGHDR_DIR = /usr/include/libpng$(PNGVER) | |
437 | # NetBSD: | |
438 | #PNGLIB = $(LOCALBASE)/lib/libpng$(PNGVER).so | |
439 | #PNGHDR_DIR = $(LOCALBASE)/include | |
440 | # OSF/Tru64: | |
441 | #PNGLIB = /usr/local1/DEC/lib/libpng$(PNGVER).so | |
442 | #PNGHDR_DIR = /usr/local1/DEC/include | |
443 | ||
444 | # The zlib compression library. See above. You need it to build | |
445 | # anything that needs the PNG library (see above). If you selected | |
446 | # NONE for the PNG library, it doesn't matter what you specify here -- | |
447 | # it won't get used. | |
448 | # | |
449 | # If you have 'libpng-config' (see above), these are irrelevant. | |
450 | ||
451 | ZLIB = NONE | |
452 | ZHDR_DIR = | |
453 | #ZLIB = libz.so | |
454 | ||
455 | # The JBIG lossless image compression library (aka JBIG-KIT): | |
456 | ||
457 | JBIGLIB = $(BUILDDIR)/converter/other/jbig/libjbig.a | |
458 | JBIGHDR_DIR = $(SRCDIR)/converter/other/jbig | |
459 | ||
460 | # The Jasper JPEG-2000 image compression library (aka JasPer): | |
461 | JASPERLIB = $(INTERNAL_JASPERLIB) | |
462 | JASPERHDR_DIR = $(INTERNAL_JASPERHDR_DIR) | |
463 | # JASPERDEPLIBS is the libraries (-l options or file names) on which | |
464 | # The Jasper library depends -- i.e. what you have to link into any | |
465 | # executable that links in the Jasper library. | |
466 | JASPERDEPLIBS = | |
467 | #JASPERDEPLIBS = -ljpeg | |
468 | ||
469 | # And the Utah Raster Toolkit (aka URT aka RLE) library: | |
470 | ||
471 | URTLIB = $(BUILDDIR)/urt/librle.a | |
472 | URTHDR_DIR = $(SRCDIR)/urt | |
473 | ||
474 | # The X11 library has facilities for talking to an X Window System | |
475 | # server. It is required by Pamx. | |
476 | ||
477 | X11LIB = NONE | |
478 | X11HDR_DIR = | |
479 | ||
480 | #X11LIB = /usr/lib/libX11.so | |
481 | #X11HDR_DIR = | |
482 | ||
483 | # The Linux SVGA library (Svgalib) is a facility for displaying graphics | |
484 | # on the Linux console. It is required by Ppmsvgalib. | |
485 | ||
486 | LINUXSVGALIB = NONE | |
487 | LINUXSVGAHDR_DIR = | |
488 | ||
489 | #LINUXSVGALIB = /usr/lib/libvga.so | |
490 | #LINUXSVGAHDR_DIR = /usr/include/vgalib | |
491 | ||
492 | # If you don't want any network functions, set OMIT_NETWORK to "y". | |
493 | # The only thing that requires network functions is the option in | |
494 | # ppmtompeg to run it on multiple computers simultaneously. On some | |
495 | # systems network functions don't work or we haven't figured out how to | |
496 | # make them work, or they just aren't worth the effort. | |
497 | OMIT_NETWORK = | |
498 | #DJGPP/Windows, Tru64: | |
499 | # (there's some minor header problem that prevents network functions from | |
500 | # building on Tru64 2000.10.06) | |
501 | #OMIT_NETWORK = y | |
502 | ||
503 | # These are -l options to link in the network libraries. Often, these are | |
504 | # built into the standard C library, so this can be null. This is irrelevant | |
505 | # if OMIT_NETWORK is "y". | |
506 | ||
507 | NETWORKLD = | |
508 | # Solaris, SunOS: | |
509 | #NETWORKLD = -lsocket -lnsl | |
510 | # SCO: | |
511 | #NETWORKLD = -lsocket, -lresolv | |
512 | ||
513 | VMS = | |
514 | #VMS: | |
515 | #VMS = yes | |
516 | ||
517 | # DONT_HAVE_PROCESS_MGMT is Y if this system doesn't have the usual | |
518 | # Unix process management stuff - fork, wait, etc. N for a regular Unix | |
519 | # system. | |
520 | DONT_HAVE_PROCESS_MGMT = N | |
521 | ||
522 | # The following variables are used only by 'make install' (and the | |
523 | # variants of it). Paths here don't, for example, get built into any | |
524 | # programs. | |
525 | ||
526 | # This is where everything goes when you do 'make package', unless you | |
527 | # override it by setting 'pkgdir' on the Make command line. | |
528 | PKGDIR_DEFAULT = /tmp/netpbm | |
529 | ||
530 | # Subdirectory of the package directory ($(pkgdir)) in which man pages | |
531 | # go. | |
532 | PKGMANDIR = share/man | |
533 | ||
534 | # File permissions for installed files. | |
535 | # Note that on some systems (e.g. Solaris), 'install' can't use the | |
536 | # mnemonic permissions - you have to use octal. | |
537 | ||
538 | # binaries (pbmmake, etc) | |
539 | INSTALL_PERM_BIN = 755 # u=rwx,go=rx | |
540 | # shared libraries (libpbm.so, etc) | |
541 | INSTALL_PERM_LIBD = 755 # u=rwx,go=rx | |
542 | # static libraries (libpbm.a, etc) | |
543 | INSTALL_PERM_LIBS = 644 # u=rw,go=r | |
544 | # header files (pbm.h, etc) | |
545 | INSTALL_PERM_HDR = 644 # u=rw,go=r | |
546 | # man pages (pbmmake.1, etc) | |
547 | INSTALL_PERM_MAN = 644 # u=rw,go=r | |
548 | # data files (pnmtopalm color maps, etc) | |
549 | INSTALL_PERM_DATA = 644 # u=rw,go=r | |
550 | ||
551 | # Specify the suffix that want the man pages to have. | |
552 | ||
553 | SUFFIXMANUALS1 = 1 | |
554 | SUFFIXMANUALS3 = 3 | |
555 | SUFFIXMANUALS5 = 5 | |
556 | ||
557 | #NETPBMLIBTYPE tells the kind of libraries that will get built to hold the | |
558 | #Netpbm library functions. The value is used only in make file tests. | |
559 | # "unixshared" means a unix-style shared library, typically named like | |
560 | # libxyz.so.2.3 | |
561 | NETPBMLIBTYPE = unixshared | |
562 | # "unixstatic" means a unix-style static library, (like libxyz.a) | |
563 | #NETPBMLIBTYPE = unixstatic | |
564 | # "dll" means a Windows DLL shared library | |
565 | #NETPBMLIBTYPE = dll | |
566 | # "dylib" means a Darwin/Mac OS shared library | |
567 | #NETPBMLIBTYPE = dylib | |
568 | ||
569 | #NETPBMLIBSUFFIX is the suffix used on whatever kind of library is | |
570 | #selected above. All this is used for is to construct library names. | |
571 | #The make files never examine the actual value. | |
572 | NETPBMLIBSUFFIX = so | |
573 | ||
574 | # "a" is the suffix for unix-style static libraries. It is also | |
575 | # traditionally used for shared libraries on AIX. The Visual Age C | |
576 | # manual says sometimes .so works on AIX, and GNU software for AIX | |
577 | # 5.1.0 does indeed use it. In our experiments, it works fine if you | |
578 | # name the library file explicitly on the link, but isn't in the -l | |
579 | # search order. If you name the library explicitly on the link, the | |
580 | # library must live in exactly the same position at run time, so we | |
581 | # can't use that. Therefore, you cannot build both static and shared | |
582 | # libraries with AIX. You have to choose. | |
583 | #NETPBMLIBSUFFIX = a | |
584 | # For HP-UX shared libraries: | |
585 | #NETPBMLIBSUFFIX = sl | |
586 | # Darwin/Mac OS shared library: | |
587 | #NETPBMLIBSUFFIX = dylib | |
588 | # Windows shared library: | |
589 | #NETPBMLIBSUFFIX = dll | |
590 | ||
591 | #STATICLIB_TOO is "y" to signify that you want a static library built | |
592 | #and installed in addition to whatever library type you specified by | |
593 | #NETPBMLIBTYPE. If NETPBMLIBTYPE specified a static library, | |
594 | #STATICLIB_TOO simply has no effect. | |
595 | STATICLIB_TOO = y | |
596 | #STATICLIB_TOO = n | |
597 | ||
598 | #STATICLIBSUFFIX is the suffix that static libraries have. It's | |
599 | #meaningless if you aren't building static libraries. | |
600 | STATICLIBSUFFIX = a | |
601 | ||
602 | #SHLIBPREFIXLIST is a blank-delimited list of prefixes that a filename | |
603 | #of a shared library may have on this system. Traditionally, it's | |
604 | #just "lib", as in libc or libnetpbm. On Windows, though, varying | |
605 | #prefixes are used when multiple alternative forms of a library are | |
606 | #available. The first prefix in this list is what we use to name the | |
607 | #Netpbm shared libraries. | |
608 | # | |
609 | # This variable controls how 'libopt' gets built. | |
610 | # | |
611 | SHLIBPREFIXLIST = lib | |
612 | #Cygwin: | |
613 | #SHLIBPREFIXLIST = cyg lib | |
614 | ||
615 | NETPBMSHLIBPREFIX = $(firstword $(SHLIBPREFIXLIST)) | |
616 | ||
617 | #DLLVER is used to version the DLLs built on cygwin or other | |
618 | #windowsish platforms. We can't add this to LIBROOT, or we'd | |
619 | #version the static libs (which is bad). We can't add this | |
620 | #at the end of the name (like unix does with so numbers) because | |
621 | #windows will only load dlls whose name ends in "dll". So, | |
622 | #we have this variable, which becomes the end of the library "root" name | |
623 | #for DLLs only. | |
624 | # | |
625 | # This variable controls how 'libopt' gets built. | |
626 | # | |
627 | DLLVER = | |
628 | #Cygwin | |
629 | #DLLVER = $(NETPBM_MAJOR_RELEASE) | |
630 | ||
631 | #NETPBM_DOCURL is the URL of the main documentation page for Netpbm. | |
632 | #This is a directory which contains a file for each Netpbm program, | |
633 | #library, and file type. E.g. The documentation for jpegtopnm might be in | |
634 | #http://netpbm.sourceforge.net/doc/jpegtopnm.html . This value gets | |
635 | #installed in the man pages (which say no more than to read the webpage) | |
636 | #and in the Webman netpbm.url file. | |
637 | NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/ | |
638 | #For a system with no web access, but a local copy of the doc: | |
639 | #NETPBM_DOCURL = file:/usr/doc/netpbm/ | |
640 | ||
641 | ||
642 | ####Lines above were copied from config.mk.in by 'configure'. | |
643 | ####Lines below were added by 'configure' based on the GNU platform. | |
644 | DEFAULT_TARGET = nonmerge | |
645 | NETPBMLIBTYPE=unixshared | |
646 | NETPBMLIBSUFFIX=so | |
647 | STATICLIB_TOO=n | |
648 | CFLAGS = -O3 -ffast-math -pedantic -fno-common -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit -Wwrite-strings -Wmissing-prototypes -Wundef | |
649 | CFLAGS_MERGE = -Wno-missing-declarations -Wno-missing-prototypes | |
650 | LDRELOC = ld --reloc | |
651 | LINKER_CAN_DO_EXPLICIT_LIBRARY=Y | |
652 | LINKERISCOMPILER = Y | |
653 | CFLAGS_SHLIB += -fPIC | |
654 | TIFFLIB = libtiff.so | |
655 | JPEGLIB = libjpeg.so | |
656 | ZLIB = libz.so | |
657 | NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/ |