I have altered the CrossCompile.mk and libCrossCompile.mk files to take care of MorphOS aswell. It uses the 'uname' command -- I hope this return 'MorphOS' on MorphOS. Edit them as you see fit, and tell me of any changes.
Changed in code. Seems to work for OS4 aswell.
Added #ifdef for that one.
Yes. I know. This file is in progress, and is in an even bigger mess now.
The thing is that the GNU CP implementation is very *nix-specific, assuming fork and stuff, whereas the actual Java implementation only has a very simple interface. So I'm curently in the process of ripping out all unneccessary stuff, and trying to map the Java interface more closely to the Amiga interface.
This does imply there are a few changes needed to the GNU CP, more precisely, a new VMProcess.class. This will in due time be available, but for now it isn't. I believe the best way is to remove any code in java_lang_VMProcess.c, keeping only empty functions. You won't be able to use Runtime.exec(), but other stuff would function okay.
I just committed a version that only has rudimentary functionality to the SVN, you could try that, and just comment stuff out if it doesn't compile -- as mentioned, Runtime.exec() (basically anything that launches external programs, like mauve) might not work very well, but other stuff should function.
Thank you for your efforts!
/Joakim