home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-05-04 | 1.5 KB | 47 lines |
- # ----------------------------------------------------------------------------
- # Standard Microsoft SDK for Java MAKEFILE for Samples
- # ----------------------------------------------------------------------------
-
- # ----------------------------------------------------------------------------
- # Tools
- # ----------------------------------------------------------------------------
-
- JVCATTR = jvc.exe -nologo -nomessage -x-
- MIDLATTR = midl.exe /Oicf /nologo
- JCTVXATTR = jactivex /javatlb /X:m-
-
- # ----------------------------------------------------------------------------
- # Set destination directory.
- # ----------------------------------------------------------------------------
-
- DEST_DIR= .
- OUTDIR=.\Debug
-
- # ----------------------------------------------------------------------------
- # Build the sample
- # ----------------------------------------------------------------------------
-
- all:
- $(MAKE) -f COMApartment.mak
- copy Debug\COMApartment.exe
- $(MIDLATTR) IPing.idl
- $(MAKE) -f proxystub.mak
- copy Debug\*.dll $(DEST_DIR)
- $(JCTVXATTR) -d $(DEST_DIR) /p sample /p:b- IPing.tlb
- $(JVCATTR) -d $(DEST_DIR) sample\apartment\*.java
- $(JVCATTR) -d $(DEST_DIR) sample\*.java
-
- # ----------------------------------------------------------------------------
- # Clean up the output files
- # ----------------------------------------------------------------------------
-
- clean:
- del *.tlb
- del *.c
- del IPing.h
- del sample\*.class
- del sample\apartment\*.class
- del *.dll
- del *.exe
- del *.pdb
- if exist $(OUTDIR)\nul @rd /S /Q $(OUTDIR)