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.win < prev    next >
Makefile  |  1995-11-14  |  1KB  |  55 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                    yeild Application                    **#
  5. #**            Copyright(c) Microsoft Corp. 1992-1995       **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. cc= cl
  10. cflags= -c -AL -Gsw -Oas -Zpe -Zi
  11. linker= link
  12. lflags= /CO /NOD
  13.  
  14. .c.obj:
  15.    $(cc) $(cflags) $<
  16.  
  17. !if defined(BUILD_IDL)
  18. all: yield.h yield_c.c
  19. !else
  20. all: yieldc.exe
  21. idl: yield.h
  22. !endif
  23.  
  24. # Update the resource if necessary
  25. yieldc.res: yieldc.rc yieldc.h
  26.     rc -r yieldc.rc
  27.  
  28. # Update the executable file if necessary, and if so, add the resource back in.
  29. yieldc.exe: yieldc.obj yieldc.def yield_c.obj yieldc.res
  30.     $(linker) $(lflags) yieldc yield_c ,,,\
  31.     libw llibcew rpcw rpcndrw, yieldc.def
  32.     rc yieldc.res yieldc.exe
  33.  
  34. # Update the object files if necessary
  35.  
  36. yieldc.obj: yieldc.c yieldc.h yield.h
  37.    $(cc) $(cflags) $(cvars) -DWIN16 yieldc.c
  38.  
  39. yield_c.obj : yield_c.c yieldc.h
  40.  
  41. yield.h yield_c.c : yield.idl yield.acf
  42.    midl -oldnames -env win16 yield.idl -no_cpp
  43.  
  44. # Clean up everything
  45. cleanall : clean
  46.     -del *.exe
  47.  
  48. # Clean up everything but the .EXEs
  49. clean :
  50.     -del *.obj
  51.     -del *.map
  52.     -del yieldc.res
  53.     -del yield_c.c
  54.     -del yield.h
  55.