Ed Johnson - 2004-09-14

I need to have cppunit run on multiple architectures. i.e. If I develop on windows/cygwin, I need to be able to ftp my project to solaris or linux, and anyone should be able to compile and run the cppunit tests just by using my make file.

I have read and tried to use the "Compiling For Multiple Architectures" section of the INSTALL file, and it is about as clear as mud to me.

For instance, "cd' to the directory where you want the object files and executables to go and run the `configure' script."

This does nothing. Why would this step allow me to run cppunit on multiple architectures? I didn't specify anything new to the configure script.  Am I supposed to configure the VPATH variable before running configure, or just have it supported by my 'make'?

Also, when I try option 2:
"you have to compile the package for one architecture at a time in the source code directory."

Does this mean that I need to have compiled one object file apiece for from every platform that I will want to possibly use. Then move each of the object files from the difference computers, and put each one in a separate directory on my machine. At which point, I 'cd' into each directory, then call '../configure', and then each directory will have it's own system dependent files created?

Thanks in advance, I'm obvously very confused.

-Ed

--------------------------------------

"   You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory.  To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'.  `cd' to the
directory where you want the object files and executables to go and run the `configure' script.  `configure' automatically checks for the source code in the directory that `configure' is in and in `..'.

   If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory.  After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture."