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