[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two different platforms sharing common code base: How to do so?

From: Spiro Trikaliotis
Subject: Re: Two different platforms sharing common code base: How to do so?
Date: Mon, 29 Nov 2004 19:20:05 +0100
User-agent: Mutt/1.5.6i

Hello John (and the others who answered),

* On Mon, Nov 29, 2004 at 09:55:32AM -0600 McNamee, John wrote:

> If you're not building device drivers, consider using a tool other
> than build.exe. There are plenty of make utilities for Windows,
> including a port of GNU make.

Yes, I know. This project contains a driver, as well as user mode
programs. Although the drivers differ significantly between Linux and
Windows (obviously), I like to have one build environment for both
types. Because of this, I find build.exe to be the tool of choice.

> (1) Use a different name for the Linux makefile.  makefile.linux, for
> example.  If the Linux developers alias "build" to "make -f
> makefile.linux", then both Windows and Linux will use the same command
> to build the code.  How much more equal can they be? :-)

A good point, which was suggested by another one, too. I did not yet
think about such a solution. I will suggest that one internally.

> (2) The Microsoft build.exe tool can compile code from the parent
> directory of the sources file.

It can? Ok, I did not yet test for the parent directory, but it cannot
compile code from another directory. A solution I used before was to
#include the .c file, but IMHO, this is very error-prone.

I will test this one, too.

Thank you all for your suggestions,

Spiro R. Trikaliotis

reply via email to

[Prev in Thread] Current Thread [Next in Thread]