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

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   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 /STACK:4096
  13.  
  14. .c.obj:
  15.    $(cc) $(cflags) $<
  16.  
  17. all : helloc
  18.  
  19. idl : hello.h
  20.  
  21. # Make the client side application helloc
  22. helloc : helloc.exe
  23. helloc.exe : helloc.obj hello_c.obj
  24.     $(linker) $(lflags) helloc hello_c ,,,\
  25.     llibce rpc rpcndr;
  26.  
  27. # Update the object files if necessary
  28.  
  29. helloc.obj : helloc.c hello.h
  30.  
  31. hello_c.obj : hello_c.c hello.h
  32.  
  33. hello.h hello_c.c : hello.idl hello.acf
  34.    midl -oldnames -env dos -ms_ext -char ascii7 -no_cpp hello.idl
  35.  
  36. # Clean up everything
  37. cleanall : clean
  38.     -del helloc.exe
  39.  
  40. # Clean up everything but the .EXEs
  41. clean :
  42.     -del *.obj
  43.     -del *.map
  44.     -del hello_c.c
  45.     -del hello.h
  46.