Generating Browser Information with an External MakefileLast reviewed: October 10, 1997Article ID: Q102326 |
1.01 1.11 1.12 1.13 1.20 1.30 1.40 | 1.40 1.50
MS-DOS | WINDOWS NTkbtool
The information in this article applies to:
SUMMARYYou can modify an external project makefile to generate source browser database information. However, to use the browser database, you must have either Programmer's WorkBench, Visual C++ for Windows or Visual C++ 32-bit edition. You must also have the BSCMAKE utility installed in one of the directories listed in your PATH environment variable.
MORE INFORMATIONThe text below assumes that you are creating a new makefile for a specified project. The process of porting a .MAK file generated by Programmer's WorkBench or by Visual Workbench involves other considerations that this article does not discuss. Source browser database information can be very helpful during the development process as well as in the debugging process. Typically, an external makefile does not call the BSCMAKE utility to generate a browser database. The five steps required to add the dependencies to generate browser information are quite simple and are as follows:
For more information about the BSCMAKE utility provided with Visual C++ 32-bit edition, please refer to the Build Tools online help listed on the development environment Help menu. For more information about NMAKE, please refer to the NMAKE.WRI file in the HELP subdirectory. Sample External makefile for Visual C++ for Windows PROJ=hello SBRS=hello.sbr CFLAGS = /Od /Zi /FR all: $(PROJ).exe $(PROJ).bsc hello.sbr: hello.c cl /c $(CFLAGS) hello.chello.obj: hello.c cl /c $(CFLAGS) hello.chello.exe: hello.obj link /co hello.obj;hello.bsc: $(SBRS) bscmake /o$@ $(SBRS) Sample External makefile for Visual C++ 32-bit EditionPROJ=hello SBRS=hello.sbr CFLAGS = /Od /Zi /FR all: $(PROJ).exe $(PROJ).bsc hello.sbr: hello.c cl /c $(CFLAGS) hello.chello.obj: hello.c cl /c $(CFLAGS) hello.chello.exe: hello.obj link /debug /debugtype:both hello.objhello.bsc: $(SBRS) bscmake /o$@ $(SBRS) |
Additional reference words: kbinf kbinf 1.20 1.30 1.40 1.50 .bsc .sbr
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |