0N/A#
3763N/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
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/ABUILDDIR = ../..
2080N/A
0N/Ainclude $(BUILDDIR)/common/Defs.gmk
0N/A
0N/A#
0N/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 \
2106N/A $(INCLUDEDIR)/jvmti.h \
2106N/A $(INCLUDEDIR)/jvmticmlr.h \
0N/A $(INCLUDEDIR)/classfile_constants.h
0N/A
0N/A$(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
3686N/A $(install-file)
0N/A
0N/A$(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
3686N/A $(install-file)
2080N/A
3763N/AJVMCFG = $(JVMCFG_DIR)/jvm.cfg
2080N/A
2080N/A#
2080N/A# How to install jvm.cfg.
2080N/A#
2080N/Aifeq ($(ZERO_BUILD), true)
2080N/AJVMCFG_ARCH = zero
2080N/Aelse
2080N/AJVMCFG_ARCH = $(ARCH)
2080N/Aendif
2080N/A
4797N/Aifeq ($(PLATFORM),macosx)
4797N/A JVMCFG_SRC = $(PLATFORM_SRC_MACOS)/bin/$(JVMCFG_ARCH)/jvm.cfg
4797N/A JVMCFG_DIR = $(LIBDIR)
4797N/Aelse
4797N/A JVMCFG_SRC = $(PLATFORM_SRC)/bin/$(JVMCFG_ARCH)/jvm.cfg
4797N/A JVMCFG_DIR = $(LIBDIR)/$(LIBARCH)
4797N/Aendif
4797N/A
3763N/Aifdef BUILD_CLIENT_ONLY
3763N/A$(JVMCFG)::
3763N/A $(MKDIR) -p $(JVMCFG_DIR)
3763N/A @# Update jvm.cfg to use -client by default and alias -server to -client
3763N/A $(RM) -f $(JVMCFG)
3763N/A $(ECHO) "-client KNOWN">$(JVMCFG)
3763N/A $(ECHO) "-server ALIASED_TO -client">>$(JVMCFG)
3763N/A $(ECHO) "-hotspot ALIASED_TO -client">>$(JVMCFG)
3763N/A $(ECHO) "-classic WARN">>$(JVMCFG)
3763N/A $(ECHO) "-native ERROR">>$(JVMCFG)
3763N/A $(ECHO) "-green ERROR">>$(JVMCFG)
3763N/Aelse
4797N/A$(JVMCFG): $(JVMCFG_SRC)
0N/A $(install-file)
3763N/Aendif
0N/A
0N/Aall: build
0N/A
2080N/Abuild: $(FILES_h) $(JVMCFG)
0N/A
0N/Aclean clobber::
2080N/A $(RM) $(FILES_h) $(JVMCFG)
0N/A