Share via


WINCETARGETFILES (Compact 2013)

3/26/2014

This macro definition specifies nonstandard target files that Build.exe will build after Build.exe links or compiles any target in the current directory. The POSTBUILDTARGETS macro can be used to specify nonstandard target files that Build.exe will build after it compiles and links all targets in the current directory.

For example, the macro definition can specify the path and file name for the target .res file if the .res file is copied to a different location.

Any target files that you specify using WINCETARGETFILES are added to the list of dependencies that must be satisfied to generate a successful build.

WINCETARGETFILES is not added in PASS 0, but in subsequent passes, it is added at the end of the list of dependencies.

If this macro definition is present, custom rules that you define in Makefile.inc, which is an optional file that can exist in the same directory as a sources file, are also applied.

Example

The following code example shows a sources file that adds the nonstandard target file MySpecialPassFile to the list of dependencies.

WINCETARGETFILES=MySpecialPassFile

The following code example shows a Makefile.inc file that contains a custom rule for MySpecialPassFile.

myspecialpassfile: dependent_file
RunMySpecialProgram dependent_file

See Also

Reference

Build Tool (Build.exe)
Windows Embedded Compact Build Environment Tool (Wince.bat)

Concepts

Sources File