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

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   dynept 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.  
  18. all : dyneptc dynepts
  19.  
  20. # Make the client side application dyneptc
  21. dyneptc : dyneptc.exe
  22. dyneptc.exe : dyneptc.obj dynept_c.obj
  23.     $(link) $(linkdebug) $(conflags) -out:dyneptc.exe \
  24.       dyneptc.obj dynept_c.obj \
  25.       rpcrt4.lib $(conlibsdll)
  26.  
  27. # dyneptc main program
  28. dyneptc.obj : dyneptc.c dynept.h
  29.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  30.  
  31. # dyneptc stub
  32. dynept_c.obj : dynept_c.c dynept.h
  33.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  34.  
  35.  
  36. # Make the server side application
  37. dynepts : dynepts.exe
  38. dynepts.exe : dynepts.obj dyneptp.obj dynept_s.obj
  39.     $(link) $(linkdebug) $(conflags) -out:dynepts.exe \
  40.       dynepts.obj dynept_s.obj dyneptp.obj \
  41.       rpcrt4.lib $(conlibsdll)
  42.  
  43. # dynept server main program
  44. dynepts.obj : dynepts.c dynept.h
  45.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  46.  
  47. # remote procedures
  48. dyneptp.obj : dyneptp.c dynept.h
  49.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  50.  
  51. # dynepts stub file
  52. dynept_s.obj : dynept_s.c dynept.h
  53.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  54.  
  55. # Stubs and header file from the IDL file
  56. dynept.h dynept_c.c dynept_s.c : dynept.idl dynept.acf
  57.     midl -oldnames -cpp_cmd $(cc) -cpp_opt "-E" dynept.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 dynept_c.c
  68.     -del dynept_s.c
  69.     -del dynept.h
  70.