Spiro Trikaliotis wrote:



Well, it depends upon the tool you're using. We are building drivers, and they need the build.exe tool, which is part of the DDK. That one can only compile files in the current directory. As John has pointed out, it might even be able to compile files in the parent directory, which would help here.

I've done several developments for Windows drivers where some of the driver source was shared with Linux and BSD drivers. The solution we came up with was to write a perl build script for the Linux & BSD drivers which generated a makefile (in a build directory) from the data
accumulated from the sources files in each directory.
The advantages of this are:
1. only have to modify one file when adding a new source file.
2. Linux drivers can be built using supported mechanism e.g. kbuild for
linux.
3. Windows drivers are built in DDK environment using dirs/sources
mechanism as supported by MS.


So this means that the Windows Makefiles are stored in the main source tree and the Linux Makefile is generated by a script and is placed in a separate build directory.

Mike



_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs

Reply via email to