home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / text / tex / pastex / source / dvips / amiga / smakefile < prev    next >
Encoding:
Makefile  |  1995-01-08  |  11.2 KB  |  348 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. # modified for Amiga SAS/C v6.x by G. Ghibò <ghibo@galileo.polito.it>
  8. # Last revised 7th January 1995
  9. #
  10. # To compile on a 68040 CPU use, for instance:
  11. #
  12. #      smake -f amiga/smakefile dvips CPU=68040 MATH=8
  13. #
  14.  
  15.  
  16. #compiler and linker
  17. CC= sc
  18. CPU=ANY
  19. MATH=I
  20. NOWARN=IGN=100+161+85
  21.  
  22. #Uncomment for your processor
  23. #CPU=CPU=ANY
  24. #CPU=CPU=68020
  25. #CPU=CPU=68040
  26. #MATH=I
  27. #MATH=S
  28. #MATH=8
  29.  
  30. # where TeX is `rooted'.
  31. # TEXDIR = TeX
  32. TEXDIR = TeX
  33.  
  34. # another place pk, tfm, and vf files might be found.
  35. # LOCALDIR = texfonts
  36. LOCALDIR = texfonts
  37.  
  38. # the default path to search for TFM files 
  39. # (this usually is identical to TeX's default fontpath, which omits `.')
  40. # (private fonts are given an explicit directory, which overrides the path)
  41. # This path is overridden by the environment variable TEXFONTS.
  42. # TFMPATH = .,$(LOCALDIR)/tfm,$(TEXDIR):texfonts/tfm,$(TEXDIR):fonts/tfm,$(TEXDIR):fonts
  43. TFMPATH = .,$(TEXDIR):texfonts/tfm,$(TEXDIR):fonts/tfm,$(TEXDIR):fonts
  44.  
  45. # the default path to search for PK files (usually omits `.')
  46. # Don't forget to add the directory that
  47. # MakeTeXPK puts the files!
  48. #   overridden by the environment variable TEXPKS or TEXPACKED or PKFONTS
  49. # PKPATH = .,$(LOCALDIR)/pk,$(TEXDIR):texfonts/pk,$(TEXDIR):fonts/pk,$(TEXDIR):pk
  50. PKPATH = .,$(TEXDIR):texfonts/pk,$(TEXDIR):fonts/pk,$(TEXDIR):pk
  51.  
  52. # the default path to search for VF files (usually omits `.')
  53. #   overridden by the environment variable VFFONTS
  54. # VFPATH = .,$(LOCALDIR)/vf,$(TEXDIR):texfonts/vf,$(TEXDIR):fonts/vf,$(TEXDIR):fonts
  55. VFPATH = .,$(TEXDIR):texfonts/vf,$(TEXDIR):fonts/vf,$(TEXDIR):vf
  56.  
  57. # additional directories in which to search for subdirectories to find
  58. # both tfm and pk files
  59. FONTSUBDIRPATH = 
  60.  
  61. # where the config files go
  62. # CONFIGDIR = $(TEXDIR):ps
  63. CONFIGDIR = $(TEXDIR):ps
  64.  
  65. # the default path to search for config files
  66. #   overridden by the environment variable TEXCONFIG
  67. # CONFIGPATH = .,$(CONFIGDIR)
  68. CONFIGPATH = .,$(CONFIGDIR),$(TEXDIR):config
  69.  
  70. # the name of your config file
  71. # CONFIGFILE = config.ps
  72. CONFIGFILE = config.ps
  73.  
  74. # where the header PS files go
  75. # HEADERDIR = $(TEXDIR):ps
  76. HEADERDIR = $(TEXDIR):ps
  77.  
  78. # the default path to search for header files
  79. #   overridden by the environment variable DVIPSHEADERS
  80. # HEADERPATH = .,$(HEADERDIR)
  81. HEADERPATH = .,$(HEADERDIR)
  82.  
  83. # where epsf.tex and rotate.tex go (usually the TeX macros directory)
  84. # TEXMACRODIR = $(TEXDIR):texinputs
  85. TEXMACRODIR = $(TEXDIR):texinputs
  86.  
  87. # the default path to search for epsf and psfiles
  88. # (usually the same as TeX's defaultinputpath)
  89. #   overridden by the environment variable TEXINPUTS
  90. # FIGPATH = .,$(TEXDIR):texinputs
  91. FIGPATH = .,$(TEXDIR):texinputs/**,$(TEXDIR):inputs/**
  92.  
  93. # the default path to search for font libraries
  94. # FLIPATH = .,$(LOCALDIR)/pk,$(TEXDIR):texfonts/pk,$(TEXDIR):fonts/pk,$(TEXDIR):pk
  95. FLIPATH = .,$(TEXDIR):texfonts/pk,$(TEXDIR):fonts/pk,$(TEXDIR):pk,$(TEXDIR):texfonts/pk/ljfour
  96.  
  97. # the names of font libraries
  98. # FLINAME = ljh_0,ljh_h,ljh_1,ljh_2,ljh_3,ljh_4,ljh_5,ljh_sli
  99. FLINAME = ljh_0,ljh_h,ljh_1,ljh_2,ljh_3,ljh_4,ljh_5,ljh_sli
  100.  
  101. # the place man pages are located.
  102. MANDIR = $(TEXDIR):doc
  103.  
  104. # change -DDEFRES=300 or whatever is required
  105. #    if the default resolution is not 300 dpi,
  106. # add -DDEBUG to turn on debugging capability
  107. # add -DTPIC for tpic support
  108. # add -DFONTLIB to search font libraries
  109. # add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
  110. # add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
  111. # add -DIBM6000 for compiling on IBM 6000 systems
  112. # add -DCREATIONDATE if your system has a working time() and you want dated files
  113. # (for VM/CMS, see the MKDVIPS.EXEC file in the vmcms subdirectory).
  114. #
  115. #   If you define FONTLIB, make sure to also give definitions to
  116. #   FLIPATH and FLINAME.
  117. #
  118. #   If your compiler doesn't like void*, then add
  119. #      -DVOID=char
  120. #
  121. DEFS= DEF=TPIC DEF=FONTLIB DEF=DEBUG DEF=DEFRES=600 DEF=CREATIONDATE DEF=SEARCH_SUBDIRECTORIES DEF=HAVE_GETCWD
  122.  
  123. # options
  124. # OPT = RESOPT CPU=$(CPU) MATH=$(MATH) IDIR=amiga/include  NOICON NOSTKCHK
  125. # OPT = RESOPT CPU=$(CPU) MATH=$(MATH) IDIR=amiga/include GPROTO GPTDEF NOGPDATA NOICON
  126. OPTMZ = OPT OPTCOMP=3 OPTDEP=3 OPTRDEP=3 OPTINLOCAL OPTSCHED OPTTIME
  127. OPT = RESOPT CPU=$(CPU) MATH=$(MATH) IDIR=amiga/include NOICON NOSTKCHK PREC=D DEF=FLTTODBL PARM=R $(OPTMZ)
  128.  
  129.  
  130. # to link
  131. # FLIBS=LINK
  132. FLIBS=LINK
  133.  
  134. # If you are compiling dvips for suid or other privileges, you will
  135. # definitely want to define the following symbol; else don't.
  136. # SECURE = DEF=SECURE
  137.  
  138. # If you want EMTEX specials, define the following.
  139. EMTEX = DEF=EMTEX
  140.  
  141. # for SYSV (and friends which use <string.h> instead of <strings.h>)
  142. # define the c-compiler flag
  143. # add DEF=_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
  144. # for subdir searching)
  145. # SYS = DEF=SYSV
  146.  
  147. # Define this to be whatever you use for installation.  If you don't have
  148. # install, use a script that invokes copy and chmod's the files
  149. # appropriately.
  150. # INSTALL = install
  151. INSTALL = copy CLONE
  152.  
  153. # where the installed binary goes
  154. # BINDIR = $(TEXDIR):bin
  155. BINDIR = $(TEXDIR):bin
  156.  
  157. PATHS = DEF=TFMPATH="$(TFMPATH)"\
  158. DEF=PKPATH="$(PKPATH)"\
  159. DEF=VFPATH="$(VFPATH)"\
  160. DEF=HEADERPATH="$(HEADERPATH)"\
  161. DEF=CONFIGPATH="$(CONFIGPATH)"\
  162. DEF=CONFIGFILE="$(CONFIGFILE)"\
  163. DEF=FONTSUBDIRPATH="$(FONTSUBDIRPATH)"\
  164. DEF=FIGPATH="$(FIGPATH)"\
  165. DEF=FLIPATH="$(FLIPATH)"\
  166. DEF=FLINAME="$(FLINAME)"
  167.  
  168. #CFLAGS = $(OPT) $(DEFS) $(SYS) $(SECURE) $(EMTEX) $(DEFPFMT)
  169. CFLAGS = $(OPT) $(DEFS) $(EMTEX)
  170.  
  171. SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
  172.     download.c prescan.c scanpage.c skippage.c output.c scalewidth.c \
  173.     dosection.c dopage.c resident.c search.c unpack.c drawPS.c \
  174.     header.c makefont.c repack.c virtualfont.c dpicheck.c finclude.c \
  175.     pprescan.c papersiz.c flib.c color.c bbox.c emspecial.c amiga/pipe.c \
  176.     amiga/rexx.c
  177.  
  178. OBJ = dospecial.o dviinput.o fontdef.o loadfont.o dvips.o tfmload.o\
  179.     download.o prescan.o scanpage.o skippage.o output.o scalewidth.o\
  180.     dosection.o dopage.o resident.o search.o unpack.o drawPS.o\
  181.     header.o makefont.o repack.o virtualfont.o dpicheck.o finclude.o\
  182.     pprescan.o papersiz.o flib.o color.o bbox.o emspecial.o amiga/pipe.o\
  183.     amiga/rexx.o
  184.  
  185. all : afm2tfm dvips tex.pro texps.pro texc.pro special.pro finclude.pro \
  186.       color.pro crop.pro
  187.  
  188. virtualfont.o:    virtualfont.c
  189. virtualfont.c:    amiga/chfiles/virtualfont.ch
  190.     - rename virtualfont.c virtualfont.c-ori
  191.     wmerge virtualfont.c-ori amiga/chfiles/virtualfont.ch virtualfont.c
  192.  
  193. dvips.c:    amiga/chfiles/dvips.ch
  194.     - rename dvips.c dvips.c-ori
  195.     wmerge dvips.c-ori amiga/chfiles/dvips.ch dvips.c
  196.  
  197. resident.o:    resident.c paths.h
  198. resident.c:    amiga/chfiles/resident.ch
  199.     - rename resident.c resident.c-ori
  200.     wmerge resident.c-ori amiga/chfiles/resident.ch resident.c
  201.  
  202. dospecial.o:    dospecial.c
  203. dospecial.c:    amiga/chfiles/dospecial.ch
  204.     - rename dospecial.c dospecial.c-ori
  205.         - copy clone amiga/include/search_evp_protos.h amiga/include/search_protos.h
  206.     wmerge dospecial.c-ori amiga/chfiles/dospecial.ch dospecial.c
  207.  
  208. header.o:    header.c
  209. header.c:    amiga/chfiles/header.ch
  210.     - rename header.c header.c-ori
  211.     wmerge header.c-ori amiga/chfiles/header.ch header.c
  212.  
  213. search.o:    search.c
  214. search.c:    amiga/chfiles/search.ch
  215.     - rename search.c search.c-ori
  216.     wmerge search.c-ori amiga/chfiles/search.ch search.c
  217.  
  218. emspecial.o:    emspecial.c
  219. emspecial.c:    amiga/chfiles/emspecial.ch
  220.     - rename emspecial.c emspecial.c-ori
  221.     wmerge emspecial.c-ori amiga/chfiles/emspecial.ch emspecial.c
  222.  
  223. flib.o:        flib.c paths.h
  224. flib.c:        amiga/chfiles/flib.ch
  225.     - rename flib.c flib.c-ori
  226.     wmerge flib.c-ori amiga/chfiles/flib.ch flib.c
  227.  
  228. output.o:    output.c
  229. output.c:    amiga/chfiles/output.ch
  230.     - rename output.c output.c-ori
  231.     wmerge output.c-ori amiga/chfiles/output.ch output.c
  232.  
  233. tfmload.o:    tfmload.c paths.h
  234. tfmload.c:    amiga/chfiles/tfmload.ch
  235.     - rename tfmload.c tfmload.c-ori
  236.     wmerge tfmload.c-ori amiga/chfiles/tfmload.ch tfmload.c
  237.  
  238. finclude.o:    finclude.c
  239. finclude.c:    amiga/chfiles/finclude.ch
  240.     - rename finclude.c finclude.c-ori
  241.     wmerge finclude.c-ori amiga/chfiles/finclude.ch finclude.c
  242.  
  243. #.c.o:   $(SRC)
  244. #    $(CC) $(CFLAGS) $<
  245.  
  246. amigapaths.h: amiga/smakefile
  247.     @echo "\#define TFMPATH        *"$(TFMPATH)*"" >amigapaths.h
  248.     @echo "\#define PKPATH         *"$(PKPATH)*"" >>amigapaths.h
  249.     @echo "\#define VFPATH         *"$(VFPATH)*"" >>amigapaths.h
  250.     @echo "\#define HEADERPATH     *"$(HEADERPATH)*"" >>amigapaths.h
  251.     @echo "\#define CONFIGPATH     *"$(CONFIGPATH)*"" >>amigapaths.h
  252.     @echo "\#define CONFIGFILE     *"$(CONFIGFILE)*"" >>amigapaths.h
  253.     @echo "\#define FONTSUBDIRPATH *"$(FONTSUBDIRPATH)*"" >>amigapaths.h
  254.     @echo "\#define FIGPATH        *"$(FIGPATH)*"" >>amigapaths.h
  255.     @echo "\#define FLIPATH        *"$(FLIPATH)*"" >>amigapaths.h
  256.     @echo "\#define FLINAME        *"$(FLINAME)*"" >>amigapaths.h
  257.  
  258. objfiles.lst: amiga/smakefile
  259.     @echo $(OBJ) >objfiles.lst
  260.  
  261. dvips : $(OBJ) objfiles.lst
  262.     $(CC) $(CFLAGS) $(FLIBS) LIB amiga/evpaths.lib PNAME=dvips WITH objfiles.lst
  263.  
  264. dvips.o: dvips.c amigapaths.h paths.h
  265.     $(CC) $(CFLAGS) dvips.c
  266.  
  267. afm2tfm: afm2tfm.c
  268.     $(CC) $(OPT) $(FLIBS) afm2tfm.c
  269.  
  270. $(OBJ) : dvips.h debug.h
  271.  
  272. loadfont.o : paths.h
  273.  
  274. squeeze : squeeze.c
  275.     $(CC) $(OPT) NOMATH $(FLIBS) squeeze.c
  276.  
  277. tex.pro : tex.lpro squeeze
  278.     squeeze tex.lpro tex.pro
  279.  
  280. texc.pro: texc.lpro squeeze
  281.     squeeze texc.lpro texc.pro
  282.  
  283. texc.lpro: tex.lpro
  284.     @rx amiga/texc.rexx
  285.     copy clone T:texc.lpro texc.lpro
  286.  
  287. texps.pro : texps.lpro squeeze
  288.     squeeze texps.lpro texps.pro
  289.  
  290. special.pro : special.lpro squeeze
  291.     squeeze special.lpro special.pro
  292.  
  293. finclude.pro : finclude.lpro squeeze
  294.     squeeze finclude.lpro finclude.pro
  295.  
  296. color.pro : color.lpro squeeze
  297.     squeeze color.lpro color.pro
  298.  
  299. crop.pro : crop.lpro squeeze
  300.     squeeze crop.lpro crop.pro
  301.  
  302. install : afm2tfm dvips MakeTeXPK \
  303.     tex.pro texc.pro texps.pro special.pro finclude.pro color.pro \
  304.     crop.pro config.ps psfonts.map epsf.tex epsf.sty rotate.tex \
  305.     rotate.sty colordvi.tex colordvi.sty blackdvi.tex blackdvi.sty \
  306.     dvips.tex dvipsmac.tex dvips.1 afm2tfm.1
  307.        
  308.     - makedir $(BINDIR)
  309.     - makedir $(CONFIGDIR)
  310.     - makedir $(HEADERDIR)
  311.     - makedir $(MANDIR)
  312.     - makedir $(TEXMACRODIR)
  313.     - makedir $(TEXMACRODIR)/dvips
  314.     - makedir $(TEXDIR):s
  315.  
  316.     $(INSTALL) afm2tfm $(BINDIR)/afm2tfm
  317.     $(INSTALL) dvips $(BINDIR)/dvips
  318.     $(INSTALL) amiga/env-vars $(TEXDIR):s
  319.     $(INSTALL) amiga/MakeTeXPK $(TEXDIR):s
  320.     $(INSTALL) \#?.pro $(CONFIGDIR)
  321.     $(INSTALL) amiga/ps/config.ps $(CONFIGDIR)/$(CONFIGFILE)
  322.     $(INSTALL) amiga/ps/config.ljfour $(CONFIGDIR)
  323.     $(INSTALL) amiga/ps/config.NEChi $(CONFIGDIR)
  324.     $(INSTALL) amiga/ps/config.generic $(CONFIGDIR)
  325.     $(INSTALL) amiga/ps/*.map $(CONFIGDIR)
  326.     $(INSTALL) psfonts.map $(CONFIGDIR)
  327.     $(INSTALL) psdraft.ps $(CONFIGDIR)
  328.     $(INSTALL) blackdvi.sty $(TEXMACRODIR)/dvips
  329.     $(INSTALL) blackdvi.tex $(TEXMACRODIR)/dvips
  330.     $(INSTALL) colordvi.sty $(TEXMACRODIR)/dvips
  331.     $(INSTALL) colordvi.tex $(TEXMACRODIR)/dvips
  332.     $(INSTALL) dvips.tex $(TEXMACRODIR)/dvips
  333.     $(INSTALL) dvipsmac.tex $(TEXMACRODIR)/dvips
  334.     $(INSTALL) epsf.tex $(TEXMACRODIR)/dvips
  335.     $(INSTALL) epsf.sty $(TEXMACRODIR)/dvips
  336.     $(INSTALL) rotate.tex $(TEXMACRODIR)/dvips
  337.     $(INSTALL) rotate.sty $(TEXMACRODIR)/dvips
  338.     $(INSTALL) contrib/psfig-tex/psfig.sty $(TEXMACRODIR)/dvips
  339.     $(INSTALL) contrib/pspic/pspic.sty $(TEXMACRODIR)/dvips
  340.  
  341. veryclean:
  342.     - delete \#?.(o|lnk|pro|log|dvi) dvips squeeze afm2tfm texc.lpro \
  343.            amiga/\#?.o amigapaths.h objfiles.lst
  344.  
  345. clean:
  346.     - delete \#?.(o|lnk|log|dvi) squeeze afm2tfm amiga/\#?.o amigapaths.h \
  347.            objfiles.lst
  348.