|
From: | Mike Pumford |
Subject: | Re: Two different platforms sharing common code base: How to do so? |
Date: | Tue, 30 Nov 2004 09:31:21 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 |
Spiro Trikaliotis wrote:
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 dataWell, 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.
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
[Prev in Thread] | Current Thread | [Next in Thread] |