Creating a Sources File and Makefile File for an Application
Before you can build an instrumented application for Remote Call Profiler, you must add a sources file and a makefile file to the directory that contains the source code for your application. The Windows CE Build tool (Build.exe), which builds the source code in a directory, uses the sources file to determine which C-language and Microsoft Visual C++ source files to compile, and what type of binary file to build. For more information about Build.exe, see Build Tool. For more information about sources files, see Sources File.
Each directory that contains a sources file must also contain a makefile file. For more information about makefile files, see Makefile File.
Note You can create a directory for the source code for your application in the directory for your platform. For example, you can create a directory for the source code at %WINCEROOT%\Public\<Platform name>.
To create a sources file and makefile file for your application
In the directory that contains the source code for your application, create a file with the file name sources.
A sources file does not have a file name extension. Specify a dot (.) for the file name extension.
In the sources file, insert the text from the following code example.
TARGETLIBS=$(_WINCEROOT)\public\common\sdk\lib\$(_TGTCPU)\$(WINCEDEBUG)\coredll.lib TARGETNAME=<name of your application> TARGETTYPE=PROGRAM SOURCES=<file name including file name extension for the file that contains the source code for your application>
In the directory that contains the source code for your application, create a file with the file name makefile.
A makefile file does not have a file name extension. Specify a dot (.) for the file name extension.
In the makefile file, insert the text from the following code example.
!INCLUDE $(_MAKEENVROOT)\makefile.def
See Also
How to Use Remote Call Profiler to Find Performance Problems
Last updated on Friday, October 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.