home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / bbs / programs / amiga / pastex13.lha / DVIPS / dvips5519.lha / dvips / pc / makefile.wat < prev    next >
Makefile  |  1993-01-27  |  10KB  |  309 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.  
  6. # modified for Borland MAKE 3.0 and Watcom 386 9.01 on MS-DOS
  7. # by js@rphnw3.ngate.uni-regensburg.de
  8. # 18th November 1992
  9. # This version of dvips HAS NOT BEEN THOROUGHLY TESTED
  10.  
  11. # All DIRs must use \\ as a directory separator.
  12. # All PATHs must use \\\\ as a directory separator
  13.  
  14. # the default path to search for TFM files
  15. # (this usually is identical to TeX's defaultfontpath, which omits `.')
  16. # (private fonts are given an explicit directory, which overrides the path)
  17. #   overridden by the environment variable TEXFONTS
  18. # TFMPATH = c:\\emtex\\tfm
  19. TFMPATH = c:\\\\emtex\\\\tfm
  20.  
  21. # the default path to search for PK files (usually omits `.')
  22. # Don't forget to add the directory that
  23. # MakeTeXPK puts the files!  (In this case, /LocalLibrary/Fonts...)
  24. #   overridden by the environment variable TEXPKS or TEXPACKED or PKFONTS
  25. # PKPATH = c:\\texfonts\\pixel.lj\\%ddpi\\%f.%p
  26. PKPATH = c:\\\\texfonts\\\\pixel.lj\\\\%ddpi\\\\%f.%p
  27.  
  28. # the default path to search for VF files (usually omits `.')
  29. #   overridden by the environment variable VFFONTS
  30. # VFPATH = c:\\texfonts\\vf
  31. VFPATH = c:\\\\emtex\\\\vf
  32.  
  33. # additional directories in which to search for subdirectories to find
  34. # both tfm and pk files
  35. FONTSUBDIRPATH =
  36.  
  37. # where the config files go
  38. # CONFIGDIR = c:\emtex\ps
  39. CONFIGDIR = c:\\emtex\\ps
  40.  
  41. # the default path to search for config files
  42. #   overridden by the environment variable TEXCONFIG
  43. # CONFIGPATH = .;c:\\emtex\\ps
  44. CONFIGPATH = .;c:\\\\emtex\\\\ps
  45.  
  46. # the name of your config file
  47. # CONFIGFILE = config.ps
  48. CONFIGFILE = config.ps
  49.  
  50. # where the header PS files go
  51. # HEADERDIR = c:\emtex\ps
  52. HEADERDIR = c:\\emtex\\ps
  53.  
  54. # the default path to search for header files
  55. # HEADERPATH = .;c:\\emtex\\ps
  56. HEADERPATH = .;c:\\\\emtex\\\\ps
  57.  
  58. # where epsf.tex and rotate.tex go (usually the TeX macros directory)
  59. # TEXMACRODIR = c:\emtex\texinput
  60. TEXMACRODIR = c:\\emtex\\texinput
  61.  
  62. # the default path to search for epsf and psfiles
  63. # (usually the same as TeX's defaultinputpath)
  64. # FIGPATH = .;..;c:\\emtex\\texinput
  65. FIGPATH = .;..;c:\\\\emtex\\\\texinput
  66.  
  67. # the default path to search for emTeX font libraries
  68. # FLIPATH = c:\\texfonts
  69. FLIPATH = c:\\\\texfonts
  70.  
  71. # the names of emTeX font libraries
  72. # FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5a;lj_5b;lj_sli
  73. FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5;lj_sli
  74.  
  75. # change -DDEFRES=300 or whatever is required
  76. #    if the default resolution is not 300 dpi,
  77. # add -DDEBUG to turn on debugging capability
  78. # add -DTPIC for tpic support
  79. # add -DFONTLIB to search font libraries
  80. # add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
  81. # add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
  82. # add -DIBM6000 for compiling on IBM 6000 systems
  83. # add -DCREATIONDATE if your system has a working time() and you want dated files
  84. # (for VM/CMS, see the MKDVIPS.EXEC file in the vmcms subdirectory).
  85. #
  86. #   If you define FONTLIB, make sure to also give definitions to
  87. #   FLIPATH and FLINAME.
  88. #
  89. DEFS= -DTPIC -DDEBUG -DDEFRES=300 -DFONTLIB -DHAVE_GETCWD
  90.  
  91. # your compiler
  92. CC = wcl386
  93.  
  94. # either use
  95. # OPT = -g -Wall -funsigned-char
  96. # or
  97. # OPT = -O -s -Wall -funsigned-char
  98. OPT = /fpi/om/ox/p
  99.  
  100. # libraries to include (-lm -lc on most systems)
  101. #FLIBS= -lNeXT_s -lsys_s
  102. #FLIBS= -lm -lc
  103. FLIBS=
  104.  
  105. # If you are compiling dvips for suid or other privileges, you will
  106. # definitely want to define the following symbol; else don't.
  107. # SECURE = -DSECURE
  108. SECURE =
  109.  
  110. # If you want EMTEX specials, define the following.
  111. EMTEX = -DEMTEX
  112.  
  113. # for SYSV (and friends which use <string.h> instead of <strings.h>)
  114. # define the c-compiler flag
  115. # add -D_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
  116. # for subdir searching)
  117. # add -DMSDOS for MS-DOS systems
  118. # add -DDJGPP for MS-DOS GNU's
  119. SYS = -DMSDOS -DDJGPP
  120.  
  121.  
  122. # where the installed binary goes
  123. # BINDIR = c:\emtex
  124. BINDIR = c:\emtex
  125.  
  126. # where the manual page goes
  127. # MANDIR = c:\emtex\doc
  128. MANDIR = c:\emtex\doc
  129.  
  130. PATHS = -DTFMPATH=\"$(TFMPATH)\" \
  131.         -DPKPATH=\"$(PKPATH)\" \
  132.         -DVFPATH=\"$(VFPATH)\" \
  133.         -DHEADERPATH=\"$(HEADERPATH)\" \
  134.         -DCONFIGPATH=\"$(CONFIGPATH)\" \
  135.         -DCONFIGFILE=\"$(CONFIGFILE)\" \
  136.         -DFONTSUBDIRPATH=\"$(FONTSUBDIRPATH)\" \
  137.         -DFIGPATH=\"$(FIGPATH)\" \
  138.         -DFLIPATH=\"$(FLIPATH)\" \
  139.         -DFLINAME=\"$(FLINAME)\"
  140.  
  141. CFLAGS = $(DEFS) $(OPT) $(SYS) $(SECURE) $(EMTEX)
  142.  
  143. # default rules
  144. .c.obj:
  145.         $(CC) -c $(CFLAGS) $<
  146.  
  147. SRC = dospecia.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
  148.         download.c prescan.c scanpage.c skippage.c output.c scalewid.c \
  149.         dosectio.c dopage.c resident.c search.c unpack.c drawPS.c \
  150.         header.c makefont.c repack.c virtualf.c dpicheck.c finclude.c \
  151.         pprescan.c papersiz.c flib.c color.c bbox.c emspecial.c
  152.  
  153. OBJ = dospecia.obj dviinput.obj fontdef.obj loadfont.obj dvips.obj \
  154.         tfmload.obj download.obj prescan.obj scanpage.obj skippage.obj \
  155.         output.obj scalewid.obj dosectio.obj dopage.obj resident.obj \
  156.         search.obj unpack.obj drawPS.obj header.obj makefont.obj repack.obj \
  157.         virtualf.obj dpicheck.obj finclude.obj \
  158.         pprescan.obj papersiz.obj flib.obj color.obj bbox.obj emspecial.obj
  159.  
  160. all : afm2tfm.exe dvips4gl.exe dvipsos2.exe tex.pro texps.pro texc.pro \
  161.    special.pro finclude.pro color.pro crop.pro
  162.  
  163. dvips4gl.exe: $(OBJ) wat.lnk
  164.         $(CC) /fe=$&.exe /l=dos4g @wat.lnk
  165.  
  166. dvipsos2.exe: $(OBJ) wat.lnk
  167.         $(CC) /fe=$&.exe /l=os2v2 @wat.lnk
  168.  
  169. wat.lnk: pc\makefile.wat
  170.         copy &&|
  171. FILE dospecia.obj
  172. FILE dviinput.obj
  173. FILE fontdef.obj
  174. FILE loadfont.obj
  175. FILE dvips.obj
  176. FILE tfmload.obj
  177. FILE download.obj
  178. FILE prescan.obj
  179. FILE scanpage.obj
  180. FILE skippage.obj
  181. FILE output.obj
  182. FILE scalewid.obj
  183. FILE dosectio.obj
  184. FILE dopage.obj
  185. FILE resident.obj
  186. FILE search.obj
  187. FILE unpack.obj
  188. FILE drawPS.obj
  189. FILE header.obj
  190. FILE makefont.obj
  191. FILE repack.obj
  192. FILE virtualf.obj
  193. FILE dpicheck.obj
  194. FILE finclude.obj
  195. FILE pprescan.obj
  196. FILE papersiz.obj
  197. FILE flib.obj
  198. FILE color.obj
  199. FILE bbox.obj
  200. FILE emspecial.obj
  201. | wat.lnk
  202.  
  203. # you have to add the hash sign by hand !
  204. win\wat.h:
  205.         echo define TFMPATH        \"$(TFMPATH)\"        >>win\wat.h
  206.         echo define PKPATH         \"$(PKPATH)\"         >>win\wat.h
  207.         echo define VFPATH         \"$(VFPATH)\"         >>win\wat.h
  208.         echo define HEADERPATH     \"$(HEADERPATH)\"     >>win\wat.h
  209.         echo define CONFIGPATH     \"$(CONFIGPATH)\"     >>win\wat.h
  210.         echo define CONFIGFILE     \"$(CONFIGFILE)\"     >>win\wat.h
  211.         echo define FONTSUBDIRPATH \"$(FONTSUBDIRPATH)\" >>win\wat.h
  212.         echo define FIGPATH        \"$(FIGPATH)\"        >>win\wat.h
  213.         echo define FLIPATH        \"$(FLIPATH)\"        >>win\wat.h
  214.         echo define FLINAME        \"$(FLINAME)\"        >>win\wat.h
  215.  
  216. dvips.obj: dvips.c
  217.         $(CC) $(CFLAGS) -c dvips.c /fi=win\wat.h
  218.  
  219. afm2tfm.exe: afm2tfm.c
  220.         $(CC) $(CFLAGS) afm2tfm.c $(LIBS) $(FLIBS)
  221.  
  222. #$(OBJ) : dvips.h debug.h paths.h
  223.  
  224. squeeze.exe : squeeze.c
  225.         $(CC) $(CFLAGS) squeeze.c $(LIBS) $(FLIBS)
  226.  
  227. tex.pro : tex.lpr squeeze.exe
  228.         squeeze tex.lpro  tex.pro
  229.  
  230. texc.pro: texc.lpr squeeze.exe
  231.         squeeze texc.lpro texc.pro
  232.  
  233. texc.lpr: tex.lpr
  234.         @echo This does "texc.scr tex.lpr texc.lpr" on Unix
  235.         @echo For MSDOS, copy tex.lpr to texc.lpr
  236.         @echo then edit texc.lpr to remove the code
  237.         @echo for uncompressed fonts, and uncomment the
  238.         @echo code for unpacking compressed fonts
  239.  
  240. texps.pro : texps.lpr squeeze.exe
  241.         squeeze texps.lpro texps.pro
  242.  
  243. special.pro : special.lpr squeeze.exe
  244.         squeeze special.lpr special.pro
  245.  
  246. finclude.pro: finclude.lpr squeeze.exe
  247.         squeeze finclude.lpr finclude.pro
  248.  
  249. color.pro: color.lpr squeeze.exe
  250.         squeeze color.lpr color.pro
  251.  
  252. crop.pro: crop.lpr squeeze.exe
  253.         squeeze crop.lpr crop.pro
  254.  
  255. install : afm2tfm.exe dvips$(DEST).exe pc/maketexp.bat \
  256.         tex.pro texc.pro texps.pro special.pro finclude.pro color.pro crop.pro \
  257.         pc/config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
  258.         dvips.tex dvipsmac.tex colordvi.sty colordvi.tex blackdvi.sty \
  259.         blackdvi.