[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: |
McNamee, John |
Subject: |
RE: Two different platforms sharing common code base: How to do so? |
Date: |
Mon, 29 Nov 2004 09:55:32 -0600 |
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.
If you are building drivers, there are two things I can suggest...
(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? :-)
(2) The Microsoft build.exe tool can compile code from the parent
directory of the sources file. Put the Linux makefile and a "dirs" file
with the source code, and create a subdirectory just to hold the Windows
makefile and "sources" file. When defining the SOURCES macro, just
prefix all the filenames with "..\".
--John