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