home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / tcpiptk / sampdll / watcom.mak < prev   
Text File  |  1996-11-19  |  3KB  |  65 lines

  1. #********************************************************copyrite.xic******/
  2. #                                                                          /
  3. #   Licensed Materials - Property of IBM                                   /
  4. #   IBM TCP/IP for OS/2                                                    /
  5. #   (C) Copyright IBM Corporation. 1996.                                   /
  6. #                                                                          /
  7. #   All rights reserved.                                                   /
  8. #                                                                          /
  9. #   US Government Users Restricted Rights -                                /
  10. #   Use, duplication or disclosure restricted by GSA ADP Schedule          /
  11. #   Contract with IBM Corp.                                                /
  12. #                                                                          /
  13. #--------------------------------------------------------------------------/
  14. #                                                                          /
  15. #  DISCLAIMER OF WARRANTIES.  The following [enclosed] code is             /
  16. #  sample code created by IBM Corporation. This sample code is not         /
  17. #  part of any standard or IBM product and is provided to you solely       /
  18. #  for  the purpose of assisting you in the development of your            /
  19. #  applications.  The code is provided "AS IS", without                    /
  20. #  warranty of any kind.  IBM shall not be liable for any damages          /
  21. #  arising out of your use of the sample code, even if they have been      /
  22. #  advised of the possibility of such damages.                             /
  23. #--------------------------------------------------------------------------/
  24.  
  25. #.AUTODEPEND
  26.  
  27. #=============================================================
  28. #        Translator Definitions
  29. #=============================================================
  30.  
  31. LIBPATH = libp c:\toolkit\lib
  32. INCLUDEPATH = C:\TOOLKIT\H
  33. LIBFILES = libr so32dll.lib,tcp32dll.lib,os2386.lib
  34.  
  35. #=============================================================
  36. #        Explicit Rules
  37. #=============================================================
  38.  
  39. ALL : sampdll.dll myprog.exe
  40.  
  41. clean:
  42.    -del *.obj
  43.    -del *.dll
  44.    -del *.exe
  45.    -del *.lib
  46.  
  47. #-------------------------------------------------------------
  48.  
  49. myprog.exe: myprog.c sampdll.lib
  50.    wcl386 /l=os2v2 myprog.c sampdll.lib
  51.  
  52. sampdll.obj: sampdll.c
  53.    wcc386 /bd sampdll.c
  54.  
  55. sampdll.lib: sampdll.dll
  56.    wlib sampdll +sampdll.dll
  57.  
  58. sampdll.dll: sampdll.obj
  59.    wlink system os2v2 dll&
  60.    initinstance terminstance&
  61.    $(LIBPATH) $(LIBFILES)&
  62.    option manyautodata&
  63.    export s_gethostbyname_&
  64.    FIL sampdll
  65.