[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: portable.h and portable.nt question
At 11:28 AM 7/10/2003, Kammerloher, Josef wrote:
>Hello,
>I write a new backend for OpenLDAP and want to compile the source
>simultaniously on both Windows and Solaris and Linux.
You should be able to do this. For Solaris and Linux and Windows
under Cygwin/MinGW, just create separate object directories for
each platform and run configure from each. For example:
cd ldap (top of source tree)
mkdir linux
cd linux
../configure
Repeat for other platforms.
And should be able to source tree for MSVC builds if you like.
Kurt
>But I can do it only sequentially:
>After Solaris compilation, I have to "cp portable.nt portable.h", then I can
>do a windows compilation.
>
>Do I make something wrong ?
>Should portable.h contain some lines like
>#ifdef WIN32
>#include "portable.nt"
>#else
>...
>#endif
>
>
>Another question:
>Is it possible/planned to separate the source and result ( *.o, *.obj )
>directory ?
>
>Thanks,
>Josef Kammerloher