home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / oct93 / develop / umbscheme.lha / UMBScheme / src / Makefile < prev    next >
Makefile  |  1992-08-04  |  2KB  |  74 lines

  1. # Makefile for the UMB Scheme interpreter.
  2. #CC = gcc
  3. #CFLAGS =  -g -O -pedantic -Wall
  4.  
  5. CC = cc
  6. CFLAGS = -O
  7.  
  8. global_h = portable.h object.h architecture.h number.h
  9. num_h    = fixnum.h bignum.h rational.h real.h complex.h
  10. objects = object.o primitive.o steering.o debug.o\
  11.       io.o compiler.o eval.o architecture.o number.o\
  12.       fixnum.o bignum.o rational.o real.o complex.o
  13. libraries = -lm
  14. program = scheme
  15.  
  16. .PHONY:        default tags print
  17.  
  18. default:    $(program)
  19.  
  20. $(program):    $(objects)
  21.         $(CC) $(CFLAGS) -o $(program) $(objects) $(libraries)
  22.  
  23. $(objects):    $(global_h)
  24.  
  25. object.o:    eval.h primitive.h steering.h io.h compiler.h
  26. steering.o:    eval.h primitive.h steering.h debug.h io.h
  27. debug.o:    eval.h primitive.h steering.h io.h
  28. architecture.o:    eval.h primitive.h steering.h io.h
  29. io.o:        eval.h primitive.h steering.h io.h
  30. compiler.o:    eval.h steering.h io.h
  31. eval.o:        eval.h steering.h debug.h io.h
  32. primitive.o:    eval.h primitive.h steering.h io.h
  33. number.o:    eval.h steering.h io.h $(num_h)
  34. fixnum.o:    eval.h steering.h io.h $(num_h)
  35. bignum.o:    eval.h steering.h io.h $(num_h)
  36. rational.o:    eval.h steering.h io.h $(num_h)
  37. real.o:        eval.h steering.h io.h $(num_h)
  38. complex.o:    eval.h steering.h io.h $(num_h)
  39.  
  40. tags:
  41.         etags -t *.c *.h
  42.  
  43. print:
  44.         ctags -t -x *.c *.h 2>/dev/null | fold > tag_defs
  45.         lpr -Plp -p -JScheme Makefile tag_defs \
  46.                 portable.h \
  47.         steering.h steering.c \
  48.         debug.h debug.c \
  49.                 architecture.h architecture.c \
  50.                 io.h io.c \
  51.         object.h object.c \
  52.                 compiler.h compiler.c \
  53.         eval.h eval.c \
  54.         primitive.h primitive.c \
  55.                 number.h  number.c \
  56.         bignum.h bignum.c \
  57.         real.h real.c \
  58.         fixnum.h fixnum.c \
  59.         rational.h rational.c \
  60.         complex.h complex.c 
  61.         /bin/rm -f tag_defs
  62.  
  63. nonums:
  64.         lpr -Plp -p -JScheme Makefile \
  65.                 portable.h \
  66.         steering.h steering.c \
  67.         debug.h  debug.c \
  68.         eval.h eval.c \
  69.         primitive.h primitive.c  \
  70.         object.h object.c \
  71.                 compiler.h compiler.c \
  72.                 architecture.h architecture.c \
  73.                 io.h io.c 
  74.