home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / clip4win / clip4win.exe / C4W30E.HUF / BLINKER / SAMPLE.LNK
Text File  |  1995-06-30  |  3KB  |  80 lines

  1. #  sample.lnk - sample link file for Clip-4-Win & Blinker 3
  2. #
  3. #  Written by:    John Skelton and Doug Rist.
  4. #
  5. #  To translate a Microsoft LINK command:
  6. #       link /se:600 <1>, <2>, <3>, <4>, <5>
  7. #  where the <n> are:
  8. #       <1>: object file (OBJ) list, using space or '+' as separators
  9. #       <2>: output file (EXE/DLL) name
  10. #       <3>: map file name
  11. #       <4>: list of library (LIB) files, separated by space or '+'
  12. #       <5>: definition file (DEF)
  13. #  to Blinker 3, proceed as shown below.
  14. #
  15. #  NOTE: Put all LIBRARY xxx statements, except the ones for CLIPPER,
  16. #        before the one for clip4win.  RDD's should be before clip4win.
  17. #
  18. #  For example, the LINK command:
  19. #    link /se:600 main+func1+func2,myapp,mymap,myrdd+clip4win+clipper,mydef
  20. #  translates to:
  21. #    BLINKER INCREMENTAL OFF
  22. #    FILE main,func1,func2
  23. #    OUTPUT myapp.exe
  24. #    MAP=mymap S
  25. #    LIBRARY myrdd
  26. #    LIBRARY WBrowseT            # I don't think SEARCH is needed
  27. #    LIBRARY C4WClass            # I don't think SEARCH is needed
  28. #    LIBRARY TopClass            # I don't think SEARCH is needed
  29. #    LIBRARY Clip4Win            # I don't think SEARCH is needed
  30. #    LIBRARY CLIPPER, EXTEND, DBFNTX, TERMINAL   # I think these link last by default
  31. #    DEFFILE mydef        # or use DEFBEGIN ... DEFEND, see below
  32. #
  33. #  NOTE: The presence of DEFFILE (or DEFBEGIN ... DEFEND) makes Blinker
  34. #        produce a Windows EXE.  You don't need to do any overlaying,
  35. #        as Windows will manage memory automatically.
  36.  
  37. BLINKER INCREMENTAL OFF
  38.  
  39. # OBJ file list    : <1> replace '+' or ' ' with ','
  40. FILE <YourFile1>
  41. ...
  42. FILE <YourFileN>
  43.  
  44.  
  45. # Output file (exe) name: <2> (optional, default is first Obj named in FILE
  46. OUTPUT <YourEXE>
  47.  
  48. # Map file name & type (S emulates the Map file created by MSLink/OptLink.
  49. # For a NUL value, remove the next executable line.   : <3>
  50. MAP S
  51.  
  52. # Library (lib) file listing: <4> replace '+' or ' ' with ','
  53. # all other libraries should be allocated unless manufacturer
  54. # specifically states otherwise.
  55.  
  56. LIBRARY WBrowseT            # I don't think SEARCH is needed
  57. LIBRARY C4WClass            # I don't think SEARCH is needed
  58. LIBRARY TopClass            # I don't think SEARCH is needed
  59. LIBRARY Clip4Win            # I don't think SEARCH is needed
  60.  
  61. # The following section was created by Importing a Def file between a
  62. # DEFBEGIN ... DEFEND, and could have been done with the DEFFILE <5>
  63. # An excellent explanation of the commands used in a DEF file are
  64. # supplied in the Blinker 3.0 Norton Guide (NG) files, under:
  65. #     Windows Exe's \\ Def file commands
  66. #
  67.  
  68. DEFBEGIN
  69.    name        <AppName>   #Up to 8 chars only!!! Don't use quotes ('' or "").
  70.    description 'Description of Program'
  71.    exetype     windows  3.1
  72.    stub        'c:\clip4win\bin\c4wstub.exe' # or wherever the stub is
  73.    code        preload  moveable    discardable
  74.    data        preload  moveable
  75.    stacksize   8000
  76.    heapsize    2000
  77.    exports     __WndProc      @1
  78.                DialogWndProc  @2
  79. DEFEND
  80.