home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / PRINTING / DVIPS54.ZIP / DVIPS / MAKEFILE < prev    next >
Text File  |  1990-11-25  |  6KB  |  203 lines

  1. #
  2. #   Makefile for dvips
  3. #
  4.  
  5. # If you are compiling dvips for suid or other privileges, you will
  6. # definitely want to define the following symbol; else don't.
  7. # SECURE = -DSECURE
  8.  
  9. # If you want EMTEX specials, define the following.
  10. EMTEX = -DEMTEX
  11.  
  12. # for SYSV (and friends which use <string.h> instead of <strings.h>
  13. # define the c-compiler flag
  14. # add -D_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
  15. # for subdir searching)
  16. # SYS = -DSYSV
  17.  
  18. # where the installed binary goes
  19. # BINDIR = /usr/bin
  20. BINDIR = /usr/bin
  21.  
  22. # where the TFM files go
  23. # TFMDIR = /usr/lib/tex/fonts/tfm
  24. TFMDIR = /usr/lib/tex/fonts/tfm
  25.  
  26. # the default path to search for TFM files 
  27. # (this usually is identical to TeX's defaultfontpath, which omits `.')
  28. # (private fonts are given an explicit directory, which overrides the path)
  29. # TFMPATH = /LocalLibrary/Fonts/TeXFonts/tfm:$(TFMDIR)
  30. TFMPATH = /LocalLibrary/Fonts/TeXFonts/tfm:$(TFMDIR)
  31.  
  32. # where the PK files go
  33. # PKDIR = /usr/lib/tex/fonts/pk
  34. PKDIR = /usr/lib/tex/fonts/pk
  35.  
  36. # the default path to search for PK files (usually omits `.')
  37. # PKPATH = /LocalLibrary/Fonts/TeXFonts/pk:$(PKDIR)
  38. PKPATH = /LocalLibrary/Fonts/TeXFonts/pk:$(PKDIR)
  39.  
  40. # where the VF files go
  41. # VFDIR = /usr/lib/tex/fonts/vf
  42. VFDIR = /usr/lib/tex/fonts/vf
  43.  
  44. # the default path to search for VF files (usually omits `.')
  45. # VFPATH = /LocalLibrary/Fonts/TeXFonts/vf:$(VFDIR)
  46. VFPATH = /LocalLibrary/Fonts/TeXFonts/vf:$(VFDIR)
  47.  
  48. # additional directories in which to search for subdirectories to find
  49. # both tfm and pk files
  50. FONTSUBDIRPATH = 
  51.  
  52. # where the config files go
  53. # CONFIGDIR = /usr/lib/tex/ps
  54. CONFIGDIR = /usr/lib/tex/ps
  55.  
  56. # the default path to search for config files
  57. # CONFIGPATH = .:$(CONFIGDIR)
  58. CONFIGPATH = .:$(CONFIGDIR)
  59.  
  60. # the name of your config file
  61. # CONFIGFILE = config.ps
  62. CONFIGFILE = config.ps
  63.  
  64. # where the header PS files go
  65. # HEADERDIR = /usr/lib/tex/ps
  66. HEADERDIR = /usr/lib/tex/ps
  67.  
  68. # the default path to search for header files
  69. # HEADERPATH = .:$(HEADERDIR)
  70. HEADERPATH = .:$(HEADERDIR)
  71.  
  72. # where epsf.tex and rotate.tex go (usually the TeX macros directory)
  73. # TEXMACRODIR = /usr/lib/tex/inputs
  74. TEXMACRODIR = /usr/lib/tex/inputs
  75.  
  76. # the default path to search for epsf and psfiles
  77. # (usually the same as TeX's defaultinputpath)
  78. # FIGPATH = .:..:/usr/lib/tex/inputs
  79. FIGPATH = .:..:/usr/lib/tex/inputs
  80.  
  81. # where the manual page goes
  82. # MANDIR = /usr/local/text/man/man1
  83. MANEXT = 1
  84. MANDIR = /usr/local/text/man/man$(MANEXT)
  85.  
  86. # add -DDEBUG to turn on debugging capability
  87. # add -DTPIC for tpic support
  88. # if the default resolution is not 300 dpi,
  89. # add -DDEFRES=400 or whatever is required
  90. # add -DFONTLIB to search font libraries
  91. # add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
  92. # add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
  93. DEFS= -DTPIC -DDEBUG -DDEFRES=400
  94.  
  95. # either use
  96. # OPT = -g -Wall
  97. # or
  98. OPT = -O -s -Wall
  99.  
  100. # libraries to include (-lm -lc on most systems)
  101. #FLIBS= -lNeXT_s -lsys_s
  102. FLIBS= -lNeXT_s -lsys_s
  103.  
  104. PATHS = -DTFMPATH=\"$(TFMPATH)\" \
  105.     -DPKPATH=\"$(PKPATH)\" \
  106.     -DVFPATH=\"$(VFPATH)\" \
  107.     -DHEADERPATH=\"$(HEADERPATH)\" \
  108.     -DCONFIGPATH=\"$(CONFIGPATH)\" \
  109.         -DCONFIGFILE=\"$(CONFIGFILE)\" \
  110.     -DFONTSUBDIRPATH=\"$(FONTSUBDIRPATH)\" \
  111.     -DFIGPATH=\"$(FIGPATH)\"
  112.  
  113. CFLAGS = $(DEFS) $(PATHS) $(OPT) $(SYS) $(SECURE) $(EMTEX)
  114.  
  115. SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
  116.     download.c prescan.c scanpage.c skippage.c output.c scalewidth.c \
  117.     dosection.c dopage.c resident.c search.c unpack.c drawPS.c \
  118.     header.c makefont.c repack.c virtualfont.c dpicheck.c finclude.c \
  119.     flib.c
  120.  
  121. OBJ = dospecial.o dviinput.o fontdef.o loadfont.o dvips.o tfmload.o \
  122.     download.o prescan.o scanpage.o skippage.o output.o scalewidth.o \
  123.     dosection.o dopage.o resident.o search.o unpack.o drawPS.o \
  124.     header.o makefont.o repack.o virtualfont.o dpicheck.o finclude.o \
  125.     flib.o
  126.  
  127. # files required to make a distribution
  128. CONFIGFILES = config.ps psfonts.map
  129. HEADERFILES = tex.lpro texc.script texps.lpro special.lpro finclude.lpro
  130. FILES = $(CONFIGFILES) $(HEADERFILES) $(SRC) \
  131.     Makefile INSTALLATION README rotsample.tex AGaramond-Demo.pfb \
  132.     MakeTeXPK ../afm/Makefile epsf.tex epsf.sty rotate.tex rotate.sty \
  133.         dvips.1 paths.h debug.h structures.h squeeze.c afm2tfm.c afm2tfm.1
  134.  
  135. all : afm2tfm dvips tex.pro texps.pro texc.pro special.pro finclude.pro
  136.  
  137. dvips : $(OBJ)
  138.     $(CC) $(CFLAGS) $(OBJ) $(LIBS) $(FLIBS) -o dvips
  139.  
  140. afm2tfm: afm2tfm.c
  141.     $(CC) $(CFLAGS) -o afm2tfm afm2tfm.c $(LIBS) $(FLIBS)
  142.  
  143. $(OBJ) : structures.h debug.h Makefile
  144. flib.o resident.o dvips.o loadfont.o tfmload.o : paths.h
  145.  
  146. squeeze : squeeze.o
  147.     $(CC) $(CFLAGS) squeeze.o -o squeeze $(LIBS) $(FLIBS)
  148.  
  149. tex.pro : tex.lpro squeeze
  150.     ./squeeze <tex.lpro > tex.pro
  151.  
  152. texc.pro: texc.lpro squeeze
  153.     ./squeeze <texc.lpro >texc.pro
  154.  
  155. texc.lpro: texc.script tex.lpro
  156.     ./texc.script tex.lpro texc.lpro
  157.  
  158. texps.pro : texps.lpro squeeze
  159.     ./squeeze <texps.lpro >texps.pro
  160.  
  161. special.pro : special.lpro squeeze
  162.     ./squeeze <special.lpro >special.pro
  163.  
  164. finclude.pro : finclude.lpro squeeze
  165.     ./squeeze <finclude.lpro >finclude.pro
  166.  
  167. install : afm2tfm dvips MakeTeXPK \
  168.     tex.pro texc.pro texps.pro special.pro finclude.pro \
  169.     config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
  170.     dvips.1 afm2tfm.1
  171.     - mkdir $(BINDIR)
  172.     - mkdir $(HEADERDIR)
  173.     - mkdir $(CONFIGDIR)
  174.     - mkdir $(MANDIR)
  175.     - mkdir $(TEXMACRODIR)
  176.     install -c -m 755 afm2tfm $(BINDIR)/afm2tfm
  177.     install -c -m 755 dvips $(BINDIR)/dvips
  178.     install -c -m 755 MakeTeXPK $(BINDIR)/MakeTeXPK
  179.     install -c -m 644 tex.pro $(HEADERDIR)
  180.     install -c -m 644 texc.pro $(HEADERDIR)
  181.     install -c -m 644 texps.pro $(HEADERDIR)
  182.     install -c -m 644 special.pro $(HEADERDIR)
  183.     install -c -m 644 finclude.pro $(HEADERDIR)
  184.     install -c -m 644 config.ps $(CONFIGDIR)/$(CONFIGFILE)
  185.     install -c -m 644 psfonts.map $(CONFIGDIR)
  186.     install -c -m 644 epsf.tex $(TEXMACRODIR)
  187.     install -c -m 644 epsf.sty $(TEXMACRODIR)
  188.     install -c -m 644 rotate.tex $(TEXMACRODIR)
  189.     install -c -m 644 rotate.sty $(TEXMACRODIR)
  190.     -install -c -m 644 dvips.1 $(MANDIR)/dvips.$(MANEXT)
  191.     -install -c -m 644 afm2tfm.1 $(MANDIR)/afm2tfm.$(MANEXT)
  192.  
  193. veryclean :
  194.     rm -f *.o dvips squeeze afm2tfm texc.lpro *.pro *~ *.log *.dvi
  195.  
  196. clean :
  197.     rm -f *.o squeeze afm2tfm *~ *.log *.dvi
  198.  
  199. lint :
  200.     lint $(DEFS) $(PATHS) $(SRC)
  201.     lint $(DEFS) squeeze.c
  202.     lint $(DEFS) afm2tfm.c
  203.