home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / printing / ghostscrip / source / specific / mak / cc_head next >
Encoding:
Text File  |  1991-10-26  |  3.6 KB  |  134 lines

  1. #    Copyright (C) 1989, 1990, 1991 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 default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30. # `pwd` means use the directory in which the 'make' is being done.
  31.  
  32. GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
  33.  
  34. # Define the name of the Ghostscript initialization file.
  35. # (There is no reason to change this.)
  36.  
  37. GS_INIT=gs_init.ps
  38.  
  39. # Choose generic configuration options.
  40.  
  41. # -DDEBUG
  42. #    includes debugging features (-Z switch) in the code.
  43. #      Code runs substantially slower even if no debugging switches
  44. #      are set.
  45. # -DNOPRIVATE
  46. #    makes private (static) procedures and variables public,
  47. #      so they are visible to the debugger and profiler.
  48. #      No execution time or space penalty.
  49.  
  50. GENOPT=
  51.  
  52. # ------ Platform-specific options ------ #
  53.  
  54. # Define the other compilation flags.
  55. # Add -DBSD4_2 for 4.2bsd systems.
  56. # Add -DSYSV for System V.
  57. # XCFLAGS can be set from the command line.
  58.  
  59. CFLAGS=-O $(XCFLAGS)
  60.  
  61. # Define platform flags for ld.
  62. # Most Unix systems accept -X, but some don't.
  63. # Sun OS4.n may need -Bstatic.
  64. # XLDFLAGS can be set from the command line.
  65.  
  66. LDFLAGS=-X $(XLDFLAGS)
  67.  
  68. # Define any extra libraries to link into the executable.
  69. # The default is for X Windows.
  70.  
  71. EXTRALIBS= -lX11
  72.  
  73. # Define the installation commands and target directories for
  74. # executables and files.  Only relevant to `make install'.
  75.  
  76. proginstall = install -m 775
  77. fileinstall = install -m 664
  78. bindir = /usr/local/gnu/bin
  79. libdir = /usr/local/gnu/lib/ghostscript
  80.  
  81. # ------ Devices and features ------ #
  82.  
  83. # Choose the language feature(s) to include.  See ghost.mak for details.
  84.  
  85. FEATURES=
  86.  
  87. # Choose the device(s) to include.  See gdevs.mak for details.
  88.  
  89. DEVICES=x11
  90. DEVICE_DEVS=x11.dev
  91. DEVICE_OBJS=$(x11_)
  92.  
  93. # ---------------------------- End of options --------------------------- #
  94.  
  95. # Define the name of the makefile -- used in dependencies.
  96.  
  97. MAKEFILE=unix-cc.mak
  98.  
  99. # Define the extensions for the object and executable files.
  100.  
  101. OBJ=o
  102. XE=
  103.  
  104. # Define the ANSI-to-K&R dependency.
  105.  
  106. AK=ansi2knr$(XE)
  107.  
  108. # Define the need for uniq.
  109.  
  110. UNIQ=
  111.  
  112. # Define the directory separator and shell quote string.
  113.  
  114. DS=/
  115. Q=\"
  116.  
  117. # Define the compilation rules and flags.
  118.  
  119. CCFLAGS=$(GENOPT) $(CFLAGS)
  120.  
  121. .c.o:
  122.     ./ansi2knr $*.c _temp_.c
  123.     $(CC) $(CCFLAGS) -c _temp_.c
  124.     mv _temp_.o $*.o
  125.  
  126. CCC=./ccgs "$(CC) $(CCFLAGS)" _temp_.c
  127. CC0=$(CCC)
  128. CCINT=$(CCC)
  129.  
  130. # --------------------------- Generic makefile ---------------------------- #
  131.  
  132. # The remainder of the makefile (ghost.mak, gdevs.mak, and unixtail.mak)
  133. # is generic.  tar_gs concatenates all these together.
  134.