diff --git a/examples/asdf/example.asd b/examples/asdf/example.asd new file mode 100644 index 000000000..b9da7b858 --- /dev/null +++ b/examples/asdf/example.asd @@ -0,0 +1,9 @@ +;; +;; System definition used in readme.lisp +;; + +(asdf:defsystem #:example + :serial t + :components ((:file "file1") + (:file "file2"))) + diff --git a/examples/asdf/file2.lisp b/examples/asdf/file2.lisp index 667da4cfd..58b2daac8 100644 --- a/examples/asdf/file2.lisp +++ b/examples/asdf/file2.lisp @@ -7,4 +7,3 @@ (princ "Finished") (terpri) (princ "======================================================================") (terpri) - diff --git a/examples/asdf/readme.lisp b/examples/asdf/readme.lisp index 74e665722..7f13f6467 100644 --- a/examples/asdf/readme.lisp +++ b/examples/asdf/readme.lisp @@ -18,10 +18,9 @@ (require 'asdf) (require 'cmp) -(use-package :asdf) (setf *load-verbose* nil) -(setf c::*compile-verbose* nil) +(setf *compile-verbose* nil) (setf c::*suppress-compiler-warnings* t) (setf c::*suppress-compiler-notes* t) @@ -32,21 +31,6 @@ ;;; ;;(trace c::builder) -;;; -;;; Next we create a definition containing the files in our project. -;;; Notice that file2.lisp depends on file1.lisp, hence the ":serial t" -;;; -(princ " - -Loading definition file. - -") - -(defsystem #:example - :serial t - :components ((:file "file1") - (:file "file2"))) - ;;; ;;; Now we attempt building a single FASL file containing all those files. ;;; Notice that we remove any previous fasl file. @@ -79,7 +63,7 @@ Loading FASL file example.fas Building standalone executable 'example' ('example.exe' in Windows) ") -(asdf:make-build :example :type :program) +(asdf:make-build :example :type :program :args (list :epilogue-code '(ext:quit 0))) ;;; ;;; Test the program