home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / tcpiptk / rpc / rpcsamp.mak < prev   
Text File  |  1999-05-11  |  3KB  |  73 lines

  1. #===================================================================
  2. #
  3. #   RPCSAMP.MAK -  TCP/IP RPC 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) /DTCPV40HDRS /Sm /Ss /Q  /W2 /Gm /Gt /Mp
  26.  
  27. #-------------------------------------------------------------------
  28. #
  29. #   A list of all of the object files
  30. #
  31. #-------------------------------------------------------------------
  32.  
  33. GENESERVOBJS = $(OBJDIR)\geneserv.obj
  34. GENESENDOBJS = $(OBJDIR)\genesend.obj
  35. RAWEXOBJS    = $(OBJDIR)\rawex.obj
  36.  
  37. #-------------------------------------------------------------------
  38. #   This section lists all files to be built by  make.  The
  39. #   makefile builds the executable as well as its associated help
  40. #   file.
  41. #-------------------------------------------------------------------
  42. all: $(EXEDIR)\geneserv.exe $(EXEDIR)\genesend.exe $(EXEDIR)\rawex.exe
  43.  
  44. #-------------------------------------------------------------------
  45. #   Dependencies
  46. #     This section lists all object files needed to be built for the
  47. #     application, along with the files it is dependent upon (e.g.
  48. #     its source and any header files).
  49. #-------------------------------------------------------------------
  50.  
  51. $(OBJDIR)\geneserv.obj: geneserv.c
  52.  
  53. $(OBJDIR)\genesend.obj: genesend.c
  54.  
  55. $(OBJDIR)\rawex.obj:    rawex.c
  56.  
  57. $(EXEDIR)\genesend.exe: $(GENESENDOBJS)  rpc.def rpcsamp.mak
  58.    -$(CREATE_PATH)
  59.    $(LINK) $@ rpc.def $(MTLIBS) + $(TCPIPLIBS) $(GENESENDOBJS)
  60.  
  61. $(EXEDIR)\geneserv.exe: $(GENESERVOBJS)  rpc.def rpcsamp.mak
  62.    -$(CREATE_PATH)
  63.    $(LINK) $@ rpc.def $(MTLIBS) + $(TCPIPLIBS) $(GENESERVOBJS)
  64.  
  65. $(EXEDIR)\rawex.exe:    $(RAWEXOBJS)     rpc.def rpcsamp.mak
  66.    -$(CREATE_PATH)
  67.    $(LINK) $@ rpc.def $(MTLIBS) + $(TCPIPLIBS) $(RAWEXOBJS)
  68.  
  69. clean :
  70.         @if exist *.obj del *.obj
  71.         @if exist *.dll del *.dll
  72.         @if exist *.exe del *.exe
  73.