home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / swat / Makefile
Makefile  |  2000-03-20  |  2KB  |  60 lines

  1. ##
  2. ## $Id: Makefile,v 1.5 2000/03/21 04:22:02 cph Exp $
  3. ##
  4. ## 
  5. ##
  6.  
  7. #_______________________________________________________________________
  8. #
  9. # Installation configuration
  10. #
  11. # Where the installed version of SWAT lives
  12.  
  13. INSTALL_DIR=/scheme/8.0/700/lib/swat
  14.  
  15. # SWAT's own copies of tcl and tk.  These definitions are passed down to
  16. # the compilation of Tk and Tcl and become hard paths in the tcl.sl
  17. # and tk.sl libraries.  DO NOT point these to source directories: the
  18. # installation cleans them out.
  19.  
  20. TCL_LIBRARY = $(INSTALL_DIR)/tcl_lib
  21. TK_LIBRARY = $(INSTALL_DIR)/tk_lib
  22.  
  23. #_______________________________________________________________________
  24.  
  25. C_LIBRARIES = c/scxl.sl c/tk.sl c/tcl.sl c/uitk.sl
  26.  
  27. all:
  28.     echo "No all target."
  29.     echo "Only make install"
  30.     exit 1
  31.  
  32. install: scheme/compiled
  33.     (cd c; make TCL_LIBRARY=$(TCL_LIBRARY) TK_LIBRARY=$(TK_LIBRARY) all)
  34.     # Remove dynload separatly first: will fail if SWAT is in use.
  35.     rm -rf $(INSTALL_DIR)/dynload
  36.     rm -rf $(INSTALL_DIR) $(TCL_LIBRARY) $(TK_LIBRARY)
  37.     mkdir  $(INSTALL_DIR) $(INSTALL_DIR)/dynload \
  38.                $(TCL_LIBRARY) $(TK_LIBRARY)
  39.     cp -p $(C_LIBRARIES) $(INSTALL_DIR)/dynload
  40.     (cd c/tk3.2/library;     cp -p *.tcl tclIndex prolog.ps  $(TK_LIBRARY))
  41.     (cd c/tk3.2/tcl/library; cp -p *.tcl tclIndex  $(TCL_LIBRARY))
  42.     (cd scheme; cp -p load.scm *.com *.bci demo-*.scm $(INSTALL_DIR))
  43.     echo "Installation complete"
  44.  
  45.  
  46. #$(C_LIBRARIES):
  47.  
  48.  
  49. scheme/compiled:
  50.     echo "Build Scheme subsystem  with scheme compiler"
  51.     exit 1
  52.     (cd scheme; \
  53.      echo '(load "swat.sf") (load "swat.cbf")' | $(SCHEME) -compiler \
  54.     )
  55.  
  56. clean:
  57.  
  58. TAGS:
  59.     etags scheme/*.scm c/*.c
  60.