Share via


DDK_BLOCK_ON_X86

Use the DDK_BLOCK_ON_X86 setting in your Makefile file to prevent the Build utility from building when the current target is the specified architecture. For example, if you have a driver or sample code that you want to build for AMD64 and IA64 but not for x86 architecture, you only need to define DDK_BLOCK_ON_X86 in the Makefile file in your source directory. The setting must be defined before the !Include command that includes the Makefile.def file.

DDK_BLOCK_ON_X86=1
  !INCLUDE $(NTMAKEENV)\Makefile.def

When DDK_BLOCK_ON_X86 is defined, the Build utility issues a warning instead of trying to build for the x86 architecture. The same warning is issued when using the MINIMUM_NT_TARGET_VERSION or MAXIMUM_NT_TARGET_VERSION settings.

See Also

DDK_BLOCK_ON_AMD64

DDK_BLOCK_ON_IA64

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011