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 / handles / cxhndl / makefile < prev    next >
Encoding:
Makefile  |  1997-10-15  |  1.9 KB  |  70 lines

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