Makefile.in 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. # Copyright (C) 1997, 2002 artofcode LLC. All rights reserved.
  2. #
  3. # This file is part of AFPL Ghostscript.
  4. #
  5. # AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  6. # distributor accepts any responsibility for the consequences of using it, or
  7. # for whether it serves any particular purpose or works at all, unless he or
  8. # she says so in writing. Refer to the Aladdin Free Public License (the
  9. # "License") for full details.
  10. #
  11. # Every copy of AFPL Ghostscript must include a copy of the License, normally
  12. # in a plain ASCII text file named PUBLIC. The License grants you the right
  13. # to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14. # conditions described in the License. Among other things, the License
  15. # requires that the copyright notice and this notice be preserved on all
  16. # copies.
  17. # $Id: Makefile.in,v 1.1.4.2 2002/02/01 03:30:13 raph Exp $
  18. # makefile template for/from the autoconf build.
  19. # @configure_input@
  20. # ------------------------------- Options ------------------------------- #
  21. ####### The following are the only parts of the file you should need to edit.
  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. BINDIR=./bin
  26. GLSRCDIR=./src
  27. GLGENDIR=./obj
  28. GLOBJDIR=./obj
  29. PSSRCDIR=./src
  30. PSLIBDIR=./lib
  31. PSGENDIR=./obj
  32. PSOBJDIR=./obj
  33. # Do not edit the next group of lines.
  34. include $(GLSRCDIR)/version.mak
  35. DD=$(GLGENDIR)/
  36. GLD=$(GLGENDIR)/
  37. PSD=$(PSGENDIR)/
  38. # ------ Generic options ------ #
  39. # Define the installation commands and target directories for
  40. # executables and files. The commands are only relevant to `make install';
  41. # the directories also define the default search path for the
  42. # initialization files (gs_*.ps) and the fonts.
  43. INSTALL = $(GLSRCDIR)/instcopy -c
  44. INSTALL_PROGRAM = $(INSTALL) -m 755
  45. INSTALL_DATA = $(INSTALL) -m 644
  46. prefix = @prefix@
  47. exec_prefix = @exec_prefix@
  48. bindir = @bindir@
  49. scriptdir = $(bindir)
  50. libdir = @libdir@
  51. mandir = @mandir@
  52. man1ext = 1
  53. datadir = @datadir@
  54. gsdir = $(datadir)/ghostscript
  55. gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
  56. docdir=$(gsdatadir)/doc
  57. exdir=$(gsdatadir)/examples
  58. GS_DOCDIR=$(docdir)
  59. # Define the default directory/ies for the runtime
  60. # initialization and font files. Separate multiple directories with a :.
  61. GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdir)/fonts
  62. # Define whether or not searching for initialization files should always
  63. # look in the current directory first. This leads to well-known security
  64. # and confusion problems, but users insist on it.
  65. # NOTE: this also affects searching for files named on the command line:
  66. # see the "File searching" section of Use.htm for full details.
  67. # Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
  68. SEARCH_HERE_FIRST=1
  69. # Define the name of the interpreter initialization file.
  70. # (There is no reason to change this.)
  71. GS_INIT=gs_init.ps
  72. # Choose generic configuration options.
  73. # -DDEBUG
  74. # includes debugging features (-Z switch) in the code.
  75. # Code runs substantially slower even if no debugging switches
  76. # are set.
  77. # -DNOPRIVATE
  78. # makes private (static) procedures and variables public,
  79. # so they are visible to the debugger and profiler.
  80. # No execution time or space penalty.
  81. GENOPT=
  82. # Choose capability options.
  83. # -DHAVE_MKSTEMP
  84. # uses mkstemp instead of mktemp
  85. # This gets rid of several security warnings that look
  86. # ominous. Enable this if you wish to get rid of them.
  87. CAPOPT= @HAVE_MKSTEMP@
  88. # Define the name of the executable file.
  89. GS=gs
  90. # Define the name of a pre-built executable that can be invoked at build
  91. # time. Currently, this is only needed for compiled fonts. The usual
  92. # alternatives are:
  93. # - the standard name of Ghostscript on your system (typically `gs'):
  94. BUILD_TIME_GS=gs
  95. # - the name of the executable you are building now. If you choose this
  96. # option, then you must build the executable first without compiled fonts,
  97. # and then again with compiled fonts.
  98. #BUILD_TIME_GS=$(BINDIR)/$(GS) -I$(PSLIBDIR)
  99. # Define the directories for debugging and profiling binaries, relative to
  100. # the standard binaries.
  101. DEBUGRELDIR=../debugobj
  102. PGRELDIR=../pgobj
  103. # Define the directory where the IJG JPEG library sources are stored,
  104. # and the major version of the library that is stored there.
  105. # You may need to change this if the IJG library version changes.
  106. # See jpeg.mak for more information.
  107. JSRCDIR=@JPEGDIR@
  108. JVERSION=6
  109. # Choose whether to use a shared version of the IJG JPEG library (-ljpeg).
  110. # DON'T DO THIS. If you do, the resulting executable will not be able to
  111. # read some PostScript files containing JPEG data, because Adobe chose to
  112. # define PostScript's JPEG capabilities in a way that is slightly
  113. # incompatible with the JPEG standard. Note also that if you set SHARE_JPEG
  114. # to 1, you must still have the library header files available to compile
  115. # Ghostscript. See doc/Make.htm for more information.
  116. # DON'T SET THIS TO 1! See the comment just above.
  117. SHARE_JPEG=0
  118. JPEG_NAME=jpeg
  119. # Define the directory where the PNG library sources are stored,
  120. # and the version of the library that is stored there.
  121. # You may need to change this if the libpng version changes.
  122. # See libpng.mak for more information.
  123. SHARE_LIBPNG=@SHARE_LIBPNG@
  124. PSRCDIR=@PNGDIR@
  125. LIBPNG_NAME=png
  126. # Define the directory where the zlib sources are stored.
  127. # See zlib.mak for more information.
  128. SHARE_ZLIB=@SHARE_ZLIB@
  129. ZSRCDIR=@ZLIBDIR@
  130. #ZLIB_NAME=gz
  131. ZLIB_NAME=z
  132. # Define the directory where the icclib source are stored.
  133. # See icclib.mak for more information
  134. ICCSRCDIR=icclib
  135. # Define the directory where the ijs source is stored,
  136. # and the process forking method to use for the server.
  137. # See ijs.mak for more information.
  138. IJSSRCDIR=@IJSDIR@
  139. IJSEXECTYPE=unix
  140. # Define how to build the library archives. (These are not used in any
  141. # standard configuration.)
  142. AR=ar
  143. ARFLAGS=qc
  144. RANLIB=@RANLIB@
  145. # ------ Platform-specific options ------ #
  146. # Define the name of the C compiler.
  147. CC=@CC@
  148. # Define the name of the linker for the final link step.
  149. # Normally this is the same as the C compiler.
  150. CCLD=$(CC)
  151. # Define the default gcc flags.
  152. # Note that depending whether or not we are running a version of gcc with
  153. # the 2.7.0-2.7.2 optimizer bug, either "-Dconst=" or
  154. # "-Wcast-qual -Wwrite-strings" is automatically included.
  155. # FIXME: these should be autoconfiscated
  156. GCFLAGS=-Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wtraditional -fno-builtin -fno-common
  157. # Define the added flags for standard, debugging, profiling
  158. # and shared object builds.
  159. CFLAGS_STANDARD=-O2
  160. CFLAGS_DEBUG=-g -O
  161. CFLAGS_PROFILE=-pg -O2
  162. CFLAGS_SO=-fPIC
  163. # Define the other compilation flags. Add at most one of the following:
  164. # -DBSD4_2 for 4.2bsd systems.
  165. # -DSYSV for System V or DG/UX.
  166. # -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  167. # or any System III Unix, or System V release 3-or-older Unix.
  168. # -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
  169. # -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
  170. # XCFLAGS can be set from the command line.
  171. # We don't include -ansi, because this gets in the way of the platform-
  172. # specific stuff that <math.h> typically needs; nevertheless, we expect
  173. # gcc to accept ANSI-style function prototypes and function definitions.
  174. XCFLAGS=
  175. CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
  176. # Define platform flags for ld.
  177. # SunOS 4.n may need -Bstatic.
  178. # Solaris 2.6 (and possibly some other versions) with any of the SHARE_
  179. # parameters set to 1 may need
  180. # -R /usr/local/xxx/lib:/usr/local/lib
  181. # giving the full path names of the shared library directories.
  182. # XLDFLAGS can be set from the command line.
  183. XLDFLAGS=
  184. LDFLAGS=$(XLDFLAGS) -fno-common
  185. # Define any extra libraries to link into the executable.
  186. # ISC Unix 2.2 wants -linet.
  187. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  188. # SVR4 may need -lnsl.
  189. # Solaris may need -lnsl -lsocket -lposix4.
  190. # (Libraries required by individual drivers are handled automatically.)
  191. EXTRALIBS=
  192. # Define the standard libraries to search at the end of linking.
  193. # Most platforms require -lpthread for the POSIX threads library;
  194. # on FreeBSD, change -lpthread to -lc_r; BSDI and perhaps some others
  195. # include pthreads in libc and don't require any additional library.
  196. # All reasonable platforms require -lm, but Rhapsody and perhaps one or
  197. # two others fold libm into libc and don't require any additional library.
  198. #STDLIBS=-lpthread -lm
  199. # Since the default build is for nosync, don't include pthread lib
  200. STDLIBS=-lm
  201. # Define the include switch(es) for the X11 header files.
  202. # This can be null if handled in some other way (e.g., the files are
  203. # in /usr/include, or the directory is supplied by an environment variable);
  204. # in particular, SCO Xenix, Unix, and ODT just want
  205. #XINCLUDE=
  206. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  207. # not in $(XINCLUDE).
  208. XINCLUDE=-I@x_includes@
  209. # Define the directory/ies and library names for the X11 library files.
  210. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
  211. # (dynamic libraries on SVR4) and should not include -L.
  212. # Newer SVR4 systems can use -R in XLIBDIRS rather than setting XLIBDIR.
  213. # Both can be null if these files are in the default linker search path;
  214. # in particular, SCO Xenix, Unix, and ODT just want
  215. #XLIBDIRS=
  216. # Solaris and other SVR4 systems with dynamic linking probably want
  217. #XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
  218. # X11R6 (on any platform) may need
  219. #XLIBS=Xt SM ICE Xext X11
  220. XLIBDIRS=-L@x_libraries@
  221. XLIBDIR=
  222. XLIBS=Xt Xext X11
  223. # Define whether this platform has floating point hardware:
  224. # FPU_TYPE=2 means floating point is faster than fixed point.
  225. # (This is the case on some RISCs with multiple instruction dispatch.)
  226. # FPU_TYPE=1 means floating point is at worst only slightly slower
  227. # than fixed point.
  228. # FPU_TYPE=0 means that floating point may be considerably slower.
  229. # FPU_TYPE=-1 means that floating point is always much slower than
  230. # fixed point.
  231. FPU_TYPE=1
  232. # Define the .dev module that implements thread and synchronization
  233. # primitives for this platform.
  234. # If POSIX sync primitives are used, also change the STDLIBS to include
  235. # the pthread library.
  236. #SYNC=posync
  237. # Default is No sync primitives since some platforms don't have it (HP-UX)
  238. SYNC=nosync
  239. # ------ Devices and features ------ #
  240. # Choose the language feature(s) to include. See gs.mak for details.
  241. FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(GLD)pipe.dev
  242. #FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev
  243. #FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(GLD)pipe.dev
  244. # The following is strictly for testing.
  245. 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
  246. #FEATURE_DEVS=$(FEATURE_DEVS_ALL)
  247. # Choose whether to compile the .ps initialization files into the executable.
  248. # See gs.mak for details.
  249. COMPILE_INITS=0
  250. # Choose whether to store band lists on files or in memory.
  251. # The choices are 'file' or 'memory'.
  252. BAND_LIST_STORAGE=file
  253. # Choose which compression method to use when storing band lists in memory.
  254. # The choices are 'lzw' or 'zlib'. lzw is not recommended, because the
  255. # LZW-compatible code in Ghostscript doesn't actually compress its input.
  256. BAND_LIST_COMPRESSOR=zlib
  257. # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
  258. # See gs.mak and sfxfd.c for more details.
  259. FILE_IMPLEMENTATION=stdio
  260. # Choose the implementation of stdio: '' for file I/O and 'c' for callouts
  261. # See gs.mak and ziodevs.c/ziodevsc.c for more details.
  262. STDIO_IMPLEMENTATION=c
  263. # Override the default device. This is set to 'display' by
  264. # unix-dll.mak when building a shared object.
  265. DISPLAY_DEV=
  266. # Define the name table capacity size of 2^(16+n).
  267. # Setting this to a non-zero value will slow down the interpreter.
  268. EXTEND_NAMES=0
  269. # Choose the device(s) to include. See devs.mak for details,
  270. # devs.mak and contrib.mak for the list of available devices.
  271. #DEVICE_DEVS=$(DISPLAY_DEV) $(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
  272. DEVICE_DEVS=$(DISPLAY_DEV) @X11DEVS@
  273. #DEVICE_DEVS1=
  274. #DEVICE_DEVS2=
  275. #DEVICE_DEVS3=
  276. #DEVICE_DEVS4=
  277. #DEVICE_DEVS5=
  278. #DEVICE_DEVS6=
  279. #DEVICE_DEVS7=
  280. #DEVICE_DEVS8=
  281. #DEVICE_DEVS9=
  282. #DEVICE_DEVS10=
  283. #DEVICE_DEVS11=
  284. #DEVICE_DEVS12=
  285. #DEVICE_DEVS13=
  286. #DEVICE_DEVS14=
  287. #DEVICE_DEVS15=
  288. #DEVICE_DEVS16=
  289. #DEVICE_DEVS17=
  290. #DEVICE_DEVS18=
  291. #DEVICE_DEVS19=
  292. #DEVICE_DEVS20=
  293. 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
  294. DEVICE_DEVS2=
  295. 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
  296. DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev
  297. DEVICE_DEVS5=$(DD)uniprint.dev @IJSDEVS@
  298. DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
  299. DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev
  300. DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev
  301. 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
  302. DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
  303. DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev
  304. DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)psrgb.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
  305. #DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev
  306. DEVICE_DEVS13=@PNGDEVS@
  307. DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
  308. DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
  309. DEVICE_DEVS16=
  310. DEVICE_DEVS17=
  311. DEVICE_DEVS18=
  312. DEVICE_DEVS19=
  313. DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5c.dev
  314. # ---------------------------- End of options --------------------------- #
  315. # Define the name of the partial makefile that specifies options --
  316. # used in dependencies.
  317. MAKEFILE=Makefile
  318. TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)/unixhead.mak
  319. # Define the ANSI-to-K&R dependency. There isn't one, but we do have to
  320. # detect whether we're running a version of gcc with the const optimization
  321. # bug.
  322. AK=$(GLGENDIR)/cc.tr
  323. # Define the compilation rules and flags.
  324. CCFLAGS=$(GENOPT) $(CAPOPT) $(CFLAGS)
  325. CC_=$(CC) `cat $(AK)` $(CCFLAGS)
  326. CCAUX=$(CC) `cat $(AK)`
  327. CC_LEAF=$(CC_) -fomit-frame-pointer
  328. # gcc can't use -fomit-frame-pointer with -pg.
  329. CC_LEAF_PG=$(CC_)
  330. # These are the specific warnings we have to turn off to compile those
  331. # specific few files that need this. We may turn off others in the future.
  332. CC_NO_WARN=$(CC_) -Wno-cast-qual -Wno-traditional
  333. # ---------------- End of platform-specific section ---------------- #
  334. include $(GLSRCDIR)/unixhead.mak
  335. include $(GLSRCDIR)/gs.mak
  336. include $(GLSRCDIR)/lib.mak
  337. include $(PSSRCDIR)/int.mak
  338. include $(PSSRCDIR)/cfonts.mak
  339. include $(GLSRCDIR)/jpeg.mak
  340. # zlib.mak must precede libpng.mak
  341. include $(GLSRCDIR)/zlib.mak
  342. include $(GLSRCDIR)/libpng.mak
  343. include $(GLSRCDIR)/icclib.mak
  344. include $(GLSRCDIR)/ijs.mak
  345. include $(GLSRCDIR)/devs.mak
  346. include $(GLSRCDIR)/contrib.mak
  347. include $(GLSRCDIR)/unix-aux.mak
  348. include $(GLSRCDIR)/unixlink.mak
  349. include $(GLSRCDIR)/unix-dll.mak
  350. include $(GLSRCDIR)/unix-end.mak
  351. include $(GLSRCDIR)/unixinst.mak
  352. # This has to come last so it won't be taken as the default target.
  353. $(AK):
  354. if ( $(CC) --version | egrep "^2\.7\.([01]|2(\.[^1-9]|$$))" >/dev/null ); then echo -Dconst= >$(AK); else echo -Wcast-qual -Wwrite-strings >$(AK); fi