home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / tcpiptk / socket / vacpp.mak < prev    next >
Text File  |  1996-11-19  |  5KB  |  126 lines

  1. #===================================================================
  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. #
  26. #   VACPP.MAK - TCP/IP Sockets Sample Make file
  27.  
  28.  
  29.  
  30. #===================================================================
  31. # Include the file ibmsamp.inc which defines the various macros
  32. # depending on the target specified.
  33. #
  34. # The following macros are defined in ibmsamp.inc:
  35. #
  36. #       OBJDIR   - Directory where object files are created
  37. #       EXEDIR   - Directory where executable files are created
  38. #       RC       - Resource compiler
  39. #       RCFLAGS  - Resource compiler flags
  40. #       LINK     - Linker
  41. #       LFLAGS   - Linker flags
  42. #       MTLIBS   - Multithreaded versions of the runtime libraries
  43. #===================================================================
  44.  
  45. !include ..\..\ibmsamp.inc
  46.  
  47. TCPIPLIBS = so32dll.lib tcp32dll.lib
  48. CFLAGS    = $(CFLAGS) /DOS2 /Sm /Ss /Q  /W2 /Gm /Gt
  49.  
  50. #-------------------------------------------------------------------
  51. #
  52. #   A list of all of the object files
  53. #
  54. #-------------------------------------------------------------------
  55.  
  56. UDPCOBJS   = $(OBJDIR)\udpc.obj
  57. UDPSOBJS   = $(OBJDIR)\udps.obj
  58. TCPCOBJS   = $(OBJDIR)\tcpc.obj
  59. TCPSOBJS   = $(OBJDIR)\tcps.obj
  60. SELECTOBJS = $(OBJDIR)\selects.obj
  61. MSGSOBJS   = $(OBJDIR)\msgs.obj
  62. MSGCOBJS   = $(OBJDIR)\msgc.obj
  63.  
  64. #-------------------------------------------------------------------
  65. #   This section lists all files to be built by  make.  The
  66. #   makefile builds the executable as well as its associated help
  67. #   file.
  68. #-------------------------------------------------------------------
  69. all: $(EXEDIR)\udpc.exe $(EXEDIR)\udps.exe    $(EXEDIR)\tcpc.exe \
  70.      $(EXEDIR)\tcps.exe $(EXEDIR)\selects.exe $(EXEDIR)\msgs.exe \
  71.      $(EXEDIR)\msgc.exe
  72.  
  73. #-------------------------------------------------------------------
  74. #   Dependencies
  75. #     This section lists all object files needed to be built for the
  76. #     application, along with the files it is dependent upon (e.g.
  77. #     its source and any header files).
  78. #-------------------------------------------------------------------
  79.  
  80. $(OBJDIR)\udpc.obj:    udpc.c
  81.  
  82. $(OBJDIR)\udps.obj:    udps.c
  83.  
  84. $(OBJDIR)\tcpc.obj:    tcpc.c
  85.  
  86. $(OBJDIR)\tcps.obj:    tcps.c
  87.  
  88. $(OBJDIR)\selects.obj: selects.c
  89.  
  90. $(OBJDIR)\msgs.exe:    msgs.c
  91.  
  92. $(OBJDIR)\msgc.exe:    msgc.c
  93.  
  94. $(EXEDIR)\udpc.exe: $(UDPCOBJS)  sock.def vacpp.mak
  95.    -$(CREATE_PATH)
  96.    $(LINK) $@ sock.def $(MTLIBS) + $(TCPIPLIBS) $(UDPCOBJS)
  97.  
  98. $(EXEDIR)\udps.exe: $(UDPSOBJS)  sock.def vacpp.mak
  99.    -$(CREATE_PATH)
  100.    $(LINK) $@ sock.def $(MTLIBS) + $(TCPIPLIBS) $(UDPSOBJS)
  101.  
  102. $(EXEDIR)\tcpc.exe: $(TCPCOBJS)  sock.def vacpp.mak
  103.    -$(CREATE_PATH)
  104.    $(LINK) $@ sock.def $(MTLIBS) + $(TCPIPLIBS) $(TCPCOBJS)
  105.  
  106. $(EXEDIR)\tcps.exe: $(TCPSOBJS)  sock.def vacpp.mak
  107.    -$(CREATE_PATH)
  108.    $(LINK) $@ sock.def $(MTLIBS) + $(TCPIPLIBS) $(TCPSOBJS)
  109.  
  110. $(EXEDIR)\selects.exe: $(SELECTOBJS)  sock.def vacpp.mak
  111.    -$(CREATE_PATH)
  112.    $(LINK) $@ sock.def $(MTLIBS) + $(TCPIPLIBS) $(SELECTOBJS)
  113.  
  114. $(EXEDIR)\msgs.exe: $(MSGSOBJS)  sock.def vacpp.mak
  115.    -$(CREATE_PATH)
  116.    $(LINK) $@ sock.def $(MTLIBS) + $(TCPIPLIBS) $(MSGSOBJS)
  117.  
  118. $(EXEDIR)\msgc.exe: $(MSGCOBJS)  sock.def vacpp.mak
  119.    -$(CREATE_PATH)
  120.    $(LINK) $@ sock.def $(MTLIBS) + $(TCPIPLIBS) $(MSGCOBJS)
  121.  
  122. clean :
  123.         @if exist *.obj del *.obj
  124.         @if exist *.dll del *.dll
  125.         @if exist *.exe del *.exe
  126.