1 ### Makefile.inc --- Inclusion part
3 ## Copyright (C) 2010, 2011, 2012 Didier Verna.
5 ## Author: Didier Verna <didier@lrde.epita.fr>
6 ## Maintainer: Didier Verna <didier@lrde.epita.fr>
8 ## This file is part of Clon.
10 ## Permission to use, copy, modify, and distribute this software for any
11 ## purpose with or without fee is hereby granted, provided that the above
12 ## copyright notice and this permission notice appear in all copies.
14 ## THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
15 ## WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16 ## MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17 ## ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18 ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19 ## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20 ## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 ## Contents management by FCM version 0.1.
31 PACKAGE := com.dvlsoft.$(PROJECT)
32 ASDF_FILE := $(PACKAGE).asd
36 SHARE := $(PREFIX)/share
38 W3DIR := $(HOME)/www/software/lisp/$(PROJECT)
51 CMUCL_DUMP := -noinit -nositeinit $(CMUCL_LOAD)
57 CCL_DUMP := --no-init $(CCL_LOAD)
63 ECL_DUMP := -norc $(ECL_LOAD)
68 CLISP_DUMP := -norc $(CLISP_LOAD)
74 ABCL_DUMP := --batch $(ABCL_EVAL) '\
75 (progn (defvar cl-user::$(PACKAGE).configuration nil)\
76 (setf (getf cl-user::$(PACKAGE).configuration :dump) t))' \
79 ifeq ($(RESTRICTED),t)
80 CONFIG := '(progn (defvar cl-user::$(PACKAGE).configuration nil) \
81 (setf (getf cl-user::$(PACKAGE).configuration :restricted) t))'
83 EVAL_CONFIG := $($(LISP)_LOAD) $(TOP_DIR)/.clisp.cnf
85 EVAL_CONFIG := $($(LISP)_EVAL) $(CONFIG)
92 # This is a gross hack for compensating the lack of --eval option to clisp.
93 # This rule doesn't actually create any clisp.inc file, but a clisp
94 # configuration file that will be loaded with -i, and which is redone every
95 # time make is called (several times actually). This is not a clean solution
96 # but it works. Every Makefile that needs to run $(LISP) needs to include
97 # clisp.inc in order for this to work.
99 echo $(CONFIG) > $(TOP_DIR)/.clisp.cnf
101 # The rule below duplicates what the one above does, but it's needed for
102 # makefiles that include both version.inc and clisp.inc. This is necessary
103 # because Make wants to redo things in the wrong order and hence would call
104 # clisp -i .clisp.cnf without this file having been created first.
105 $(TOP_DIR)/version.inc: $(TOP_DIR)/version.cl $(TOP_DIR)/$(ASDF_FILE)
107 echo $(CONFIG) > $(TOP_DIR)/.clisp.cnf
109 $($(LISP)_PATH) $(EVAL_CONFIG) \
110 $($(LISP)_LOAD) $(TOP_DIR)/version.cl \
115 ### Makefile.inc ends here