home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / CM100EXE.ARJ / CM100EXE.ZIP / SAMPLES / WINDOWS / README.TXT < prev   
Encoding:
Text File  |  1991-11-17  |  3.0 KB  |  86 lines

  1.      MICROSOFT WINDOWS SOFTWARE DEVELOPMENT KIT SAMPLE
  2.  
  3.      This sample demonstrates how to use CMAKE to maintain a Microsoft
  4.      Windows application that is built with the programs: CL, RC, and
  5.      LINK.
  6.  
  7.  
  8.      TO RUN CMAKE:
  9.  
  10.      1. Check the LINK response file, "hw.lrf", to be sure that the
  11.         paths of the libraries, "libw.lib" and "slibcew.lib", are
  12.         correct.
  13.      2. Execute CMAKE by entering the command
  14.  
  15.         cmake
  16.  
  17.         No parameters are required.
  18.  
  19.  
  20.      NOTE THE FOLLOWING:
  21.  
  22.      1. The commands (and comments) in the make file, "makefile".
  23.         CMAKE will deduce all dependencies from these commands.
  24.  
  25.         See: The Make File for CMAKE
  26.                CL
  27.                * When is a CL Command Required?
  28.                RC
  29.                  RC/C - Compile a Resource-Script File
  30.                  * When is an RC/C Command Required?
  31.                RC
  32.                  RC/A - Add a Resource File to an Executable File
  33.                  * When is an RC/A Command Required?
  34.                LINK
  35.                * When is a LINK Command Required?
  36.              in the help file.
  37.  
  38.      2. The format of the LINK response file, "hw.lnk".  CMAKE requires
  39.         that a response file (of a particular form) be used with the
  40.         LINK command.
  41.  
  42.         See: The Make File for CMAKE
  43.                LINK
  44.                * The LINK Command Line
  45.              in the help file.
  46.  
  47.         Since CMAKE does not use the LIB environment variable, the
  48.         paths of the windows libraries, "libw.lib" and "slibcew.lib"
  49.         must be provided.
  50.  
  51.      3. The use and placement of the comment
  52.  
  53.         /* CMAKE - INCLUDE END */
  54.  
  55.         in the files, "hw.c" and "hw.rc".
  56.  
  57.         In the file, "hw.c", this comment is placed after all #include
  58.         statements.  Although this comment is not required in C-source
  59.         files, it serves as an end-of-file mark for CMAKE, and thus
  60.         prevents CMAKE from searching the entire source file for
  61.         #include statements.
  62.  
  63.         See: Optimizing Performance
  64.              * Use the End-of-Includes Comment in Your Source Files
  65.              The Make File for CMAKE
  66.                CL
  67.                * Switches for CL
  68.                * How CMAKE Processes a C-Source File
  69.              in the help file.
  70.  
  71.         In the file, "hw.rc", this comment is placed after all #include
  72.         statements and resource-include statements (i.e. ICON, BITMAP,
  73.         CURSOR, FONT, or user-defined resource statements).  This
  74.         comment is required in this file.
  75.  
  76.         See: The Make File for CMAKE
  77.                RC
  78.                  RC/C - Compile a Resource-Script File
  79.                    Helpful Hints
  80.                    * Controlling Resource-Script File Processing
  81.                  * Switches for RC
  82.                  * How CMAKE Processes a Resource-Script File
  83.              Optimizing Performance
  84.              * Use the End-of-Includes Comment in Your Source Files
  85.              in the help file.
  86.