home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / tcpiptk / rpcgen / rpcgsamp.mak < prev   
Makefile  |  1996-11-19  |  3KB  |  73 lines

  1. #===================================================================
  2. #
  3. #   RPCGSAMP.MAK - TCP/IP RPCGEN Sample Make file
  4. #   Copyright      IBM Corporation 1996
  5. #
  6. #===================================================================
  7. #===================================================================
  8. # Include the file ibmsamp.inc which defines the various macros
  9. # depending on the target specified.
  10. #
  11. # The following macros are defined in ibmsamp.inc:
  12. #
  13. #       OBJDIR   - Directory where object files are created
  14. #       EXEDIR   - Directory where executable files are created
  15. #       RC       - Resource compiler
  16. #       RCFLAGS  - Resource compiler flags
  17. #       LINK     - Linker
  18. #       LFLAGS   - Linker flags
  19. #       MTLIBS   - Multithreaded versions of the runtime libraries
  20. #===================================================================
  21.  
  22. !include ..\..\ibmsamp.inc
  23.  
  24. TCPIPLIBS = so32dll.lib tcp32dll.lib rpc32dll.lib
  25. CFLAGS    = $(CFLAGS) /DOS2 /Sm /Ss /Q  /W2 /Gm /Gt
  26.  
  27. #-------------------------------------------------------------------
  28. #
  29. #   A list of all of the object files
  30. #
  31. #-------------------------------------------------------------------
  32.  
  33. RGSOBJS = $(OBJDIR)\rgs.obj $(OBJDIR)\rgus.obj
  34. RGCOBJS = $(OBJDIR)\rgc.obj $(OBJDIR)\rguc.obj
  35.  
  36. #-------------------------------------------------------------------
  37. #   This section lists all files to be built by  make.  The
  38. #   makefile builds the executable as well as its associated help
  39. #   file.
  40. #-------------------------------------------------------------------
  41. all: genfiles $(EXEDIR)\rgc.exe $(EXEDIR)\rgs.exe
  42.  
  43. #-------------------------------------------------------------------
  44. #   Dependencies
  45. #     This section lists all object files needed to be built for the
  46. #     application, along with the files it is dependent upon (e.g.
  47. #     its source and any header files).
  48. #-------------------------------------------------------------------
  49.  
  50. $(OBJDIR)\rgs.obj:  rgs.c
  51.  
  52. $(OBJDIR)\rgus.obj: rgus.c
  53.  
  54. $(OBJDIR)\rgc.obj:  rgc.c
  55.  
  56. $(OBJDIR)\rguc.obj: rguc.c
  57.  
  58. $(EXEDIR)\rgc.exe: $(RGCOBJS)  rpcg.def rpcgsamp.mak
  59.    -$(CREATE_PATH)
  60.    $(LINK) $@ rpcg.def $(MTLIBS) + $(TCPIPLIBS) $(RGCOBJS)
  61.  
  62. $(EXEDIR)\rgs.exe: $(RGSOBJS)  rpcg.def rpcgsamp.mak
  63.    -$(CREATE_PATH)
  64.    $(LINK) $@ rpcg.def $(MTLIBS) + $(TCPIPLIBS) $(RGSOBJS)
  65.  
  66. genfiles:
  67.    rpcgen rg.x
  68.  
  69. clean :
  70.         @if exist *.obj del *.obj
  71.         @if exist *.dll del *.dll
  72.         @if exist *.exe del *.exe
  73.