home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / rpcsvc / makefile < prev    next >
Encoding:
Makefile  |  1996-07-26  |  1.7 KB  |  59 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   Rpc NT Service                        **#
  5. #**            Copyright(c) Microsoft Corp. 1992-1996       **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. !include <ntwin32.mak>
  10.  
  11. all : client server
  12.  
  13. .c.obj:
  14.     $(cc) $(cdebug:Od=Ox) -nologo -I. $(cflags) $(cvarsdll) $*.c
  15.  
  16. # For better performance replace $(cdebug) with $(cdebug:Od=Ox)
  17. # Add -G4 -Oy on X86.
  18.  
  19. # Make the client side application
  20. client : svcclnt.exe
  21. svcclnt.exe : client.obj rpcsvc_c.obj
  22.     $(link) $(linkdebug) $(conflags) -out:$@ \
  23.       $** \
  24.       rpcrt4.lib $(conlibsdll)
  25.  
  26. client.c : rpcsvc_c.c
  27.  
  28. # Make the server side application
  29. server : rpcsvc.exe
  30. rpcsvc.exe : server.obj service.obj rpcsvc_s.obj
  31.     $(link) $(linkdebug) $(conflags) -out:$@ \
  32.       $** \
  33.       rpcrt4.lib $(conlibsdll)
  34.  
  35. server.c  : rpcsvc_s.c service.h
  36. service.c : service.h
  37.  
  38. # Generated files depend on the .IDL and .ACF
  39.  
  40. rpcsvc_c.c : rpcsvc.idl rpcsvc.acf
  41.     midl -ms_ext -server none -cpp_cmd $(cc) -cpp_opt "-nologo -E" rpcsvc.idl
  42.  
  43. # See the .ACF for a explanation why the -DSERVER flag here.
  44.  
  45. rpcsvc_s.c : rpcsvc.idl rpcsvc.acf
  46.     midl -ms_ext -client none -cpp_cmd $(cc) -cpp_opt "-nologo -E -DSERVER" rpcsvc.idl
  47.  
  48. # Clean up everything
  49. cleanall : clean
  50.     -del *.exe
  51.  
  52. # Clean up everything but the .EXEs
  53. clean :
  54.     -del *.obj
  55.     -del *.map
  56.     -del rpcsvc_c.c
  57.     -del rpcsvc_s.c
  58.     -del rpcsvc.h
  59.