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 / data / xmit / makefile < prev    next >
Encoding:
Makefile  |  1997-10-15  |  2.0 KB  |  72 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   xmit Application                      **#
  5. #**          Copyright(c) Microsoft Corp. 1992-1996         **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. !include <ntwin32.mak>
  10.  
  11. !if "$(CPU)" == "i386"
  12. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  13. !else
  14. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  15. !endif
  16.  
  17. all : xmitc xmits
  18.  
  19. # Make the client
  20. xmitc : xmitc.exe
  21. xmitc.exe : xmitc.obj xmitu.obj xmit_c.obj
  22.     $(link) $(linkdebug) $(conflags) -out:xmitc.exe -map:xmitc.map \
  23.       xmitc.obj xmitu.obj xmit_c.obj \
  24.       rpcrt4.lib $(conlibsdll)
  25.  
  26. # xmit client main program
  27. xmitc.obj : xmitc.c xmit.h xmitu.h
  28.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  29.  
  30. xmitu.obj : xmitu.c xmit.h xmitu.h
  31.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  32.  
  33. # xmit client stub
  34. xmit_c.obj : xmit_c.c xmit.h
  35.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  36.  
  37.  
  38. # Make the server executable
  39. xmits : xmits.exe
  40. xmits.exe : xmits.obj xmitu.obj xmitp.obj xmit_s.obj
  41.     $(link) $(linkdebug) $(conflags) -out:xmits.exe -map:xmits.map \
  42.       xmits.obj xmitu.obj xmit_s.obj xmitp.obj \
  43.       rpcrt4.lib $(conlibsdll)
  44.  
  45. # xmit server main
  46. xmits.obj : xmits.c xmit.h xmitu.h
  47.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  48.  
  49. # remote procedures
  50. xmitp.obj : xmitp.c xmit.h
  51.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  52.  
  53. # xmit server stub file
  54. xmit_s.obj : xmit_s.c xmit.h
  55.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  56.  
  57. # Stubs and header file from the IDL file
  58. xmit.h xmit_c.c xmit_s.c : xmit.idl xmit.acf
  59.     midl -oldnames -no_cpp xmit.idl
  60.  
  61. # Clean up everything
  62. cleanall : clean
  63.     -del *.exe
  64.  
  65. # Clean up everything but the .EXEs
  66. clean :
  67.     -del *.obj
  68.     -del *.map
  69.     -del xmit_c.c
  70.     -del xmit_s.c
  71.     -del xmit.h
  72.