Share via


OBJ_PATH

The OBJ_PATH macro specifies the current working directory, which is one of the following:

  • The directory where the Makefile file is located.

  • The directory defined in Makefile.def by using the following setting:

    $(OBJ_PATH)=$(MAKEDIR)
    

Comments

If the separate_object_root parameter of SetEnv.bat is specified, $(OBJ_PATH) expands to $(OBJECT_ROOT)\DirectoryBeingBuilt. For more information about this parameter, see Using the SetEnv.bat Command-Line.

OBJ_PATH is frequently used with the O constant as $(OBJ_PATH)\$(O). Because the O constant specifies the architecture and type of the WDK build environment, the OBJ_PATH macro combined with the O constant specifies the complete build output path.

Example

If you type the following in your WDK build environment window:

set OBJECT_ROOT = %BASEDIR%.obj

And then build in d:\base\tools\kdexts, the following occurs:

  • $(OBJ_PATH) expands to:

    %BASEDIR%.obj \base\tools\kdexts
    
  • $(OBJ_PATH)\$(O) expands to:

    %BASEDIR%.obj \base\tools\kdexts\objfre_win7_x86\i386
    

See Also

BASEDIR

Makefile.def

O

OBJECT_ROOT

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011