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 / doctor / makefile.dos < prev    next >
Encoding:
Makefile  |  1995-11-14  |  1.2 KB  |  47 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   doctor Application                    **#
  5. #**         Copyright(c) Microsoft Corp. 1992-1995          **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. cc= cl
  10. cc_ntenv = cl386
  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 : doctorc
  19.  
  20. idl : doctor.h
  21.  
  22. # Make the client side application doctorc
  23. doctorc : doctorc.exe
  24. doctorc.exe : doctorc.obj doctor_c.obj
  25.         $(linker) $(lflags) doctorc doctor_c ,,,\
  26.         llibce rpc rpcndr;
  27.  
  28. # Update the object files if necessary
  29.  
  30. doctorc.obj : doctorc.c doctor.h
  31.  
  32. doctor_c.obj : doctor_c.c doctor.h
  33.  
  34. doctor.h doctor_c.c : doctor.idl doctor.acf
  35.    midl -env dos -oldnames -no_cpp -ms_ext doctor.idl
  36.  
  37. # Clean up everything
  38. cleanall : clean
  39.         -del doctorc.exe
  40.  
  41. # Clean up everything but the .EXEs
  42. clean :
  43.         -del doctor_c.c
  44.         -del doctor.h
  45.         -del *.obj
  46.         -del *.map
  47.