Makefile revision 4632
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This code is free software; you can redistribute it and/or modify it
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# under the terms of the GNU General Public License version 2 only, as
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# published by the Free Software Foundation. Oracle designates this
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# particular file as subject to the "Classpath" exception as provided
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# by Oracle in the LICENSE file that accompanied this code.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This code is distributed in the hope that it will be useful, but WITHOUT
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# version 2 for more details (a copy is included in the LICENSE file that
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# accompanied this code).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# You should have received a copy of the GNU General Public License version
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# 2 along with this work; if not, write to the Free Software Foundation,
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or visit www.oracle.com if you need additional information or have any
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# questions.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweBUILDDIR = ../../..
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePRODUCT = demo/jvmti
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDEMONAME = hprof
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(BUILDDIR)/common/Defs.gmk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDEMO_ROOT = $(SHARE_SRC)/demo/jvmti/$(DEMONAME)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDEMO_TOPFILES = ./README.txt
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovDEMO_PSRCDIR = $(PLATFORM_SRC)/demo/jvmti/$(DEMONAME)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDEMO_DESTDIR = $(DEMODIR)/jvmti/$(DEMONAME)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDEMO_OBJECTS = java_crw_demo.$(OBJECT_SUFFIX)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq ($(PLATFORM), windows)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe EXTRA_LIBS += wsock32.lib winmm.lib
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweelse
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe OTHER_LDLIBS += $(LIBSOCKET) $(LIBNSL) $(LIBDL)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq ($(PLATFORM), linux)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe OTHER_LDLIBS += -lpthread
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweendif
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovendif
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Demo jar building rules.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovinclude $(BUILDDIR)/common/Demo.gmk
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe