11.6.11 Modifying the Makefile

The resource file BITMAP.RES is dependent on the bitmap files DOG.BMP and CAT.BMP. To ensure that Microsoft Windows Resource Compiler (RC) updates BITMAP.RES whenever DOG.BMP or CAT.BMP changes, add the following to the makefile:

bitmap.res: bitmap.rc bitmap.h dog.bmp cat.bmp
   rc /r bitmap.rc

You must also modify the link command line in the makefile to include the SELECT.LIB library file. This file contains the import declarations for the selection routines that are used with the WM_LBUTTONUP, WM_MOUSEMOVE, and WM_LBUTTONDOWN cases. For more information about creating the library, see Chapter 20, “Dynamic-Link Libraries.”

To include the SELECT.LIB library file, modify the link command line so that it looks like this:

link /nod bitmap, , , slibcew libw select.lib, bitmap.def