ef655b8411afdd386f4c9b80b679bf7d000b956e
[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.20 2002/09/06 10:56:13 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 :make)
21
22 #-clsql-base
23 (let ((path (make-pathname :name "clsql-base" :type "system"
24                                       :defaults *load-truename*)))
25   (when (probe-file path)
26     (load path)))
27
28 ;;; System definitions
29
30 (defsystem :clsql
31   :source-pathname #.(format nil "~A:clsql;"
32                              #+common-lisp-controller "cl-library"
33                              #-common-lisp-controller "clsql")
34   :source-extension "cl"
35   :components ((:file "package")
36                (:file "pool" :depends-on ("package"))
37                (:file "loop-extension")
38                (:file "sql" :depends-on ("pool"))
39                (:file "transactions" :depends-on ("sql"))
40                (:file "functional" :depends-on ("sql"))
41                (:file "usql" :depends-on ("sql")))
42   :depends-on (:clsql-base)
43   :finally-do
44   (pushnew :clsql cl:*features*)
45   )