home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / tcpiptk / rcopy / vacpp.mak < prev    next >
Text File  |  1996-11-19  |  3KB  |  81 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. #   VACPP.MAK -    VisualAge C++ RCOPY Sample Make file
  26. #   Copyright      IBM Corporation 1996
  27. #
  28. #===================================================================
  29. #===================================================================
  30. # Include the file ibmsamp.inc which defines the various macros
  31. # depending on the target specified.
  32. #
  33. # The following macros are defined in ibmsamp.inc:
  34. #
  35. #       OBJDIR   - Directory where object files are created
  36. #       EXEDIR   - Directory where executable files are created
  37. #       RC       - Resource compiler
  38. #       RCFLAGS  - Resource compiler flags
  39. #       LINK     - Linker
  40. #       LFLAGS   - Linker flags
  41. #       MTLIBS   - Multithreaded versions of the runtime libraries
  42. #===================================================================
  43.  
  44. !include ..\..\ibmsamp.inc
  45.  
  46. TCPIPLIBS = so32dll.lib tcp32dll.lib ftpapi.lib
  47. CFLAGS    = $(CFLAGS) /DOS2 /Sm /Ss /Q  /W2 /Gm /Gt
  48.  
  49. #-------------------------------------------------------------------
  50. #
  51. #   A list of all of the object files
  52. #
  53. #-------------------------------------------------------------------
  54.  
  55. OBJS = $(OBJDIR)\rcopy.obj
  56.  
  57. #-------------------------------------------------------------------
  58. #   This section lists all files to be built by  make.  The
  59. #   makefile builds the executable as well as its associated help
  60. #   file.
  61. #-------------------------------------------------------------------
  62. all: $(EXEDIR)\rcopy.exe
  63.  
  64. #-------------------------------------------------------------------
  65. #   Dependencies
  66. #     This section lists all object files needed to be built for the
  67. #     application, along with the files it is dependent upon (e.g.
  68. #     its source and any header files).
  69. #-------------------------------------------------------------------
  70.  
  71. $(OBJDIR)\rcopy.obj:    rcopy.c
  72.  
  73. $(EXEDIR)\rcopy.exe: $(OBJS)  rcopy.def vacpp.mak
  74.    -$(CREATE_PATH)
  75.    $(LINK) $@ rcopy.def $(MTLIBS) + $(TCPIPLIBS) $(OBJS)
  76.  
  77. clean :
  78.         @if exist *.obj del *.obj
  79.         @if exist *.dll del *.dll
  80.         @if exist *.exe del *.exe
  81.