home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Tex / Tex29 / StTeXsrc.zoo / src / VIR / Makefile
Makefile  |  1989-10-12  |  7KB  |  280 lines

  1. #
  2. #  Pehong Chen, University of California, Berkeley (phc@renoir.berkeley.edu)
  3. #
  4. #      modified for distribution, monardo@renoir.berkeley.edu
  5. #
  6. CROSSDIR = /dsrg/bammi/cross-gcc
  7. CROSSBIN = $(CROSSDIR)/bin
  8. CROSSLIB = $(CROSSDIR)/lib
  9. CROSSINC = $(CROSSDIR)/include
  10.  
  11. CC          = $(CROSSBIN)/cgcc
  12. LINKER          = $(CROSSBIN)/cgcc
  13.  
  14. VPATH         = ..
  15.  
  16. DEST          = /usr/local
  17.  
  18. MANDIR          = /usr/man/manl
  19.  
  20. MANUAL          =
  21.  
  22. HDRS          = align.h \
  23.         arith.h \
  24.         box.h \
  25.         boxlists.h \
  26.         char.h \
  27.         cmds.h \
  28.         cond.h \
  29.         def.h \
  30.         dvi.h \
  31.         eq.h \
  32.         eqstack.h \
  33.         error.h \
  34.         eval.h \
  35.         evalstack.h \
  36.         expand.h \
  37.         file.h \
  38.         fmt.h \
  39.         hash.h \
  40.         heap.h \
  41.         hyph.h \
  42.         io.h \
  43.         math.h \
  44.         mathlists.h \
  45.         mlst-hlst.h \
  46.         pack.h \
  47.         page.h \
  48.         par.h \
  49.         print.h \
  50.         scan.h \
  51.         str.h \
  52.         tex.h \
  53.         texext.h \
  54.         tfm.h \
  55.         token.h \
  56.         tokenlists.h \
  57.         tokenstack.h
  58.  
  59. # Option for compiling SUN 68010 code with a 68020 CPU
  60. 68010CFLAGS   = -m68010 -L/usr.MC68010/lib -Qpath /usr.MC68010/cstart
  61.  
  62. # 16-bit word
  63. #CFLAGS          = -g
  64. #CFLAGS          = -O -I. -v
  65. CFLAGS          = -O -fomit-frame-pointer -fcombine-regs
  66.  
  67. # This does'nt work
  68. #CFLAGS          = -O -I. -v -fomit-frame-pointer -fcombine-regs -fforce-mem \
  69. #-fforce-addr -fstrength-reduce
  70.  
  71. # 32-bit word
  72. #CFLAGS          = -O -DBIG
  73. #CFLAGS          = -O -DBIG $(68010CFLAGS)
  74.  
  75. # 64-bit word
  76. #CFLAGS          = -O -DBIGG
  77. #CFLAGS          = -O -DBIGG $(68010CFLAGS)
  78.  
  79. LDFLAGS          = $(CFLAGS) -v -s -x -X -mshort
  80.  
  81. LIBS          = -liio
  82.  
  83. MAKEFILE      = Makefile
  84.  
  85. OBJS          = align.o \
  86.         arith.o \
  87.         box.o \
  88.         boxlists.o \
  89.         char.o \
  90.         cmds.o \
  91.         cond.o \
  92.         def.o \
  93.         dvi.o \
  94.         eq.o \
  95.         eqstack.o \
  96.         error.o \
  97.         eval.o \
  98.         evalstack.o \
  99.         expand.o \
  100.         file.o \
  101.         fmt.o \
  102.         hash.o \
  103.         heap.o \
  104.         hyph.o \
  105.         io.o \
  106.         math.o \
  107.         mathlists.o \
  108.         mlst-hlst.o \
  109.         pack.o \
  110.         page.o \
  111.         par.o \
  112.         print.o \
  113.         scan.o \
  114.         str.o \
  115.         tex.o \
  116.         texext.o \
  117.         tfm.o \
  118.         token.o \
  119.         tokenlists.o \
  120.         tokenstack.o 
  121. #        time.o
  122.  
  123. PRINT          = tgrind -c
  124.  
  125. PROGRAM          = virtex.ttp
  126.  
  127. SRCS          = align.c \
  128.         arith.c \
  129.         box.c \
  130.         boxlists.c \
  131.         char.c \
  132.         cmds.c \
  133.         cond.c \
  134.         def.c \
  135.         dvi.c \
  136.         eq.c \
  137.         eqstack.c \
  138.         error.c \
  139.         eval.c \
  140.         evalstack.c \
  141.         expand.c \
  142.         file.c \
  143.         fmt.c \
  144.         hash.c \
  145.         heap.c \
  146.         hyph.c \
  147.         io.c \
  148.         math.c \
  149.         mathlists.c \
  150.         mlst-hlst.c \
  151.         pack.c \
  152.         page.c \
  153.         par.c \
  154.         print.c \
  155.         scan.c \
  156.         str.c \
  157.         tex.c \
  158.         texext.c \
  159.         tfm.c \
  160.         token.c \
  161.         tokenlists.c \
  162.         tokenstack.c
  163.  
  164. $(PROGRAM):     $(OBJS)
  165.         @rm -f $(PROGRAM)
  166.         $(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
  167. #        @size $(PROGRAM)
  168.  
  169. install:    $(PROGRAM)
  170.         install -c -s -m 0755 $(PROGRAM) $(DEST)
  171.         @ls -lgs $(DEST)/$(PROGRAM)
  172.  
  173. clean:;        rm -f $(OBJS) core
  174.  
  175. depend:;    @rm -f .#*.[chly]
  176.         mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
  177.  
  178. index:;        @ctags -wx $(HDRS) $(SRCS)
  179.  
  180. print:;        @$(PRINT) $(HDRS) $(SRCS)
  181.  
  182. program:        $(PROGRAM)
  183.  
  184. tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
  185.  
  186. update:        $(DEST)/$(PROGRAM)
  187.  
  188. $(DEST)/$(PROGRAM): $(SRCS) $(HDRS)
  189.         @make -f $(MAKEFILE) DEST=$(DEST) install
  190.  
  191. .DEFAULT:;
  192. ###
  193. align.o: tex.h cmds.h heap.h arith.h eq.h eqstack.h hash.h \
  194.     token.h tokenstack.h scan.h evalstack.h box.h pack.h math.h \
  195.     mlst-hlst.h error.h align.h
  196. arith.o: tex.h print.h arith.h
  197. box.o: tex.h texext.h arith.h heap.h char.h str.h \
  198.     eq.h hash.h tfm.h print.h math.h box.h tokenlists.h
  199. boxlists.o: tex.h cmds.h heap.h eq.h eqstack.h def.h box.h \
  200.     tokenstack.h token.h scan.h tokenlists.h evalstack.h tfm.h pack.h \
  201.     page.h math.h io.h print.h error.h boxlists.h
  202. char.o: tex.h char.h
  203. cmds.o: tex.h texext.h heap.h eq.h eqstack.h str.h \
  204.     hash.h token.h tokenlists.h tokenstack.h scan.h evalstack.h def.h \
  205.     cond.h expand.h box.h boxlists.h tfm.h math.h mathlists.h align.h \
  206.     error.h print.h cmds.h
  207. cond.o: tex.h cmds.h heap.h box.h eq.h eqstack.h hash.h \
  208.     token.h tokenlists.h scan.h tokenstack.h evalstack.h file.h print.h \
  209.     error.h cond.h
  210. def.o: tex.h cmds.h heap.h io.h eq.h hash.h eqstack.h \
  211.     evalstack.h token.h scan.h tokenstack.h expand.h arith.h str.h \
  212.     box.h boxlists.h tokenlists.h file.h tfm.h dvi.h page.h print.h \
  213.     error.h def.h
  214. dvi.o: tex.h texext.h heap.h str.h io.h eq.h box.h \
  215.     scan.h tfm.h file.h pack.h print.h error.h dvi.h 
  216. eq.o: tex.h cmds.h heap.h char.h hash.h box.h print.h \
  217.     error.h eq.h 
  218. eqstack.o: tex.h cmds.h heap.h eq.h token.h tokenstack.h \
  219.     tokenlists.h print.h error.h eqstack.h
  220. error.o: tex.h tokenstack.h token.h eq.h io.h print.h \
  221.     error.h str.h 
  222. eval.o: tex.h cmds.h heap.h char.h tfm.h eq.h eqstack.h \
  223.     hash.h token.h scan.h tokenstack.h evalstack.h box.h boxlists.h \
  224.     math.h mathlists.h cond.h def.h dvi.h pack.h page.h par.h print.h \
  225.     error.h eval.h
  226. evalstack.o: tex.h cmds.h heap.h tokenstack.h eq.h box.h \
  227.     page.h print.h error.h evalstack.h
  228. expand.o: tex.h cmds.h heap.h io.h eq.h hash.h box.h \
  229.     tokenstack.h scan.h token.h tokenlists.h cond.h file.h print.h \
  230.     error.h expand.h
  231. file.o: tex.h cmds.h heap.h char.h eq.h token.h scan.h \
  232.     tokenstack.h str.h fmt.h io.h print.h error.h file.h 
  233. fmt.o: tex.h texext.h heap.h token.h eq.h box.h \
  234.     eqstack.h hash.h file.h tfm.h str.h hyph.h io.h print.h error.h \
  235.     fmt.h
  236. hash.o: tex.h cmds.h heap.h box.h scan.h eq.h io.h math.h \
  237.     boxlists.h str.h error.h hash.h
  238. heap.o: tex.h eq.h arith.h box.h token.h tokenlists.h \
  239.     evalstack.h par.h page.h print.h error.h heap.h
  240. hyph.o: tex.h cmds.h heap.h token.h eq.h str.h tfm.h \
  241.     box.h scan.h tokenstack.h par.h print.h error.h hyph.h
  242. io.o: tex.h char.h tokenstack.h print.h io.h 
  243. math.o: tex.h heap.h eq.h scan.h evalstack.h arith.h \
  244.     str.h box.h tfm.h print.h pack.h math.h
  245. mathlists.o: tex.h cmds.h heap.h arith.h eq.h eqstack.h \
  246.     evalstack.h token.h tokenstack.h scan.h tfm.h box.h pack.h math.h \
  247.     mlst-hlst.h par.h page.h print.h error.h mathlists.h
  248. #    $(CC) $(CFLAGS) -traditional -c mathlists.c
  249.  
  250. mlst-hlst.o: tex.h heap.h arith.h scan.h eq.h box.h math.h \
  251.     pack.h tfm.h print.h error.h mlst-hlst.h
  252. pack.o: tex.h heap.h arith.h scan.h tokenstack.h eq.h \
  253.     eqstack.h evalstack.h box.h tfm.h dvi.h print.h error.h pack.h
  254. page.o: tex.h heap.h arith.h tokenstack.h tokenlists.h \
  255.     eq.h eqstack.h evalstack.h scan.h expand.h box.h pack.h par.h math.h \
  256.     dvi.h print.h error.h page.h
  257. par.o: tex.h heap.h arith.h eq.h tfm.h tokenstack.h \
  258.     evalstack.h box.h pack.h hyph.h print.h error.h par.h
  259. print.o: tex.h texext.h eq.h char.h str.h io.h print.h
  260. scan.o: tex.h cmds.h heap.h arith.h eq.h token.h \
  261.     tokenstack.h evalstack.h char.h str.h box.h expand.h tfm.h dvi.h \
  262.     print.h error.h page.h scan.h
  263. str.o: tex.h io.h file.h error.h str.h
  264. tex.o: tex.h texext.h cmds.h heap.h char.h str.h eq.h \
  265.     hash.h evalstack.h eqstack.h tokenstack.h token.h box.h pack.h cond.h \
  266.     io.h file.h tfm.h hyph.h dvi.h fmt.h error.h print.h page.h 
  267. texext.o: tex.h cmds.h heap.h eq.h hash.h token.h box.h \
  268.     scan.h def.h tokenstack.h tokenlists.h evalstack.h io.h str.h \
  269.     file.h dvi.h print.h error.h texext.h
  270. tfm.o: tex.h cmds.h heap.h arith.h eq.h hash.h box.h \
  271.     scan.h token.h tokenstack.h io.h file.h print.h error.h tfm.h
  272. token.o: tex.h cmds.h heap.h eq.h hash.h scan.h io.h \
  273.     char.h box.h cond.h print.h error.h expand.h align.h tokenstack.h \
  274.     token.h
  275. tokenlists.o: tex.h cmds.h heap.h eq.h hash.h str.h box.h \
  276.     token.h expand.h tokenstack.h io.h scan.h def.h file.h tfm.h print.h \
  277.     error.h tokenlists.h
  278. tokenstack.o: tex.h cmds.h heap.h eq.h def.h char.h io.h \
  279.     token.h tokenlists.h box.h print.h error.h tokenstack.h
  280.