home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / PRINTING / DVIPS386.ZIP / MAKEFILE < prev    next >
Text File  |  1991-11-05  |  6KB  |  205 lines

  1. #
  2. #   Makefile for dvips
  3. #
  4. .SUFFIXES: .c .o 
  5.  
  6. # compiler 
  7. CC = c:/gpp/bin/gcc.exe
  8.  
  9. # for SYSV (and friends which use <string.h> instead of <strings.h>
  10. # define the c-compiler flag -DSYSV
  11. # -DMSDOS for MS-DOS systems (needs -DSYSV also)
  12. SYS = -DSYSV -DMSDOS
  13.  
  14. # where the installed binary goes
  15. #BINDIR = /usr/local/TeX
  16. #HDRFILE    =/usr/local/lib/ps
  17. #BINDIR = /ug/bin
  18. #HDRFILE    =/ug/lib/tex82
  19. BINDIR = c:\emtex
  20.  
  21. # where the config files go
  22. # CONFIGDIR = /usr/lib/tex/ps
  23. CONFIGDIR = c:\emtex\ps
  24.  
  25. # where the header PS files go
  26. # HEADERDIR = /usr/lib/tex/ps
  27. HEADERDIR = c:\emtex\ps
  28.  
  29. # where epsf.tex and rotate.tex go (usually the TeX macros directory)
  30. # TEXMACRODIR = /usr/lib/tex/inputs
  31. TEXMACRODIR = c:\emtex\texinput
  32.  
  33. # where the manual page goes
  34. # MANDIR = /usr/local/text/man/man1
  35. MANDIR = c:\emtex\doc
  36.  
  37. # see the file paths.h for the paths
  38.  
  39. # where the manual page goes
  40. #MANFILE = /usr/man/man1/dvips.1
  41.  
  42. # add -DDEBUG to turn on debugging capability
  43. # add -DTPIC for tpic support
  44. # add -DEMTEX for emTeX support
  45. # add -DFONTLIB for font library support
  46. # add -DSEARCH_SUBDIRECTORIES for subdirectory searching
  47. # if the default resolution is not 300 dpi,
  48. # add -DEFRES=400 or whatever is required
  49. DEFS= -DTPIC -DDEBUG -DEMTEX -DFONTLIB
  50.  
  51. #MSDOS sets all paths in config.ps
  52. CFLAGS = -v -m80387 -O $(DEFS) $(SYS)
  53.  
  54. SRC = dospecia.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
  55.     download.c prescan.c scanpage.c skippage.c output.c scalewid.c \
  56.     dosectio.c dopage.c resident.c search.c unpack.c drawPS.c \
  57.     header.c makefont.c repack.c virtualf.c dpicheck.c finclude.c flib.c
  58.  
  59. OBJ = dospecia.o dviinput.o fontdef.o loadfont.o dvips.o tfmload.o \
  60.     download.o prescan.o scanpage.o skippage.o output.o scalewid.o \
  61.     dosectio.o dopage.o resident.o search.o unpack.o drawPS.o \
  62.     header.o makefont.o repack.o virtualf.o dpicheck.o finclude.o \
  63.     flib.o
  64.  
  65. #PRO    = tex.pro texps.pro texps-scriptprinter.pro
  66.  
  67. #CFLAGS = -O $(DEFS)
  68.  
  69. # files required to make a distribution
  70. CONFIGFILES = config.ps psfonts.map
  71. HEADERFILES = tex.lpr texc.scr texps.lpr special.lpr finclude.lpr
  72. PCFILES = pc/README.pc pc/makefile \
  73.         pc/config.ps pc/maketexp.bat
  74. FILES = $(CONFIGFILES) $(HEADERFILES) $(SRC) $(PCFILES) \
  75.     Makefile INSTALLATION README rotsample.tex AGaramond-Demo.pfb \
  76.     MakeTeXPK ../afm/Makefile epsf.tex epsf.sty rotate.tex dvips.1 \
  77.     rotate.sty paths.h debug.h structures.h squeeze.c afm2tfm.c afm2tfm.1
  78.  
  79. # default rules
  80.  
  81. %.o : %.c
  82.     $(CC) -c  $(CFLAGS) $< -o $@
  83.  
  84. all : afm2tfm3.exe dvips386.exe tex.pro texps.pro texc.pro special.pro finclude.pro
  85.  
  86. #all : dvips $(PRO)
  87.  
  88. dvips386.exe : $(OBJ)
  89.     $(CC) @obj -lm -o dvips
  90.     aout2exe dvips 
  91.     ren dvips.exe dvips386.exe
  92.  
  93. afm2tfm3.exe : afm2tfm.c
  94.     $(CC) $(CFLAGS) afm2tfm.c -lm -o afm2tfm
  95.     aout2exe afm2tfm
  96.     ren afm2tfm.exe afm2tfm3.exe
  97.  
  98. $(OBJ) : structures.h debug.h paths.h
  99. #$(OBJ) : structures.h
  100.  
  101. squeeze3.exe : squeeze.c
  102.     $(CC) $(CFLAGS) squeeze.c -o squeeze
  103.     aout2exe squeeze
  104.     ren squeeze.exe squeeze3.exe
  105.  
  106. tex.pro : tex.lpr squeeze3.exe
  107.     squeeze3 tex.lpro  tex.pro
  108.  
  109. texc.pro: texc.lpr squeeze3.exe
  110.     squeeze3 texc.lpro texc.pro
  111.  
  112. texc.lpr: tex.lpr
  113.     echo This does "texc.scr tex.lpr texc.lpr" on Unix
  114.     echo For MSDOS, copy tex.lpr to texc.lpr
  115.     echo then edit texc.lpr to remove the code
  116.     echo for uncompressed fonts, and uncomment the
  117.     echo code for unpacking compressed fonts
  118.  
  119. texps.pro : texps.lpr squeeze3.exe
  120.     squeeze3 texps.lpro texps.pro
  121.  
  122. special.pro : special.lpr squeeze3.exe
  123.     squeeze3 special.lpr special.pro
  124.  
  125. finclude.pro: finclude.lpr squeeze3.exe
  126.     squeeze3 finclude.lpr finclude.pro
  127.  
  128.  
  129. install : afm2tfm3.exe dvips386.exe pc/maketexp.bat \
  130.     tex.pro texc.pro texps.pro special.pro finclude.pro \
  131.     pc/config.ps psfonts.map epsf.tex epsf.sty rotate.tex \
  132.     rotate.sty dvips.1 afm2tfm.1
  133. #    mkdir $(BINDIR)
  134. #    mkdir $(HEADERDIR)
  135. #    mkdir $(CONFIGDIR)
  136. #    mkdir $(MANDIR)
  137. #    mkdir $(TEXMACRODIR)
  138.     copy afm2tfm3.exe $(BINDIR)\afm2tfm3.exe
  139.     copy dvips386.exe $(BINDIR)\dvips386.exe
  140.     copy pc\maketexp.bat $(BINDIR)\maketexp.bat
  141.     copy tex.pro $(HEADERDIR)
  142.     copy texc.pro $(HEADERDIR)
  143.     copy texps.pro $(HEADERDIR)
  144.     copy special.pro $(HEADERDIR)
  145.     copy finclude.pro $(HEADERDIR)
  146.     copy pc\config.ps $(CONFIGDIR)
  147.     copy psfonts.map $(CONFIGDIR)
  148.     copy epsf.tex $(TEXMACRODIR)
  149.     copy epsf.sty $(TEXMACRODIR)
  150.     copy rotate.tex $(TEXMACRODIR)
  151.     copy rotate.sty $(TEXMACRODIR)
  152. #    copy dvips.1 $(MANDIR)
  153. #    copy afm2tfm.1 $(MANDIR)
  154.     copy pc\dvips.doc $(MANDIR)
  155.     copy pc\afm2tfm.doc $(MANDIR)
  156.  
  157.  
  158. veryclean :
  159.     del *.o
  160.     del dvips386.exe
  161.     del squeeze3.exe
  162.     del afm2tfm3.exe
  163.     del afm2tfm.map
  164.     del dvips.map
  165.     del squeeze.map
  166.     del *.pro
  167.  
  168. clean :
  169.     del *.o
  170.     del squeeze3.exe
  171.     del afm2tfm.map
  172.     del dvips.map
  173.     del squeeze.map
  174.  
  175. depend :
  176.     $(CC) -M $(SRC) > makefile.dep
  177. #
  178. #    append Makefile.depend yourself
  179. #
  180. dospecia.o : dospecia.c structures.h paths.h debug.h 
  181. dviinput.o : dviinput.c structures.h paths.h debug.h 
  182. fontdef.o : fontdef.c structures.h paths.h debug.h 
  183. loadfont.o : loadfont.c structures.h paths.h debug.h 
  184. dvips.o : dvips.c structures.h paths.h debug.h 
  185. tfmload.o : tfmload.c structures.h paths.h debug.h 
  186. download.o : download.c structures.h paths.h debug.h 
  187. prescan.o : prescan.c structures.h paths.h debug.h 
  188. scanpage.o : scanpage.c structures.h paths.h debug.h 
  189. skippage.o : skippage.c structures.h paths.h debug.h 
  190. output.o : output.c structures.h paths.h debug.h
  191. scalewid.o : scalewid.c structures.h paths.h debug.h 
  192. dosectio.o : dosectio.c structures.h paths.h debug.h 
  193. dopage.o : dopage.c structures.h paths.h debug.h
  194. resident.o : resident.c structures.h paths.h debug.h 
  195. search.o : search.c structures.h paths.h debug.h
  196. unpack.o : unpack.c structures.h paths.h debug.h 
  197. drawPS.o : drawPS.c 
  198. header.o : header.c structures.h paths.h debug.h 
  199. makefont.o : makefont.c structures.h paths.h debug.h 
  200. repack.o : repack.c structures.h paths.h debug.h 
  201. virtualf.o : virtualf.c structures.h paths.h debug.h 
  202. dpicheck.o : dpicheck.c structures.h paths.h debug.h 
  203. finclude.o : finclude.c structures.h paths.h debug.h
  204. flib.o : flib.c 
  205.