home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / dev / alst-3.04.lha / ALSt-3.04 / src / makefile < prev    next >
Encoding:
Makefile  |  1994-05-14  |  4.2 KB  |  112 lines

  1. CFLAGS = -O
  2.  
  3. # define groups of files, to make later commands easier
  4. INTERPc = memory.c names.c news.c interp.c
  5. INTERPo = memory.o names.o news.o interp.o
  6. PRIMITIVEc = primitive.c filein.c lex.c parser.c unixio.c
  7. PRIMITIVEo = primitive.o filein.o lex.o parser.o unixio.o
  8. basicST = basic.st mag.st collect.st 
  9. unixST = file.st mult.st 
  10. testST = test.st queen.st
  11. CFILES = *.h $(INTERPc) $(PRIMITIVEc) st.c initial.c tty.c winprim.c
  12. OFILES = $(INTERPo) $(PRIMITIVEo) 
  13. STFILES = $(basicST) $(unixST) $(testST) tty.st graphics.st stdwin.st
  14. FILES = README Makefile vms.com $(CFILES) $(STFILES) *.ms
  15. # the following are used only by turboc on the ibm pc
  16. TURBOc=memory names news interp primitive filein lex parser unixio tty
  17. TINCLUDE=c:\turboc\include
  18. TLIB=c:\turboc\lib
  19. INTERFACE=
  20.  
  21. # the following is for those poor souls who say ``make'' without looking
  22. help:
  23.     @echo "select one of the following to make"
  24.     @echo "bsdtty: Berkeley 4.2/4.3 with teletype interface "
  25.     @echo "sysvtty: System V with teletype interface "
  26.     @echo "bsdx11: Berkeley 4.2/4.3 with stdwin interface on top of X11"
  27.     @echo "ibmturboc: IBM PC with Turbo C compiler (see install.ms)"
  28.     @echo "amigagcc: Amiga with GNU C compiler (see install.ms)"
  29.     @echo "amigaterm: Amiga GNU C with stdwin interface on top of termcap"
  30.  
  31. winfiles: $(OFILES) winprim.o initial.o st.o
  32.  
  33. # initial - the initial object maker
  34. initial: $(INTERPo) $(PRIMITIVEo) initial.o $(INTERFACE)
  35.     cc -o initial $(INTERPo) $(PRIMITIVEo) initial.o $(INTERFACE) -lm $(LIBS)
  36.  
  37. # st - the actual bytecode interpreter
  38. st: $(INTERPo) $(PRIMITIVEo) st.o $(INTERFACE)
  39.     cc -o st $(INTERPo) $(PRIMITIVEo) st.o $(INTERFACE) -lm $(LIBS)
  40.  
  41. # bsdtty - berkeley 4.2/4.3 with tty style interface
  42. bsdtty:
  43.     make "CFLAGS=$(CFLAGS) -DB42" "LIBS=" "INTERFACE= tty.o" initial st
  44.     initial $(basicST) $(unixST) tty.st
  45.  
  46. bsdtty.lint:
  47.     lint -DB42 $(INTERPc) $(PRIMITIVEc) tty.c initial.c -lm
  48.     lint -DB42 $(INTERPc) $(PRIMITIVEc) tty.c st.c -lm
  49.  
  50. # sysvtty - system V with tty style interface
  51. sysvtty:
  52.     make "CFLAGS=$(CFLAGS) -DSYSV" "LIBS=" "INTERFACE= tty.o" initial st
  53.     initial $(basicST) $(unixST) tty.st
  54.  
  55. sysvtty.lint:
  56.     lint -DSYSV $(INTERPc) $(PRIMITIVEc) tty.c initial.c -lm
  57.     lint -DSYSV $(INTERPc) $(PRIMITIVEc) tty.c st.c -lm
  58.  
  59. # amigagcc - Amiga GNU C with tty style interface
  60. amigagcc:
  61.     make "CFLAGS=$(CFLAGS) -DAMIGA" "LIBS=" "INTERFACE= tty.o" initial st
  62.     initial $(basicST) $(unixST) tty.st
  63.  
  64. # amigaterm - Amiga GNU C with stdwin interface on top of termcap
  65. # requires Guido van Rossum's standard window package
  66. # (currently doesn't work)
  67. amigaterm:
  68.     make "CFLAGS=$(CFLAGS) -DAMIGA -DSTDWIN" "LIBS= -lstdw -ltermcap" \
  69.  "INTERFACE= winprim.o" initial st
  70.     initial $(basicST) $(unixST) graphics.st stdwin.st
  71.  
  72. # bsdterm - berkekey 4.2/4.3 with stdwin interface on top of termcap
  73. # requires Guido van Rossum's standard window package
  74. # (currently doesn't work)
  75. bsdterm: stdw.o
  76.     make "CFLAGS=$(CFLAGS) -DB42 -DSTDWIN" "LIBS= -ltermcap" "INTERFACE= winprim.o stdw.o" initial st
  77.     initial $(basicST) $(unixST) graphics.st stdwin.st
  78.  
  79. # bsdx11 - berkekey 4.2/4.3 with stdwin interface on top of x11
  80. # requires Guido van Rossum's standard window package
  81. bsdx11: stdw.o
  82.     make "CFLAGS=$(CFLAGS) -DB42 -DSTDWIN" "LIBS= -lX" "INTERFACE= winprim.o stdw.o" initial st
  83.     initial $(basicST) $(unixST) graphics.st stdwin.st
  84.  
  85. bsdx11.lint:
  86.     lint -DB42 -DSTDWIN $(INTERPc) $(PRIMITIVEc) winprim.c initial.c -lm -lX
  87.     lint -DB42 -DSTDWIN $(INTERPc) $(PRIMITIVEc) winprim.c st.c -lm -lX
  88.  
  89. # all the dependencies on .h files
  90. filein.o : filein.c env.h memory.h names.h lex.h 
  91. initial.o : initial.c env.h memory.h names.h 
  92. interp.o : interp.c env.h memory.h names.h interp.h 
  93. lex.o : lex.c env.h memory.h lex.h 
  94. memory.o : memory.c env.h memory.h 
  95. names.o : names.c env.h memory.h names.h 
  96. news.o : news.c env.h memory.h names.h 
  97. parser.o : parser.c env.h memory.h names.h interp.h lex.h 
  98. primitive.o : primitive.c env.h memory.h names.h 
  99. st.o : st.c env.h memory.h names.h 
  100. tty.o : tty.c env.h memory.h 
  101. unixio.o : unixio.c env.h memory.h names.h 
  102. winprim.o : winprim.c stdwin.h stdwtext.h env.h memory.h names.h 
  103.  
  104. # - pack - pack up the files for mailing
  105. pack: $(FILES)
  106.     packmail $(FILES)
  107.  
  108. # - tar - make a compressed tar file
  109. tar: $(FILES)
  110.     tar cvf small.v3.tar $(FILES)
  111.     compress small.v3.tar
  112.