Commit | Line | Data |
---|---|---|
c3f03ced C |
1 | # Generated automatically from Makefile.in by configure. |
2 | # Copyright (C) 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc. | |
3 | # Written by James Clark (jjc@jclark.com) | |
4 | # | |
5 | # This file is part of groff. | |
6 | # | |
7 | # groff is free software; you can redistribute it and/or modify it under | |
8 | # the terms of the GNU General Public License as published by the Free | |
9 | # Software Foundation; either version 2, or (at your option) any later | |
10 | # version. | |
11 | # | |
12 | # groff is distributed in the hope that it will be useful, but WITHOUT ANY | |
13 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 | # for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License along | |
18 | # with groff; see the file COPYING. If not, write to the Free Software | |
19 | # Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
20 | ||
21 | # Define `page' to be letter if your PostScript printer uses 8.5x11 | |
22 | # paper (USA) and define it to be A4, if it uses A4 paper (rest of the | |
23 | # world). | |
24 | PAGE=letter | |
25 | ||
26 | # Normally the Postscript driver, grops, produces output that conforms | |
27 | # to version 3.0 of the Adobe Document Structuring Conventions. | |
28 | # Unfortunately some spoolers and previewers can't handle such output. | |
29 | # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to | |
30 | # make its output acceptable to such programs. This variable controls | |
31 | # only the default behaviour of grops; the behaviour can be changed at | |
32 | # runtime by the grops -b option (and so by groff -P-b). | |
33 | # Use a value of 0 if your spoolers and previewers are able to handle | |
34 | # conforming PostScript correctly. | |
35 | # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated; | |
36 | # this is needed for early versions of TranScript that get confused by | |
37 | # anything between the %%EndProlog line and the first %%Page: comment. | |
38 | # Add 2 if lines in included files beginning with %! should be | |
39 | # stripped out; this is needed for the OpenWindows 2.0 pageview previewer. | |
40 | # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be | |
41 | # stripped out of included files; this is needed for spoolers that | |
42 | # don't understand the %%{Begin,End}Document comments. I suspect this | |
43 | # includes early versions of TranScript. | |
44 | # Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0 | |
45 | # rather than %!PS-Adobe-3.0, this is needed when using Sun's Newsprint | |
46 | # with a printer that requires page reversal. | |
47 | BROKEN_SPOOLER_FLAGS=7 | |
48 | ||
49 | # DEVICE is the default device. | |
50 | DEVICE=ps | |
51 | ||
52 | # PSPRINT is the command to use for printing a PostScript file, | |
53 | # for example `lpr'. | |
54 | PSPRINT=lpr | |
55 | ||
56 | # DVIPRINT is the command to use for printing a TeX dvi file, | |
57 | # for example `lpr -d'. | |
58 | DVIPRINT=lpr -d | |
59 | ||
60 | # Prefix for names of programs that have Unix counterparts. | |
61 | # For example, if `g' is `g' then troff will be installed as | |
62 | # gtroff. This doesn't affect programs like grops or groff that have | |
63 | # no Unix counterparts. Note that the groff versions of eqn and tbl | |
64 | # will not work with Unix troff. This is also use in the definitions | |
65 | # of tmac_s and tmac_m. | |
66 | # g=g | |
67 | ||
68 | # The groff ms macros will be available as -m$(tmac_s). | |
69 | # If you use `tmac_s=s', you can use the Unix ms macros by using | |
70 | # groff -ms -M/usr/lib/tmac. | |
71 | tmac_s=s | |
72 | ||
73 | # Similarily, the groff mm macros will be available as -m$(tmac_m). | |
74 | tmac_m=$(g)m | |
75 | ||
76 | # Common prefix for installation directories. | |
77 | # Used in definitions of exec_prefix, datasubdir, fontpath, manroot. | |
78 | # This must already exist when you do make install. | |
79 | prefix=/usr | |
80 | ||
81 | exec_prefix=${prefix} | |
82 | ||
83 | # bindir says where to install executables. | |
84 | bindir=$(exec_prefix)/bin | |
85 | ||
86 | # datasubdir says where to install data files | |
87 | datadir=$(prefix)/share | |
88 | datasubdir=$(datadir) | |
89 | ||
90 | # fontdir says where to install dev*/*. | |
91 | fontdir=$(datasubdir)/groff_font | |
92 | ||
93 | # fontpath says where to look for dev*/*. | |
94 | fontpath=.:$(fontdir):$(prefix)/share/groff_font:/usr/share/groff_font | |
95 | ||
96 | # tmacdir says where to install macros. | |
97 | tmacdir=$(datasubdir)/tmac | |
98 | ||
99 | # tmacpath says where to look for macro files. | |
100 | tmacpath=.:$(tmacdir):/usr/share/tmac | |
101 | ||
102 | # Extension to be used for refer index files. Index files are not | |
103 | # shareable between different architectures, so you might want to use | |
104 | # different suffixes for different architectures. Choose an extension | |
105 | # that doesn't conflict with refer or any other indexing program. | |
106 | indexext=.i | |
107 | ||
108 | # Directory containing the default index for refer. | |
109 | indexdir=/usr/share/dict/papers | |
110 | ||
111 | # The filename (without suffix) of the default index for refer. | |
112 | indexname=Ind | |
113 | ||
114 | # common_words_file is a file containing a list of common words. | |
115 | # If your system provides /usr/lib/eign it will be copied onto this, | |
116 | # otherwise the supplied eign file will be used. | |
117 | common_words_file=$(datasubdir)/misc/eign | |
118 | ||
119 | # manroot is the root of the man page directory tree. | |
120 | manroot=$(prefix)/share/man | |
121 | ||
122 | # bsd installs the cat'able pages | |
123 | # man1ext is the man section for user commands. | |
124 | man1ext=1 | |
125 | cat1dir=$(manroot)/cat$(man1ext) | |
126 | ||
127 | # man5ext is the man section for file formats. | |
128 | man5ext=5 | |
129 | cat5dir=$(manroot)/cat$(man5ext) | |
130 | ||
131 | # man7ext is the man section for macros. | |
132 | man7ext=7 | |
133 | cat7dir=$(manroot)/cat$(man7ext) | |
134 | ||
135 | ## manroot is the root of the man page directory tree. | |
136 | #manroot=$(prefix)/share/man | |
137 | # | |
138 | ## man1ext is the man section for user commands. | |
139 | #man1ext=1 | |
140 | man1dir=$(manroot)/man$(man1ext) | |
141 | # | |
142 | ## man5ext is the man section for file formats. | |
143 | #man5ext=5 | |
144 | man5dir=$(manroot)/man$(man5ext) | |
145 | # | |
146 | ## man7ext is the man section for macros. | |
147 | #man7ext=7 | |
148 | man7dir=$(manroot)/man$(man7ext) | |
149 | ||
150 | # DEFINES should include the following: | |
151 | # -DHAVE_MMAP if you have mmap() and <sys/mman.h> | |
152 | # -DCFRONT_ANSI_BUG if you're using cfront 2.0 (or later?) with | |
153 | # an ANSI C compiler | |
154 | # -DCOOKIE_BUG if you're using gcc/g++ 2.[012] (you should | |
155 | # upgrade to 2.3). | |
156 | # -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []' | |
157 | # -DHAVE_SYS_SIGLIST if you have sys_siglist[] | |
158 | # -DWCOREFLAG=0200 if the 0200 bit of the status returned by | |
159 | # wait() indicates whether a core image was | |
160 | # produced for a process that was terminated | |
161 | # by a signal | |
162 | # -DHAVE_UNISTD_H if you have <unistd.h> | |
163 | # -DHAVE_CC_UNISTD_H if you have a C++ <unistd.h> | |
164 | # -DHAVE_DIRENT_H if you have <dirent.h> | |
165 | # -DHAVE_LIMITS_H if you have <limits.h> | |
166 | # -DHAVE_CC_LIMITS_H if you have a C++ <limits.h> | |
167 | # -DHAVE_SYS_DIR_H if you have <sys/dir.h> | |
168 | # -DHAVE_STDLIB_H if you have <stdlib.h> | |
169 | # -DHAVE_VFORK_H if you have <vfork.h> | |
170 | # -Dvfork=fork if you don't have a working vfork() | |
171 | # -DHAVE_RENAME if you have rename() | |
172 | # -DHAVE_MKSTEMP if you have mkstemp() | |
173 | # -DSTDLIB_H_DECLARES_GETOPT if your C++ <stdlib.h> declares getopt() | |
174 | # -DUNISTD_H_DECLARES_GETOPT if your C++ <unistd.h> declares getopt() | |
175 | # -DSTDLIB_H_DECLARES_PUTENV if your C++ <stdlib.h> declares putenv() | |
176 | # -DTRADITIONAL_CPP if your C++ compiler uses a traditional | |
177 | # (Reiser) preprocessor. | |
178 | # -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t * | |
179 | # -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception | |
180 | # -DRETSIGTYPE=int if signal handlers return int not void | |
181 | DEFINES= -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STDLIB_H=1 -DHAVE_CC_LIMITS_H=1 -DHAVE_CC_UNISTD_H=1 -DSTDLIB_H_DECLARES_GETOPT=1 -DUNISTD_H_DECLARES_GETOPT=1 -DSTDLIB_H_DECLARES_PUTENV=1 -DRETSIGTYPE=void -DHAVE_MMAP=1 -DHAVE_RENAME=1 -DHAVE_MKSTEMP=1 -DHAVE_SYS_SIGLIST=1 | |
182 | ||
183 | # Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o in LIBOBJS if | |
184 | # your C library is missing the corresponding function. | |
185 | LIBOBJS= | |
186 | ||
187 | # CCC is the compiler for C++ (.cc) files. | |
188 | CCC=gcc | |
189 | CC=gcc | |
190 | # CCDEFINES are definitions for C++ compilations. | |
191 | CCDEFINES=$(DEFINES) | |
192 | # CDEFINES are definitions for C compilations. | |
193 | CDEFINES=$(DEFINES) | |
194 | ||
195 | DEBUG= | |
196 | OPTIMIZE=-O | |
197 | CCFLAGS=$(DEBUG) $(OPTIMIZE) | |
198 | CFLAGS=$(DEBUG) $(OPTIMIZE) | |
199 | YACC=yacc | |
200 | YACCFLAGS=-v | |
201 | ||
202 | LIBS= | |
203 | CCLIBS= | |
204 | RANLIB=ranlib | |
205 | INSTALL=/usr/bin/install -c | |
206 | INSTALL_PROGRAM=$(INSTALL) | |
207 | INSTALL_DATA=$(INSTALL) -m 644 | |
208 | LN_S=ln -s | |
209 | AR=ar | |
210 | ETAGS=etags | |
211 | ETAGSFLAGS= | |
212 | # Flag that tells etags to assume C++. | |
213 | ETAGSCCFLAG= | |
214 | # Full path to perl. | |
215 | PERLPATH=/usr/bin/perl | |
216 | # Sed command with which to edit sh scripts. | |
217 | SH_SCRIPT_SED_CMD= | |
218 | srcdir = . | |
219 | VPATH = . | |
220 | ||
221 | PURIFY=purify | |
222 | GCCVERSION=2.3.3 | |
223 | GCCPREFIX=/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/$(GCCVERSION)/ | |
224 | PURIFYCCFLAGS=-g++=yes -collector=$(GCCPREFIX)ld | |
225 | ||
226 | MDEFINES="PAGE=$(PAGE)" "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \ | |
227 | "DEVICE=$(DEVICE)" "PSPRINT=$(PSPRINT)" "DVIPRINT=$(DVIPRINT)" \ | |
228 | "prefix=$(prefix)" "exec_prefix=$(exec_prefix)" "bindir=$(bindir)" \ | |
229 | "g=$(g)" "datadir=$(datadir)" "datasubdir=$(datasubdir)" \ | |
230 | "fontdir=$(fontdir)" "fontpath=$(fontpath)" \ | |
231 | "tmacdir=$(tmacdir)" "tmacpath=$(tmacpath)" \ | |
232 | "indexext=$(indexext)" "indexdir=$(indexdir)" \ | |
233 | "indexname=$(indexname)" "common_words_file=$(common_words_file)" \ | |
234 | "manroot=$(manroot)" "man1ext=$(man1ext)" "man1dir=$(man1dir)" \ | |
235 | "man5ext=$(man5ext)" "man5dir=$(man5dir)" \ | |
236 | "man7ext=$(man7ext)" "man7dir=$(man7dir)" \ | |
237 | "man1ext=$(man1ext)" "cat1dir=$(cat1dir)" \ | |
238 | "man5ext=$(man5ext)" "cat5dir=$(cat5dir)" \ | |
239 | "man7ext=$(man7ext)" "cat7dir=$(cat7dir)" \ | |
240 | "tmac_s=$(tmac_s)" "tmac_m=$(tmac_m)" \ | |
241 | "CCC=$(CCC)" "CC=$(CC)" "CCDEFINES=$(CCDEFINES)" "CDEFINES=$(CDEFINES)" \ | |
242 | "CCFLAGS=$(CCFLAGS)" "CFLAGS=$(CFLAGS)" \ | |
243 | "YACC=$(YACC)" "YACCFLAGS=$(YACCFLAGS)" \ | |
244 | "LIBS=$(LIBS)" "CCLIBS=$(CCLIBS)" "LIBOBJS=$(LIBOBJS)" \ | |
245 | "RANLIB=$(RANLIB)" "AR=$(AR)" \ | |
246 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" "INSTALL_DATA=$(INSTALL_DATA)" \ | |
247 | "ETAGS=$(ETAGS)" "ETAGSFLAGS=$(ETAGSFLAGS)" "ETAGSCCFLAG=$(ETAGSCCFLAG)" \ | |
248 | "PERLPATH=$(PERLPATH)" "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \ | |
249 | "PURIFY=$(PURIFY)" "PURIFYCCFLAGS=$(PURIFYCCFLAGS)" | |
250 | ||
251 | SHELL=/bin/sh | |
252 | INCDIRS=include | |
253 | LIBDIRS=libgroff libdriver libbib | |
254 | CCPROGDIRS=groff troff tbl pic eqn grops grotty grodvi tfmtodit \ | |
255 | refer lookbib indxbib lkbib soelim addftinfo | |
256 | CPROGDIRS=pfbtops psbb | |
257 | PROGDIRS=$(CCPROGDIRS) $(CPROGDIRS) | |
258 | DEVDIRS=devps devdvi devascii devlatin1 devX75 devX75-12 devX100 devX100-12 | |
259 | OTHERDIRS=man tmac afmtodit grog nroff mm | |
260 | ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDIRS) | |
261 | EXTRADIRS=devps/generate devdvi/generate xditview doc | |
262 | DISTDIRS=$(ALLDIRS) $(EXTRADIRS) | |
263 | TARGETS=all install install_bin install_data clean distclean mostlyclean \ | |
264 | realclean extraclean distfiles TAGS depend uninstall_sub | |
265 | ||
266 | do=all | |
267 | dodirs=$(ALLDIRS) dot | |
268 | # Default target for subdir_Makefile | |
269 | subdir=troff | |
270 | ||
271 | ||
272 | $(TARGETS): | |
273 | @$(MAKE) $(MDEFINES) do=$@ $(dodirs) | |
274 | ||
275 | dot: FORCE | |
276 | @$(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \ | |
277 | -f $(srcdir)/Makefile.comm -f $(srcdir)/Makefile.sub $(do) | |
278 | ||
279 | $(LIBDIRS): FORCE | |
280 | @if test $(srcdir) = .; \ | |
281 | then srcdir=.; \ | |
282 | else srcdir=`cd $(srcdir); pwd`/$@; \ | |
283 | fi; \ | |
284 | echo Making $(do) in $@; \ | |
285 | test -d $@ || mkdir $@; \ | |
286 | cd $@; \ | |
287 | $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \ | |
288 | -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \ | |
289 | -f $$srcdir/../Makefile.lib -f $$srcdir/Makefile.dep $(do) | |
290 | ||
291 | $(CPROGDIRS): FORCE | |
292 | @if test $(srcdir) = .; \ | |
293 | then srcdir=.; \ | |
294 | else srcdir=`cd $(srcdir); pwd`/$@; \ | |
295 | fi; \ | |
296 | echo Making $(do) in $@; \ | |
297 | test -d $@ || mkdir $@; \ | |
298 | cd $@; \ | |
299 | $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \ | |
300 | -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \ | |
301 | -f $$srcdir/../Makefile.cpg -f $$srcdir/Makefile.dep $(do) | |
302 | ||
303 | $(CCPROGDIRS): FORCE | |
304 | @if test $(srcdir) = .; \ | |
305 | then srcdir=.; \ | |
306 | else srcdir=`cd $(srcdir); pwd`/$@; \ | |
307 | fi; \ | |
308 | echo Making $(do) in $@; \ | |
309 | test -d $@ || mkdir $@; \ | |
310 | cd $@; \ | |
311 | $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \ | |
312 | -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \ | |
313 | -f $$srcdir/../Makefile.ccpg -f $$srcdir/Makefile.dep $(do) | |
314 | ||
315 | $(DEVDIRS): FORCE | |
316 | @if test $(srcdir) = .; \ | |
317 | then srcdir=.; \ | |
318 | else srcdir=`cd $(srcdir); pwd`/$@; \ | |
319 | fi; \ | |
320 | echo Making $(do) in $@; \ | |
321 | test -d $@ || mkdir $@; \ | |
322 | cd $@; \ | |
323 | $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \ | |
324 | -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \ | |
325 | -f $$srcdir/../Makefile.dev $(do) | |
326 | ||
327 | $(INCDIRS) $(OTHERDIRS): FORCE | |
328 | @if test $(srcdir) = .; \ | |
329 | then srcdir=.; \ | |
330 | else srcdir=`cd $(srcdir); pwd`/$@; \ | |
331 | fi; \ | |
332 | echo Making $(do) in $@; \ | |
333 | test -d $@ || mkdir $@; \ | |
334 | cd $@; \ | |
335 | $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \ | |
336 | -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \ | |
337 | -f $$srcdir/../Makefile.man $(do) | |
338 | ||
339 | version=`cat $(srcdir)/VERSION` | |
340 | ||
341 | .PHONY: dist | |
342 | dist: | |
343 | -rm -fr tmp | |
344 | mkdir tmp | |
345 | for d in $(DISTDIRS); do \ | |
346 | mkdir tmp/$$d; \ | |
347 | done | |
348 | srcdir=`cd $(srcdir); pwd`; \ | |
349 | cd tmp; \ | |
350 | $(LN_S) ../Makefile .; \ | |
351 | $(LN_S) $$srcdir/* . 2>/dev/null || true; \ | |
352 | for d in $(DISTDIRS); do \ | |
353 | (cd $$d; $(LN_S) $$srcdir/$$d/* . 2>/dev/null || true); \ | |
354 | done; \ | |
355 | $(MAKE) srcdir=$$srcdir VPATH=$$srcdir extraclean; \ | |
356 | for d in $(EXTRADIRS); do \ | |
357 | (cd $$d; $(MAKE) extraclean); \ | |
358 | done; \ | |
359 | rm -f Makefile; \ | |
360 | $(LN_S) $$srcdir/Makefile.init Makefile | |
361 | mv tmp groff-$(version) | |
362 | tar cfh - groff-$(version) | gzip -c >groff-$(version).tar.z | |
363 | rm -fr groff-$(version) | |
364 | ||
365 | # $(PROGDIRS): libgroff | |
366 | # grops grotty grodvi: libdriver | |
367 | # refer lookbib indxbib lkbib: libbib | |
368 | # $(LIBDIRS) $(PROGDIRS): include | |
369 | ||
370 | .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE | |
371 | ||
372 | subdir_Makefile: Makefile.cfg | |
373 | $(MAKE) do=Makefile $(subdir) | |
374 | ||
375 | Makefile.cfg: Makefile | |
376 | >Makefile.cfg | |
377 | for var in $(MDEFINES); do \ | |
378 | echo "$$var" >>Makefile.cfg; \ | |
379 | done | |
380 | ||
381 | depend: srcdir_must_be_dot | |
382 | ||
383 | .PHONY: srcdir_must_be_dot | |
384 | srcdir_must_be_dot: | |
385 | @test "X$(srcdir)" = "X." \ | |
386 | || (echo This target can only be made in the source directory; \ | |
387 | exit 1) | |
388 | ||
389 | Makefile: Makefile.in | |
390 | $(SHELL) config.status | |
391 | ||
392 | .PHONY: uninstall | |
393 | uninstall: uninstall_sub uninstall_dirs | |
394 | ||
395 | .PHONY: uninstall_dirs | |
396 | uninstall_dirs: | |
397 | # Use rmdir here so that the directories are only removed if they're empty | |
398 | -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \ | |
399 | $(tmacdir) $(fontdir) $(bindir) $(datasubdir) $(datadir) | |
400 | ||
401 | ||
402 | .PHONY: check | |
403 | check: | |
404 | ||
405 | FORCE: | |
406 | ||
407 | .NOEXPORT: |