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 / auto / makefile < prev    next >
Encoding:
Makefile  |  1997-10-15  |  1.8 KB  |  69 lines

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