Share via


TARGETPATH

Use the TARGETPATH macro to specify the destination directory for all build products. The value of TARGETPATH determines the first part of the name of the directory where object files are put. As a result, with this macro, you can override the setting of the OBJ_PATH macro.

Syntax

TARGETPATH=ObjDir

Parameters

  • ObjDir
    If this parameter is set to OBJ, the TARGETPATH macro defaults to the directory setting of the OBJ_PATH macro. Otherwise, the TARGETPATH macro overrides the OBJ_PATH macro with the specified directory.

Comments

The sum of the lengths of BUILD_ALT_DIR and TARGETPATH must not exceed MAX_PATH (about 256 characters).

Starting with the Windows Driver Kit (WDK) for Windows Vista, the TARGETPATH macro is optional. If this macro is not specified, the build environment defaults to the directory setting of the OBJ_PATH macro.

In earlier versions of the WDK, this macro must be in your Sources file.

For information about how the directory paths are constructed, see Specifying the Location of Created Files.

See Also

BUILD_ALT_DIR,

OBJ_PATH,

Sources file,

Specifying Libraries,

Specifying the Location of Created Files

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011