home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / UsingPDF / GhostScript / source / gs5.10 / gcc-head.mak < prev    next >
Encoding:
Text File  |  1997-10-01  |  9.8 KB  |  296 lines

  1. #    Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # makefile for Unix/gcc/X11 configuration.
  16. # Note: this makefile assumes you are using gcc in ANSI mode.
  17.  
  18. #****************************************************************#
  19. #   If you want to change options, DO NOT edit unix-gcc.mak      #
  20. #   or makefile.  Edit gcc-head.mak and run the tar_cat script.  #
  21. #****************************************************************#
  22.  
  23. # ------------------------------- Options ------------------------------- #
  24.  
  25. ####### The following are the only parts of the file you should need to edit.
  26.  
  27. # ------ Generic options ------ #
  28.  
  29. # Define the installation commands and target directories for
  30. # executables and files.  The commands are only relevant to `make install';
  31. # the directories also define the default search path for the
  32. # initialization files (gs_*.ps) and the fonts.
  33.  
  34. # If your system has installbsd, change install to installbsd in the next line.
  35. INSTALL = install -c
  36. INSTALL_PROGRAM = $(INSTALL) -m 755
  37. INSTALL_DATA = $(INSTALL) -m 644
  38.  
  39. prefix = /usr/local
  40. exec_prefix = $(prefix)
  41. bindir = $(exec_prefix)/bin
  42. scriptdir = $(bindir)
  43. mandir = $(prefix)/man
  44. man1ext = 1
  45. man1dir = $(mandir)/man$(man1ext)
  46. datadir = $(prefix)/share
  47. gsdir = $(datadir)/ghostscript
  48. gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
  49.  
  50. docdir=$(gsdatadir)/doc
  51. exdir=$(gsdatadir)/examples
  52. GS_DOCDIR=$(docdir)
  53.  
  54. # Define the default directory/ies for the runtime
  55. # initialization and font files.  Separate multiple directories with a :.
  56.  
  57. GS_LIB_DEFAULT=$(gsdatadir):$(gsdir)/fonts
  58.  
  59. # Define whether or not searching for initialization files should always
  60. # look in the current directory first.  This leads to well-known security
  61. # and confusion problems, but users insist on it.
  62. # NOTE: this also affects searching for files named on the command line:
  63. # see the "File searching" section of use.txt for full details.
  64. # Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
  65.  
  66. SEARCH_HERE_FIRST=1
  67.  
  68. # Define the name of the interpreter initialization file.
  69. # (There is no reason to change this.)
  70.  
  71. GS_INIT=gs_init.ps
  72.  
  73. # Choose generic configuration options.
  74.  
  75. # -DDEBUG
  76. #    includes debugging features (-Z switch) in the code.
  77. #      Code runs substantially slower even if no debugging switches
  78. #      are set.
  79. # -DNOPRIVATE
  80. #    makes private (static) procedures and variables public,
  81. #      so they are visible to the debugger and profiler.
  82. #      No execution time or space penalty.
  83.  
  84. #GENOPT=-DDEBUG
  85. GENOPT=
  86.  
  87. # Define the name of the executable file.
  88.  
  89. GS=gs
  90.  
  91. # Define the directory where the IJG JPEG library sources are stored,
  92. # and the major version of the library that is stored there.
  93. # You may need to change this if the IJG library version changes.
  94. # See jpeg.mak for more information.
  95.  
  96. JSRCDIR=jpeg-6a
  97. JVERSION=6
  98.  
  99. # Define the directory where the PNG library sources are stored,
  100. # and the version of the library that is stored there.
  101. # You may need to change this if the libpng version changes.
  102. # See libpng.mak for more information.
  103.  
  104. PSRCDIR=libpng
  105. PVERSION=96
  106.  
  107. # Choose whether to use a shared version of the PNG library, and if so,
  108. # what its name is.
  109. # See gs.mak and make.txt for more information.
  110.  
  111. SHARE_LIBPNG=0
  112. LIBPNG_NAME=png
  113.  
  114. # Define the directory where the zlib sources are stored.
  115. # See zlib.mak for more information.
  116.  
  117. ZSRCDIR=zlib
  118.  
  119. # Choose whether to use a shared version of the zlib library, and if so,
  120. # what its name is (usually libz, but sometimes libgz).
  121. # See gs.mak and make.txt for more information.
  122.  
  123. SHARE_ZLIB=0
  124. #ZLIB_NAME=gz
  125. ZLIB_NAME=z
  126.  
  127. # Define how to build the library archives.  (These are not used in any
  128. # standard configuration.)
  129.  
  130. AR=ar
  131. ARFLAGS=qc
  132. RANLIB=ranlib
  133.  
  134. # Define the configuration ID.  Read gs.mak carefully before changing this.
  135.  
  136. CONFIG=
  137.  
  138. # ------ Platform-specific options ------ #
  139.  
  140. # Define the name of the C compiler.
  141.  
  142. CC=gcc
  143.  
  144. # Define the name of the linker for the final link step.
  145. # Normally this is the same as the C compiler.
  146.  
  147. CCLD=$(CC)
  148.  
  149. # Define the default gcc flags.
  150. # To work around the gcc 2.7.x optimizer bug,
  151. # add -Dconst= and remove -Wcast-qual and -Wwrite-strings.
  152.  
  153. #GCFLAGS=-Wall -Wcast-qual -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
  154. GCFLAGS=-Dconst= -Wall -Wpointer-arith -Wstrict-prototypes
  155.  
  156. # Define the other compilation flags.  Add at most one of the following:
  157. #    -DBSD4_2 for 4.2bsd systems.
  158. #    -DSYSV for System V or DG/UX.
  159. #     -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  160. #       or any System III Unix, or System V release 3-or-older Unix.
  161. #    -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
  162. #    -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
  163. # XCFLAGS can be set from the command line.
  164. # We don't include -ansi, because this gets in the way of the platform-
  165. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  166. #   gcc to accept ANSI-style function prototypes and function definitions.
  167. XCFLAGS=
  168.  
  169. CFLAGS=-O $(GCFLAGS) $(XCFLAGS)
  170.  
  171. # Define platform flags for ld.
  172. # SunOS 4.n may need -Bstatic.
  173. # XLDFLAGS can be set from the command line.
  174. XLDFLAGS=
  175.  
  176. LDFLAGS=$(XLDFLAGS)
  177.  
  178. # Define any extra libraries to link into the executable.
  179. # ISC Unix 2.2 wants -linet.
  180. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  181. # SVR4 may need -lnsl.
  182. # (Libraries required by individual drivers are handled automatically.)
  183.  
  184. EXTRALIBS=
  185.  
  186. # Define the include switch(es) for the X11 header files.
  187. # This can be null if handled in some other way (e.g., the files are
  188. # in /usr/include, or the directory is supplied by an environment variable);
  189. # in particular, SCO Xenix, Unix, and ODT just want
  190. #XINCLUDE=
  191. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  192. # not in $(XINCLUDE).
  193.  
  194. XINCLUDE=-I/usr/local/X/include
  195.  
  196. # Define the directory/ies and library names for the X11 library files.
  197. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
  198. # (dynamic libraries on SVR4) and should not include -L.
  199. # Both can be null if these files are in the default linker search path;
  200. # in particular, SCO Xenix, Unix, and ODT just want
  201. #XLIBDIRS=
  202. # Solaris and other SVR4 systems with dynamic linking probably want
  203. #XLIBDIRS=-L/usr/openwin/lib
  204. #XLIBDIR=/usr/openwin/lib
  205. # X11R6 (on any platform) may need
  206. #XLIBS=Xt SM ICE Xext X11
  207.  
  208. #XLIBDIRS=-L/usr/local/X/lib
  209. XLIBDIRS=-L/usr/X11/lib
  210. XLIBDIR=
  211. XLIBS=Xt Xext X11
  212.  
  213. # Define whether this platform has floating point hardware:
  214. #    FPU_TYPE=2 means floating point is faster than fixed point.
  215. # (This is the case on some RISCs with multiple instruction dispatch.)
  216. #    FPU_TYPE=1 means floating point is at worst only slightly slower
  217. # than fixed point.
  218. #    FPU_TYPE=0 means that floating point may be considerably slower.
  219. #    FPU_TYPE=-1 means that floating point is always much slower than
  220. # fixed point.
  221.  
  222. FPU_TYPE=1
  223.  
  224. # ------ Devices and features ------ #
  225.  
  226. # Choose the language feature(s) to include.  See gs.mak for details.
  227.  
  228. FEATURE_DEVS=level2.dev pdf.dev pipe.dev
  229.  
  230. # Choose whether to compile the .ps initialization files into the executable.
  231. # See gs.mak for details.
  232.  
  233. COMPILE_INITS=0
  234.  
  235. # Choose whether to store band lists on files or in memory.
  236. # The choices are 'file' or 'memory'.
  237.  
  238. BAND_LIST_STORAGE=file
  239.  
  240. # Choose which compression method to use when storing band lists in memory.
  241. # The choices are 'lzw' or 'zlib'.  lzw is not recommended, because the
  242. # LZW-compatible code in Ghostscript doesn't actually compress its input.
  243.  
  244. BAND_LIST_COMPRESSOR=zlib
  245.  
  246. # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
  247. # See gs.mak and sfxfd.c for more details.
  248.  
  249. FILE_IMPLEMENTATION=stdio
  250.  
  251. # Choose the device(s) to include.  See devs.mak for details.
  252.  
  253. DEVICE_DEVS=x11.dev x11alpha.dev x11cmyk.dev x11gray2.dev x11mono.dev
  254. DEVICE_DEVS1=
  255. DEVICE_DEVS2=
  256. DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet4.dev
  257. DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev pj.dev pjxl.dev pjxl300.dev
  258. DEVICE_DEVS5=uniprint.dev
  259. DEVICE_DEVS6=bj10e.dev bj200.dev bjc600.dev bjc800.dev
  260. DEVICE_DEVS7=faxg3.dev faxg32d.dev faxg4.dev
  261. DEVICE_DEVS8=pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev pcxcmyk.dev
  262. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
  263. DEVICE_DEVS10=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
  264. DEVICE_DEVS11=tiff12nc.dev tiff24nc.dev
  265. DEVICE_DEVS12=psmono.dev psgray.dev bit.dev bitrgb.dev bitcmyk.dev
  266. DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
  267. DEVICE_DEVS14=jpeg.dev jpeggray.dev
  268. DEVICE_DEVS15=pdfwrite.dev pswrite.dev epswrite.dev pxlmono.dev pxlcolor.dev
  269.  
  270. # ---------------------------- End of options --------------------------- #
  271.  
  272. # Define the name of the partial makefile that specifies options --
  273. # used in dependencies.
  274.  
  275. MAKEFILE=gcc-head.mak
  276.  
  277. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  278.  
  279. AK=
  280.  
  281. # Define the compilation rules and flags.
  282.  
  283. CCC=$(CC) $(CCFLAGS) -c
  284. CCAUX=$(CC)
  285. #We can't use -fomit-frame-pointer with -pg....
  286. #CCLEAF=$(CCC)
  287. CCLEAF=$(CCC) -fomit-frame-pointer
  288.  
  289. # --------------------------- Generic makefile ---------------------------- #
  290.  
  291. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  292. # is generic.  tar_cat concatenates all these together.
  293.