home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / g / gs252src.zip / GS252 / CC-HEAD.MAK < prev    next >
Makefile  |  1992-09-19  |  4KB  |  130 lines

  1. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/cc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the installation commands and target directories for
  29. # executables and files.  Only relevant to `make install'.
  30.  
  31. INSTALL = install -c
  32. INSTALL_PROGRAM = $(INSTALL) -m 775
  33. INSTALL_DATA = $(INSTALL) -m 664
  34.  
  35. prefix = /usr/local
  36. exec_prefix = $(prefix)
  37. bindir = $(exec_prefix)/bin
  38. datadir = $(prefix)/lib
  39. gsdatadir = $(datadir)/ghostscript
  40.  
  41. # Define the default directory/ies for the runtime
  42. # initialization and font files.  Separate multiple directories with a :.
  43.  
  44. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  45.  
  46. # Define the name of the Ghostscript initialization file.
  47. # (There is no reason to change this.)
  48.  
  49. GS_INIT=gs_init.ps
  50.  
  51. # Choose generic configuration options.
  52.  
  53. # -DDEBUG
  54. #    includes debugging features (-Z switch) in the code.
  55. #      Code runs substantially slower even if no debugging switches
  56. #      are set.
  57. # -DNOPRIVATE
  58. #    makes private (static) procedures and variables public,
  59. #      so they are visible to the debugger and profiler.
  60. #      No execution time or space penalty.
  61.  
  62. GENOPT=
  63.  
  64. # ------ Platform-specific options ------ #
  65.  
  66. # Define the other compilation flags.
  67. # Add -DBSD4_2 for 4.2bsd systems.
  68. # Add -DSYSV for System V.
  69. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  70. #   or any System III Unix, or System V release 3-or-older Unix.
  71. # Add -DSVR4 (not -DSYSV) for System V release 4.
  72. # XCFLAGS can be set from the command line.
  73.  
  74. CFLAGS=-O $(XCFLAGS)
  75.  
  76. # Define platform flags for ld.
  77. # SunOS and some others want -X; Ultrix wants -x.
  78. # SunOS 4.n may need -Bstatic.
  79. # XLDFLAGS can be set from the command line.
  80.  
  81. LDFLAGS=$(XLDFLAGS)
  82.  
  83. # Define any extra libraries to link into the executable.
  84. # ISC Unix 2.2 wants -linet.
  85. # (Libraries required by individual drivers are handled automatically.)
  86.  
  87. EXTRALIBS=
  88.  
  89. # Define the include switch(es) for the X11 header files.
  90. # This can be null if handled in some other way (e.g., the files are
  91. # in /usr/include, or the directory is supplied by an environment variable).
  92. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  93. # not in $(XINCLUDE).
  94.  
  95. XINCLUDE=-I/usr/local/X/include
  96.  
  97. # Define the directory/ies for the X11 library files.
  98. # This can be null if these files are in the default linker search path.
  99.  
  100. XLIBDIRS=-L/usr/local/X/lib
  101.  
  102. # ------ Devices and features ------ #
  103.  
  104. # Choose the language feature(s) to include.  See gs.mak for details.
  105.  
  106. FEATURE_DEVS=filter.dev
  107.  
  108. # Choose the device(s) to include.  See devs.mak for details.
  109.  
  110. DEVICE_DEVS=x11.dev
  111.  
  112. # ---------------------------- End of options --------------------------- #
  113.  
  114. # Define the name of the makefile -- used in dependencies.
  115.  
  116. MAKEFILE=unix-cc.mak
  117.  
  118. # Define the ANSI-to-K&R dependency.
  119.  
  120. AK=ansi2knr$(XE)
  121.  
  122. # Define the compilation rules and flags.
  123.  
  124. CCC=./ccgs "$(CC) $(CCFLAGS)"
  125.  
  126. # --------------------------- Generic makefile ---------------------------- #
  127.  
  128. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  129. # is generic.  tar_cat concatenates all these together.
  130.