Makefile revision 2080
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This code is free software; you can redistribute it and/or modify it
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# under the terms of the GNU General Public License version 2 only, as
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# published by the Free Software Foundation. Sun designates this
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# particular file as subject to the "Classpath" exception as provided
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# by Sun in the LICENSE file that accompanied this code.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This code is distributed in the hope that it will be useful, but WITHOUT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# version 2 for more details (a copy is included in the LICENSE file that
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# accompanied this code).
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You should have received a copy of the GNU General Public License version
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# 2 along with this work; if not, write to the Free Software Foundation,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CA 95054 USA or visit www.sun.com if you need additional information or
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# have any questions.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Makefile for building dtrace extension
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBUILDDIR = ../../..
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODULE = tracing
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePACKAGE = sun.tracing.dtrace
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLIBRARY = jsdt
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePRODUCT = sun
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(BUILDDIR)/common/Defs.gmk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use mapfile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_m = mapfile-vers
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(BUILDDIR)/common/Mapfile-vers.gmk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNATIVE_DTRACE_DIR=native/sun/tracing/dtrace
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCDIR=$(SHARE_SRC)/$(NATIVE_DTRACE_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePSRCDIR=$(PLATFORM_SRC)/$(NATIVE_DTRACE_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_c = JVM.c jvm_symbols_md.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_java = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sun/tracing/dtrace/Activation.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sun/tracing/dtrace/DTraceProvider.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sun/tracing/dtrace/DTraceProbe.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sun/tracing/dtrace/DTraceProviderFactory.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sun/tracing/dtrace/JVM.java
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_export = $(FILES_java)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq ($(PLATFORM), linux)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOTHER_LDLIBS += -ldl
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use JNI for generating header files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteJAVAHFLAGS += -jni
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Don't need to link against -ljava
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteJAVALIB=
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Rules.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(BUILDDIR)/common/Library.gmk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Add to ambient vpath so we pick up the library files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevpath %.c $(SRCDIR):$(PSRCDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte