home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / printing / ghostscrip / source / specific / mak / gcc_head < prev    next >
Encoding:
Text File  |  1991-10-26  |  3.8 KB  |  138 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/gcc/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 name of the C compiler.
  55.  
  56. CC=gcc
  57.  
  58. # Define the other compilation flags.
  59. # Add -DBSD4_2 for 4.2bsd systems.
  60. # Add -DUSG (GNU convention) or -DSYSV for System V or DG/UX.
  61. # XCFLAGS can be set from the command line.
  62. # We don't include -ansi, because this gets in the way of the platform-
  63. #   specific stuff that <math.h> typically needs.
  64.  
  65. CFLAGS=-g -O $(XCFLAGS)
  66.  
  67. # Define platform flags for ld.
  68. # Most Unix systems accept -X, but some don't.
  69. # Sun OS4.n may need -Bstatic.
  70. # XLDFLAGS can be set from the command line.
  71.  
  72. LDFLAGS=-X $(XLDFLAGS)
  73.  
  74. # Define any extra libraries to link into the executable.
  75. # The default is for X Windows.
  76.  
  77. EXTRALIBS= -lX11
  78.  
  79. # Define the installation commands and target directories for
  80. # executables and files.  Only relevant to `make install'.
  81.  
  82. proginstall = install -m 775
  83. fileinstall = install -m 664
  84. bindir = /usr/local/gnu/bin
  85. libdir = /usr/local/gnu/lib/ghostscript
  86.  
  87. # ------ Devices and features ------ #
  88.  
  89. # Choose the language option(s) to include.  See ghost.mak for details.
  90.  
  91. FEATURES=
  92.  
  93. # Choose the device(s) to include.  See gdevs.mak for details.
  94.  
  95. DEVICES=x11
  96. DEVICE_DEVS=x11.dev
  97. DEVICE_OBJS=$(x11_)
  98.  
  99. # ---------------------------- End of options --------------------------- #
  100.  
  101. # Define the name of the makefile -- used in dependencies.
  102.  
  103. MAKEFILE=unix-gcc.mak
  104.  
  105. # Define the extensions for the object and executable files.
  106.  
  107. OBJ=o
  108. XE=
  109.  
  110. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  111.  
  112. AK=
  113.  
  114. # Define the need for uniq.
  115.  
  116. UNIQ=
  117.  
  118. # Define the directory separator and shell quote string.
  119.  
  120. DS=/
  121. Q=\"
  122.  
  123. # Define the compilation rules.
  124.  
  125. CCFLAGS=$(GENOPT) $(CFLAGS)
  126.  
  127. .c.o:
  128.     $(CC) $(CCFLAGS) -c $*.c
  129.  
  130. CCC=$(CC) $(CCFLAGS) -c
  131. CC0=$(CCC)
  132. CCINT=$(CCC)
  133.  
  134. # --------------------------- Generic makefile ---------------------------- #
  135.  
  136. # The remainder of the makefile (ghost.mak, gdevs.mak, and unixtail.mak)
  137. # is generic.  tar_gs concatenates all these together.
  138.