r1995: rework logical pathnames to better fit common-lisp-controller
[clsql.git] / clsql.system
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          clsql.system
6 ;;;; Purpose:       Defsystem-3/4 for CLSQL
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; $Id: clsql.system,v 1.9 2002/05/13 00:45:10 kevin Exp $
11 ;;;;
12 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; CLSQL 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 (handler-case
23     (logical-pathname-translations "CL-LIBRARY")
24   (error ()
25       (load (make-pathname :name "set-cl-library" :type "cl"
26                            :defaults *load-truename*))))
27
28 ;;; System definitions
29
30 (mk:defsystem :cmucl-compat
31     :source-pathname "CL-LIBRARY:clsql;cmucl-compat;"
32     :source-extension "cl"
33     :binary-pathname "CL-LIBRARY:clsql;cmucl-compat;bin;"
34     :components ((:file "cmucl-compat")
35                  (:file "loop-extension")))
36
37 (mk:defsystem :clsql
38     :source-pathname "CL-LIBRARY:clsql;sql;"
39     :source-extension "cl"
40     :binary-pathname "CL-LIBRARY:clsql;sql;bin;"
41     :components ((:file "pool")
42                  (:file "sql" :depends-on ("pool"))
43                  (:file "transactions" :depends-on ("sql"))
44                  (:file "utils")
45                  (:file "functional" :depends-on ("sql"))
46                  (:file "usql" :depends-on ("sql")))
47     :depends-on (:clsql-base)
48     :finally-do
49     (pushnew :clsql cl:*features*)
50     )