multiple directory compile with sources

hi all,

i have a sources tree (or an implementation of openssl library) that has
really nice written code, but into different directories. so it has aa lot
of subdirectories which themselves have subdirectories and finally code in
all of them. to build this library i need some of these files from each of
these directories.

but sources file ‘sources’ directive doesnt allow me to pull in files from
other directories. so is the solution to have one small sources file in all
the directories i need and build one small library in each directory and
link those together to build a mase library?
or is there another elegant solution to this?

thanks

Bedanto

Are you trying to get openssl into kernel mode? If yes, then why???

If you are trying to build for user space library ( that is what it is meant to be ), I can help you tomorrow by providing some guide line. I had problems building it a few months back, but I know how to get it built in User space.

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Bedanto
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 4:57 PM
Subject: [ntdev] multiple directory compile with sources

hi all,

i have a sources tree (or an implementation of openssl library) that has really nice written code, but into different directories. so it has aa lot of subdirectories which themselves have subdirectories and finally code in all of them. to build this library i need some of these files from each of these directories.

but sources file ‘sources’ directive doesnt allow me to pull in files from other directories. so is the solution to have one small sources file in all the directories i need and build one small library in each directory and link those together to build a mase library?
or is there another elegant solution to this?

thanks

Bedanto
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

no user space is wht i intend, but i need to use sources file, so that my
kernel driver and user code all use the same build stripts.

On Mon, Dec 22, 2008 at 5:03 PM, Prokash Sinha wrote:

> Are you trying to get openssl into kernel mode? If yes, then why???
>
> If you are trying to build for user space library ( that is what it is
> meant to be ), I can help you tomorrow by providing some guide line. I had
> problems building it a few months back, but I know how to get it built in
> User space.
>
> Well, as if I’ve to sign something !
> Prokash Sinha
> http://prokash.squarespace.com
> Success has many fathers, but failure is an orphan.
>
> ----- Original Message -----
> From: Bedanto
> To: Windows System Software Devs Interest List
> Sent: Monday, December 22, 2008 4:57 PM
> Subject: [ntdev] multiple directory compile with sources
>
> hi all,
>
> i have a sources tree (or an implementation of openssl library) that has
> really nice written code, but into different directories. so it has aa lot
> of subdirectories which themselves have subdirectories and finally code in
> all of them. to build this library i need some of these files from each of
> these directories.
>
> but sources file ‘sources’ directive doesnt allow me to pull in files from
> other directories. so is the solution to have one small sources file in all
> the directories i need and build one small library in each directory and
> link those together to build a mase library?
> or is there another elegant solution to this?
>
> thanks
>
> Bedanto
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

What is that again, I’m missing something …

When you build the openssl libraries ( it is two libraries ), you want them kernel mode libraries or you want them user mode openssl libraries?

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Bedanto
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 5:08 PM
Subject: Re: [ntdev] multiple directory compile with sources

no user space is wht i intend, but i need to use sources file, so that my kernel driver and user code all use the same build stripts.

On Mon, Dec 22, 2008 at 5:03 PM, Prokash Sinha wrote:

Are you trying to get openssl into kernel mode? If yes, then why???

If you are trying to build for user space library ( that is what it is meant to be ), I can help you tomorrow by providing some guide line. I had problems building it a few months back, but I know how to get it built in User space.

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Bedanto
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 4:57 PM
Subject: [ntdev] multiple directory compile with sources

hi all,

i have a sources tree (or an implementation of openssl library) that has really nice written code, but into different directories. so it has aa lot of subdirectories which themselves have subdirectories and finally code in all of them. to build this library i need some of these files from each of these directories.

but sources file ‘sources’ directive doesnt allow me to pull in files from other directories. so is the solution to have one small sources file in all the directories i need and build one small library in each directory and link those together to build a mase library?
or is there another elegant solution to this?

thanks

Bedanto
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

On Mon, Dec 22, 2008 at 05:08:22PM -0800, Bedanto wrote:

no user space is wht i intend, but i need to use sources file, so that my
kernel driver and user code all use the same build stripts.

In that case, you need to put a sources file in each directory, build
small libraries, and link to them all in the final build.

If that bothers you, you can always copy the files into a single
directory and build it there.

Tim Roberts, xxxxx@probo.com
Providenza & Boeklheide, Inc.

i need the user spaces ones as of now, but i might require the kernel
portion later on.

On Mon, Dec 22, 2008 at 5:12 PM, Prokash Sinha wrote:

