вот для файла (проверял на sbcl):
(defmacro make-file (&key (lisp-file "exe_lab.lisp") (exe-file "exe-lab-main") (toplevel 'main))
#+sbcl `(with-external ()
;; (ql:quickload :swank)
(load ,lisp-file)
(sb-ext:save-lisp-and-die ,exe-file :executable t :toplevel ',toplevel :compression t))
#+ccl `(with-external ()
(load ,lisp-file)
(ccl:save-application ,exe-file :toplevel-function ,toplevel :prepend-kernel t))
;; #+ecl '(with-external ()
;; (load ,lisp-file)
;; (c:build-program ,exe-file ))
)