Last active
October 25, 2016 02:55
-
-
Save letoh/72a856577007f2b8d8c14bd8cfc746cd to your computer and use it in GitHub Desktop.
Common Lisp package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defpackage package-a | |
(:use :cl) | |
(:export :test-struct)) | |
(in-package :package-a) | |
(defstruct test-struct | |
slot1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defpackage package-b | |
(:use :cl | |
:package-a) | |
(:export :main)) | |
(in-package :package-b) | |
(defstruct (test-struct2 (:include test-struct | |
;(slot1 100) | |
)) | |
slot2) | |
(defun main (&rest argv) | |
(declare (ignorable argv)) | |
(print (make-test-struct2))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(load "a.lisp") | |
(load "b.lisp") | |
(save-application "test-app" :toplevel-function #'package-b:main :prepend-kernel t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BIN = test-app | |
all: $(BIN) | |
test-app: a.lisp b.lisp | |
ccl64 -l build.lisp | |
clean: | |
rm -f $(BIN) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment