unixtrad.mak 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. # Copyright (C) 1997, 2000 Aladdin Enterprises. 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: unixtrad.mak,v 1.16.2.1 2002/02/01 03:25:46 raph Exp $
  18. # makefile for Unix/"Traditional" C/X11 configuration.
  19. # ------------------------------- Options ------------------------------- #
  20. ####### The following are the only parts of the file you should need to edit.
  21. # Define the directory for the final executable, and the
  22. # source, generated intermediate file, and object directories
  23. # for the graphics library (GL) and the PostScript/PDF interpreter (PS).
  24. BINDIR=./bin
  25. GLSRCDIR=./src
  26. GLGENDIR=./obj
  27. GLOBJDIR=./obj
  28. PSSRCDIR=./src
  29. PSLIBDIR=./lib
  30. PSGENDIR=./obj
  31. PSOBJDIR=./obj
  32. # Do not edit the next group of lines.
  33. #include $(COMMONDIR)/ccdefs.mak
  34. #include $(COMMONDIR)/unixdefs.mak
  35. #include $(COMMONDIR)/generic.mak
  36. include $(GLSRCDIR)/version.mak
  37. DD=$(GLGENDIR)/
  38. GLD=$(GLGENDIR)/
  39. PSD=$(PSGENDIR)/
  40. # ------ Generic options ------ #
  41. # Define the installation commands and target directories for
  42. # executables and files. The commands are only relevant to `make install';
  43. # the directories also define the default search path for the
  44. # initialization files (gs_*.ps) and the fonts.
  45. INSTALL = $(GLSRCDIR)/instcopy -c
  46. INSTALL_PROGRAM = $(INSTALL) -m 755
  47. INSTALL_DATA = $(INSTALL) -m 644
  48. prefix = /usr/local
  49. exec_prefix = $(prefix)
  50. bindir = $(exec_prefix)/bin
  51. scriptdir = $(bindir)
  52. mandir = $(prefix)/man
  53. man1ext = 1
  54. datadir = $(prefix)/share
  55. gsdir = $(datadir)/ghostscript
  56. gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
  57. docdir=$(gsdatadir)/doc
  58. exdir=$(gsdatadir)/examples
  59. GS_DOCDIR=$(docdir)
  60. # Define the default directory/ies for the runtime initialization and
  61. # font files. Separate multiple directories with a :.
  62. GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdir)/fonts
  63. # Define whether or not searching for initialization files should always
  64. # look in the current directory first. This leads to well-known security
  65. # and confusion problems, but users insist on it.
  66. # NOTE: this also affects searching for files named on the command line:
  67. # see the "File searching" section of Use.htm for full details.
  68. # Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
  69. SEARCH_HERE_FIRST=1
  70. # Define the name of the interpreter initialization file.
  71. # (There is no reason to change this.)
  72. GS_INIT=gs_init.ps
  73. # Choose generic configuration options.
  74. # -DDEBUG
  75. # includes debugging features (-Z switch) in the code.
  76. # Code runs substantially slower even if no debugging switches
  77. # are set.
  78. # -DNOPRIVATE
  79. # makes private (static) procedures and variables public,
  80. # so they are visible to the debugger and profiler.
  81. # No execution time or space penalty.
  82. GENOPT=
  83. # Define the name of the executable file.
  84. GS=gs
  85. # Define the name of a pre-built executable that can be invoked at build
  86. # time. Currently, this is only needed for compiled fonts. The usual
  87. # alternatives are:
  88. # - the standard name of Ghostscript on your system (typically `gs'):
  89. BUILD_TIME_GS=gs
  90. # - the name of the executable you are building now. If you choose this
  91. # option, then you must build the executable first without compiled fonts,
  92. # and then again with compiled fonts.
  93. #BUILD_TIME_GS=$(BINDIR)/$(GS) -I$(PSLIBDIR)
  94. # Define the directories for debugging and profiling binaries, relative to
  95. # the standard binaries.
  96. DEBUGRELDIR=../debugobj
  97. PGRELDIR=../pgobj
  98. # Define the directory where the IJG JPEG library sources are stored,
  99. # and the major version of the library that is stored there.
  100. # You may need to change this if the IJG library version changes.
  101. # See jpeg.mak for more information.
  102. JSRCDIR=jpeg
  103. JVERSION=6
  104. # Choose whether to use a shared version of the IJG JPEG library (-ljpeg).
  105. # DON'T DO THIS. If you do, the resulting executable will not be able to
  106. # read some PostScript files containing JPEG data, because Adobe chose to
  107. # define PostScript's JPEG capabilities in a way that is slightly
  108. # incompatible with the JPEG standard. Note also that if you set SHARE_JPEG
  109. # to 1, you must still have the library header files available to compile
  110. # Ghostscript. See doc/Make.htm for more information.
  111. # DON'T SET THIS TO 1! See the comment just above.
  112. SHARE_JPEG=0
  113. JPEG_NAME=jpeg
  114. # Define the directory where the PNG library sources are stored,
  115. # and the version of the library that is stored there.
  116. # You may need to change this if the libpng version changes.
  117. # See libpng.mak for more information.
  118. PSRCDIR=libpng
  119. PVERSION=10201
  120. # Choose whether to use a shared version of the PNG library, and if so,
  121. # what its name is.
  122. # See gs.mak and Make.htm for more information.
  123. SHARE_LIBPNG=0
  124. LIBPNG_NAME=png
  125. # Define the directory where the zlib sources are stored.
  126. # See zlib.mak for more information.
  127. ZSRCDIR=zlib
  128. # Choose whether to use a shared version of the zlib library, and if so,
  129. # what its name is (usually libz, but sometimes libgz).
  130. # See gs.mak and Make.htm for more information.
  131. SHARE_ZLIB=0
  132. #ZLIB_NAME=gz
  133. ZLIB_NAME=z
  134. # Define the directory where the icclib source are stored.
  135. # See icclib.mak for more information
  136. ICCSRCDIR=icclib
  137. # Define how to build the library archives. (These are not used in any
  138. # standard configuration.)
  139. AR=ar
  140. ARFLAGS=qc
  141. RANLIB=ranlib
  142. # ------ Platform-specific options ------ #
  143. # Define the name of the linker for the final link step.
  144. # Normally this is the same as the C compiler.
  145. CCLD=$(CC)
  146. # Define the added flags for standard, debugging, and profiling builds.
  147. CFLAGS_STANDARD=-O
  148. CFLAGS_DEBUG=-g
  149. CFLAGS_PROFILE=-pg -O
  150. # Define the other compilation flags. Add at most one of the following:
  151. # -DBSD4_2 for 4.2bsd systems.
  152. # -DSYSV for System V or DG/UX.
  153. # -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  154. # or any System III Unix, or System V release 3-or-older Unix.
  155. # Also add -Xa if your compiler accepts it.
  156. # -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
  157. # -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
  158. # XCFLAGS can be set from the command line.
  159. XCFLAGS=
  160. CFLAGS=$(CFLAGS_STANDARD) $(XCFLAGS)
  161. # Define platform flags for ld.
  162. # SunOS and some others want -X; Ultrix wants -x.
  163. # SunOS 4.n may need -Bstatic.
  164. # Solaris 2.6 (and possibly some other versions) with any of the SHARE_
  165. # parameters set to 1 may need
  166. # -R /usr/local/xxx/lib:/usr/local/lib
  167. # giving the full path names of the shared library directories.
  168. # XLDFLAGS can be set from the command line.
  169. XLDFLAGS=
  170. LDFLAGS=$(XLDFLAGS)
  171. # Define any extra libraries to link into the executable.
  172. # ISC Unix 2.2 wants -linet.
  173. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  174. # SVR4 may need -lnsl.
  175. # Solaris may need -lnsl -lsocket -lposix4.
  176. # (Libraries required by individual drivers are handled automatically.)
  177. EXTRALIBS=
  178. # Define the standard libraries to search at the end of linking.
  179. # Most platforms require -lpthread for the POSIX threads library;
  180. # on FreeBSD, change -lpthread to -lc_r; BSDI and perhaps some others
  181. # include pthreads in libc and don't require any additional library.
  182. # All reasonable platforms require -lm, but Rhapsody and perhaps one or
  183. # two others fold libm into libc and don't require any additional library.
  184. #STDLIBS=-lpthread -lm
  185. # Since the default build is for nosync, don't include pthread lib
  186. STDLIBS=-lm
  187. # Define the include switch(es) for the X11 header files.
  188. # This can be null if handled in some other way (e.g., the files are
  189. # in /usr/include, or the directory is supplied by an environment variable);
  190. # in particular, SCO Xenix, Unix, and ODT just want
  191. #XINCLUDE=
  192. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  193. # not in $(XINCLUDE).
  194. XINCLUDE=-I/usr/X11R6/include
  195. # Define the directory/ies and library names for the X11 library files.
  196. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
  197. # (dynamic libraries on SVR4) and should not include -L.
  198. # Newer SVR4 systems can use -R in XLIBDIRS rather than setting XLIBDIR.
  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 -R/usr/openwin/lib
  204. # X11R6 (on any platform) may need
  205. #XLIBS=Xt SM ICE Xext X11
  206. XLIBDIRS=-L/usr/X11R6/lib
  207. XLIBDIR=
  208. XLIBS=Xt Xext X11
  209. # Define whether this platform has floating point hardware:
  210. # FPU_TYPE=2 means floating point is faster than fixed point.
  211. # (This is the case on some RISCs with multiple instruction dispatch.)
  212. # FPU_TYPE=1 means floating point is at worst only slightly slower
  213. # than fixed point.
  214. # FPU_TYPE=0 means that floating point may be considerably slower.
  215. # FPU_TYPE=-1 means that floating point is always much slower than
  216. # fixed point.
  217. FPU_TYPE=1
  218. # Define the .dev module that implements thread and synchronization
  219. # primitives for this platform. Don't change this unless you really know
  220. # what you're doing.
  221. # If POSIX sync primitives are used, also change the STDLIBS to include
  222. # the pthread library.
  223. #SYNC=posync
  224. # Default is No sync primitives since some platforms don't have it (HP-UX)
  225. SYNC=nosync
  226. # ------ Devices and features ------ #
  227. # Choose the language feature(s) to include. See gs.mak for details.
  228. FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(GLD)pipe.dev
  229. # Choose whether to compile the .ps initialization files into the executable.
  230. # See gs.mak for details.
  231. COMPILE_INITS=0
  232. # Choose whether to store band lists on files or in memory.
  233. # The choices are 'file' or 'memory'.
  234. BAND_LIST_STORAGE=file
  235. # Choose which compression method to use when storing band lists in memory.
  236. # The choices are 'lzw' or 'zlib'. lzw is not recommended, because the
  237. # LZW-compatible code in Ghostscript doesn't actually compress its input.
  238. BAND_LIST_COMPRESSOR=zlib
  239. # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
  240. # See gs.mak and sfxfd.c for more details.
  241. FILE_IMPLEMENTATION=stdio
  242. # Choose the implementation of stdio: '' for file I/O and 'c' for callouts
  243. # See gs.mak and ziodevs.c/ziodevsc.c for more details.
  244. STDIO_IMPLEMENTATION=c
  245. # Choose the device(s) to include. See devs.mak for details,
  246. # devs.mak and contrib.mak for the list of available devices.
  247. DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11mono.dev
  248. DEVICE_DEVS1=
  249. DEVICE_DEVS2=
  250. 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
  251. # Sun's cc can't compile gdevcdj.c.
  252. #DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev
  253. DEVICE_DEVS4=
  254. DEVICE_DEVS5=$(DD)uniprint.dev
  255. DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
  256. DEVICE_DEVS6=
  257. DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev
  258. DEVICE_DEVS8=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev
  259. 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
  260. DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
  261. DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev
  262. DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
  263. DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev
  264. DEVICE_DEVS14=
  265. DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
  266. DEVICE_DEVS16=
  267. DEVICE_DEVS17=
  268. DEVICE_DEVS18=
  269. DEVICE_DEVS19=
  270. DEVICE_DEVS20=
  271. # ---------------------------- End of options --------------------------- #
  272. # Define the name of the partial makefile that specifies options --
  273. # used in dependencies.
  274. MAKEFILE=$(GLSRCDIR)/unixtrad.mak
  275. TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)/unixhead.mak
  276. # Define the ANSI-to-K&R dependency.
  277. # This should be ansi2knr$(XEAUX), or $(ANSI2KNR_XE), but these macros
  278. # haven't been defined yet, and some buggy 'make' programs expand macros in
  279. # definitions at the time of definition rather than at the time of use.
  280. AK=$(GLGENDIR)/ansi2knr
  281. # Define the compilation rules and flags.
  282. CCFLAGS=$(GENOPT) $(CFLAGS)
  283. CC_=$(GLSRCDIR)/ccgs $(AK) "$(CC) $(CCFLAGS)"
  284. # We compile ansi2knr, and only ansi2knr, unmodified.
  285. CCA2K=$(CC)
  286. CCAUX=$(GLSRCDIR)/ccgs $(AK) "$(CC)"
  287. CC_LEAF=$(CC_)
  288. CC_LEAF_PG=$(CC_)
  289. CC_NO_WARN=$(CC_)
  290. # ---------------- End of platform-specific section ---------------- #
  291. include $(GLSRCDIR)/unixhead.mak
  292. include $(GLSRCDIR)/gs.mak
  293. include $(GLSRCDIR)/lib.mak
  294. include $(PSSRCDIR)/int.mak
  295. include $(PSSRCDIR)/cfonts.mak
  296. include $(GLSRCDIR)/jpeg.mak
  297. # zlib.mak must precede libpng.mak
  298. include $(GLSRCDIR)/zlib.mak
  299. include $(GLSRCDIR)/libpng.mak
  300. include $(GLSRCDIR)/icclib.mak
  301. include $(GLSRCDIR)/devs.mak
  302. include $(GLSRCDIR)/contrib.mak
  303. include $(GLSRCDIR)/unix-aux.mak
  304. include $(GLSRCDIR)/unixlink.mak
  305. include $(GLSRCDIR)/unix-end.mak
  306. include $(GLSRCDIR)/unixinst.mak