> What is that again, I’m missing something …
>
> When you build the openssl libraries ( it is two libraries ), you want them
> kernel mode libraries or you want them user mode openssl libraries?
>
> Well, as if I’ve to sign something !
> Prokash Sinha
> http://prokash.squarespace.com
> Success has many fathers, but failure is an orphan.
>
> ----- Original Message -----
> From: Bedanto
> To: Windows System Software Devs Interest List
> Sent: Monday, December 22, 2008 5:08 PM
> Subject: Re: [ntdev] multiple directory compile with sources
>
> no user space is wht i intend, but i need to use sources file, so that my
> kernel driver and user code all use the same build stripts.
>
>
>
>
> On Mon, Dec 22, 2008 at 5:03 PM, Prokash Sinha wrote:
>
>> Are you trying to get openssl into kernel mode? If yes, then why???
>>
>> If you are trying to build for user space library ( that is what it is
>> meant to be ), I can help you tomorrow by providing some guide line. I had
>> problems building it a few months back, but I know how to get it built in
>> User space.
>>
>> Well, as if I’ve to sign something !
>> Prokash Sinha
>> http://prokash.squarespace.com
>> Success has many fathers, but failure is an orphan.
>>
>> ----- Original Message -----
>> From: Bedanto
>> To: Windows System Software Devs Interest List
>> Sent: Monday, December 22, 2008 4:57 PM
>> Subject: [ntdev] multiple directory compile with sources
>>
>> hi all,
>>
>> i have a sources tree (or an implementation of openssl library) that has
>> really nice written code, but into different directories. so it has aa lot
>> of subdirectories which themselves have subdirectories and finally code in
>> all of them. to build this library i need some of these files from each of
>> these directories.
>>
>> but sources file ‘sources’ directive doesnt allow me to pull in files from
>> other directories. so is the solution to have one small sources file in all
>> the directories i need and build one small library in each directory and
>> link those together to build a mase library?
>> or is there another elegant solution to this?
>>
>> thanks
>>
>> Bedanto
>> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
>> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
>> the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Sorry for the prev. note, after reading Tim’s note it is clear that you want UserMode but want to have the same build script …

Tim already suggested the way to get around multiple dir levels …

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Prokash Sinha
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 5:12 PM
Subject: Re: [ntdev] multiple directory compile with sources

What is that again, I’m missing something …

When you build the openssl libraries ( it is two libraries ), you want them kernel mode libraries or you want them user mode openssl libraries?

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Bedanto
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 5:08 PM
Subject: Re: [ntdev] multiple directory compile with sources

no user space is wht i intend, but i need to use sources file, so that my kernel driver and user code all use the same build stripts.

On Mon, Dec 22, 2008 at 5:03 PM, Prokash Sinha wrote:

Are you trying to get openssl into kernel mode? If yes, then why???

If you are trying to build for user space library ( that is what it is meant to be ), I can help you tomorrow by providing some guide line. I had problems building it a few months back, but I know how to get it built in User space.

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Bedanto
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 4:57 PM
Subject: [ntdev] multiple directory compile with sources

hi all,

i have a sources tree (or an implementation of openssl library) that has really nice written code, but into different directories. so it has aa lot of subdirectories which themselves have subdirectories and finally code in all of them. to build this library i need some of these files from each of these directories.

but sources file ‘sources’ directive doesnt allow me to pull in files from other directories. so is the solution to have one small sources file in all the directories i need and build one small library in each directory and link those together to build a mase library?
or is there another elegant solution to this?

thanks

Bedanto
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I hope you already build it in user space using their instructions !

If not, look for building openssl for windows in a web search, and you will find some links to build it from command line. IIRC, the workspaces have symbolic links to hdr files, that is not friendly to Visual studios …

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Bedanto
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 5:21 PM
Subject: Re: [ntdev] multiple directory compile with sources

i need the user spaces ones as of now, but i might require the kernel portion later on.

On Mon, Dec 22, 2008 at 5:12 PM, Prokash Sinha wrote:

What is that again, I’m missing something …

When you build the openssl libraries ( it is two libraries ), you want them kernel mode libraries or you want them user mode openssl libraries?

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Bedanto
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 5:08 PM
Subject: Re: [ntdev] multiple directory compile with sources

no user space is wht i intend, but i need to use sources file, so that my kernel driver and user code all use the same build stripts.

On Mon, Dec 22, 2008 at 5:03 PM, Prokash Sinha wrote:

Are you trying to get openssl into kernel mode? If yes, then why???

If you are trying to build for user space library ( that is what it is meant to be ), I can help you tomorrow by providing some guide line. I had problems building it a few months back, but I know how to get it built in User space.

