home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / MFKASM.ZIP / CDL-W386.CMD < prev    next >
OS/2 REXX Batch file  |  1992-07-20  |  552b  |  23 lines

  1. rem make libary
  2. implib c:\toolkt20\os2lib\%1.lib d:\os2_src\%1.def
  3. If errorlevel 1  goto errexit0
  4. rem compile dll program
  5. icc /C+ /Ge- d:\os2_src\%1.c
  6. IF errorlevel 1  goto errexit1
  7. link386 /PM:PM /ALIGN:16 /E %1.obj,,,c:\toolkt20\os2lib\%1.lib, d:\os2_src\%1.def ;
  8. If errorlevel  1 goto errexit2
  9. del *.obj
  10. goto exit
  11. :errexit0
  12. Echo Error making ImpLib Library file
  13. goto exit
  14. :errexit1
  15. Echo Compile Error NOT Linking for DLL
  16. goto exit
  17. :errexit2
  18. Echo Link Error for DLL
  19. :exit
  20. Echo DLL Compile and Link OK
  21. move c:\%1.dll c:\os2\dll
  22.  
  23.