home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-05-04 | 1.2 KB | 46 lines |
- ###############################################################################
- #
- # (C) Copyright 1995 - 1999 Microsoft Corporation. All rights reserved.
- # All Rights Reserved.
- #
- # Sample event monitor DLL makefile
- #
- ###############################################################################
-
-
- BASE_NAME = sampmon
-
- SDK_ROOT = ..\..\..
- SDK_INC = $(SDK_ROOT)\Include
- SDK_LIB = $(SDK_ROOT)\Lib\i386
-
- LIBS = kernel32.lib advapi32.lib ole32.lib uuid.lib libcmt.lib
- LIBS = $(LIBS) $(SDK_LIB)\msjava.lib
-
- DEST = build
-
-
- all: $(DEST)\$(BASE_NAME).dll
-
- $(DEST):
- if not exist $(DEST)\nul mkdir $(DEST)
-
- $(DEST)\$(BASE_NAME).dll: $(DEST)\sampmon.obj $(DEST)
- link /dll /nodefaultlib /def:$(BASE_NAME).def /debug /pdb:$(DEST)\$(BASE_NAME).pdb /out:$@ $(DEST)\sampmon.obj $(LIBS)
-
- sampmon.cpp: $(DEST)\sampmon.h $(SDK_INC)\jevmon.h $(SDK_INC)\jclshook.h
-
- $(DEST)\sampmon.h: sampmon.idl $(DEST)
- midl /I$(SDK_INC) /out $(DEST) sampmon.idl
-
- sampmon.idl: $(SDK_INC)\jevmon.idl
-
-
- .cpp{$(DEST)}.obj:
- if not exist $(DEST)\nul mkdir $(DEST)
- cl /I$(DEST) /I$(SDK_INC) /YX /Od /Zi /Fd$(DEST)\$(BASE_NAME).pdb /Fo$@ /c $<
-
-
- clean:
- if exist $(DEST)\nul deltree /y $(DEST)
-