r2572: Auto commit for Debian build
[uffi.git] / uffi.system
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          uffi.system
6 ;;;; Purpose:       Defsystem-3/4 system definition file for UFFI package
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; $Id: uffi.system,v 1.19 2002/08/23 19:46:16 kevin Exp $
11 ;;;;
12 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; UFFI users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
18
19 (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
20 (in-package :make)
21
22 ;; For use with non-Common Lisp Controller installations
23 #-common-lisp-controller
24 (let ((path (make-pathname :name "set-logical" :type "cl"
25                                       :defaults *load-truename*)))
26   (when (probe-file path)
27     (load path)
28     (set-logical-host-for-pathname 
29      "uffi" 
30      (make-pathname :host (pathname-host *load-truename*)
31                     :device (pathname-device *load-truename*)
32                     :directory (pathname-directory *load-truename*)))))
33
34 (defconstant +uffi-logical-host+
35   #+common-lisp-controller "cl-library"
36   #-common-lisp-controller "uffi"
37   "Logical hostname for loading system")
38
39 (make:defsystem :uffi
40     :source-pathname 
41     #-mcl #.(format nil "~A:uffi;" +uffi-logical-host+)
42     #+mcl  #.(format nil "~A:uffi;mcl;" +uffi-logical-host+)
43     :source-extension "cl"
44     :components 
45     ((:file "package")
46      (:file "primitives" :depends-on ("package"))
47      (:file "strings" :depends-on ("primitives"))
48      (:file "objects" :depends-on ("primitives"))
49      (:file "aggregates" :depends-on ("primitives"))
50      (:file "functions" :depends-on ("primitives"))
51      (:file "libraries" :depends-on ("package")))
52     :finally-do
53     (pushnew :uffi cl:*features*))