Well, as if I’ve to sign something !
Prokash Sinha
http://prokash.squarespace.com
Success has many fathers, but failure is an orphan.

----- Original Message -----
From: Bedanto
To: Windows System Software Devs Interest List
Sent: Monday, December 22, 2008 4:57 PM
Subject: [ntdev] multiple directory compile with sources

hi all,

i have a sources tree (or an implementation of openssl library) that has really nice written code, but into different directories. so it has aa lot of subdirectories which themselves have subdirectories and finally code in all of them. to build this library i need some of these files from each of these directories.

but sources file ‘sources’ directive doesnt allow me to pull in files from other directories. so is the solution to have one small sources file in all the directories i need and build one small library in each directory and link those together to build a mase library?
or is there another elegant solution to this?

thanks

Bedanto
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

yes, but i do not like copying all files into one directory.

ok, howz this…

i make one sources file in each directory, but instead of building it, can I
ask it to generate only the obj files?

so if i can do that, i can ask the TARGETPATH to dump all these objs into
one folder and do hte link from there,

On Mon, Dec 22, 2008 at 5:21 PM, Prokash Sinha wrote:

> Sorry for the prev. note, after reading Tim’s note it is clear that you
> want UserMode but want to have the same build script …
>
> Tim already suggested the way to get around multiple dir levels …
>
> Well, as if I’ve to sign something !
> Prokash Sinha
> http://prokash.squarespace.com
> Success has many fathers, but failure is an orphan.
>
> ----- Original Message -----
> From: Prokash Sinha
> To: Windows System Software Devs Interest List
> Sent: Monday, December 22, 2008 5:12 PM
> Subject: Re: [ntdev] multiple directory compile with sources
>
> What is that again, I’m missing something …
>
> When you build the openssl libraries ( it is two libraries ), you want them
> kernel mode libraries or you want them user mode openssl libraries?
>
> Well, as if I’ve to sign something !
> Prokash Sinha
> http://prokash.squarespace.com
> Success has many fathers, but failure is an orphan.
>
> ----- Original Message -----
> From: Bedanto
> To: Windows System Software Devs Interest List
> Sent: Monday, December 22, 2008 5:08 PM
> Subject: Re: [ntdev] multiple directory compile with sources
>
> no user space is wht i intend, but i need to use sources file, so that my
> kernel driver and user code all use the same build stripts.
>
>
>
>
> On Mon, Dec 22, 2008 at 5:03 PM, Prokash Sinha wrote:
>
>> Are you trying to get openssl into kernel mode? If yes, then why???
>>
>> If you are trying to build for user space library ( that is what it is
>> meant to be ), I can help you tomorrow by providing some guide line. I had
>> problems building it a few months back, but I know how to get it built in
>> User space.
>>
>> Well, as if I’ve to sign something !
>> Prokash Sinha
>> http://prokash.squarespace.com
>> Success has many fathers, but failure is an orphan.
>>
>> ----- Original Message -----
>> From: Bedanto
>> To: Windows System Software Devs Interest List
>> Sent: Monday, December 22, 2008 4:57 PM
>> Subject: [ntdev] multiple directory compile with sources
>>
>> hi all,
>>
>> i have a sources tree (or an implementation of openssl library) that has
>> really nice written code, but into different directories. so it has aa lot
>> of subdirectories which themselves have subdirectories and finally code in
>> all of them. to build this library i need some of these files from each of
>> these directories.
>>
>> but sources file ‘sources’ directive doesnt allow me to pull in files from
>> other directories. so is the solution to have one small sources file in all
>> the directories i need and build one small library in each directory and
>> link those together to build a mase library?
>> or is there another elegant solution to this?
>>
>> thanks
>>
>> Bedanto
>> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
>> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
>> the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

>solution to have one small sources file in all the directories i need and build one small library in each

directory and link those together to build a mase library?

Yes.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

I think that this is the best solution as well, given what BUILD
imposes, but if you wish or need to do something more unconventional
from the point of view of BUILD, you can create hard links to the files
that you need for a given component/build. While this does provide
freedom to arrange as you wish, it can be pretty confusing if you don’t
know what to expect when you look at the source tree, and some source
code control systems (like StarTeam) do not handle links correctly, and
instead treat them as regular files, so what starts as a couple of links
will usually end up at some point as two separate files.

I wouldn’t really recommend doing this unless you need to, and if you’re
working with an existing source tree, sometimes you have to in order to
get BUILD to work with it, and it’s at least better than copying.

Good luck,

mm

Maxim S. Shatskih wrote:

> solution to have one small sources file in all the directories i need and build one small library in each
> directory and link those together to build a mase library?

Yes.