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 / GCC-HEAD.MAK < prev    next >
Makefile  |  1992-09-19  |  5KB  |  138 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/gcc/X11 configuration.
  21. # Note: this makefile assumes you are using gcc in ANSI mode.
  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.  Only relevant to `make install'.
  31.  
  32. INSTALL = install -c
  33. INSTALL_PROGRAM = $(INSTALL) -m 775
  34. INSTALL_DATA = $(INSTALL) -m 664
  35.  
  36. prefix = /usr/local
  37. exec_prefix = $(prefix)
  38. bindir = $(exec_prefix)/bin
  39. datadir = $(prefix)/lib
  40. gsdatadir = $(datadir)/ghostscript
  41.  
  42. # Define the default directory/ies for the runtime
  43. # initialization and font files.  Separate multiple directories with a :.
  44.  
  45. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  46.  
  47. # Define the name of the Ghostscript initialization file.
  48. # (There is no reason to change this.)
  49.  
  50. GS_INIT=gs_init.ps
  51.  
  52. # Choose generic configuration options.
  53.  
  54. # -DDEBUG
  55. #    includes debugging features (-Z switch) in the code.
  56. #      Code runs substantially slower even if no debugging switches
  57. #      are set.
  58. # -DNOPRIVATE
  59. #    makes private (static) procedures and variables public,
  60. #      so they are visible to the debugger and profiler.
  61. #      No execution time or space penalty.
  62.  
  63. GENOPT=
  64.  
  65. # ------ Platform-specific options ------ #
  66.  
  67. # Define the name of the C compiler.
  68.  
  69. CC=gcc
  70.  
  71. # Define the other compilation flags.
  72. # Add -DBSD4_2 for 4.2bsd systems.
  73. # Add -DUSG (GNU convention) or -DSYSV for System V or DG/UX.
  74. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  75. #   or any System III Unix, or System V release 3-or-older Unix.
  76. # Add -DSVR4 (not -DSYSV) for System V release 4.
  77. # XCFLAGS can be set from the command line.
  78. # We don't include -ansi, because this gets in the way of the platform-
  79. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  80. #   gcc to accept ANSI-style function prototypes and function definitions.
  81.  
  82. CFLAGS=-g -O $(XCFLAGS)
  83.  
  84. # Define platform flags for ld.
  85. # SunOS and some others want -X; Ultrix wants -x.
  86. # SunOS 4.n may need -Bstatic.
  87. # XLDFLAGS can be set from the command line.
  88.  
  89. LDFLAGS=$(XLDFLAGS)
  90.  
  91. # Define any extra libraries to link into the executable.
  92. # SCO ODT apparently needs -lsocket.
  93. # (Libraries required by individual drivers are handled automatically.)
  94.  
  95. EXTRALIBS=
  96.  
  97. # Define the include switch(es) for the X11 header files.
  98. # This can be null if handled in some other way (e.g., the files are
  99. # in /usr/include, or the directory is supplied by an environment variable).
  100. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  101. # not in $(XINCLUDE).
  102.  
  103. XINCLUDE=-I/usr/local/X/include
  104.  
  105. # Define the directory/ies for the X11 library files.
  106. # This can be null if these files are in the default linker search path.
  107.  
  108. XLIBDIRS=-L/usr/local/X/lib
  109.  
  110. # ------ Devices and features ------ #
  111.  
  112. # Choose the language feature(s) to include.  See gs.mak for details.
  113.  
  114. FEATURE_DEVS=filter.dev
  115.  
  116. # Choose the device(s) to include.  See devs.mak for details.
  117.  
  118. DEVICE_DEVS=x11.dev
  119.  
  120. # ---------------------------- End of options --------------------------- #
  121.  
  122. # Define the name of the makefile -- used in dependencies.
  123.  
  124. MAKEFILE=unix-gcc.mak
  125.  
  126. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  127.  
  128. AK=
  129.  
  130. # Define the compilation rules and flags.
  131.  
  132. CCC=$(CC) $(CCFLAGS) -c
  133.  
  134. # --------------------------- Generic makefile ---------------------------- #
  135.  
  136. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  137. # is generic.  tar_cat concatenates all these together.
  138.