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 / ns / nhello / makefile.dos next >
Encoding:
Makefile  |  1995-11-14  |  1.1 KB  |  46 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**              Name Service Hello Application             **#
  5. #**            Copyright(c) Microsoft Corp. 1992-1995       **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. cc= cl
  10. cflags= -c -AL -Gsw -Oas -Zpe -Zi -D_CRTAPI1=
  11. linker= link
  12. lflags= /CO /NOD
  13.  
  14. .c.obj:
  15.    $(cc) $(cflags) $<
  16.  
  17. all : nhelloc
  18.  
  19. idl : nhello.h
  20.  
  21. # Make the client side application nhelloc
  22. nhelloc : nhelloc.exe
  23. nhelloc.exe : nhelloc.obj nhello_c.obj
  24.     $(linker) $(lflags) nhelloc nhello_c ,,,\
  25.     llibce rpc rpcndr;
  26.  
  27. # Update the object files if necessary
  28.  
  29. nhelloc.obj : nhelloc.c nhello.h
  30.  
  31. nhello_c.obj : nhello_c.c nhello.h
  32.  
  33. nhello.h nhello_c.c : nhello.idl
  34.    midl -env dos -no_cpp -ms_ext nhello.idl
  35.  
  36. # Clean up everything
  37. cleanall : clean
  38.     -del nhelloc.exe
  39.  
  40. # Clean up everything but the .EXEs
  41. clean :
  42.     -del *.obj
  43.     -del *.map
  44.     -del nhello_c.c
  45.     -del nhello.h
  46.