https://github.com/fukamachi/cl-project

  1. (ql:quickload "cl-project")
  2. (cl-project:make-project #p"myapp"
  3. :author "Your name"
  4. :email "your@email.com"
  5. :license "BSD or whatever")
  6. (ql:quickload "myapp")
  7. (in-package :myapp)

vim myapp/src/main.lisp

  1. (defpackage myapp
  2. (:use :cl))
  3. (in-package :myapp)
  4. ;; blah blah blah.
  5. (defun hello-world ()
  6. (format t "Hello world..~%"))
  7. (export 'main)
  8. (defun main (args)
  9. (hello-world)
  10. (cl-user::quit))

生成可执行文件:

  1. buildapp --asdf-tree ~/quicklisp/dists/quicklisp/software --load-system myapp --entry myapp:main --output hello

执行文件

  1. ./hello
文档更新时间: 2019-06-18 10:44