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

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   cluuid 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 : cluuidc cluuids
  18.  
  19. # Make the client side application cluuidc
  20. cluuidc : cluuidc.exe
  21. cluuidc.exe : cluuidc.obj cluuid_c.obj
  22.     $(link) $(linkdebug) $(conflags) -out:cluuidc.exe \
  23.       cluuidc.obj cluuid_c.obj \
  24.       rpcrt4.lib $(conlibsdll)
  25.  
  26. # cluuidc main program
  27. cluuidc.obj : cluuidc.c cluuid.h
  28.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  29.  
  30. # cluuidc stub
  31. cluuid_c.obj : cluuid_c.c cluuid.h
  32.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  33.  
  34. # Make the server side application
  35. cluuids : cluuids.exe
  36. cluuids.exe : cluuids.obj cluuidp.obj cluuid_s.obj
  37.     $(link) $(linkdebug) $(conflags) -out:cluuids.exe \
  38.       cluuids.obj cluuid_s.obj cluuidp.obj \
  39.       rpcrt4.lib $(conlibsdll)
  40.  
  41. # cluuid server main program
  42. cluuids.obj : cluuids.c cluuid.h
  43.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  44.  
  45. # remote procedures
  46. cluuidp.obj : cluuidp.c cluuid.h
  47.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  48.  
  49. # cluuids stub file
  50. cluuid_s.obj : cluuid_s.c cluuid.h
  51.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  52.  
  53. # Stubs and header file from the IDL file
  54. cluuid.h cluuid_c.c cluuid_s.c : cluuid.idl cluuid.acf
  55.     midl -oldnames -use_epv -no_cpp cluuid.idl
  56.  
  57. # Clean up everything
  58. cleanall : clean
  59.     -del *.exe
  60.  
  61. # Clean up everything but the .EXEs
  62. clean :
  63.     -del *.obj
  64.     -del *.map
  65.     -del cluuid_c.c
  66.     -del cluuid_s.c
  67.     -del cluuid.h
  68.