;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: uffi.system,v 1.14 2002/04/09 20:06:18 kevin Exp $
+;;;; $Id: uffi.system,v 1.19 2002/08/23 19:46:16 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;; *************************************************************************
(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
-(in-package :cl-user)
+(in-package :make)
-(load (make-pathname :name "set-logical" :type "cl"
- :defaults *load-truename*))
+;; For use with non-Common Lisp Controller installations
+#-common-lisp-controller
+(let ((path (make-pathname :name "set-logical" :type "cl"
+ :defaults *load-truename*)))
+ (when (probe-file path)
+ (load path)
+ (set-logical-host-for-pathname
+ "uffi"
+ (make-pathname :host (pathname-host *load-truename*)
+ :device (pathname-device *load-truename*)
+ :directory (pathname-directory *load-truename*)))))
-(set-logical-host-for-pathname "UFFI" *load-truename*)
-(set-logical-host-for-pathname "UFFI-SRC"
- (merge-pathnames
- (make-pathname
- :directory
- #+(or cmu allegro lispworks)
- '(:relative "src")
- #+mcl
- '(:relative "src" "mcl")
- #+cormanlisp
- '(:relative "src" "corman")
- )
- *load-truename*))
+(defconstant +uffi-logical-host+
+ #+common-lisp-controller "cl-library"
+ #-common-lisp-controller "uffi"
+ "Logical hostname for loading system")
-;;; UFFI system definition
-
-(mk:defsystem :uffi
- :source-pathname "UFFI-SRC:"
+(make:defsystem :uffi
+ :source-pathname
+ #-mcl #.(format nil "~A:uffi;" +uffi-logical-host+)
+ #+mcl #.(format nil "~A:uffi;mcl;" +uffi-logical-host+)
:source-extension "cl"
- :binary-pathname "UFFI-SRC:bin;"
:components
((:file "package")
(:file "primitives" :depends-on ("package"))
(:file "libraries" :depends-on ("package")))
:finally-do
(pushnew :uffi cl:*features*))
-