How to build a tree?

Hi All,
I have my source code for a (Win2K)WDM driver organized in a tree. All the
source files in various subdirectories(sub-sub-directories) are required
to build the driver image. At the moment, I am copying all the source
files in to one directory and building the image. Is it possible to build
the tree without actually copying the source files into a single
directory? If yes, what changes I have to do to my makefile, sources and
dirs files? I appreciate any help.

Thanks in Adv.

Regards,
Chakri

write a bat file or cmd file in the root directories mentioning the sub-dirs
and invoke build -cz in the respective directories … if I remember
correctly microsoft ddk downloads provides a similar bat files for the
compilation of its ddk source tree.

Arup

-----Original Message-----
From: xxxxx@wipro.com [mailto:xxxxx@wipro.com]
Sent: Wednesday, March 27, 2002 2:35 PM
To: NT Developers Interest List
Subject: [ntdev] How to build a tree?

Hi All,
I have my source code for a (Win2K)WDM driver organized in a tree. All the
source files in various subdirectories(sub-sub-directories) are required
to build the driver image. At the moment, I am copying all the source
files in to one directory and building the image. Is it possible to build
the tree without actually copying the source files into a single
directory? If yes, what changes I have to do to my makefile, sources and
dirs files? I appreciate any help.

Thanks in Adv.

Regards,
Chakri


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

Your dirs file should look like below:


DIRS = be compiled, each separated by ‘space’>
-----------------------------------------------------------

You need to have dirs in each directory in the tree from the
parent directory except the source directory where the
sources file is stored.

Your makefile should contain a single line below
-----------------------------------------------------------
!INCLUDE $(NTMAKEENV)\makefile.def
-----------------------------------------------------------
To write sources file, refer DDK.

You need to have following entries in sources file
-----------------------------------------------------------
TARGETNAME=
TARGETPATH=.
TARGETTYPE=DRIVER
DRIVERTYPE=WDM

INCLUDES=‘;’>

SOURCES=

386_WARNING_LEVEL=/W3
-----------------------------------------------------------

For DIRS and SOURCES, if entries given exceeds beyond one
line, then '' needs to be added at end of line 1.

Cheers
Venky

–>-----Original Message-----
–>From: xxxxx@lists.osr.com
–>[mailto:xxxxx@lists.osr.com]On Behalf Of
–>xxxxx@wipro.com
–>Sent: Wednesday, March 27, 2002 2:35 PM
–>To: NT Developers Interest List
–>Subject: [ntdev] How to build a tree?
–>
–>
–>Hi All,
–>I have my source code for a (Win2K)WDM driver
–>organized in a tree. All the
–>source files in various
–>subdirectories(sub-sub-directories) are required
–>to build the driver image. At the moment, I am
–>copying all the source
–>files in to one directory and building the
–>image. Is it possible to build
–>the tree without actually copying the source
–>files into a single
–>directory? If yes, what changes I have to do to
–>my makefile, sources and
–>dirs files? I appreciate any help.
–>
–>Thanks in Adv.
–>
–>Regards,
–>Chakri
–>
–>—
–>You are currently subscribed to ntdev as:
–>xxxxx@tataelxsi.co.in
–>To unsubscribe send a blank email to
–>%%email.unsub%%

Or you can create dirs files in the sub folders and put the names
of the sub sub folders.
After that, if you invoke build.exe from the highest level directory,
it will go through the tree outlined in the dirs files…

Hope that helps.
Taher

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Arup Banerjee
Sent: Wednesday, March 27, 2002 1:01 AM
To: NT Developers Interest List
Subject: [ntdev] RE: How to build a tree?

write a bat file or cmd file in the root directories mentioning the sub-dirs
and invoke build -cz in the respective directories … if I remember
correctly microsoft ddk downloads provides a similar bat files for the
compilation of its ddk source tree.

Arup

-----Original Message-----
From: xxxxx@wipro.com [mailto:xxxxx@wipro.com]
Sent: Wednesday, March 27, 2002 2:35 PM
To: NT Developers Interest List
Subject: [ntdev] How to build a tree?

Hi All,
I have my source code for a (Win2K)WDM driver organized in a tree. All the
source files in various subdirectories(sub-sub-directories) are required
to build the driver image. At the moment, I am copying all the source
files in to one directory and building the image. Is it possible to build
the tree without actually copying the source files into a single
directory? If yes, what changes I have to do to my makefile, sources and
dirs files? I appreciate any help.

Thanks in Adv.

Regards,
Chakri


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@veritas.com
To unsubscribe send a blank email to %%email.unsub%%

Thanks Taher. I did this. But it seems this works with the cases where
each subfolder has its own image. Atleast, that is what I get from the DDK
examples. I think I need to do more that just a dirs file. And I think it
is most probably something in sources file. Can you throw light on it?

Regards,
Chakri

Chakradhar,

Hmmm…so you seem to have source files (contributing to the same
image) in a hierarchy of folders.
In that case, what you need to do is generate a .lib from one of the
subfolders,
and use that .lib in the link phase of the folders where the actual
binary (.dll,.exe,.sys etc) is being generated.

This usually means adding that path to the TARGETLIBS of the other folder
which generates the deliverable image.

Regards
Taher

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@wipro.com
Sent: Wednesday, March 27, 2002 2:50 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How to build a tree?

Thanks Taher. I did this. But it seems this works with the cases where
each subfolder has its own image. Atleast, that is what I get from the DDK
examples. I think I need to do more that just a dirs file. And I think it
is most probably something in sources file. Can you throw light on it?

Regards,
Chakri


You are currently subscribed to ntdev as: xxxxx@veritas.com
To unsubscribe send a blank email to %%email.unsub%%