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 / picklp / makefile < prev    next >
Encoding:
Makefile  |  1997-10-15  |  1.4 KB  |  54 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 : picklpc
  22.  
  23. # Make the picklp client
  24. picklpc : picklpc.exe
  25. picklpc.exe : picklpc.obj picklp_c.obj
  26.     $(link) $(linkdebug) $(conflags) -out:picklpc.exe \
  27.       picklpc.obj picklp_c.obj \
  28.       rpcrt4.lib $(conlibsdll)
  29.  
  30. # client main program
  31. picklpc.obj : picklpc.c picklp.h
  32.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  33.  
  34. # client stub
  35. picklp_c.obj : picklp_c.c picklp.h
  36.    $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  37.  
  38.  
  39. # Stub and header file from the IDL file
  40. picklp.h picklp_c.c: picklp.idl picklp.acf
  41.     midl -oldnames -no_cpp picklp.idl
  42.  
  43. # Clean up everything
  44. cleanall : clean
  45.     -del *.exe
  46.  
  47. # Clean up everything but the .EXEs
  48. clean :
  49.     -del *.obj
  50.     -del *.map
  51.     -del picklp_c.c
  52.     -del picklp.h
  53.  
  54.