home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / COM / CCIEx / proxystub.mak < prev    next >
Encoding:
Makefile  |  2000-05-04  |  1.8 KB  |  44 lines

  1. # ----------------------------------------------------------------------------
  2. # Standard Microsoft SDK for Java MAKEFILE for Samples
  3. # ----------------------------------------------------------------------------
  4.  
  5. # ----------------------------------------------------------------------------
  6. # Tools and switches
  7. # ----------------------------------------------------------------------------
  8.  
  9. CPP=cl.exe
  10. CPP_SWITCHES=/c /DWIN32 /DREGISTER_PROXY_DLL /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\"
  11. CPP_SWITCHES_EXT=$(CPP_SWITCHES) /D_WIN32_WINNT=0X400
  12.  
  13. # ----------------------------------------------------------------------------
  14. # Set destination directory.
  15. # ----------------------------------------------------------------------------
  16.  
  17. OUTDIR=.\Debug
  18.  
  19. # ----------------------------------------------------------------------------
  20. # Set Obj and Lib files.
  21. # ----------------------------------------------------------------------------
  22.  
  23. PROXYSTUBOBJS = $(OUTDIR)\dlldata.obj $(OUTDIR)\sample_p.obj $(OUTDIR)\sample_i.obj
  24. PROXYSTUBLIBS = kernel32.lib oleaut32.lib rpcndr.lib rpcns4.lib rpcrt4.lib uuid.lib
  25.  
  26. # ----------------------------------------------------------------------------
  27. # Build the sample.
  28. # ----------------------------------------------------------------------------
  29.  
  30. all: $(OUTDIR) $(OUTDIR)\proxystub.dll
  31.  
  32. $(OUTDIR)\dlldata.obj : dlldata.c
  33.     $(CPP) $(CPP_SWITCHES) dlldata.c
  34. $(OUTDIR)\sample_p.obj : sample_p.c
  35.     $(CPP) $(CPP_SWITCHES_EXT) sample_p.c
  36. $(OUTDIR)\sample_i.obj : sample_i.c
  37.     $(CPP) $(CPP_SWITCHES) sample_i.c
  38.  
  39. $(OUTDIR)\proxystub.dll : $(PROXYSTUBOBJS) proxystub.def
  40.     link /dll /out:$(OUTDIR)\proxystub.dll /def:proxystub.def \
  41.     $(PROXYSTUBOBJS) $(PROXYSTUBLIBS)
  42.  
  43. "$(OUTDIR)" :
  44.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"