home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / tcpiptk / sampdll / borland.mak next >
Text File  |  1996-11-19  |  4KB  |  89 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. #  Make Directives
  26. #--------------------------------------------------------------------------
  27. .AUTODEPEND
  28. .SUFFIXES: .obj .c
  29.  
  30. #--------------------------------------------------------------------------
  31. #  Make Macros
  32. #--------------------------------------------------------------------------
  33. BCOS2_DIR  = D:\BCOS2
  34. TOOLKITLIB = C:\TOOLKIT\LIB
  35. STARTUP    = $(BCOS2_DIR)\lib\c02.obj
  36. STARTUPDLL = $(BCOS2_DIR)\lib\c02d.obj
  37. LIB        = $(BCOS2_DIR)\lib
  38. INCLUDE    = $(BCOS2_DIR)\include;C:\TOOLKIT\H
  39.  
  40. CC         = bcc -c -v -w
  41.  
  42. LFLAGS     = -c -x -v -ap /w-stk
  43. LINK       = tlink $(LFLAGS) -L$(LIB) $(STARTUP)
  44. LINKDLL    = tlink $(LFLAGS) -L$(LIB) $(STARTUPDLL)
  45.  
  46. LIBS       = c2 + os2
  47. MTLIBS     = c2mt + os2
  48. DLLLIBS    = $(TOOLKITLIB)\so32dll+ \
  49.          $(TOOLKITLIB)\tcp32dll+ \
  50.          $(TOOLKITLIB)\os2386+  \
  51.          c2mt + os2
  52.  
  53. #-------------------------------------------------------------------
  54. #  Make Rules
  55. #-------------------------------------------------------------------
  56. .c.obj:
  57.    $(CC) $(CFLAGS) -I$(INCLUDE) {$< }
  58.  
  59.  
  60. #===================================================================
  61. #        Explicit Rules
  62. #===================================================================
  63.  
  64. ALL : sampdll.dll myprog.exe
  65.  
  66. clean:
  67.    -del *.obj
  68.    -del *.dll
  69.    -del *.exe
  70.    -del *.lib
  71.  
  72. #-------------------------------------------------------------------
  73. #  Dependancies of the make
  74. #-------------------------------------------------------------------
  75. myprog.obj: myprog.c
  76.    $(CC) -I$(INCLUDE) $(CFLAGS) /DOS2 myprog.c
  77.  
  78. myprog.exe: myprog.obj myprogb.def
  79.    $(LINK) myprog.obj,myprog.exe,,$(DLLLIBS),myprogb.def
  80.  
  81. sampdll.obj: sampdll.c sampdll.def
  82.    $(CC) -I$(INCLUDE) $(CFLAGS) /DOS2 sampdll.c
  83.  
  84. sampdll.dll: sampdll.obj sampdll.def
  85.    $(LINKDLL) sampdll.obj, sampdll.dll,,$(DLLLIBS), sampdllb.def;
  86.  
  87. #==<eof>============================================================
  88.  
  89.