#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# The Java DTrace API package
# The Java DTrace API directories
# Java DTrace API jar file, its ultimate destination, and packaging details
# javadoc
$(JARDESTDIR)/%: $(JARS)/%
$(INS.file)
$(DOCEXAMPLESDESTDIR)/%: $(DOCEXAMPLES)/%
$(INS.file)
$(DOCHTMLDESTDIR)/%: $(DOCHTML)/%
$(INS.file)
$(DOCIMAGESDESTDIR)/%: $(DOCIMAGES)/%
$(INS.file)
# Manifest files
# Controlled CLASSPATH for making
# javac flags
# The default make rule for Java files
$(COMPILE.java) $<
# javah generated headers
# API classes with native methods
# All API classes
AvgValue \
Consumer \
Drop \
Error \
Flow \
MaxValue \
MinValue \
Option \
Probe \
Program \
Record \
SumValue \
Tuple \
Utility \
# Make the class dir, if it doesn't exist
$(CLASSES):
-@mkdir -p $@
# Make the directory for javah-generated headers, if it doesn't exist
$(JNI):
-@mkdir -p $@
-@touch $@
# Rule for installing API javadoc.
-@mkdir -p $(DOCAPIDESTDIR)
-$(RM) -r $(DOCAPIDESTDIR)/*
cd $(APIJAVASRC); umask 022; \
$(PKGNAME)
$(INS.dir)
$(JARDESTDIR):
$(INS.dir)
$(DOCDESTDIR):
$(INS.dir)
$(DOCAPIDESTDIR):
$(INS.dir)
$(INS.dir)
$(DOCHTMLDESTDIR):
$(INS.dir)
$(DOCIMAGESDESTDIR):
$(INS.dir)
$(DOCAPIDESTDIR) \
$(DOCAPIDESTDIR)/index.html \
$(DOCEXAMPLESDESTDIR) \
$(DOCHTMLDESTDIR) \
$(DOCHTMLDESTDIR)/fast.html \
$(DOCIMAGESDESTDIR) \
# empty targets for top-level building compatability
# create API javadoc
doc:
cd $(APIJAVASRC); umask 022; \
$(PKGNAME)