Commit | Line | Data |
---|---|---|
841fcf53 WJ |
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/ANSI C/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. If the standard compiler for your | |
55 | # platform is ANSI-compatible, leave this line commented out; if not, | |
56 | # uncomment the line and insert the proper definition. | |
57 | ||
58 | #CC=some_C_compiler | |
59 | ||
60 | # Define the other compilation flags. | |
61 | # Add -DBSD4_2 for 4.2bsd systems. | |
62 | # Add -DSYSV for System V or DG/UX. | |
63 | # Add -DSVR4 (not -DSYSV) for System V release 4. | |
64 | # The HP 400 seems to want -Aa -w -D_HPUX_SOURCE. | |
65 | # XCFLAGS can be set from the command line. | |
66 | ||
67 | CFLAGS=-O $(XCFLAGS) | |
68 | ||
69 | # Define platform flags for ld. | |
70 | # SunOS and some others want -X; Ultrix wants -x. | |
71 | # SunOS 4.n may need -Bstatic. | |
72 | # XLDFLAGS can be set from the command line. | |
73 | ||
74 | LDFLAGS=$(XLDFLAGS) | |
75 | ||
76 | # Define any extra libraries to link into the executable. | |
77 | # (Libraries required by individual drivers are handled automatically.) | |
78 | ||
79 | EXTRALIBS= | |
80 | ||
81 | # Define the include switch(es) for the X11 header files. | |
82 | # This can be null if handled in some other way (e.g., the files are | |
83 | # in /usr/include, or the directory is supplied by an environment variable). | |
84 | ||
85 | XINCLUDE=-I/usr/local/X/include | |
86 | ||
87 | # Define the directory/ies for the X11 library files. | |
88 | # This can be null if these files are in the default linker search path. | |
89 | ||
90 | XLIBDIRS=-L/usr/local/X/lib | |
91 | ||
92 | # Define the installation commands and target directories for | |
93 | # executables and files. Only relevant to `make install'. | |
94 | ||
95 | INSTALL = install -c | |
96 | INSTALL_PROGRAM = $(INSTALL) -m 775 | |
97 | INSTALL_DATA = $(INSTALL) -m 664 | |
98 | ||
99 | prefix = /usr/local | |
100 | bindir = $(prefix)/bin | |
101 | libdir = $(prefix)/lib/ghostscript | |
102 | ||
103 | # ------ Devices and features ------ # | |
104 | ||
105 | # Choose the language feature(s) to include. See gs.mak for details. | |
106 | ||
107 | FEATURE_DEVS=filter.dev dps.dev level2.dev | |
108 | ||
109 | # Choose the device(s) to include. See devs.mak for details. | |
110 | ||
111 | DEVICE_DEVS=x11.dev | |
112 | ||
113 | # ---------------------------- End of options --------------------------- # | |
114 | ||
115 | # Define the name of the makefile -- used in dependencies. | |
116 | ||
117 | MAKEFILE=unix-ansi.mak | |
118 | ||
119 | # Define the ANSI-to-K&R dependency (none for ANSI compilers). | |
120 | ||
121 | AK= | |
122 | ||
123 | # Define the compilation rules and flags. | |
124 | ||
125 | CCC=$(CC) $(CCFLAGS) -c | |
126 | ||
127 | # --------------------------- Generic makefile ---------------------------- # | |
128 | ||
129 | # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak) | |
130 | # is generic. tar_cat concatenates all these together. |