| 1 |
=========================== |
| 2 |
RANDOM NOTES FOR DEVELOPERS |
| 3 |
=========================== |
| 4 |
|
| 5 |
build system |
| 6 |
------------ |
| 7 |
configure checks for each lisp interpretor on existence, and |
| 8 |
exports `<NAME>_interp', `<NAME>_dump', and the list of requested |
| 9 |
in `lisp'. |
| 10 |
|
| 11 |
configure generates the following files: |
| 12 |
Makefile <- Makefile.in |
| 13 |
make-cafeobj.lisp <- make-cafeobj.lisp.in |
| 14 |
xbin/cafeobj.in <- xbin/cafeobj.in.in |
| 15 |
doc/Makefile.in <- doc/Makefile |
| 16 |
After that, xbin/cafeobj is created from the Makefile by a sed command. |
| 17 |
|
| 18 |
other lisp interpreters |
| 19 |
----------------------- |
| 20 |
Although by default only acl, sbcl, clisp is checked and build for, |
| 21 |
the following lisp implementations can also be used, but are |
| 22 |
currently not supported. Builds will fail. |
| 23 |
configure argument program name |
| 24 |
cmu lisp -- CMU-CL |
| 25 |
gcl gcl -- GNU Common Lisp |
| 26 |
ccl ccl -- openmcl |
| 27 |
ccl64 ccl64 -- openmcl 64 bit |
| 28 |
|
| 29 |
adding a lisp interpreter |
| 30 |
------------------------- |
| 31 |
Adding a new interpreter requires (at least) changes to the following |
| 32 |
files (more or less symmetric to all the others): |
| 33 |
- configure.ac |
| 34 |
- Makefile.in |
| 35 |
- xbin/cafeobj.in.in |
| 36 |
- make-cafeobj.lisp.in |
| 37 |
|
| 38 |
building for windows |
| 39 |
-------------------- |
| 40 |
If Wine is installed, and within wine sbcl is installed, one can create |
| 41 |
a dump for Windows with |
| 42 |
./configure --enable-windows |
| 43 |
make |
| 44 |
One can set the used wine prefix with WINEPREFIX. This creates already |
| 45 |
release ready .zip |
| 46 |
|
| 47 |
|
| 48 |
building using ACL on Windows |
| 49 |
----------------------------- |
| 50 |
Building distribution tarballs on Windows using ACL requires a few more steps: |
| 51 |
- configure CafeOBJ sources with |
| 52 |
./configure |
| 53 |
no special argument is necessary. |
| 54 |
- transfer the files to Windows |
| 55 |
- start ACL (alisp.exe) in the CafeOBJ source directory and type |
| 56 |
:ld make-deliv |
| 57 |
This will create the necessary files in |
| 58 |
dist/cafeobj-N.M |
| 59 |
but all the support files are missing. |
| 60 |
- add the support files |
| 61 |
best way is to use an SBCL build, remove the SBCL dump and add the files |
| 62 |
from dist/cafeobj-N.M as above |
| 63 |
- replace the binary |
| 64 |
by default, the ACL created CafeOBJ.exe opens a dedicated Window for the |
| 65 |
execution. If this is not acceptable (ie, this is what the CafeOBJ team |
| 66 |
does during preparation of release packages): |
| 67 |
Replace CafeOBJ.exe in dist/cafeobj-N.M |
| 68 |
with buildi.exe from the respective ACL directory |
| 69 |
This ensures that the interpreter is just opened in the current terminal |
| 70 |
window. |
| 71 |
|
| 72 |
building for distribution |
| 73 |
------------------------- |
| 74 |
For the binary distributions there is a switch |
| 75 |
./configure --enable-distribution |
| 76 |
which builds all requested cafeobj/lisp combinations (see above) and |
| 77 |
installs them into the prefix=./dist, followed by the necessary calls |
| 78 |
to make-release-tarballs. |
| 79 |
|
| 80 |
See above for getting release zips for Windows/sbcl |
| 81 |
|
| 82 |
making a release |
| 83 |
---------------- |
| 84 |
|
| 85 |
(tentative) |
| 86 |
|
| 87 |
- clean up the git repository (git status --ignored) |
| 88 |
- update version number in |
| 89 |
. configure.ac |
| 90 |
. macport/ports/lang/cafeobj/Portfile |
| 91 |
. doc/refman/reference-manual.md |
| 92 |
- run autoreconf |
| 93 |
- update the ports |
| 94 |
. cd macport/ports && portindex |
| 95 |
- update the NEWS file |
| 96 |
- commit the changes |
| 97 |
- build the source code tarball |
| 98 |
. make-source-tarball |
| 99 |
- build the binary packages: |
| 100 |
. unpack the source tarball |
| 101 |
. run (on 64bit and 32bit systems) |
| 102 |
./configure --with-lisp=acl-standalone --enable-distribution |
| 103 |
make |
| 104 |
make distclean |
| 105 |
./configure --with-lisp=sbcl --enable-distribution |
| 106 |
make |
| 107 |
make distclean |
| 108 |
. for Windows/SBCL |
| 109 |
./configure --enable-windows |
| 110 |
make |
| 111 |
- upload all files to cafeobj.org/files/A.B.C/ |
| 112 |
- update the "Download" page on cafeobj.org |
| 113 |
- prepare a release post |
| 114 |
|
| 115 |
-- EOF |