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
42 runlisp_SOURCES += common.c common.h
43 runlisp_SOURCES += lib.c lib.h
44 runlisp_SOURCES += mdwopt.c mdwopt.h
47 noinst_PROGRAMS += old-runlisp
48 old_runlisp_SOURCES = old-runlisp.c
49 old_runlisp_SOURCES += lib.c lib.h
51 noinst_PROGRAMS += toy
53 toy_SOURCES += lib.c lib.h
55 ###--------------------------------------------------------------------------
56 ### Additional machinery.
58 pkgdata_DATA += eval.lisp
59 EXTRA_DIST += eval.lisp
61 ###--------------------------------------------------------------------------
64 bin_PROGRAMS += dump-runlisp-image
65 dump_runlisp_image_SOURCES = dump-runlisp-image.c
66 dump_runlisp_image_SOURCES += common.c common.h
67 dump_runlisp_image_SOURCES += lib.c lib.h
68 dump_runlisp_image_SOURCES += mdwopt.c mdwopt.h
69 man_MANS += dump-runlisp-image.1
71 DUMP_RUNLISP_IMAGE = $(v_dump)./dump-runlisp-image \
72 -f -c$(srcdir)/runlisp.conf -O$@
74 v_dump = $(v_dump_@AM_V@)
75 v_dump_ = $(v_dump_@AM_DEFAULT_V@)
76 v_dump_0 = @echo " DUMP $@";
79 image_DATA += sbcl+asdf.core
80 CLEANFILES += sbcl+asdf.core
81 sbcl+asdf.core: dump-runlisp-image runlisp.conf
82 $(DUMP_RUNLISP_IMAGE) sbcl
86 image_DATA += ccl+asdf.image
87 CLEANFILES += ccl+asdf.image
88 ccl+asdf.image: dump-runlisp-image runlisp.conf
89 $(DUMP_RUNLISP_IMAGE) ccl
93 image_DATA += clisp+asdf.mem
94 CLEANFILES += clisp+asdf.mem
95 clisp+asdf.mem: dump-runlisp-image runlisp.conf
96 $(DUMP_RUNLISP_IMAGE) clisp
100 image_SCRIPTS += ecl+asdf
101 CLEANFILES += ecl+asdf
102 ecl+asdf: dump-runlisp-image runlisp.conf
103 $(DUMP_RUNLISP_IMAGE) -odata-dir=$(srcdir) ecl
107 image_DATA += cmucl+asdf.core
108 CLEANFILES += cmucl+asdf.core
109 cmucl+asdf.core: dump-runlisp-image runlisp.conf
110 $(DUMP_RUNLISP_IMAGE) cmucl
113 ###--------------------------------------------------------------------------
114 ### Benchmarking and testing.
122 ###--------------------------------------------------------------------------
127 echo $(VERSION) >$(distdir)/RELEASE
129 ## Additional build tools.
130 EXTRA_DIST += config/auto-version
132 ###----- That's all, folks --------------------------------------------------