home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / util2src / util.txt < prev    next >
Encoding:
Text File  |  1991-10-17  |  1.8 KB  |  47 lines

  1.                              Brian E. Yoder
  2.                                 util.txt
  3.                                 05/06/91
  4.  
  5. This directory contains subroutine library and set of utility programs
  6. for use with DOS, the C/2 1.1 compiler, and large-model programs.  To
  7. use the library, your programs should include the "util.h" header file.
  8. They should be linked with the "util.lib" library.
  9.  
  10. To add a subroutine to the library:
  11.  
  12.       - Add the subroutine's source code to the directory.
  13.  
  14.       - Update "util.h":  Add the subroutine's function prototype and
  15.         any structures, #defines, or other information needed.
  16.  
  17.       - Update "utilsrc.txt":  Add the subroutine's .C file to the list
  18.         of library source modules.
  19.  
  20.       - Update "makefile" to add the subroutine's .OBJ object file to
  21.         the OBJ_LIB variable (list of objects in the library).
  22.  
  23.       - Update "makefile" (LIB response file):  Add the subroutine's
  24.         .OBJ object file to the list of objects to be put into the
  25.         library.
  26.  
  27. To add a utility or test program to this directory:
  28.  
  29.       - Add the program's source code to the directory.  Be sure that it
  30.         #includes the "util.h" header file.
  31.  
  32.       - Update "makefile":  Add the program's .EXE file as a default
  33.         target (see 'ALL:' in the makefile).
  34.  
  35.       - Update "makefile" to build the program.
  36.  
  37.       - Create a .DOC file that documents the use of the utility (if you
  38.         think it's necessary).
  39.  
  40.       - Update "utilsrc.txt":  Add the program's .C file(s) and its .DOC
  41.         documentation file as appropriate.
  42.  
  43.       - Update mkzip.bat command and add executable(s).
  44.  
  45.       - Update the INSTALL command to include the utility program.  This
  46.         step can be omitted for test programs.
  47.