home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / RPCSMP.ZIP / RPCSAMP.MAK < prev   
Text File  |  1992-12-10  |  2KB  |  79 lines

  1. #===================================================================
  2. #
  3. #   rpcsamp Make file
  4. #   Copyright 1992 IBM Corporation
  5. #
  6. #===================================================================
  7.  
  8. #===================================================================
  9. #
  10. #   Sample application makefile,common definitions for the IBM C
  11. #   compiler environment
  12. #===================================================================
  13. .SUFFIXES:
  14. .SUFFIXES: .rc .res .obj .lst .c .asm .hlp .itl .ipf
  15. #===================================================================
  16. # Default compilation macros for sample programs
  17. #
  18. # Compile switchs  that are enabled
  19. # /c      compile don't link
  20. # /Gm+    use the multi-threaded libraries
  21. # /ss     allow  "//" for comment lines
  22. # /Ms     use the system calling convention and not optilink as the default
  23. # /Gd-    Disable optimization
  24. # /Se     allow cset  extensions
  25. #
  26. #
  27.  
  28.  
  29.  
  30. AFLAGS  = /Mx -t -z
  31. ASM     = ml /c /Zm
  32. LFLAGS   = /NOE /NOD /ALIGN:16 /EXEPACK /M /BASE:0x10000
  33. LINK    = LINK386  $(LFLAGS)
  34. LIBS    = DDE4MBS + OS2386
  35. STLIBS  = DDE4SBS + OS2386
  36. MTLIBS  = DDE4MBS + os2386
  37. DLLLIBS = DDE4NBS + os2386
  38. VLIBS   = DDE4SBS + vdh + os2386
  39.  
  40. .c.lst:
  41.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  42.  
  43. .c.obj:
  44.     $(CC) -Fo$*.obj $*.c
  45.  
  46. .asm.obj:
  47.     $(ASM)   $*.asm
  48.  
  49. .ipf.hlp:
  50.         ipfc $*.ipf /W3
  51.  
  52. .itl.hlp:
  53.         cc  -P $*.itl
  54.         ipfc $*.i
  55.         del $*.i
  56.  
  57. .rc.res:
  58.         rc -r -p -x $*.rc
  59.  
  60. CC         = icc /c /Ge /Gd- /Se /Re /ss /Gm+ /Ti /W3 /Kb+ /Gt+
  61. # note use of the /Gt+ flag above -- required as we are calling a 16 bit DLL
  62.  
  63. all: rgc.exe rgs.exe
  64.  
  65. rgs.obj: rgs.c rg.h
  66.  
  67. rgc.obj: rgc.c rg.h
  68.  
  69. rgus.obj: rgus.c rg.h
  70.  
  71. rguc.obj: rguc.c rg.h
  72.  
  73. rgs.exe: rgs.obj rgus.obj
  74.   $(LINK) rgs rgus /NOI /CO /MAP,,,$(LIBS) rpcdll.lib tcpipdll.lib;
  75.  
  76. rgc.exe: rgc.obj rguc.obj
  77.   $(LINK) rgc rguc /NOI /CO /MAP,,,$(LIBS) rpcdll.lib tcpipdll.lib;
  78.  
  79.