home *** CD-ROM | disk | FTP | other *** search
/ The Mother of All Windows Books / CD-MOM.iso / cd_mom / newsletr / winprogj / wpjv1n2 / lib.mak < prev    next >
Text File  |  1993-01-28  |  792b  |  23 lines

  1. DEFS=lib2.def 
  2. DEFS2= testlib.def 
  3.  
  4. # Notice that I placed these two DEF files under seperate macros. They could
  5. # have been placed on the same macro line, but I wanted to demonstrate how
  6. # you can create an import library from multiple definition files. The
  7. # resulting library 'test.lib' can be linked into your DLLs.
  8. #
  9. # The 'implib' statement in the build commands creates an import library
  10. # out of the exports listed in the definition file. 
  11. #
  12. # The 'lib' statement combines the import libraries into one library. LIB
  13. # allows you to manage libraries, see Microsoft documentation for more
  14. # information.
  15.  
  16. test.lib: $(DEFS) $(DEFS2)
  17.     del test.lib
  18.     implib test1.lib $(DEFS)
  19.     implib test2.lib $(DEFS2)
  20.     lib test.lib test1.lib+test2.lib;
  21.     del test1.lib
  22.     del test2.lib
  23.