home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hugs101.zip / hugs101sc.zip / hugsdist / src / Makefile < prev    next >
Makefile  |  1995-03-02  |  2KB  |  64 lines

  1. .SUFFIXES    : .y .c .h .o .gs .s
  2. HFILES        = prelude.h storage.h connect.h errors.h command.h
  3. CFILES        = hugs.c storage.c input.c static.c type.c \
  4.           output.c compiler.c machine.c builtin.c
  5. INCFILES    = parser.c preds.c bignums.c kind.c subst.c \
  6.           machdep.c commonui.c
  7. YFILES        = parser.y
  8. SOURCES        = $(HFILES) $(CFILES) $(INCFILES) $(YFILES) prelude
  9. OBJECTS        = storage.o input.o static.o type.o compiler.o
  10. IOBJECTS    = hugs.o builtin.o  machine.o output.o $(OBJECTS)
  11.  
  12. # Edit the following settings as required.
  13. # There are two choices of command line editor that can be used with Hugs:
  14. #
  15. #  GNU readline:        usual GNU sources (e.g. bash distribution)
  16. #  add -DUSE_READLINE=1 to CFLAGS and libreadline.a -ltermcap to LDFLAGS
  17. #                      (or maybe -lreadline -ltermcap)
  18. #
  19. #  editline:            (comp.sources.misc, vol 31, issue 71)
  20. #  add -DUSE_READLINE=1 to CFLAGS and libedit.a to LDFLAGS
  21. #                      (or maybe -ledit)
  22. #
  23. # The best bet is to `touch prelude.h' after changing these settings to
  24. # ensure that the whole collection of files is recompiled with the correct
  25. # settings.
  26. #
  27. #
  28. # Be sure to define the symbol LESS_OBNOXIOUS if you want the shorter
  29. # version of the startup banner!
  30.  
  31. CC        = gcc
  32. #CFLAGS        = -DLESS_OBNOXIOUS
  33. CFLAGS        = 
  34. LDFLAGS        = -lm
  35. OPTFLAGS    = -O
  36.  
  37. all        : hugs
  38.  
  39. hugs        : $(IOBJECTS)
  40.           $(CC) $(OPTFLAGS) $(IOBJECTS) -o hugs $(LDFLAGS)
  41.           strip hugs
  42.  
  43. .c.o        :
  44.           $(CC) -c $(CFLAGS) $(OPTFLAGS) $<
  45.  
  46. clean        :
  47.           rm *.o
  48.  
  49. parser.c    : parser.y
  50.           -yacc parser.y
  51.           mv y.tab.c parser.c
  52.  
  53. hugs.o        : prelude.h storage.h connect.h errors.h \
  54.           command.h machdep.c commonui.c
  55. storage.o    : prelude.h storage.h connect.h errors.h
  56. input.o        : prelude.h storage.h connect.h errors.h parser.c command.h
  57. static.o    : prelude.h storage.h connect.h errors.h
  58. type.o        : prelude.h storage.h connect.h errors.h preds.c kind.c subst.c
  59. output.o    : prelude.h storage.h connect.h errors.h
  60. compiler.o    : prelude.h storage.h connect.h errors.h
  61.           $(CC) -c $(CFLAGS) compiler.c
  62. machine.o    : prelude.h storage.h connect.h errors.h
  63. builtin.o    : prelude.h storage.h connect.h errors.h bignums.c
  64.