Hi,
cross-development with GRX has always required some manual hacking:
You have to adjust compiler, linker, etc. manually, and when you try
to use, for instance, makefile.dj2 under GNU/Linux, `make clean' fails
because the shell does not like `if exist foo.o del foo.o'.
The attached `diff' patches the configure script and the makefiles such
that all this works automatically. :-)
If you do not cross-compile, you should not notice the difference, but,
as I do not have a self-hosting DJGPP or MINGW intalled, I did not test
this.
How this works:
- The target directory is now named INSTALLDIR for all platforms.
(This makes it much easier and less error-prone to configure it
automatically.)
- There is a new variable CROSS_PLATFORM which contains the prefix for
the cross development tools (e.g. "i386-mingw32-" when you want to
use i386-mingw32-gcc instead of plain gcc).
- There is a new variable HAVE_UNIX_TOOLS. When set to "y", the DJ2 and
W32 makefiles use "rm" instead of "del", "cp" instead of "copy", etc.
This is needed for cross-development, but it is also useful if you
are working with a self-hosting DJGPP or mingw32.
- You can edit all this in makedefs.grx. In addition, the configure
script has been adapted to set these variables automatically
if you feed it with a GCC-style target specification such as
"--target=i386-pc-msdosdjgpp".
Have fun,
Peter