Makefile Sources for 64-bit build

Hi All,

I need to do the following in my sources file:

#if (Building for Win64)
$(DDK_LIB_PATH)\mylib.lib \
#endif

I am not sure what to do for the condition in this case.
One option could be to take the command line argument as taken by
Build.exeand look for IA64 or AMD64 in it.
But i do not think that it is going to take care of everything (Like if in
some case default args are changed).

Even if it is able to, is there any other better way of doing so.

Regards,
Shreshth

Try this after you have run the setenv.bat with the appropriate parameters :

!IF “$(_IA64bit)”==“true” || “$(_AMD64bit)”==“true”

!ENDIF

Christiaan

----- Original Message -----
From: Shreshth Luthra
To: Windows System Software Devs Interest List
Sent: Tuesday, December 19, 2006 12:59 PM
Subject: [ntdev] Makefile Sources for 64-bit build

Hi All,

I need to do the following in my sources file:

#if (Building for Win64)
$(DDK_LIB_PATH)\mylib.lib \
#endif

I am not sure what to do for the condition in this case.
One option could be to take the command line argument as taken by Build.exe and look for IA64 or AMD64 in it.
But i do not think that it is going to take care of everything (Like if in some case default args are changed).

Even if it is able to, is there any other better way of doing so.

Regards,
Shreshth
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

!if $(AMD64) ought to work.

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shreshth Luthra
Sent: Tuesday, December 19, 2006 7:00 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Makefile Sources for 64-bit build

Hi All,

I need to do the following in my sources file:

#if (Building for Win64)
$(DDK_LIB_PATH)\mylib.lib \
#endif

I am not sure what to do for the condition in this case.
One option could be to take the command line argument as taken by Build.exe
and look for IA64 or AMD64 in it.
But i do not think that it is going to take care of everything (Like if in
some case default args are changed).

Even if it is able to, is there any other better way of doing so.

Regards,
Shreshth
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Is there any such system flag for 32bit specific code as well.

e.g. something like:

!if $(I386)
I tried it but it did not work.

Thanks alot.

Regards,
Shreshth

On 12/19/06, Mark Roddy wrote:
>
> !if $(AMD64) ought to work.
>
>
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Shreshth Luthra
> Sent: Tuesday, December 19, 2006 7:00 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Makefile Sources for 64-bit build
>
>
>
> Hi All,
>
> I need to do the following in my sources file:
>
> #if (Building for Win64)
> $(DDK_LIB_PATH)\mylib.lib <br>> #endif
>
>
> I am not sure what to do for the condition in this case.
> One option could be to take the command line argument as taken by
> Build.exe and look for IA64 or AMD64 in it.
> But i do not think that it is going to take care of everything (Like if in
> some case default args are changed).
>
>
> Even if it is able to, is there any other better way of doing so.
>
>
> Regards,
> Shreshth
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Take a look into setenv.bat from the 6000 WDk version . You will find there _IA32bit .

Christiaan

----- Original Message -----
From: Shreshth Luthra
To: Windows System Software Devs Interest List
Sent: Wednesday, December 20, 2006 5:21 AM
Subject: Re: [ntdev] Makefile Sources for 64-bit build

Is there any such system flag for 32bit specific code as well.

e.g. something like:

!if $(I386)
I tried it but it did not work.

Thanks alot.

Regards,
Shreshth

On 12/19/06, Mark Roddy wrote:
!if $(AMD64) ought to work.

From: xxxxx@lists.osr.com [mailto: xxxxx@lists.osr.com] On Behalf Of Shreshth Luthra
Sent: Tuesday, December 19, 2006 7:00 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Makefile Sources for 64-bit build

Hi All,

I need to do the following in my sources file:

#if (Building for Win64)
$(DDK_LIB_PATH)\mylib.lib <br> #endif

I am not sure what to do for the condition in this case.
One option could be to take the command line argument as taken by Build.exe and look for IA64 or AMD64 in it.
But i do not think that it is going to take care of everything (Like if in some case default args are changed).

Even if it is able to, is there any other better way of doing so.

Regards,
Shreshth

— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


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

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

— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer