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 / pickle / picklt / makefile < prev    next >
Encoding:
Makefile  |  1997-10-15  |  1.4 KB  |  53 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**                   pickle Application                    **#
  5. #**            Copyright(c) Microsoft Corp. 1992-1996       **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. !include <ntwin32.mak>
  10.  
  11. !if "$(CPU)" == "i386"
  12. cflags = $(cflags:G3=Gz)
  13. !else
  14. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  15. !endif
  16.  
  17. !if "$(CPU)" == "i386"
  18. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  19. !endif
  20.  
  21. all : pickltc
  22.  
  23. # Make the picklt client
  24. pickltc : pickltc.exe
  25. pickltc.exe : pickltc.obj picklt_c.obj
  26.     $(link) $(linkdebug) $(conflags) -out:pickltc.exe \
  27.       pickltc.obj picklt_c.obj \
  28.       rpcrt4.lib $(conlibsdll)
  29.  
  30. # client main program
  31. pickltc.obj : pickltc.c picklt.h
  32.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  33.  
  34. # client stub
  35. picklt_c.obj : picklt_c.c picklt.h
  36.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  37.  
  38. # Stub and header file from the IDL file
  39. picklt.h picklt_c.c: picklt.idl picklt.acf
  40.     midl -oldnames -no_cpp -ms_ext picklt.idl
  41.  
  42. # Clean up everything
  43. cleanall : clean
  44.     -del *.exe
  45.  
  46. # Clean up everything but the .EXEs
  47. clean :
  48.     -del *.obj
  49.     -del *.map
  50.     -del picklt_c.c
  51.     -del picklt.h
  52.  
  53.