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 / yield / makefile next >
Makefile  |  1997-10-15  |  1KB  |  49 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                    yield Application                    **#
  5. #**            Copyright(c) Microsoft Corp. 1991-1995       **#
  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: yields
  18.  
  19. # Make the yield server
  20. yields : yields.exe
  21. yields.exe : yields.obj yieldp.obj yield_s.obj
  22.     $(link) $(linkdebug) $(conflags) -out:yields.exe -map:yields.map \
  23.       yields.obj yieldp.obj yield_s.obj \
  24.       rpcrt4.lib $(conlibsdll)
  25.  
  26. yields.obj : yields.c yield.h
  27.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  28.  
  29. yieldp.obj : yieldp.c yield.h
  30.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  31.  
  32. yield_s.obj : yield_s.c yield.h
  33.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  34.  
  35. # Make the stubs source
  36. yield.h yield_s.c : yield.idl yield.acf
  37.     midl -oldnames -cpp_cmd $(cc) -cpp_opt "-E" yield.idl
  38.  
  39. # Clean up everything
  40. cleanall : clean
  41.     -del *.exe
  42.  
  43. # Clean up everything but the .EXEs
  44. clean :
  45.     -del *.obj
  46.     -del *.map
  47.     -del yield_s.c
  48.     -del yield.h
  49.