0N/A#
698N/A# Copyright (c) 1995, 2011, 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
0N/A# published by the Free Software Foundation. Oracle designates this
0N/A# particular file as subject to the "Classpath" exception as provided
0N/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,
553N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
553N/A#
553N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A# or visit www.oracle.com if you need additional information or have any
0N/A# questions.
0N/A#
0N/A
0N/ABUILDDIR = ../..
0N/A
0N/Ainclude $(BUILDDIR)/common/Defs.gmk
698N/A
698N/A#
698N/A# Make the directories of include files shipped with the JDK.
0N/A#
0N/A
0N/AFILES_h = $(INCLUDEDIR)/jni.h \
0N/A $(PLATFORM_INCLUDE)/jni_md.h \
0N/A $(INCLUDEDIR)/jvmti.h \
0N/A $(INCLUDEDIR)/jvmticmlr.h \
0N/A $(INCLUDEDIR)/classfile_constants.h
0N/A
0N/A$(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
0N/A $(install-file)
0N/A
0N/A$(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
0N/A $(install-file)
0N/A
0N/AJVMCFG = $(JVMCFG_DIR)/jvm.cfg
0N/A
0N/A#
0N/A# How to install jvm.cfg.
0N/A#
698N/Aifeq ($(ZERO_BUILD), true)
0N/AJVMCFG_ARCH = zero
0N/Aelse
0N/AJVMCFG_ARCH = $(ARCH)
0N/Aendif
0N/A
0N/Aifeq ($(PLATFORM),macosx)
0N/A JVMCFG_SRC = $(PLATFORM_SRC_MACOS)/bin/$(JVMCFG_ARCH)/jvm.cfg
0N/A JVMCFG_DIR = $(LIBDIR)
0N/Aelse
0N/A JVMCFG_SRC = $(PLATFORM_SRC)/bin/$(JVMCFG_ARCH)/jvm.cfg
0N/A JVMCFG_DIR = $(LIBDIR)/$(LIBARCH)
0N/Aendif
0N/A
0N/Aifdef BUILD_CLIENT_ONLY
0N/A$(JVMCFG)::
0N/A $(MKDIR) -p $(JVMCFG_DIR)
0N/A @# Update jvm.cfg to use -client by default and alias -server to -client
0N/A $(RM) -f $(JVMCFG)
0N/A $(ECHO) "-client KNOWN">$(JVMCFG)
0N/A $(ECHO) "-server ALIASED_TO -client">>$(JVMCFG)
0N/A $(ECHO) "-hotspot ALIASED_TO -client">>$(JVMCFG)
0N/A $(ECHO) "-classic WARN">>$(JVMCFG)
0N/A $(ECHO) "-native ERROR">>$(JVMCFG)
0N/A $(ECHO) "-green ERROR">>$(JVMCFG)
0N/Aelse
0N/A$(JVMCFG): $(JVMCFG_SRC)
0N/A $(install-file)
0N/Aendif
0N/A
0N/Aall: build
0N/A
0N/Abuild: $(FILES_h) $(JVMCFG)
0N/A
0N/Aclean clobber::
0N/A $(RM) $(FILES_h) $(JVMCFG)
0N/A
0N/A