123b5c241Stomee# 223b5c241Stomee# CDDL HEADER START 323b5c241Stomee# 423b5c241Stomee# The contents of this file are subject to the terms of the 523b5c241Stomee# Common Development and Distribution License (the "License"). 623b5c241Stomee# You may not use this file except in compliance with the License. 723b5c241Stomee# 823b5c241Stomee# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 923b5c241Stomee# or http://www.opensolaris.org/os/licensing. 1023b5c241Stomee# See the License for the specific language governing permissions 1123b5c241Stomee# and limitations under the License. 1223b5c241Stomee# 1323b5c241Stomee# When distributing Covered Code, include this CDDL HEADER in each 1423b5c241Stomee# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1523b5c241Stomee# If applicable, add the following below this CDDL HEADER, with the 1623b5c241Stomee# fields enclosed by brackets "[]" replaced with your own identifying 1723b5c241Stomee# information: Portions Copyright [yyyy] [name of copyright owner] 1823b5c241Stomee# 1923b5c241Stomee# CDDL HEADER END 2023b5c241Stomee# 2123b5c241Stomee 2223b5c241Stomee# 23*e77b06d2Stomee# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2423b5c241Stomee# Use is subject to license terms. 2523b5c241Stomee# 2623b5c241Stomee#ident "%Z%%M% %I% %E% SMI" 2723b5c241Stomee 2823b5c241Stomeeinclude $(SRC)/Makefile.master 2923b5c241Stomee 3023b5c241StomeeROOTOPTPKG = $(ROOT)/opt/SUNWdtrt 3123b5c241StomeeJAR_DSTDIR = $(ROOTOPTPKG)/tst/common/java_api 32e642872bSqiaoJAR_SRCDIR = $(SRC)/cmd/dtrace/test/tst/common/java_api 3323b5c241Stomee 3423b5c241Stomee# Use the proto dtrace.jar if it exists, otherwise use whatever is 3523b5c241Stomee# installed on the system. It should be possible to build 3623b5c241Stomee# usr/src/cmd/dtrace/test independently, even if only on systems that 3723b5c241Stomee# have a compatible dtrace.jar installed. 3823b5c241StomeeDTRACE_JAR=usr/share/lib/java/dtrace.jar 3923b5c241StomeePROTO_DTRACE_JAR=$(ROOT)/$(DTRACE_JAR) 4023b5c241StomeeINSTALLED_DTRACE_JAR=/$(DTRACE_JAR) 4123b5c241StomeeCLASSPATH=$(PROTO_DTRACE_JAR):$(INSTALLED_DTRACE_JAR) 4223b5c241StomeeSRCDIR=src 4323b5c241StomeeCLASSDIR=classes 4423b5c241StomeeMANIFESTDIR=manifest 4523b5c241StomeeMANIFEST=$(MANIFESTDIR)/test.jar-manifest 46e642872bSqiaoTEST_JAR=$(JAR_SRCDIR)/test.jar 47e642872bSqiaoPROTO_TEST_JAR=$(JAR_DSTDIR)/test.jar 4823b5c241Stomee 49e642872bSqiaodefault: $(TEST_JAR) 5023b5c241Stomee 5123b5c241Stomeeclean: 52e642872bSqiao $(RM) $(CLASSDIR)/*.class 5323b5c241Stomee 5423b5c241Stomeeclobber: clean 55e642872bSqiao $(RM) $(TEST_JAR) 5623b5c241Stomee 5723b5c241Stomeeall: default 5823b5c241Stomee 5923b5c241Stomeelint: 6023b5c241Stomee 61e642872bSqiaoinstall: all $(PROTO_TEST_JAR) 6223b5c241Stomee 63*e77b06d2StomeeJFLAGS= -g -cp $(CLASSPATH) -d $(CLASSDIR) -deprecation 64*e77b06d2StomeeJFLAGS += -target 1.5 65*e77b06d2StomeeJFLAGS += -Xlint 66*e77b06d2StomeeCOMPILE.java=$(JAVAC) $(JFLAGS) 67*e77b06d2Stomee 68e642872bSqiao$(TEST_JAR): $(SRCDIR)/*.java 69e642872bSqiao @mkdir -p $(CLASSDIR) 70*e77b06d2Stomee $(COMPILE.java) $(SRCDIR)/*.java 71e642872bSqiao $(JAR) -cmf $(MANIFEST) $(TEST_JAR) -C $(CLASSDIR) . 7223b5c241Stomee 73e642872bSqiao$(PROTO_TEST_JAR): $(JAR_DSTDIR) 7423b5c241Stomee 7523b5c241Stomee$(JAR_DSTDIR): 7623b5c241Stomee $(INS.dir) 7723b5c241Stomee 78e642872bSqiao$(JAR_DSTDIR)/%: $(JAR_SRCDIR)/% 7923b5c241Stomee $(INS.file) 80