660a40ad15749d74efa0dd4ef12cb8781c570e22Laszlo Hordos#
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
98f2f99895b90678253d7e9c81ed0eea655e2d91Laszlo Hordos# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
98f2f99895b90678253d7e9c81ed0eea655e2d91Laszlo Hordos#
98f2f99895b90678253d7e9c81ed0eea655e2d91Laszlo Hordos# This code is free software; you can redistribute it and/or modify it
98f2f99895b90678253d7e9c81ed0eea655e2d91Laszlo Hordos# under the terms of the GNU General Public License version 2 only, as
98f2f99895b90678253d7e9c81ed0eea655e2d91Laszlo Hordos# published by the Free Software Foundation. Oracle designates this
98f2f99895b90678253d7e9c81ed0eea655e2d91Laszlo Hordos# particular file as subject to the "Classpath" exception as provided
98f2f99895b90678253d7e9c81ed0eea655e2d91Laszlo Hordos# by Oracle in the LICENSE file that accompanied this code.
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos#
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos# This code is distributed in the hope that it will be useful, but WITHOUT
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# version 2 for more details (a copy is included in the LICENSE file that
00f686b6b03a38f2b30637e5d000dad99e60aee5Laszlo Hordos# accompanied this code).
b683933fe7e4ad95f531714fe6f3773a2efd2ca9Laszlo Hordos#
b683933fe7e4ad95f531714fe6f3773a2efd2ca9Laszlo Hordos# You should have received a copy of the GNU General Public License version
27af262c3da03fc33f6f12f0663f0441b92b479fLaszlo Hordos# 2 along with this work; if not, write to the Free Software Foundation,
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d2aa757e87ded03e129fa9c6983fb647222fb9f5Laszlo Hordos#
ab94915f71903ad4cff84e5fdb2987455bb7ffecChad Kienle# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f142fac07cca146388280e986dc47f2776134621Chad Kienle# or visit www.oracle.com if you need additional information or have any
284c3c775bdd1d0ec4388ba5c4bf0765c68dfe3fAndi Egloff# questions.
79c7c07b049e9ea01a1e5ee443532631f86d4a94Andi Egloff#
6155227efe341d4fda611b61a3384d9262495f0cAndi Egloff
6155227efe341d4fda611b61a3384d9262495f0cAndi Egloff#
6155227efe341d4fda611b61a3384d9262495f0cAndi Egloff# Makefile for building JDWP
20a4e85fbf2f76c43a750edb205ad4082d0591f0Jason Lemay#
20a4e85fbf2f76c43a750edb205ad4082d0591f0Jason Lemay
20a4e85fbf2f76c43a750edb205ad4082d0591f0Jason LemayLIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS=1
BUILDDIR = ../..
PACKAGE = com.sun.tools.jdwp
PRODUCT = jpda
include $(BUILDDIR)/common/Defs.gmk
#
# Where do generated Java source files go?
#
JAVA_SRC_DEST_DIR = $(GENSRCDIR)
#
# Where do generated C source files go?
# the jdwp build is what needs the generated C files
# so they are being placed there for automatic pickup by
# the value of GENNATIVESRCDIR when jdwp is being built.
#
C_SRC_DEST_DIR = $(GENNATIVESRCDIR)/jdwp
JDIPKGDIR = com/sun/tools/jdi
GEN_JDWP_JAVA_DIR = $(JAVA_SRC_DEST_DIR)/$(JDIPKGDIR)
GEN_JDWP_JAVA = $(GEN_JDWP_JAVA_DIR)/JDWP.java
GEN_JDWP_C = $(C_SRC_DEST_DIR)/JDWPCommands.h
JDWP_SPEC = $(BUILDDIR)/jpda/jdwp/jdwp.spec
JDWPGEN_JARFILE = $(BUILDTOOLJARDIR)/jdwpgen.jar
build: $(GEN_JDWP_JAVA) $(GEN_JDWP_C)
$(GEN_JDWP_JAVA) $(GEN_JDWP_C): $(JDWP_SPEC) $(JDWPGEN_JARFILE)
$(MKDIR) -p $(GEN_JDWP_JAVA_DIR)
$(MKDIR) -p $(C_SRC_DEST_DIR)
$(BOOT_JAVA_CMD) -jar $(JDWPGEN_JARFILE) $(JDWP_SPEC) \
-jdi $(GEN_JDWP_JAVA) \
-include $(GEN_JDWP_C)
@$(java-vm-cleanup)
#
# Extra clean.
#
clean clobber::
$(RM) -r $(C_SRC_DEST_DIR)
$(RM) -r $(JAVA_SRC_DEST_DIR)/$(JDIPKGDIR)
#
# Rules
#
include $(BUILDDIR)/common/Rules.gmk