3 ### Build script for `runlisp'
5 ### (c) 2020 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of Runlisp, a tool for invoking Common Lisp scripts.
12 ### Runlisp is free software: you can redistribute it and/or modify it
13 ### under the terms of the GNU General Public License as published by the
14 ### Free Software Foundation; either version 3 of the License, or (at your
15 ### option) any later version.
17 ### Runlisp is distributed in the hope that it will be useful, but WITHOUT
18 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 ### You should have received a copy of the GNU General Public License
23 ### along with Runlisp. If not, see <https://www.gnu.org/licenses/>.
25 include $(top_srcdir)/vars.am
35 ACLOCAL_AMFLAGS = -Im4
37 ###--------------------------------------------------------------------------
38 ### The main driver program.
40 bin_PROGRAMS += runlisp
41 runlisp_SOURCES = runlisp.c
44 ###--------------------------------------------------------------------------
45 ### Additional machinery.
47 pkgdata_DATA += eval.lisp
48 EXTRA_DIST += eval.lisp
50 ###--------------------------------------------------------------------------
53 nodist_bin_SCRIPTS += dump-runlisp-image
54 man_MANS += dump-runlisp-image.1
56 v_dump = $(v_dump_@AM_V@)
57 v_dump_ = $(v_dump_@AM_DEFAULT_V@)
58 v_dump_0 = @echo " DUMP $@";
60 EXTRA_DIST += dump-runlisp-image.in
61 CLEANFILES += dump-runlisp-image
62 dump-runlisp-image: dump-runlisp-image.in
63 $(SUBST) $(srcdir)/dump-runlisp-image.in >$@.new \
65 chmod +x $@.new && mv $@.new $@
68 image_DATA += sbcl+asdf.core
69 CLEANFILES += sbcl+asdf.core
70 sbcl+asdf.core: dump-runlisp-image
71 $(v_dump)./dump-runlisp-image -o$@ sbcl
75 image_DATA += ccl+asdf.image
76 CLEANFILES += ccl+asdf.image
77 ccl+asdf.image: dump-runlisp-image
78 $(v_dump)./dump-runlisp-image -o$@ ccl
82 image_DATA += clisp+asdf.mem
83 CLEANFILES += clisp+asdf.mem
84 clisp+asdf.mem: dump-runlisp-image
85 $(v_dump)./dump-runlisp-image -o$@ clisp
89 image_SCRIPTS += ecl+asdf
90 CLEANFILES += ecl+asdf
91 ecl+asdf: dump-runlisp-image
92 $(v_dump)./dump-runlisp-image -o$@ ecl
96 image_DATA += cmucl+asdf.core
97 CLEANFILES += cmucl+asdf.core
98 cmucl+asdf.core: dump-runlisp-image
99 $(v_dump)./dump-runlisp-image -o$@ cmucl
102 ###--------------------------------------------------------------------------
103 ### Benchmarking and testing.
111 ###--------------------------------------------------------------------------
116 echo $(VERSION) >$(distdir)/RELEASE
118 ## Additional build tools.
119 EXTRA_DIST += config/auto-version
121 ###----- That's all, folks --------------------------------------------------