home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l291 / 6.ddi / FDLLOBJS.CM$ / FDLLOBJS.bin
Encoding:
Text File  |  1991-04-24  |  2.1 KB  |  56 lines

  1. @echo off
  2. setlocal
  3. if %1.==. goto Message
  4. set DESTIN=%1
  5. set DLLNAME=%2
  6. if %2.==. set DLLNAME=frtlib
  7. if not %3.==. set LIBF=%3
  8. if not %3.==. goto Start
  9. for %%A in (%LIB%) do if exist %%A\FRTLIB.OBJ set LIBF=%%A& goto Start
  10. echo Can't find components in LIB directory
  11. goto Exit
  12. :Start
  13. echo.
  14. echo    Build dynamic link library.
  15. echo.
  16. echo LINK %LIBF%\FRTLIB.OBJ,%DESTIN%\%DLLNAME%.DLL,,%LIBF%\FDLLOBJS/NOE,FDLLOBJS.DEF;
  17. LINK %LIBF%\FRTLIB.OBJ,%DESTIN%\%DLLNAME%.DLL,,%LIBF%\FDLLOBJS/NOE,FDLLOBJS.DEF;
  18. echo.
  19. echo    Build imports library.
  20. echo.
  21. for %%A in (%PATH%) do if exist %%A\IMPLIB.EXE goto Skip2
  22. echo Can't find IMPLIB.EXE in PATH
  23. goto Exit
  24. :Skip2
  25. echo IMPLIB %LIBF%\%DLLNAME%.LIB FDLLOBJS.DEF DIFFHLP.DEF
  26. IMPLIB %LIBF%\%DLLNAME%.LIB FDLLOBJS.DEF DIFFHLP.DEF
  27. goto Exit
  28. :Message
  29. echo   This batch file creates a dynamic link library and a corresponding
  30. echo   imports library containing the FORTRAN run-time. The imports library 
  31. echo   (which is invoked at link time) specifies the symbols and routines 
  32. echo   that will be imported from the dynamic link library at run time.  
  33. echo   Your PATH should point to the directory containing IMPLIB.EXE.  Your 
  34. echo   LIB environment variable should have a pathname for OS2.LIB.
  35. echo   The files FDLLOBJS.DEF, DIFFHLP.DEF and FDLLOBJS.LIB should be in the 
  36. echo   same directory as FDLLOBJS.CMD.
  37. echo.
  38. echo    Syntax:
  39. echo        FDLLOBJS destin [dllname] [libdir]
  40. echo.
  41. echo    Arguments:
  42. echo        destin    Specify destination directory (should be in LIBPATH
  43. echo                  in CONFIG.SYS). Use . for current directory.
  44. echo        dllname   Default is FRTLIB (extension is .DLL for dynalink
  45. echo                  library or .LIB for imports library)
  46. echo        libdir    Default is LIB environment variable
  47. echo.
  48. echo    Examples:
  49. echo        FDLLOBJS C:\BINP
  50. echo                  Puts FRTLIB.DLL in C:\BINP and FRTLIB.LIB
  51. echo                  in LIB directory.
  52. echo        FDLLOBJS . DYNAF D:\LIBF
  53. echo                  Puts DYNAF.DLL in current and DYNAF.LIB in D:\LIBF
  54. :Exit
  55. endlocal
  56.