Notes:

  1. How to compile kaffe from the scratch?
  2. How to rebuild jar files?
  3. How to compile directly from CVS?
  4. How to merge with original Kaffe?
  5. How to debug Kaffe?
  6. More notes about modification of kaffe.

How to compile from the scratch?

  1. autoconf (to generate configure)
  2. automake (to generate Makefile.in)
  3. also run autoconf & automake under ./libltdl
  4. ./configure
  5. gmake
  6. gmake install

How to rebuild jar files?

  1. Make sure kaffe is up to date.
  2. go to corresponding directory, eg ./kaffe_src/libraries/javalib
  3. make build-classes

How to compile directly from CVS?

  1. check out from cvs.
  2. rebuild jar files. (Go to next step. Not necessary any more.)
  3. compile fropm scratch.

How to merge with original Kaffe?

  1. Unarchive the orginal kaffe source code, say in directory ./kaffe-x.x.x. Here x.x.x is version of the orginal kaffe source code.
  2. cd kaffe-x.x.x
  3. cvs import -m "Import of kaffe v. x.x.x" kaffe_src RT_KAFFE KAFFE_X_X_X
  4. cd ..
  5. cvs checkout -jRT_KAFFE:yesterday -jRT_KAFFE kaffe_src
  6. compile the original kaffe.
  7. copy the jar from original source code to checkout directory, i.e. kaffe_src, corresponding directories.
  8. resolve conflictions.
  9. rebuild the extended jar.
  10. compile kaffe.

How to debug Kaffe?

  1. Set environment KAFFE_DEBUG to "gdb", "emacs", or "xemacs".
    1. eg. export KAFFE_DEBUG="xemacs"
  2. Run kaffe as usual.