home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / bbs / programs / amiga / pastex13.lha / DVIPS / dvips5519.lha / dvips / SMakefile.bak < prev    next >
Text File  |  1993-09-04  |  7KB  |  235 lines

  1. #
  2. #   Makefile for dvips.  Edit this first part of the file.
  3. #
  4. #   First, the things that absolutely must be edited for your system.
  5. #   Please, don't forget to edit MakeTeXPK in the same way!
  6.  
  7. # where TeX is `rooted'.  Sometimes /usr/local/lib/tex.
  8. # TEXDIR = /usr/lib/tex
  9. TEXDIR = TeX:
  10.  
  11. # another place pk, tfm, and vf files might be found.
  12. # LOCALDIR = /LocalLibrary/Fonts/TeXFonts
  13. LOCALDIR = CDTeX:
  14.  
  15. # the default path to search for TFM files 
  16. # (this usually is identical to TeX's defaultfontpath, which omits `.')
  17. # (private fonts are given an explicit directory, which overrides the path)
  18. #   overridden by the environment variable TEXFONTS
  19. # TFMPATH = $(LOCALDIR)/tfm:$(TEXDIR)/fonts/tfm
  20. TFMPATH = .,$(TEXDIR)fonts,$(LOCALDIR)fonts
  21.  
  22. # the default path to search for PK files (usually omits `.')
  23. # Don't forget to add the directory that
  24. # MakeTeXPK puts the files!  (In this case, /LocalLibrary/Fonts...)
  25. #   overridden by the environment variable TEXPKS or TEXPACKED or PKFONTS
  26. # PKPATH = $(LOCALDIR)/pk:$(TEXDIR)/fonts/pk
  27. PKPATH = .,$(TEXDIR)pk/300x300,$(LOCALDIR)pk/300x300
  28.  
  29. # the default path to search for VF files (usually omits `.')
  30. #   overridden by the environment variable VFFONTS
  31. # VFPATH = $(LOCALDIR)/vf:$(TEXDIR)/fonts/vf
  32. VFPATH = .,$(TEXDIR)vf,$(LOCALDIR)vf
  33.  
  34. # additional directories in which to search for subdirectories to find
  35. # both tfm and pk files
  36. FONTSUBDIRPATH = 
  37.  
  38. # where the config files go
  39. # CONFIGDIR = $(TEXDIR)/ps
  40. CONFIGDIR = $(TEXDIR)ps
  41.  
  42. # the default path to search for config files
  43. #   overridden by the environment variable TEXCONFIG
  44. # CONFIGPATH = .:$(CONFIGDIR)
  45. CONFIGPATH = .,$(CONFIGDIR)
  46.  
  47. # the name of your config file
  48. # CONFIGFILE = config.ps
  49. CONFIGFILE = config.ps
  50.  
  51. # where the header PS files go
  52. # HEADERDIR = $(TEXDIR)/ps
  53. HEADERDIR = $(TEXDIR)ps
  54.  
  55. # the default path to search for header files
  56. # HEADERPATH = .:$(HEADERDIR)
  57. HEADERPATH = .,$(HEADERDIR)
  58.  
  59. # where epsf.tex and rotate.tex go (usually the TeX macros directory)
  60. # TEXMACRODIR = $(TEXDIR)/inputs
  61. TEXMACRODIR = $(TEXDIR)macros
  62.  
  63. # the default path to search for epsf and psfiles
  64. # (usually the same as TeX's defaultinputpath)
  65. # FIGPATH = .:..:$(TEXDIR)/inputs
  66. FIGPATH = .,/,$(TEXDIR)macros
  67.  
  68. # the place man pages are located.
  69. MANDIR = $(TEXDIR)doc
  70.  
  71. # change -DDEFRES=300 or whatever is required
  72. #    if the default resolution is not 300 dpi,
  73. # add -DDEBUG to turn on debugging capability
  74. # add -DTPIC for tpic support
  75. # add -DFONTLIB to search font libraries
  76. # add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
  77. # add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
  78. # add -DIBM6000 for compiling on IBM 6000 systems
  79. # add -DCREATIONDATE if your system has a working time() and you want dated files
  80. # (for VM/CMS, see the MKDVIPS.EXEC file in the vmcms subdirectory).
  81. #
  82. #   If you define FONTLIB, make sure to also give definitions to
  83. #   FLIPATH and FLINAME.
  84. #
  85. #   If your compiler doesn't like void*, then add
  86. #      -DVOID=char
  87. #
  88. DEFS= DEF=TPIC DEF=DEBUG DEF=DEFRES=300 DEF=CREATIONDATE
  89.  
  90. # either use
  91. # OPT = -O -funsigned-char
  92. # or
  93. OPT = 
  94.  
  95. # libraries to include (-lm -lc on most systems)
  96. #FLIBS= -lNeXT_s -lsys_s
  97. FLIBS= lib:scm.lib lib:sc.lib
  98.  
  99. # If you are compiling dvips for suid or other privileges, you will
  100. # definitely want to define the following symbol; else don't.
  101. # SECURE = -DSECURE
  102.  
  103. # If you want EMTEX specials, define the following.
  104. EMTEX = DEF=EMTEX
  105.  
  106. # for SYSV (and friends which use <string.h> instead of <strings.h>)
  107. # define the c-compiler flag
  108. # add -D_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
  109. # for subdir searching)
  110. # SYS = -DSYSV
  111.  
  112. # Define this to be whatever you use for installation.  If you don't have
  113. # install, use a script that invokes copy and chmod's the files
  114. # appropriately.
  115. # INSTALL = install
  116. INSTALL = copy
  117.  
  118. # where the installed binary goes
  119. # BINDIR = /usr/bin
  120. BINDIR = $(TEXDIR)bin
  121.  
  122. PATHS = DEF=TFMPATH="$(TFMPATH)" \
  123.     DEF=PKPATH="$(PKPATH)" \
  124.     DEF=VFPATH="$(VFPATH)" \
  125.     DEF=HEADERPATH="$(HEADERPATH)" \
  126.     DEF=CONFIGPATH="$(CONFIGPATH)" \
  127.         DEF=CONFIGFILE="$(CONFIGFILE)" \
  128.     DEF=FONTSUBDIRPATH="$(FONTSUBDIRPATH)" \
  129.     DEF=FIGPATH="$(FIGPATH)"
  130.  
  131. CFLAGS = $(DEFS) $(OPT) $(SYS) $(SECURE) $(EMTEX) $(DEFPFMT)
  132.  
  133. SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
  134.     download.c prescan.c scanpage.c skippage.c output.c scalewidth.c \
  135.     dosection.c dopage.c resident.c search.c unpack.c drawPS.c \
  136.     header.c makefont.c repack.c virtualfont.c dpicheck.c finclude.c \
  137.     pprescan.c papersiz.c flib.c color.c bbox.c emspecial.c
  138.  
  139. OBJ = dospecial.o dviinput.o fontdef.o loadfont.o dvips.o tfmload.o \
  140.     download.o prescan.o scanpage.o skippage.o output.o scalewidth.o \
  141.     dosection.o dopage.o resident.o search.o unpack.o drawPS.o \
  142.     header.o makefont.o repack.o virtualfont.o dpicheck.o finclude.o \
  143.     pprescan.o papersiz.o flib.o color.o bbox.o emspecial.o
  144.  
  145. all : afm2tfm dvips tex.pro texps.pro texc.pro special.pro finclude.pro \
  146.       color.pro crop.pro
  147.  
  148. dvips : $(OBJ)
  149.     SC LINK PRGNAME=dvips $(OBJ)
  150. #    $(CC) $(CFLAGS) $(OBJ) $(LIBS) $(FLIBS) -o dvips
  151.  
  152. dvips.o: dvips.c
  153.     $(CC) $(CFLAGS) $(PATHS) dvips.c
  154.  
  155. afm2tfm: afm2tfm.c
  156.     SC LINK PRGNAME=afm2tfm afm2tfm.c
  157. #    $(CC) $(CFLAGS) -o afm2tfm afm2tfm.c $(LIBS) $(FLIBS)
  158.  
  159. $(OBJ) : dvips.h debug.h
  160. flib.o resident.o dvips.o loadfont.o tfmload.o : paths.h
  161.  
  162. squeeze : squeeze.o
  163.     SC LINK PRGNAME=squeeze squeeze.o
  164. #    $(CC) $(CFLAGS) squeeze.o -o squeeze $(LIBS) $(FLIBS)
  165.  
  166. tex.pro : tex.lpro squeeze
  167.     squeeze <tex.lpro > tex.pro
  168.  
  169. texc.pro: texc.lpro squeeze
  170.     squeeze <texc.lpro >texc.pro
  171.  
  172. texc.lpro: texc.script tex.lpro
  173.     echo sh texc.script tex.lpro texc.lpro
  174.  
  175. texps.pro : texps.lpro squeeze
  176.     squeeze <texps.lpro >texps.pro
  177.  
  178. special.pro : special.lpro squeeze
  179.     squeeze <special.lpro >special.pro
  180.  
  181. finclude.pro : finclude.lpro squeeze
  182.     squeeze <finclude.lpro >finclude.pro
  183.  
  184. color.pro : color.lpro squeeze
  185.     squeeze <color.lpro >color.pro
  186.  
  187. crop.pro : crop.lpro squeeze
  188.     squeeze <crop.lpro >crop.pro
  189.  
  190. install : afm2tfm dvips MakeTeXPK \
  191.     tex.pro texc.pro texps.pro special.pro finclude.pro color.pro \
  192.     crop.pro config.ps psfonts.map epsf.tex epsf.sty rotate.tex \
  193.     rotate.sty colordvi.tex colordvi.sty blackdvi.tex blackdvi.sty \
  194.     dvips.tex dvipsmac.tex dvips.1 afm2tfm.1
  195.     - mkdir $(BINDIR)
  196.     - mkdir $(CONFIGDIR)
  197.     - mkdir $(HEADERDIR)
  198.     - mkdir $(MANDIR)
  199.     - mkdir $(TEXMACRODIR)
  200.     $(INSTALL) afm2tfm $(BINDIR)/afm2tfm
  201.     $(INSTALL) dvips $(BINDIR)/dvips
  202.     $(INSTALL) MakeTeXPK $(BINDIR)/MakeTeXPK
  203.     $(INSTALL) tex.pro $(HEADERDIR)
  204.     $(INSTALL) texc.pro $(HEADERDIR)
  205.     $(INSTALL) texps.pro $(HEADERDIR)
  206.     $(INSTALL) special.pro $(HEADERDIR)
  207.     $(INSTALL) finclude.pro $(HEADERDIR)
  208.     $(INSTALL) color.pro $(HEADERDIR)
  209.     $(INSTALL) crop.pro $(HEADERDIR)
  210.     $(INSTALL) config.ps $(CONFIGDIR)/$(CONFIGFILE)
  211.     $(INSTALL) psfonts.map $(CONFIGDIR)
  212.     $(INSTALL) epsf.tex $(TEXMACRODIR)
  213.     $(INSTALL) epsf.sty $(TEXMACRODIR)
  214.     $(INSTALL) rotate.tex $(TEXMACRODIR)
  215.     $(INSTALL) rotate.sty $(TEXMACRODIR)
  216.     $(INSTALL) colordvi.sty $(TEXMACRODIR)
  217.     $(INSTALL) colordvi.tex $(TEXMACRODIR)
  218.     $(INSTALL) blackdvi.sty $(TEXMACRODIR)
  219.     $(INSTALL) blackdvi.tex $(TEXMACRODIR)
  220.     $(INSTALL) dvips.tex $(TEXMACRODIR)
  221.     $(INSTALL) dvipsmac.tex $(TEXMACRODIR)
  222.     - $(INSTALL) dvips.1 $(MANDIR)
  223.     - $(INSTALL) afm2tfm.1 $(MANDIR)
  224.  
  225. veryclean :
  226.     delete *.o dvips squeeze afm2tfm texc.lpro *.pro *~ *.log *.dvi
  227.  
  228. clean :
  229.     delete *.o squeeze afm2tfm *~ *.log *.dvi
  230.  
  231. lint :
  232.     lint $(DEFS) $(PATHS) $(SRC)
  233.     lint $(DEFS) squeeze.c
  234.     lint $(DEFS) afm2tfm.c
  235.