From 1daff6888cf830ad9dbfd20dd22b0c58eb6b713d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 24 Jan 2021 04:32:02 +0100 Subject: 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 --- l/Makefile | 7 +++++++ l/extreload.asd | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 l/Makefile 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") -- cgit v1.2.3