Makefile revision 127bbe13a6d36580af6a8ded154f1201a6250772
5beae861ede7eba138c7140f195ae77ba3106cbffielding# CDDL HEADER START
fd2db14d870ff9aa9795841360f6e3d562ad69a2jerenkrantz# The contents of this file are subject to the terms of the
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Common Development and Distribution License (the "License").
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding# You may not use this file except in compliance with the License.
5beae861ede7eba138c7140f195ae77ba3106cbffielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5beae861ede7eba138c7140f195ae77ba3106cbffielding# See the License for the specific language governing permissions
5beae861ede7eba138c7140f195ae77ba3106cbffielding# and limitations under the License.
5beae861ede7eba138c7140f195ae77ba3106cbffielding# When distributing Covered Code, include this CDDL HEADER in each
5beae861ede7eba138c7140f195ae77ba3106cbffielding# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5beae861ede7eba138c7140f195ae77ba3106cbffielding# If applicable, add the following below this CDDL HEADER, with the
5beae861ede7eba138c7140f195ae77ba3106cbffielding# fields enclosed by brackets "[]" replaced with your own identifying
5beae861ede7eba138c7140f195ae77ba3106cbffielding# information: Portions Copyright [yyyy] [name of copyright owner]
5beae861ede7eba138c7140f195ae77ba3106cbffielding# CDDL HEADER END
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Use is subject to license terms.
5beae861ede7eba138c7140f195ae77ba3106cbffielding# ident "%Z%%M% %I% %E% SMI"
5beae861ede7eba138c7140f195ae77ba3106cbffielding# The Java DTrace API package
5beae861ede7eba138c7140f195ae77ba3106cbffielding# The Java DTrace API directories
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Java DTrace API jar file, its ultimate destination, and packaging details
5beae861ede7eba138c7140f195ae77ba3106cbffieldingDOCDESTDIR=$(ROOT)/usr/share/lib/java/javadoc/dtrace
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding# Manifest files
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding# Controlled CLASSPATH for making
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding# javac flags
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfieldingJFLAGS= -g -d $(CLASSES) -sourcepath $(APICLASSPATH) -deprecation
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding# The default make rule for Java files
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding$(CLASSES)/$(PKGPATH)/%.class: $(APIJAVASRC)/$(PKGPATH)/%.java
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding# javah generated headers
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding# API classes with native methods
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfieldingDTRACE_JNI_CLASSES=${JNI_CLASSES:%=$(CLASSES)/$(PKGPATH)/%}
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfieldingJNI_FULL_CLASSNAMES=${JNI_CLASSNAMES:%=$(PKGNAME).%}
c7a58a2e12f7a380fd330a1b5f931ae5d65d308bfielding# All API classes
5beae861ede7eba138c7140f195ae77ba3106cbffieldingDTRACE_API_CLASSES=${API_CLASSES:%=$(CLASSES)/$(PKGPATH)/%}
0729ed19effa96566e715392dd17440bb5a107d6jwoolleyall: $(CLASSES) $(DTRACE_API_CLASSES) $(JNI)/$(APIHDR)
209d30d974f66f7f62c5888827d4cc0b95de40c0lars# Make the class dir, if it doesn't exist
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Make the directory for javah-generated headers, if it doesn't exist
5beae861ede7eba138c7140f195ae77ba3106cbffielding $(JAVAH) -o $@ -classpath $(CLASSES) $(JNI_FULL_CLASSNAMES)
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Rule for installing API javadoc.
5beae861ede7eba138c7140f195ae77ba3106cbffieldinginstall: all $(JARDESTDIR) $(INSJARS) $(DOCDESTDIR) \
5beae861ede7eba138c7140f195ae77ba3106cbffielding# empty targets for top-level building compatability
5beae861ede7eba138c7140f195ae77ba3106cbffielding# create API javadoc