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 / interop / makefile.dos < prev    next >
Encoding:
Makefile  |  1995-11-14  |  1.1 KB  |  49 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**               OSF DCE Interop 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
  19.  
  20. idl : msg.h
  21.  
  22. client : client.exe
  23. client.exe : client.obj msg_c.obj midluser.obj
  24.     $(linker) $(lflags) client msg_c midluser,,,\
  25.     llibce rpc rpcndr;
  26.  
  27. # Update the object files if necessary
  28.  
  29. client.obj : client.c msg.h
  30.  
  31. msg_c.obj : msg_c.c msg.h
  32.  
  33. midluser.obj : midluser.c
  34.  
  35. msg.h msg_c.c : msg.idl msg.acf
  36.     midl -env dos -cpp_cmd $(cc_ntenv) -cpp_opt "-E" msg.idl
  37.  
  38. # Clean up everything
  39. cleanall : clean
  40.     -del *.exe
  41.  
  42. # Clean up everything but the .EXEs
  43. clean :
  44.     -del *.obj
  45.     -del *.map
  46.     -del msg_?.c
  47.     -del msg.h
  48.  
  49.