fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# CDDL HEADER START
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# The contents of this file are subject to the terms of the
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# Common Development and Distribution License (the "License").
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# You may not use this file except in compliance with the License.
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# See the License for the specific language governing permissions
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# and limitations under the License.
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# When distributing Covered Code, include this CDDL HEADER in each
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# If applicable, add the following below this CDDL HEADER, with the
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# fields enclosed by brackets "[]" replaced with your own identifying
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# information: Portions Copyright [yyyy] [name of copyright owner]
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# CDDL HEADER END
e77b06d21580f630e0a7c437495ab283d3672828tomee# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# Use is subject to license terms.
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# The Java DTrace API package
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# The Java DTrace API directories
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# Java DTrace API jar file, its ultimate destination, and packaging details
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# Manifest files
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# Controlled CLASSPATH for making
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# javac flags
4d0eb50e691de4c20b1dd9976ad6839fede8a42dRichard PALOJFLAGS= -g -d $(CLASSES) -sourcepath $(APICLASSPATH)
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# The default make rule for Java files
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee$(CLASSES)/$(PKGPATH)/%.class: $(APIJAVASRC)/$(PKGPATH)/%.java
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# javah generated headers
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# API classes with native methods
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomeeDTRACE_JNI_CLASSES=${JNI_CLASSES:%=$(CLASSES)/$(PKGPATH)/%}
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# All API classes
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomeeDTRACE_API_CLASSES=${API_CLASSES:%=$(CLASSES)/$(PKGPATH)/%}
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# Make the class dir, if it doesn't exist
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# Make the directory for javah-generated headers, if it doesn't exist
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee $(JAVAH) -o $@ -classpath $(CLASSES) $(JNI_FULL_CLASSNAMES)
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# Rule for installing API javadoc.
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# empty targets for top-level building compatability
fb3fb4f3d76d55b64440afd0af72775dfad3bd1dtomee# create API javadoc