aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-01-24 04:32:02 +0100
committerTeddy Wing2021-01-24 04:32:02 +0100
commit1daff6888cf830ad9dbfd20dd22b0c58eb6b713d (patch)
tree21638b2827bd3248a3c4fb0bff8756884e407d80
parente85f50d8b661891464f7558af6cb65b3548ed4e5 (diff)
downloadextreload-1daff6888cf830ad9dbfd20dd22b0c58eb6b713d.tar.bz2
Build executable
Build an executable binary by dumping an SBCL image, using the method described in: https://lispcookbook.github.io/cl-cookbook/scripting.html#with-asdf
-rw-r--r--l/Makefile7
-rw-r--r--l/extreload.asd6
2 files changed, 12 insertions, 1 deletions
diff --git a/l/Makefile b/l/Makefile
new file mode 100644
index 0000000..ce59ba8
--- /dev/null
+++ b/l/Makefile
@@ -0,0 +1,7 @@
+LISP ?= sbcl
+
+build:
+ $(LISP) --load extreload.asd \
+ --eval '(ql:quickload :extreload)' \
+ --eval '(asdf:make :extreload)' \
+ --eval '(quit)'
diff --git a/l/extreload.asd b/l/extreload.asd
index b5e62b4..5edcdd7 100644
--- a/l/extreload.asd
+++ b/l/extreload.asd
@@ -5,4 +5,8 @@
:components ((:module "src"
:serial t
:components ((:file "package")
- (:file "main")))))
+ (:file "main"))))
+
+ :build-operation "program-op"
+ :build-pathname "extreload"
+ :entry-point "extreload:main")