home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / GROFFSRC / SRC / MAKEFILE < prev    next >
Encoding:
Text File  |  1994-01-03  |  10.0 KB  |  292 lines

  1. # Generated manually for OS/2
  2. # This file is part of groff.
  3.  
  4. # Define `page' to be letter if your PostScript printer uses 8.5x11
  5. # paper (USA) and define it to be A4, if it uses A4 paper (rest of the
  6. # world).
  7. #PAGE=letter
  8. PAGE=A4
  9.  
  10. # Normally the Postscript driver, grops, produces output that conforms
  11. # to version 3.0 of the Adobe Document Structuring Conventions.
  12. # Unfortunately some spoolers and previewers can't handle such output.
  13. # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
  14. # make its output acceptable to such programs.  This variable controls
  15. # only the default behaviour of grops; the behaviour can be changed at
  16. # runtime by the grops -b option (and so by groff -P-b).
  17. # Use a value of 0 if your spoolers and previewers are able to handle
  18. # conforming PostScript correctly.
  19. # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
  20. # this is needed for early versions of TranScript that get confused by
  21. # anything between the %%EndProlog line and the first %%Page: comment.
  22. # Add 2 if lines in included files beginning with %! should be
  23. # stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
  24. # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
  25. # stripped out of included files; this is needed for spoolers that
  26. # don't understand the %%{Begin,End}Document comments. I suspect this
  27. # includes early versions of TranScript.
  28. # Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0
  29. # rather than %!PS-Adobe-3.0; this is needed when using Sun's Newsprint
  30. # with a printer that requires page reversal.
  31. BROKEN_SPOOLER_FLAGS=0
  32.  
  33. # DEVICE is the default device.
  34. DEVICE=ascii
  35.  
  36. # PSPRINT is the command to use for printing a PostScript file,
  37. # for example `lpr'.
  38. PSPRINT=printps
  39.  
  40. # DVIPRINT is the command to use for printing a TeX dvi file,
  41. # for example `lpr -d'.
  42. DVIPRINT=printdvi
  43.  
  44. # Prefix for names of programs that have Unix counterparts.
  45. # For example, if `g' is `g' then troff will be installed as
  46. # gtroff.  This doesn't affect programs like grops or groff that have
  47. # no Unix counterparts.  Note that the groff versions of eqn and tbl
  48. # will not work with Unix troff.  This is also use in the definitions
  49. # of tmac_s and tmac_m.
  50. g=
  51.  
  52. # The groff ms macros will be available as -m$(tmac_s).
  53. # If you use `tmac_s=s', you can use the Unix ms macros by using
  54. # groff -ms -M/usr/lib/tmac.
  55. tmac_s=s
  56.  
  57. # Similarily, the groff mm macros will be available as -m$(tmac_m).
  58. tmac_m=m
  59.  
  60. # Common prefix for installation directories.
  61. # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
  62. # This must already exist when you do make install.
  63. prefix=
  64.  
  65. exec_prefix=${prefix}
  66.  
  67. # bindir says where to install executables.
  68. bindir=$(exec_prefix)/bin
  69.  
  70. # datasubdir says where to install data files
  71. datadir=$(prefix)/lib
  72. datasubdir=$(datadir)/groff
  73.  
  74. # fontdir says where to install dev*/*.
  75. fontdir=$(datasubdir)/font
  76.  
  77. # fontpath says where to look for dev*/*.
  78. fontpath=.;$(fontdir);$(prefix)/lib/font
  79.  
  80. # tmacdir says where to install macros.
  81. tmacdir=$(datasubdir)/tmac
  82.  
  83. # tmacpath says where to look for macro files.
  84. tmacpath=.;$(tmacdir)
  85.  
  86. # Extension to be used for refer index files.  Index files are not
  87. # shareable between different architectures, so you might want to use
  88. # different suffixes for different architectures.  Choose an extension
  89. # that doesn't conflict with refer or any other indexing program.
  90. indexext=.i
  91.  
  92. # Directory containing the default index for refer.
  93. indexdir=$(datasubdir)/dict/papers
  94.  
  95. # The filename (without suffix) of the default index for refer.
  96. indexname=Ind
  97.  
  98. # common_words_file is a file containing a list of common words.
  99. # If your system provides /usr/lib/eign it will be copied onto this,
  100. # otherwise the supplied eign file will be used.
  101. common_words_file=$(datasubdir)/eign
  102.  
  103. # manroot is the root of the man page directory tree.
  104. manroot=$(prefix)/man
  105.  
  106. # man1ext is the man section for user commands.
  107. man1ext=1
  108. man1dir=$(manroot)/man$(man1ext)
  109.  
  110. # man5ext is the man section for file formats.
  111. man5ext=5
  112. man5dir=$(manroot)/man$(man5ext)
  113.  
  114. # man7ext is the man section for macros.
  115. man7ext=7
  116. man7dir=$(manroot)/man$(man7ext)
  117.  
  118. # DEFINES should include the following:
  119. # -DHAVE_MMAP            if you have mmap() and <sys/mman.h>
  120. # -DCFRONT_ANSI_BUG        if you're using cfront 2.0 (or later?) with
  121. #                an ANSI C compiler
  122. # -DCOOKIE_BUG            if you're using gcc/g++ 2.[012] (you should
  123. #                upgrade to 2.3).
  124. # -DARRAY_DELETE_NEEDS_SIZE    if your C++ doesn't understand `delete []'
  125. # -DHAVE_SYS_SIGLIST        if you have sys_siglist[]
  126. # -DWCOREFLAG=0200        if the 0200 bit of the status returned by
  127. #                wait() indicates whether a core image was
  128. #                produced for a process that was terminated
  129. #                by a signal
  130. # -DHAVE_UNISTD_H        if you have <unistd.h>
  131. # -DHAVE_CC_UNISTD_H        if you have a C++ <unistd.h>
  132. # -DHAVE_DIRENT_H        if you have <dirent.h>
  133. # -DHAVE_LIMITS_H        if you have <limits.h>
  134. # -DHAVE_CC_LIMITS_H        if you have a C++ <limits.h>
  135. # -DHAVE_SYS_DIR_H        if you have <sys/dir.h>
  136. # -DHAVE_STDLIB_H        if you have <stdlib.h>
  137. # -DHAVE_VFORK_H        if you have <vfork.h>
  138. # -Dvfork=fork            if you don't have a working vfork()
  139. # -DHAVE_RENAME            if you have rename()
  140. # -DHAVE_MKSTEMP        if you have mkstemp()
  141. # -DSTDLIB_H_DECLARES_GETOPT    if your C++ <stdlib.h> declares getopt()
  142. # -DUNISTD_H_DECLARES_GETOPT    if your C++ <unistd.h> declares getopt()
  143. # -DSTDLIB_H_DECLARES_PUTENV    if your C++ <stdlib.h> declares putenv()
  144. # -DTRADITIONAL_CPP        if your C++ compiler uses a traditional
  145. #                (Reiser) preprocessor.
  146. # -DLONG_FOR_TIME_T        if localtime() takes a long * not a time_t *
  147. # -DHAVE_STRUCT_EXCEPTION    if <math.h> defines struct exception
  148. # -DRETSIGTYPE=int        if signal handlers return int not void    
  149. DEFINES= -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 \
  150.     -DHAVE_SYS_DIR_H=1 -DHAVE_STDLIB_H=1 -DHAVE_CC_LIMITS_H=1 \
  151.     -DHAVE_CC_UNISTD_H=1 -DSTDLIB_H_DECLARES_PUTENV=1 -DRETSIGTYPE=void \
  152.     -DHAVE_RENAME=1
  153.  
  154. # Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o  in LIBOBJS if
  155. # your C library is missing the corresponding function.
  156. LIBOBJS=execpath.o
  157.  
  158. X=.exe
  159. O=.o
  160. A=.a
  161.  
  162. # CCC is the compiler for C++ (.cc) files.
  163. CC=gcc
  164. CCC=$(CC)
  165. # CCDEFINES are definitions for C++ compilations.
  166. CCDEFINES=$(DEFINES)
  167. # CDEFINES are definitions for C compilations.
  168. CDEFINES=$(DEFINES)
  169.  
  170. DEBUG=
  171. OPTIMIZE=-O
  172. CCFLAGS=$(DEBUG) $(OPTIMIZE)
  173. CFLAGS=$(DEBUG) $(OPTIMIZE)
  174. LDFLAGS=-s
  175. YACC=bison -y
  176. YACCFLAGS=-v
  177.  
  178. LIBS=
  179. CCLIBS=
  180. RANLIB=ar s
  181. INSTALL=install -c
  182. INSTALL_PROGRAM=$(INSTALL)
  183. INSTALL_DATA=$(INSTALL) -m 644
  184. AR=ar
  185. ETAGS=etags
  186. ETAGSFLAGS=
  187. # Flag that tells etags to assume C++.
  188. ETAGSCCFLAG=-C
  189. # Full path to perl.
  190. PERLPATH=perl
  191. # Sed command with which to edit sh scripts.
  192. SH_SCRIPT_SED_CMD=sed
  193.  
  194. srcdir=.
  195. MDEFINES="srcdir=$(srcdir)" "PAGE=$(PAGE)" "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
  196.   "DEVICE=$(DEVICE)" "PSPRINT=$(PSPRINT)" "DVIPRINT=$(DVIPRINT)" \
  197.   "prefix=$(prefix)" "exec_prefix=$(exec_prefix)" "bindir=$(bindir)" \
  198.   "g=$(g)" "datadir=$(datadir)" "datasubdir=$(datasubdir)" \
  199.   "fontdir=$(fontdir)" "fontpath=$(fontpath)" \
  200.   "tmacdir=$(tmacdir)" "tmacpath=$(tmacpath)" \
  201.   "indexext=$(indexext)" "indexdir=$(indexdir)" \
  202.   "indexname=$(indexname)" "common_words_file=$(common_words_file)" \
  203.   "manroot=$(manroot)" "man1ext=$(man1ext)" "man1dir=$(man1dir)" \
  204.   "man5ext=$(man5ext)" "man5dir=$(man5dir)" \
  205.   "man7ext=$(man7ext)" "man7dir=$(man7dir)" \
  206.   "tmac_s=$(tmac_s)" "tmac_m=$(tmac_m)" \
  207.   "CCC=$(CCC)" "CC=$(CC)" "CCDEFINES=$(CCDEFINES)" "CDEFINES=$(CDEFINES)" \
  208.   "CCFLAGS=$(CCFLAGS)" "CFLAGS=$(CFLAGS)" "X=$(X)" "O=$(O)" "A=$(A)"\
  209.   "LDFLAGS=$(LDFLAGS)" "YACC=$(YACC)" "YACCFLAGS=$(YACCFLAGS)" \
  210.   "LIBS=$(LIBS)" "CCLIBS=$(CCLIBS)" "LIBOBJS=$(LIBOBJS)" \
  211.   "RANLIB=$(RANLIB)" "AR=$(AR)" \
  212.   "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" "INSTALL_DATA=$(INSTALL_DATA)" \
  213.   "ETAGS=$(ETAGS)" "ETAGSFLAGS=$(ETAGSFLAGS)" "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
  214.   "PERLPATH=$(PERLPATH)" "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)"
  215.  
  216. #SHELL=sh
  217. INCDIRS=include
  218. LIBDIRS=libgroff libdriver libbib
  219. CCPROGDIRS=groff troff tbl pic eqn grops grotty grodvi tfmtodit \
  220.   refer lookbib indxbib lkbib soelim addftinfo
  221. CPROGDIRS=pfbtops psbb spooler
  222. PROGDIRS=$(CCPROGDIRS) $(CPROGDIRS)
  223. DEVDIRS=devps devdvi devascii devlatin1
  224. OTHERDIRS=man tmac afmtodit grog nroff mm
  225. ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDIRS)
  226. EXTRADIRS=devps/generate devdvi/generate xditview doc
  227. DISTDIRS=$(ALLDIRS) $(EXTRADIRS)
  228. TARGETS=all install install_bin install_data clean distclean mostlyclean \
  229.   realclean extraclean distfiles TAGS depend uninstall_sub
  230.  
  231. do=all
  232. #dodirs=$(ALLDIRS) dot
  233. dodirs=$(LIBDIRS) $(PROGDIRS)
  234.  
  235. $(TARGETS):
  236.     @$(MAKE) $(MDEFINES) do=$@ $(dodirs)
  237.  
  238. dot: FORCE
  239.     @$(MAKE) $(MDEFINES) -f Makefile.comm -f Makefile.sub $(do)
  240.     
  241. $(LIBDIRS): FORCE
  242.     echo Making $(do) in $@
  243.     @$(MAKE) -C $@ $(MDEFINES) \
  244.         -f ../Makefile.comm -f Makefile.sub \
  245.             -f ../Makefile.lib -f Makefile.dep $(do)
  246.  
  247. $(CPROGDIRS): FORCE
  248.     echo Making $(do) in $@
  249.     @$(MAKE) -C $@ $(MDEFINES) \
  250.         -f ../Makefile.comm -f Makefile.sub \
  251.             -f ../Makefile.cpg -f Makefile.dep $(do)
  252.  
  253. $(CCPROGDIRS): FORCE
  254.     echo Making $(do) in $@
  255.     @$(MAKE) -C $@ $(MDEFINES) \
  256.         -f ../Makefile.comm -f Makefile.sub \
  257.             -f ../Makefile.ccpg -f Makefile.dep $(do)
  258.  
  259. $(DEVDIRS): FORCE
  260.     echo Making $(do) in $@
  261.     @$(MAKE) -C $@ $(MDEFINES) \
  262.         -f ../Makefile.comm -f Makefile.sub -f ../Makefile.dev $(do)
  263.  
  264. $(INCDIRS) $(OTHERDIRS): FORCE
  265.     echo Making $(do) in $@
  266.     @$(MAKE) -C $@ $(MDEFINES) \
  267.         -f ../Makefile.comm -f Makefile.sub -f ../Makefile.man $(do)
  268.  
  269. # $(PROGDIRS): libgroff
  270. # grops grotty grodvi: libdriver
  271. # refer lookbib indxbib lkbib: libbib
  272. # $(LIBDIRS) $(PROGDIRS): include
  273.  
  274. .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
  275.  
  276. .PHONY: uninstall
  277. uninstall: uninstall_sub uninstall_dirs
  278.  
  279. .PHONY: uninstall_dirs
  280. uninstall_dirs:
  281. # Use rmdir here so that the directories are only removed if they're empty
  282.     -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
  283.       $(tmacdir) $(fontdir) $(bindir) $(datasubdir) $(datadir)
  284.  
  285.  
  286. .PHONY: check
  287. check:
  288.  
  289. FORCE:
  290.  
  291. .NOEXPORT:
  292.