home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / Profiler / sampmon / makefile next >
Encoding:
Makefile  |  2000-05-04  |  1.2 KB  |  46 lines

  1. ###############################################################################
  2. #
  3. #  (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  4. #  All Rights Reserved.
  5. #
  6. #  Sample event monitor DLL makefile
  7. #
  8. ###############################################################################
  9.  
  10.  
  11. BASE_NAME = sampmon
  12.  
  13. SDK_ROOT = ..\..\..
  14. SDK_INC = $(SDK_ROOT)\Include
  15. SDK_LIB = $(SDK_ROOT)\Lib\i386
  16.  
  17. LIBS                = kernel32.lib advapi32.lib ole32.lib uuid.lib libcmt.lib
  18. LIBS                = $(LIBS) $(SDK_LIB)\msjava.lib
  19.  
  20. DEST = build
  21.  
  22.  
  23. all: $(DEST)\$(BASE_NAME).dll
  24.  
  25. $(DEST):
  26.     if not exist $(DEST)\nul mkdir $(DEST)
  27.  
  28. $(DEST)\$(BASE_NAME).dll: $(DEST)\sampmon.obj $(DEST)
  29.     link /dll /nodefaultlib /def:$(BASE_NAME).def /debug /pdb:$(DEST)\$(BASE_NAME).pdb /out:$@ $(DEST)\sampmon.obj $(LIBS)
  30.  
  31. sampmon.cpp: $(DEST)\sampmon.h $(SDK_INC)\jevmon.h $(SDK_INC)\jclshook.h
  32.  
  33. $(DEST)\sampmon.h: sampmon.idl $(DEST)
  34.     midl /I$(SDK_INC) /out $(DEST) sampmon.idl
  35.  
  36. sampmon.idl: $(SDK_INC)\jevmon.idl
  37.  
  38.  
  39. .cpp{$(DEST)}.obj:
  40.     if not exist $(DEST)\nul mkdir $(DEST)
  41.     cl /I$(DEST) /I$(SDK_INC) /YX /Od /Zi /Fd$(DEST)\$(BASE_NAME).pdb /Fo$@ /c $<
  42.  
  43.  
  44. clean:
  45.     if exist $(DEST)\nul deltree /y $(DEST)
  46.