Platform SDK: Tools

Compiling Source Files

WIN32.MAK includes the following macros to simplify compilation of C/C++ source files:

Use one of the following three macros if you are using the C run-time library:

The following example shows how you can compile your source files using these macros:

generic.obj: generic.c
    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c

WIN32.MAK includes the following macros to simplify compilation of resource-definition files:

The following example shows how you can compile your resource-definition file using these macros:

generic.res: generic.rc generic.h generic.dlg
    $(rc) $(rcvars) $(rcflags) $*.rc