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

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