home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / MKHKB2.ZIP / DLL-W386.CMD next >
OS/2 REXX Batch file  |  1992-09-13  |  688b  |  26 lines

  1. rem Uses IMPLIB to create lib file for dll and Assembles and links
  2. rem asm file and its associated def file to a dll and moves the dll
  3. rem file to c:\os2\dll
  4. implib c:\toolkt20\os2lib\%1.lib %1.def
  5. If errorlevel 1  goto errexit0
  6. rem assemble dll program
  7. ml /c %1.asm
  8. IF errorlevel 1  goto errexit1
  9. link386 /PM:PM /ALIGN:4 /BASE:0x12000000 /E %1.obj,,,c:\toolkt20\os2lib\os2386.lib,%1.def ;
  10. If errorlevel  1 goto errexit2
  11. del *.obj
  12. del *.map
  13. goto exit
  14. :errexit0
  15. Echo Error making ImpLib Library file
  16. goto exit
  17. :errexit1
  18. Echo Assemble Error NOT Linking for DLL
  19. goto exit
  20. :errexit2
  21. Echo Link Error for DLL
  22. :exit
  23. Echo DLL Assemble and Link OK
  24. move %1.dll c:\os2\dll
  25.  
  26.