3792
|
1 # Copyright (C) 2001-2014 Artifex Software, Inc. |
3643
|
2 # All Rights Reserved. |
|
3 # |
|
4 # This software is provided AS-IS with no warranty, either express or |
|
5 # implied. |
|
6 # |
|
7 # This software is distributed under license and may not be copied, |
|
8 # modified or distributed except as expressly authorized under the terms |
|
9 # of the license contained in the file LICENSE in this distribution. |
|
10 # |
|
11 # Refer to licensing information at http://www.artifex.com or contact |
|
12 # Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, |
|
13 # CA 94903, U.S.A., +1(415)492-9861, for further information. |
|
14 # |
|
15 # makefile template for/from the autoconf build. |
|
16 # Makefile. Generated from Makefile.in by configure. |
|
17 |
|
18 # ------------------------------- Options ------------------------------- # |
|
19 |
|
20 ####### The following are the only parts of the file you should need to edit. |
|
21 |
|
22 # Define the directory for the final executable, and the |
|
23 # source, generated intermediate file, and object directories |
|
24 # for the graphics library (GL) and the PostScript/PDF interpreter (PS). |
|
25 |
|
26 BINDIR=./$(BUILDDIRPREFIX)bin |
|
27 GLSRCDIR=./base |
3792
|
28 DEVSRCDIR=./devices |
3643
|
29 GLGENDIR=./$(BUILDDIRPREFIX)obj |
|
30 GLOBJDIR=./$(BUILDDIRPREFIX)obj |
3792
|
31 DEVGENDIR=./$(BUILDDIRPREFIX)obj |
|
32 DEVOBJDIR=./$(BUILDDIRPREFIX)obj |
3643
|
33 AUXDIR=$(GLGENDIR)/aux_ |
|
34 PSSRCDIR=./psi |
|
35 PSLIBDIR=./lib |
|
36 PSRESDIR=./Resource |
|
37 PSGENDIR=./$(BUILDDIRPREFIX)obj |
|
38 PSOBJDIR=./$(BUILDDIRPREFIX)obj |
|
39 CONTRIBDIR=./contrib |
|
40 |
|
41 # Do not edit the next group of lines. |
|
42 |
|
43 include $(GLSRCDIR)/version.mak |
|
44 DD=$(GLGENDIR)/ |
|
45 GLD=$(GLGENDIR)/ |
|
46 PSD=$(PSGENDIR)/ |
|
47 |
|
48 # ------ Generic options ------ # |
|
49 |
|
50 # Define the installation commands and target directories for |
|
51 # executables and files. The commands are only relevant to `make install'; |
|
52 # the directories also define the default search path for the |
|
53 # initialization files (gs_*.ps) and the fonts. |
|
54 |
|
55 INSTALL = $(GLSRCDIR)/instcopy -c |
|
56 INSTALL_PROGRAM = $(INSTALL) -m 755 |
|
57 INSTALL_DATA = $(INSTALL) -m 644 |
|
58 INSTALL_SHARED = |
|
59 |
|
60 prefix = /usr/local |
|
61 exec_prefix = ${prefix} |
|
62 bindir = ${exec_prefix}/bin |
|
63 scriptdir = $(bindir) |
|
64 includedir = ${prefix}/include |
|
65 libdir = ${exec_prefix}/lib |
|
66 mandir = ${datarootdir}/man |
|
67 man1ext = 1 |
|
68 man1dir = $(mandir)/man$(man1ext) |
|
69 datadir = ${datarootdir} |
|
70 datarootdir = ${prefix}/share |
|
71 |
|
72 # The following must be substituted using ${datarootdir} and ${exec_prefix}/lib |
|
73 # to avoid adding RPM generation paths (CUPS STR #1112) |
|
74 gsdir = ${datarootdir}/ghostscript |
|
75 gsdatadir = $(gsdir)/$(GS_DOT_VERSION) |
|
76 gssharedir = ${exec_prefix}/lib/ghostscript/$(GS_DOT_VERSION) |
|
77 gsincludedir = ${prefix}/include/ghostscript/ |
|
78 |
|
79 docdir=$(gsdatadir)/doc |
|
80 exdir=$(gsdatadir)/examples |
|
81 GS_DOCDIR=$(docdir) |
|
82 |
|
83 # Choose whether to compile the .ps initialization files into the executable. |
|
84 # See gs.mak for details. |
|
85 |
|
86 COMPILE_INITS=1 |
|
87 |
|
88 # Define the default directory/ies for the runtime |
|
89 # initialization and font files. Separate multiple directories with a :. |
|
90 |
|
91 GS_LIB_DEFAULT=$(gsdatadir)/Resource/Init:$(gsdatadir)/lib:$(gsdatadir)/Resource/Font:$(gsdir)/fonts:${datarootdir}/fonts/default/ghostscript:${datarootdir}/fonts/default/Type1:${datarootdir}/fonts/default/TrueType:/usr/lib/DPS/outline/base:/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType |
|
92 |
|
93 # Define the default directory for cached data files |
|
94 # this must be a single path. |
|
95 |
|
96 GS_CACHE_DIR="~/.ghostscript/cache/" |
|
97 |
|
98 # Define whether or not searching for initialization files should always |
|
99 # look in the current directory first. This leads to well-known security |
|
100 # and confusion problems, but may be convenient sometimes. |
|
101 |
|
102 SEARCH_HERE_FIRST=0 |
|
103 |
|
104 # Define the name of the interpreter initialization file. |
|
105 # (There is no reason to change this.) |
|
106 |
|
107 GS_INIT=gs_init.ps |
|
108 |
|
109 # Choose generic configuration options. |
|
110 |
|
111 TARGET_ARCH_FILE= |
|
112 |
|
113 # -DDEBUG |
|
114 # includes debugging features (-Z switch) in the code. |
|
115 # Code runs substantially slower even if no debugging switches |
|
116 # are set. |
|
117 |
|
118 GENOPT= |
|
119 |
|
120 # Choose capability options. |
|
121 |
|
122 # -DHAVE_BSWAP32 |
|
123 # use bswap32 intrinsic |
|
124 # -DHAVE_BYTESWAP_H |
|
125 # use byteswap.h functions |
|
126 # |
|
127 # -DHAVE_MKSTEMP |
|
128 # uses mkstemp instead of mktemp |
|
129 # This uses the more secure temporary file creation call |
|
130 # Enable this if it is available on your platform. |
|
131 # -DHAVE_FILE64 |
|
132 # use marked versions of the stdio FILE calls, fopen64() et al. |
|
133 # |
|
134 # -DHAVE_MKSTEMP64 |
|
135 # use non-standard function mkstemp64() |
|
136 # |
|
137 # -DHAVE_LIBIDN |
|
138 # use libidn to canonicalize Unicode passwords |
|
139 # |
|
140 # -DHAVE_SETLOCALE |
|
141 # call setlocale(LC_CTYPE) when running as a standalone app |
|
142 # -DHAVE_SSE2 |
|
143 # use sse2 intrinsics |
|
144 |
3792
|
145 CAPOPT= -DHAVE_FILE64 -DHAVE_SETLOCALE -DHAVE_BSWAP32 -DHAVE_STRERROR |
3643
|
146 |
|
147 # Define the name of the executable file. |
|
148 |
|
149 GS=gs.exe |
3792
|
150 GS_SO_BASE=gs |
|
151 XE=.exe |
|
152 XEAUX=.exe |
3643
|
153 |
|
154 # Define the directories for debugging and profiling binaries, relative to |
|
155 # the standard binaries. |
|
156 |
|
157 DEBUGDIRPREFIX=debug |
|
158 MEMENTODIRPREFIX=mem |
|
159 PGDIRPREFIX=pg |
|
160 |
|
161 # Define whether to compile in the FreeType library, and if so, where |
|
162 # the source tree is location. Otherwise, what library name to use |
|
163 # in linking to a shared implementation. |
|
164 |
|
165 FT_BRIDGE=1 |
3792
|
166 SHARE_FT=1 |
|
167 FTSRCDIR=./freetype |
|
168 #FT_CFLAGS=-I./freetype/include |
|
169 FT_CFLAGS=-I$(prefix)/include/freetype2 |
|
170 FT_LIBS=-lfreetype |
3643
|
171 FT_CONFIG_SYSTEM_ZLIB= |
|
172 |
|
173 # Define whether to compile in UFST. Note that freetype will/must be disabled. |
|
174 # FAPI/UFST depends on UFST_BRIDGE being undefined - hence the construct below. |
|
175 # (i.e. use "UFST_BRIDGE=1" or *not to define UFST_BRIDGE to anything*) |
|
176 |
|
177 UFST_ROOT= |
|
178 UFST_LIB_EXT= |
|
179 |
|
180 UFST_ROMFS_ARGS?=-b \ |
|
181 -P $(UFST_ROOT)/fontdata/mtfonts/pcl45/mt3/ -d fontdata/mtfonts/pcl45/mt3/ pcl___xj.fco plug__xi.fco wd____xh.fco \ |
|
182 -P $(UFST_ROOT)/fontdata/mtfonts/pclps2/mt3/ -d fontdata/mtfonts/pclps2/mt3/ pclp2_xj.fco \ |
|
183 -c -P $(PSSRCDIR)/../lib/ -d Resource/Init/ FAPIconfig-FCO |
|
184 |
|
185 UFSTROMFONTDIR=\"%rom%fontdata/\" |
|
186 UFSTDISCFONTDIR?=\"$(UFST_ROOT)/fontdata/\" |
|
187 |
|
188 |
|
189 UFST_CFLAGS= |
|
190 |
|
191 # Define the directory where the IJG JPEG library sources are stored, |
|
192 # and the major version of the library that is stored there. |
|
193 # You may need to change this if the IJG library version changes. |
|
194 # See jpeg.mak for more information. |
|
195 |
3792
|
196 JSRCDIR=./jpeg |
3643
|
197 |
|
198 # Note: if a shared library is used, it may not contain the |
|
199 # D_MAX_BLOCKS_IN_MCU patch, and thus may not be able to read |
|
200 # some older JPEG streams that violate the standard. If the JPEG |
|
201 # library built from local sources, the patch will be applied. |
|
202 |
|
203 SHARE_JPEG=1 |
|
204 JPEG_NAME=jpeg |
|
205 |
|
206 # Define the directory where the PNG library sources are stored, |
|
207 # and the version of the library that is stored there. |
|
208 # You may need to change this if the libpng version changes. |
|
209 # See png.mak for more information. |
|
210 |
|
211 SHARE_LIBPNG=1 |
3792
|
212 PNGSRCDIR=libpng |
3643
|
213 LIBPNG_NAME=png |
|
214 |
|
215 # libtiff |
|
216 SHARE_LIBTIFF=1 |
3792
|
217 TIFFSRCDIR=./tiff |
|
218 TIFFCONFDIR= |
3643
|
219 TIFFPLATFORM=unix |
|
220 TIFFCONFIG_SUFFIX= |
|
221 LIBTIFF_NAME=tiff |
|
222 |
|
223 # Define the directory where the zlib sources are stored. |
|
224 # See zlib.mak for more information. |
|
225 |
3792
|
226 SHARE_ZLIB=1 |
3643
|
227 ZSRCDIR=zlib |
|
228 #ZLIB_NAME=gz |
|
229 ZLIB_NAME=z |
|
230 |
|
231 # Choose shared or compiled in libjbig2dec and source location |
|
232 # JBIG2_LIB=jbig2dec |
|
233 JBIG2_LIB=jbig2dec |
|
234 SHARE_JBIG2=0 |
3792
|
235 JBIG2SRCDIR=./jbig2dec |
3643
|
236 JBIG2_CFLAGS=-DHAVE_STDINT_H=1 |
|
237 |
|
238 # uncomment the following three lines and one of the last two to |
|
239 # compile in the Luratech ldf_jb2 codec |
|
240 #JBIG2_LIB=luratech |
|
241 #SHARE_JBIG2=0 |
|
242 #JBIG2SRCDIR=ldf_jb2 |
|
243 #JBIG2_CFLAGS=-DUSE_LDF_JB2 -DLINUX |
|
244 #JBIG2_CFLAGS=-DUSE_LDF_JB2 -DMAC -DMAC_OS_X_BUILD |
|
245 |
|
246 |
|
247 # Choose the library to use for (JPXDecode support) |
|
248 # whether to link to an external build or compile in from source |
|
249 # and source location and configuration flags for compiling in |
|
250 JPX_LIB=openjpeg |
|
251 SHARE_JPX=0 |
3792
|
252 JPXSRCDIR=./openjpeg |
|
253 JPX_CFLAGS=-D"memalign(a,b)=malloc(b)" -DUSE_JPIP -DUSE_OPENJPEG_JP2 -DOPJ_HAVE_INTTYPES_H=1 |
3643
|
254 |
|
255 # uncomment the following three lines and one of the last two to |
|
256 # compile in the Luratech lwf_jp2 codec |
|
257 #JPX_LIB=luratech |
|
258 #SHARE_JPX=0 |
|
259 #JPXSRCDIR=lwf_jp2 |
|
260 #JPX_CFLAGS=-DUSE_LWF_JP2 -DLINUX |
|
261 #JPX_CFLAGS=-DUSE_LWF_JP2 -DMAC -DMAC_OS_X_BUILD |
|
262 |
|
263 # Uncomment the following 4 lines to to compile in OpenJPEG codec |
|
264 #JPX_LIB=openjpeg |
|
265 #SHARE_JPX=0 |
|
266 #JPXSRCDIR=openjpeg |
|
267 #JPX_CFLAGS=-DUSE_OPENJPEG_JP2 -DOPJ_STATIC |
|
268 |
|
269 # options for lcms color management library |
|
270 SHARE_LCMS=0 |
|
271 LCMSSRCDIR= |
|
272 LCMS2SRCDIR=lcms2 |
|
273 LCMS_CFLAGS= |
3792
|
274 LCMS2_CFLAGS= |
3643
|
275 |
|
276 # Which CMS are we using? |
|
277 # Options are currently lcms or lcms2 |
|
278 WHICH_CMS=lcms2 |
|
279 |
|
280 # Define the directory where the ijs source is stored, |
|
281 # and the process forking method to use for the server. |
|
282 # See ijs.mak for more information. |
|
283 |
|
284 SHARE_IJS=0 |
|
285 IJS_NAME= |
|
286 IJSSRCDIR=src |
|
287 IJSEXECTYPE=unix |
|
288 |
3792
|
289 # Define install location for 'cups' device/filter support |
|
290 CUPSLIBS= |
|
291 CUPSLIBDIRS= |
|
292 CUPSSERVERBIN= |
|
293 CUPSSERVERROOT= |
|
294 CUPSDATA= |
|
295 CUPSPDFTORASTER=0 |
3643
|
296 |
|
297 SHARE_LCUPS=1 |
|
298 LCUPS_NAME=cups |
3792
|
299 LCUPSSRCDIR=./cups |
3643
|
300 LCUPSBUILDTYPE= |
|
301 CUPS_CC=$(CC) |
|
302 |
|
303 SHARE_LCUPSI=1 |
|
304 LCUPSI_NAME=cupsimage |
3792
|
305 LCUPSISRCDIR=./cups |
3643
|
306 CUPS_CC=$(CC) |
|
307 |
3792
|
308 CUPSCFLAGS= -DSHARE_LCUPS=$(SHARE_LCUPS) -DSHARE_LCUPSI=$(SHARE_LCUPSI) |
|
309 |
|
310 TRIOSRCDIR=./trio |
|
311 AC_TRIO_CFLAGS= |
|
312 TRIO_CFLAGS=$(TRIO_XCFLAGS) $(AC_TRIO_CFLAGS) |
|
313 SHARE_TRIO=0 |
3643
|
314 |
|
315 # Define how to build the library archives. (These are not used in any |
|
316 # standard configuration.) |
|
317 |
|
318 AR=ar |
|
319 ARFLAGS=qc |
|
320 RANLIB=ranlib |
|
321 |
|
322 # ------ Platform-specific options ------ # |
|
323 |
|
324 # Define the name of the C compiler (target and host (AUX)) |
|
325 |
|
326 CC=gcc |
|
327 CCAUX=gcc |
|
328 |
|
329 # Define the name of the linker for the final link step. |
|
330 # Normally this is the same as the C compiler. |
|
331 |
|
332 CCLD=$(CC) |
|
333 CCAUXLD=$(CCAUX) |
|
334 |
|
335 # Define the default gcc flags. |
3792
|
336 GCFLAGS=-Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=2 -DHAVE_DIRENT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_INTTYPES_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -DNOCONTRIB -DUSE_LIBICONV_GNU -DGS_NO_UTF8=1 -DHAVE_FSEEKO=1 |
3643
|
337 |
|
338 # Define the added flags for standard, debugging, profiling |
|
339 # and shared object builds. |
|
340 |
|
341 CFLAGS_STANDARD= -O |
|
342 CFLAGS_DEBUG= |
|
343 CFLAGS_PROFILE=-pg -O |
|
344 CFLAGS_SO= |
|
345 |
|
346 # Define the other compilation flags. Add at most one of the following: |
|
347 # -DBSD4_2 for 4.2bsd systems. |
|
348 # -DSYSV for System V or DG/UX. |
|
349 # -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before, |
|
350 # or any System III Unix, or System V release 3-or-older Unix. |
|
351 # -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0. |
|
352 # -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2. |
|
353 # XCFLAGS can be set from the command line. |
|
354 # We don't include -ansi, because this gets in the way of the platform- |
|
355 # specific stuff that <math.h> typically needs; nevertheless, we expect |
|
356 # gcc to accept ANSI-style function prototypes and function definitions. |
|
357 # CFLAGS from autoconf |
|
358 AC_CFLAGS= |
|
359 |
|
360 # fontconfig flags, used by unix-aux.mak |
|
361 FONTCONFIG_CFLAGS= |
|
362 FONTCONFIG_LIBS= |
|
363 |
|
364 # DBus flags, used by cups.mak |
|
365 DBUS_CFLAGS= |
|
366 DBUS_LIBS= |
|
367 |
|
368 # defines from autoconf; note that we don't use these at present. |
|
369 ACDEFS=-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_INTTYPES_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DUSE_LIBICONV_GNU=1 -DX_DISPLAY_MISSING=1 -DHAVE_FOPEN64=1 -DHAVE_SETLOCALE=1 -DHAVE_STRERROR=1 -Dvfork=fork -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 |
|
370 |
|
371 CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(AC_CFLAGS) $(XCFLAGS) |
|
372 |
|
373 # Define platform flags for ld. |
|
374 # SunOS 4.n may need -Bstatic. |
|
375 # Solaris 2.6 (and possibly some other versions) with any of the SHARE_ |
|
376 # parameters set to 1 may need |
|
377 # -R /usr/local/xxx/lib:/usr/local/lib |
|
378 # giving the full path names of the shared library directories. |
|
379 # XLDFLAGS can be set from the command line. |
|
380 # AC_LDFLAGS from autoconf |
|
381 AC_LDFLAGS= |
|
382 |
3792
|
383 LDFLAGS=$(AC_LDFLAGS) $(XLDFLAGS) |
|
384 |
|
385 LDFLAGS_SO=-shared -Wl,--out-implib=$(BINDIR)/lib$(GS_SO_BASE).dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import |
3643
|
386 |
|
387 # Define any extra libraries to link into the executable. |
|
388 # ISC Unix 2.2 wants -linet. |
|
389 # SCO Unix needs -lsocket if you aren't including the X11 driver. |
|
390 # SVR4 may need -lnsl. |
|
391 # Solaris may need -lnsl -lsocket -lposix4. |
|
392 # (Libraries required by individual drivers are handled automatically.) |
|
393 |
3792
|
394 EXTRALIBS=$(XTRALIBS) -lm -liconv -lfreetype |
|
395 AUXEXTRALIBS=$(XTRALIBS) -lm -lz |
3643
|
396 |
|
397 # Define the standard libraries to search at the end of linking. |
|
398 # Most platforms require -lpthread for the POSIX threads library; |
|
399 # on FreeBSD, change -lpthread to -lc_r; BSDI and perhaps some others |
|
400 # include pthreads in libc and don't require any additional library. |
|
401 # All reasonable platforms require -lm, but Rhapsody and perhaps one or |
|
402 # two others fold libm into libc and don't require any additional library. |
|
403 |
|
404 STDLIBS= -lm |
|
405 |
|
406 # Define the include switch(es) for the X11 header files. |
|
407 # This can be null if handled in some other way (e.g., the files are |
|
408 # in /usr/include, or the directory is supplied by an environment variable) |
|
409 |
|
410 XINCLUDE= |
|
411 |
|
412 # Define the directory/ies and library names for the X11 library files. |
|
413 # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH |
|
414 # (dynamic libraries on SVR4) and should not include -L. |
|
415 # Newer SVR4 systems can use -R in XLIBDIRS rather than setting XLIBDIR. |
|
416 # Both can be null if these files are in the default linker search path. |
|
417 |
|
418 # Solaris and other SVR4 systems with dynamic linking probably want |
|
419 #XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib |
|
420 # X11R6 (on any platform) may need |
|
421 #XLIBS=Xt SM ICE Xext X11 |
|
422 |
|
423 # We use the autoconf macro AC_PATH_XTRA which defines X_LIBS with |
|
424 # the -L (or whatever). It also defines X_PRE_LIBS and X_EXTRA_LIBS |
|
425 # all three of which are stripped and slotted into XLIBS below. |
|
426 # Usually however, all but X_LIBS are empty on modern platforms. |
|
427 XLIBDIRS= |
|
428 XLIBDIR= |
|
429 #XLIBS=Xt Xext X11 |
|
430 XLIBS= |
|
431 |
|
432 # Define the .dev module that implements thread and synchronization |
|
433 # primitives for this platform. |
|
434 |
|
435 # If POSIX sync primitives are used, also change the STDLIBS to include |
|
436 # the pthread library. Otherwise use SYNC=nosync |
|
437 #SYNC=posync |
|
438 #SYNC=nosync |
|
439 SYNC=nosync |
|
440 |
|
441 # programs we use |
|
442 RM=rm -f |
|
443 |
|
444 # ------ Dynamic loader options ------- # |
|
445 SOC_CFLAGS = |
|
446 SOC_LIBS = |
|
447 SOC_LOADER = dxmainc.c |
|
448 |
|
449 # on virtually every Unix-a-like system, this is "so", |
|
450 # but Apple just had to be different, so it's now set |
|
451 # by configure |
3792
|
452 SO_LIB_EXT= |
|
453 DLL_EXT=.dll |
|
454 SO_LIB_VERSION_SEPARATOR=- |
3643
|
455 |
|
456 #CAIRO_CFLAGS = @CAIRO_CFLAGS@ |
|
457 #CAIRO_LIBS = @CAIRO_LIBS@ |
|
458 |
|
459 # ------ Devices and features ------ # |
|
460 |
|
461 # Choose the language feature(s) to include. See gs.mak for details. |
|
462 |
3792
|
463 FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(PSD)jbig2.dev $(PSD)jpx.dev $(GLD)ramfs.dev |
3643
|
464 #FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev |
|
465 #FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(GLD)pipe.dev |
|
466 # The following is strictly for testing. |
3792
|
467 FEATURE_DEVS_ALL=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(PSD)double.dev $(PSD)trapping.dev $(PSD)stocht.dev $(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(PSD)jbig2.dev $(PSD)jpx.dev $(GLD)ramfs.dev |
3643
|
468 #FEATURE_DEVS=$(FEATURE_DEVS_ALL) |
|
469 |
|
470 # The list of resources to be included in the %rom% file system. |
|
471 # This is in the top makefile since the file descriptors are platform specific |
|
472 RESOURCE_LIST=Resource/CMap/ Resource/ColorSpace/ Resource/Decoding/ Resource/Font/ Resource/ProcSet/ Resource/IdiomSet/ Resource/CIDFont/ |
|
473 |
|
474 # Choose whether to store band lists on files or in memory. |
|
475 # The choices are 'file' or 'memory'. |
|
476 |
|
477 BAND_LIST_STORAGE=file |
|
478 |
|
479 # Choose which compression method to use when storing band lists in memory. |
|
480 # The choices are 'lzw' or 'zlib'. |
|
481 |
|
482 BAND_LIST_COMPRESSOR=zlib |
|
483 |
|
484 # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'. |
|
485 # See gs.mak and sfxfd.c for more details. |
|
486 |
|
487 FILE_IMPLEMENTATION=stdio |
|
488 |
|
489 # Choose the implementation of stdio: '' for file I/O and 'c' for callouts |
|
490 # See gs.mak and ziodevs.c/ziodevsc.c for more details. |
|
491 |
|
492 STDIO_IMPLEMENTATION=c |
|
493 |
|
494 # List of default devices, in order of priority. They need not be |
|
495 # present in the actual build. |
|
496 GS_DEV_DEFAULT="x11alpha bbox" |
|
497 |
|
498 # Fallback default device. This is set to 'display' by |
|
499 # unix-dll.mak when building a shared object. |
|
500 DISPLAY_DEV=$(DD)bbox.dev |
|
501 |
|
502 # Choose the device(s) to include. See devs.mak for details, |
|
503 # devs.mak and contrib.mak for the list of available devices. |
|
504 |
|
505 #DEVICE_DEVS=$(DISPLAY_DEV) $(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev |
|
506 #DEVICE_DEVS=$(DISPLAY_DEV) @X11DEVS@ |
|
507 #DEVICE_DEVS=$(DISPLAY_DEV) @X_DEVS@ |
|
508 |
|
509 #DEVICE_DEVS1=$(DD)bmpmono.dev $(DD)bmpgray.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16.dev $(DD)bmp256.dev $(DD)bmp16m.dev $(DD)bmp32b.dev |
|
510 #DEVICE_DEVS2=#$(DD)gdevjbig2.dev $(DD)gdevjpx.dev #$(DD)rinkj.dev |
|
511 #DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)lj5mono.dev $(DD)lj5gray.dev |
|
512 #DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev |
|
513 #DEVICE_DEVS5=$(DD)uniprint.dev @IJSDEVS@ |
|
514 #DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev |
|
515 #DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev $(DD)cfax.dev |
|
516 #DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev |
|
517 #DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev |
|
518 #DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev |
|
519 #DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff48nc.dev $(DD)tiffgray.dev $(DD)tiff32nc.dev $(DD)tiff64nc $(DD)tiffsep.dev $(DD)tiffsep1.dev |
3792
|
520 #DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev |
3643
|
521 #DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev |
|
522 #DEVICE_DEVS13=@PNGDEVS@ |
|
523 #DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev |
3792
|
524 #DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)ps2write.dev $(DD)eps2write.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev |
3643
|
525 #DEVICE_DEVS16=$(DD)bbox.dev |
|
526 |
|
527 #DEVICE_DEVS17= |
|
528 #DEVICE_DEVS18= |
|
529 #DEVICE_DEVS19= |
|
530 #DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5c.dev |
3792
|
531 #DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)psdcmykog.dev $(DD)fpng.dev |
3643
|
532 DEVICE_DEVS=$(DISPLAY_DEV) |
3792
|
533 DEVICE_DEVS1=$(DD)bit.dev $(DD)bitcmyk.dev $(DD)bitrgb.dev $(DD)bitrgbtags.dev $(DD)bmp16.dev $(DD)bmp16m.dev $(DD)bmp256.dev $(DD)bmp32b.dev $(DD)bmpgray.dev $(DD)bmpmono.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)ccr.dev $(DD)cif.dev $(DD)devicen.dev $(DD)eps2write.dev $(DD)fpng.dev $(DD)inferno.dev $(DD)ink_cov.dev $(DD)inkcov.dev $(DD)jpeg.dev $(DD)jpegcmyk.dev $(DD)jpeggray.dev $(DD)mgr4.dev $(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev $(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev $(DD)pam.dev $(DD)pamcmyk32.dev $(DD)pamcmyk4.dev $(DD)pbm.dev $(DD)pbmraw.dev $(DD)pcx16.dev $(DD)pcx24b.dev $(DD)pcx256.dev $(DD)pcx2up.dev $(DD)pcxcmyk.dev $(DD)pcxgray.dev $(DD)pcxmono.dev $(DD)pdfwrite.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)plan.dev $(DD)plan9bm.dev $(DD)planc.dev $(DD)plang.dev $(DD)plank.dev $(DD)planm.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)ps2write.dev $(DD)psdcmyk.dev $(DD)psdcmykog.dev $(DD)psdf.dev $(DD)psdrgb.dev $(DD)sgirgb.dev $(DD)spotcmyk.dev $(DD)sunhmono.dev $(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff32nc.dev $(DD)tiff48nc.dev $(DD)tiff64nc.dev $(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tiffgray.dev $(DD)tifflzw.dev $(DD)tiffpack.dev $(DD)tiffs.dev $(DD)tiffscaled.dev $(DD)tiffsep.dev $(DD)tiffsep1.dev $(DD)txtwrite.dev $(DD)xcf.dev $(DD)xpswrite.dev |
|
534 DEVICE_DEVS2=$(DD)ap3250.dev $(DD)appledmp.dev $(DD)atx23.dev $(DD)atx24.dev $(DD)atx38.dev $(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev $(DD)cdeskjet.dev $(DD)cdj500.dev $(DD)cdj550.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cljet5.dev $(DD)cljet5c.dev $(DD)cljet5pr.dev $(DD)coslw2p.dev $(DD)coslwxl.dev $(DD)cp50.dev $(DD)declj250.dev $(DD)deskjet.dev $(DD)dj505j.dev $(DD)djet500.dev $(DD)djet500c.dev $(DD)dnj650c.dev $(DD)eps9high.dev $(DD)eps9mid.dev $(DD)epson.dev $(DD)epsonc.dev $(DD)escp.dev $(DD)fs600.dev $(DD)hl7x0.dev $(DD)ibmpro.dev $(DD)imagen.dev $(DD)itk24i.dev $(DD)itk38.dev $(DD)iwhi.dev $(DD)iwlo.dev $(DD)iwlq.dev $(DD)jetp3852.dev $(DD)laserjet.dev $(DD)lbp8.dev $(DD)lips3.dev $(DD)lj250.dev $(DD)lj3100sw.dev $(DD)lj4dith.dev $(DD)lj4dithp.dev $(DD)lj5gray.dev $(DD)lj5mono.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)ljet4pjl.dev $(DD)ljetplus.dev $(DD)lp2563.dev $(DD)lp8000.dev $(DD)lq850.dev $(DD)lxm5700m.dev $(DD)m8510.dev $(DD)necp6.dev $(DD)oce9050.dev $(DD)oki182.dev $(DD)okiibm.dev $(DD)paintjet.dev $(DD)photoex.dev $(DD)picty180.dev $(DD)pj.dev $(DD)pjetxl.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)pxlcolor.dev $(DD)pxlmono.dev $(DD)r4081.dev $(DD)rinkj.dev $(DD)sj48.dev $(DD)st800.dev $(DD)stcolor.dev $(DD)t4693d2.dev $(DD)t4693d4.dev $(DD)t4693d8.dev $(DD)tek4696.dev $(DD)uniprint.dev |
3643
|
535 DEVICE_DEVS3= |
|
536 DEVICE_DEVS4= |
|
537 DEVICE_DEVS5= |
|
538 DEVICE_DEVS6=$(DD)png16.dev $(DD)png16m.dev $(DD)png256.dev $(DD)png48.dev $(DD)pngalpha.dev $(DD)pnggray.dev $(DD)pngmono.dev |
3792
|
539 DEVICE_DEVS7= |
3643
|
540 DEVICE_DEVS8= |
|
541 DEVICE_DEVS9= |
|
542 DEVICE_DEVS10= |
|
543 DEVICE_DEVS11= |
|
544 DEVICE_DEVS12= |
|
545 DEVICE_DEVS13= |
|
546 DEVICE_DEVS14= |
|
547 DEVICE_DEVS15= |
|
548 DEVICE_DEVS16= |
|
549 DEVICE_DEVS17= |
|
550 DEVICE_DEVS18= |
|
551 DEVICE_DEVS19= |
|
552 DEVICE_DEVS20= |
|
553 DEVICE_DEVS21= |
|
554 |
|
555 |
|
556 # Shared library target to build. |
|
557 GS_SHARED_OBJS= |
|
558 |
|
559 # ---------------------------- End of options --------------------------- # |
|
560 |
|
561 # Define the name of the partial makefile that specifies options -- |
|
562 # used in dependencies. |
|
563 |
|
564 MAKEFILE=Makefile |
|
565 TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)/unixhead.mak |
|
566 |
|
567 # Define the auxiliary program dependency. We don't use this. |
|
568 |
|
569 AK= |
|
570 |
|
571 # Define the compilation rules and flags. |
|
572 |
|
573 CCFLAGS=$(GENOPT) $(CAPOPT) $(CFLAGS) |
|
574 CC_=$(CC) $(CCFLAGS) |
|
575 CCAUX_=$(CCAUX) $(CFLAGS) |
|
576 CC_LEAF=$(CC_) |
|
577 # note gcc can't use -fomit-frame-pointer with -pg. |
|
578 CC_LEAF_PG=$(CC_) |
|
579 # These are the specific warnings we have to turn off to compile those |
|
580 # specific few files that need this. We may turn off others in the future. |
|
581 CC_NO_WARN=$(CC_) |
|
582 CCAUX_NO_WARN=$(CCAUX_) |
|
583 CC_SHARED=$(CC_) |
|
584 |
|
585 LD_SET_DT_SONAME=-soname= |
|
586 |
|
587 # MAKEDIRS = the dependency on ALL object files (must be the last one on |
|
588 # the line. Requires GNU make to make it an 'order only' dependency |
|
589 # MAKEDIRSTOP = the topmost dependency - set this if you can't set MAKEDIRS |
|
590 |
|
591 MAKEDIRS=| directories |
|
592 MAKEDIRSTOP= |
|
593 |
|
594 # ---------------- End of platform-specific section ---------------- # |
|
595 |
|
596 INSTALL_CONTRIB= |
|
597 include $(GLSRCDIR)/unixhead.mak |
|
598 include $(GLSRCDIR)/gs.mak |
3792
|
599 include $(GLSRCDIR)/trio.mak |
3643
|
600 # psromfs.mak must precede lib.mak |
|
601 include $(PSSRCDIR)/psromfs.mak |
|
602 include $(GLSRCDIR)/lib.mak |
|
603 include $(PSSRCDIR)/int.mak |
|
604 include $(GLSRCDIR)/freetype.mak |
|
605 include $(GLSRCDIR)/stub.mak |
|
606 include $(GLSRCDIR)/jpeg.mak |
|
607 # zlib.mak must precede png.mak |
|
608 include $(GLSRCDIR)/zlib.mak |
|
609 include $(GLSRCDIR)/png.mak |
|
610 include $(GLSRCDIR)/tiff.mak |
|
611 include $(GLSRCDIR)/jbig2.mak |
|
612 include $(GLSRCDIR)/ldf_jb2.mak |
|
613 include $(GLSRCDIR)/lwf_jp2.mak |
|
614 include $(GLSRCDIR)/openjpeg.mak |
|
615 include $(GLSRCDIR)/$(WHICH_CMS).mak |
|
616 include $(GLSRCDIR)/ijs.mak |
|
617 |
|
618 |
3792
|
619 include $(DEVSRCDIR)/devs.mak |
|
620 include $(DEVSRCDIR)/contrib.mak |
3643
|
621 include $(GLSRCDIR)/unix-aux.mak |
|
622 include $(GLSRCDIR)/unixlink.mak |
|
623 include $(GLSRCDIR)/unix-dll.mak |
|
624 include $(GLSRCDIR)/unix-end.mak |
|
625 include $(GLSRCDIR)/unixinst.mak |
|
626 |
|
627 |
|
628 |
|
629 # Clean up after the autotools scripts |
|
630 distclean : clean config-clean soclean pgclean debugclean mementoclean |
|
631 -$(RM_) -r $(BINDIR) $(GLOBJDIR) $(PSOBJDIR) $(AUXDIR) |
|
632 -$(RM_) -r autom4te.cache |
|
633 -$(RM_) config.log config.status |
3792
|
634 -$(RM_) -r $(TIFFCONFDIR) |
3643
|
635 -$(RM_) Makefile |
|
636 |
|
637 # a debug-clean target for consistency with the ghostpdl builds |
|
638 debug-clean : debugclean |
|
639 |
|
640 memento-clean : mementoclean |
|
641 |
|
642 maintainer-clean : distclean |
|
643 -$(RM_) configure |
|
644 |
|
645 check : default |
|
646 $(NO_OP) |
|
647 |