386BSD 0.1 development
[unix-history] / usr / othersrc / public / ghostscript-2.4.1 / cc-head.mak
CommitLineData
49e647b3
WJ
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 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
32GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
33
34# Define the name of the Ghostscript initialization file.
35# (There is no reason to change this.)
36
37GS_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
50GENOPT=
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# Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
58# or any System III Unix, or System V release 3-or-older Unix.
59# Add -DSVR4 (not -DSYSV) for System V release 4.
60# XCFLAGS can be set from the command line.
61
62CFLAGS=-O $(XCFLAGS)
63
64# Define platform flags for ld.
65# SunOS and some others want -X; Ultrix wants -x.
66# SunOS 4.n may need -Bstatic.
67# XLDFLAGS can be set from the command line.
68
69LDFLAGS=$(XLDFLAGS)
70
71# Define any extra libraries to link into the executable.
72# ISC Unix 2.2 wants -linet.
73# (Libraries required by individual drivers are handled automatically.)
74
75EXTRALIBS=
76
77# Define the include switch(es) for the X11 header files.
78# This can be null if handled in some other way (e.g., the files are
79# in /usr/include, or the directory is supplied by an environment variable).
80
81XINCLUDE=-I/usr/local/X/include
82
83# Define the directory/ies for the X11 library files.
84# This can be null if these files are in the default linker search path.
85
86XLIBDIRS=-L/usr/local/X/lib
87
88# Define the installation commands and target directories for
89# executables and files. Only relevant to `make install'.
90
91INSTALL = install -c
92INSTALL_PROGRAM = $(INSTALL) -m 775
93INSTALL_DATA = $(INSTALL) -m 664
94
95prefix = /usr/local
96bindir = $(prefix)/bin
97libdir = $(prefix)/lib/ghostscript
98
99# ------ Devices and features ------ #
100
101# Choose the language feature(s) to include. See gs.mak for details.
102
103FEATURE_DEVS=filter.dev dps.dev level2.dev
104
105# Choose the device(s) to include. See devs.mak for details.
106
107DEVICE_DEVS=x11.dev
108
109# ---------------------------- End of options --------------------------- #
110
111# Define the name of the makefile -- used in dependencies.
112
113MAKEFILE=unix-cc.mak
114
115# Define the ANSI-to-K&R dependency.
116
117AK=ansi2knr$(XE)
118
119# Define the compilation rules and flags.
120
121CCC=./ccgs "$(CC) $(CCFLAGS)"
122
123# --------------------------- Generic makefile ---------------------------- #
124
125# The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
126# is generic. tar_cat concatenates all these together.