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 / dict / makefile.dos < prev    next >
Encoding:
Makefile  |  1995-11-14  |  1.5 KB  |  66 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   dict  Application                     **#
  5. #**            Copyright(c) Microsoft Corp. 1992-1995       **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. cc_ntenv = cl386
  10. cc= cl
  11. cflags= -c -AL -Gsw -Oas -Zpe -Zi -D_CRTAPI1=
  12. linker= link
  13. lflags= /CO /NOD
  14.  
  15. .c.obj:
  16.    $(cc) $(cflags) $<
  17.  
  18. all : client play
  19.  
  20. idl : replay.h
  21.  
  22. client : client.exe
  23. client.exe : client.obj util0.obj replay_c.obj
  24.     $(linker) $(lflags) client util0 replay_c ,,,\
  25.     llibce rpc rpcndr;
  26.  
  27. play : play.exe
  28. play.exe : play.obj lutil0.obj dict0.obj
  29.     $(linker) $(lflags) play lutil0 dict0,,,\
  30.     llibce;
  31.  
  32. # Update the object files if necessary
  33.  
  34. client.obj : client.c util0.h replay.h
  35.  
  36. replay.obj : replay.c util0.h replay.h
  37.  
  38. util0.obj : util0.c util0.h
  39.  
  40. dict0.obj : dict0.c dict0.h
  41.  
  42. play.obj : play.c util0.h dict0.h
  43.  
  44. replay_c.obj : replay_c.c replay.h
  45.  
  46. lutil0.obj : util0.c util0.h
  47.    copy util0.c lutil0.c
  48.    $(cc) $(cflags) -D_LOCAL lutil0.c
  49.    del lutil0.c
  50.  
  51. replay.h replay_c.c : replay.idl replay.acf
  52.     midl -env dos -ms_ext -oldnames -no_cpp replay.idl
  53.  
  54.  
  55. # Clean up everything
  56. cleanall : clean
  57.     -del *.exe
  58.  
  59. # Clean up everything but the .EXEs
  60. clean :
  61.     -del *.obj
  62.     -del *.map
  63.     -del replay_?.c
  64.     -del replay.h
  65.  
  66.