r1727: *** empty log message ***
[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.10 2002/04/03 00:31:32 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 :cl-user)
21
22 (load (make-pathname :name "set-logical" :type "cl"
23                      :defaults *load-truename*))
24
25 (set-logical-host-for-pathname "UFFI" *load-truename*)
26
27 (defconstant +uffi-src-dir+ 
28   (format nil "UFFI:src;~A;"
29           #+allegro "allegro"
30           #+lispworks "lispworks"
31           #+cmu "cmucl"
32           #+mcl "mcl"
33           #+clisp "clisp"
34           #+corman "corman")
35   "Logical pathname for source")
36
37 (defconstant +uffi-bin-dir+ (concatenate 'string +uffi-src-dir+ "bin;")
38   "Logical pathname for binaries")
39
40 ;;; UFFI system definition
41
42 #+(or cmu allegro lispworks)
43 (mk:defsystem :uffi
44     :source-pathname "UFFI:src;"
45     :source-extension "cl"
46     :binary-pathname "UFFI:src;bin;"
47     :components 
48     ((:file "package")
49      (:file "primitives" :depends-on ("package"))
50      (:file "strings" :depends-on ("primitives"))
51      (:file "objects" :depends-on ("primitives"))
52      (:file "aggregates" :depends-on ("primitives"))
53      (:file "functions" :depends-on ("primitives"))
54      (:file "libraries" :depends-on ("package")))
55     :finally-do
56     (pushnew :uffi cl:*features*))
57
58 #-(or cmu allegro lispworks)
59 (mk:defsystem :uffi
60     :source-pathname #.+uffi-src-dir+
61     :source-extension "cl"
62     :binary-pathname #.+uffi-bin-dir+
63     :components 
64     ((:file "package")
65      (:file "primitives" :depends-on ("package"))
66      (:file "strings" :depends-on ("primitives"))
67      (:file "objects" :depends-on ("primitives"))
68      (:file "aggregates" :depends-on ("primitives"))
69      (:file "functions" :depends-on ("primitives"))
70      (:file "libraries" :depends-on ("package"))))
71
72  
73
74
75
76
77