home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / util / gnu / groff_src.lha / groff-1.10src / AMIGA_FILES / Makefile < prev    next >
Makefile  |  1995-12-09  |  14KB  |  401 lines

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