How can I specify the root directory for the objects files (_OBJ_ROOT)?

From IFS/DDK kit help file (2600.1106):

*****************************************
_OBJ_ROOT
Use the _OBJ_ROOT macro to specify the root directory for the objects
subdirectory (specified by the O environment variable). By using _OBJ_ROOT,
you alter the default to allow you to build into a completely different
directory tree. There are many advantages in doing this, including the
ability to separate objects from your source tree and building onto a
different hard drive.

For example, if you were to build out of d:\nt\private\foo, normally the
objects tree would look something like d:\nt\private\foo\obj\i386. By setting
_OBJ_ROOT=f:\build, you would cause the objects tree to appear as
f:\build\foo\obj\i386.

The object path is determined by concatenating _OBJ_ROOT with a subset of the
current directory. This subset is determined by taking the current directory
and parsing out the drive, and BASEDIR, if it exists.
****************************************

It seems that the actual make files from 2600.1106 and the latest DDKs
do not support this macro. Is there a way to get the same build
functionality?
For example, I want to have the driver source files in
C:\src\MyDriver\ and the obj files in
Q:\build\MyDriver\obj*

Dmitriy Budko VMware

This doesn’t work. Plain and simple.
Contrary to what the documentation says.
That’s why they removed it from the documentation for newer DDKs.
I confirmed this with the DDK team at WinHEC a year ago.

At this age of computing the problem like this makes me laugh. I just don’t want any crap to be
generated into my source directory. Period.

That’s why I don’t use BUILD.
Yes, I am aware of all claims of my driver build being unsupported, but I just don’t care. I’d be
glad to use Mr.Roddy’s utility to build my drivers from Developer Studio and I will the moment
BUILD supports _OBJ_ROOT.

– Max.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dmitriy Budko
Sent: Friday, July 02, 2004 7:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How can I specify the root directory for the
objects files (_OBJ_ROOT)?

From IFS/DDK kit help file (2600.1106):

*****************************************
_OBJ_ROOT
Use the _OBJ_ROOT macro to specify the root directory for the
objects subdirectory (specified by the O environment
variable). By using _OBJ_ROOT, you alter the default to allow
you to build into a completely different directory tree.
There are many advantages in doing this, including the
ability to separate objects from your source tree and
building onto a different hard drive.

For example, if you were to build out of d:\nt\private\foo,
normally the objects tree would look something like
d:\nt\private\foo\obj\i386. By setting _OBJ_ROOT=f:\build,
you would cause the objects tree to appear as f:\build\foo\obj\i386.

The object path is determined by concatenating _OBJ_ROOT with
a subset of the current directory. This subset is determined
by taking the current directory and parsing out the drive,
and BASEDIR, if it exists.
****************************************

It seems that the actual make files from 2600.1106 and the
latest DDKs do not support this macro. Is there a way to get
the same build functionality?
For example, I want to have the driver source files in
C:\src\MyDriver\ and the obj files in
Q:\build\MyDriver\obj*

Dmitriy Budko VMware


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to xxxxx@lists.osr.com