home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / tcpiptk / hps / vacpp.mak < prev   
Makefile  |  1999-05-11  |  3KB  |  92 lines

  1. #--------------------------------------------------------------------------
  2. #
  3. #   Licensed Materials - Property of IBM
  4. #   IBM TCP/IP for OS/2
  5. #   (C) Copyright IBM Corporation. 1996-1998
  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 Simple ECHO client/server sample makefile
  27. #
  28. #--------------------------------------------------------------------------
  29. # Include the file ibmsamp.inc which defines the various macros
  30. # depending on the target specified.
  31. #
  32. # The following macros are defined in ibmsamp.inc:
  33. #
  34. #       OBJDIR   - Directory where object files are created
  35. #       EXEDIR   - Directory where executable files are created
  36. #       RC       - Resource compiler
  37. #       RCFLAGS  - Resource compiler flags
  38. #       LINK     - Linker
  39. #       LFLAGS   - Linker flags
  40. #       MTLIBS   - Multithreaded versions of the runtime libraries
  41. #===================================================================
  42.  
  43. !include ..\..\ibmsamp.inc
  44.  
  45. TCPIPLIBS = tcpip32.lib
  46. CFLAGS=$(CFLAGS) /Ss  /Wall+ppt-uni-ppc-got-trd-ext-
  47. STACKSIZE=20000
  48. HFILES  = cliserv.h
  49.  
  50. !if "$(DEBUG)" != ""
  51. CFLAGS=/Ti /DDEBUG $(CFLAGS)
  52. !endif
  53.  
  54. #-------------------------------------------------------------------
  55. #
  56. #   A list of all of the object files
  57. #
  58. #-------------------------------------------------------------------
  59.  
  60. ECHOCOBJS = $(OBJDIR)\echoc.obj
  61. ECHOSOBJS = $(OBJDIR)\echos.obj
  62.  
  63. #-------------------------------------------------------------------
  64. #   This section lists all files to be built by make.
  65. #-------------------------------------------------------------------
  66. all: $(EXEDIR)\echoc.exe $(EXEDIR)\echos.exe
  67.  
  68. #-------------------------------------------------------------------
  69. #   Dependencies
  70. #     This section lists all object files needed to be built for the
  71. #     application, along with the files it is dependent upon (e.g.
  72. #     its source and any header files).
  73. #-------------------------------------------------------------------
  74.  
  75. $(OBJDIR)\echoc.obj: echoc.c
  76.  
  77. $(OBJDIR)\echos.obj: echos.c
  78.  
  79.  
  80. $(EXEDIR)\echoc.exe: $(ECHOCOBJS) makefile
  81.    -$(CREATE_PATH)
  82.    $(LINK) $@ hps.def $(MTLIBS) + $(TCPIPLIBS) $(ECHOCOBJS)
  83.  
  84. $(EXEDIR)\echos.exe: $(ECHOSOBJS)  makefile
  85.    -$(CREATE_PATH)
  86.    $(LINK) $@ hps.def $(MTLIBS) + $(TCPIPLIBS) $(ECHOSOBJS)
  87.  
  88.  
  89. clean:
  90.           del *.obj *.exe
  91.  
  92.