Makefile revision 3763
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# This code is free software; you can redistribute it and/or modify it
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner# under the terms of the GNU General Public License version 2 only, as
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# published by the Free Software Foundation. Oracle designates this
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# particular file as subject to the "Classpath" exception as provided
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# by Oracle in the LICENSE file that accompanied this code.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# This code is distributed in the hope that it will be useful, but WITHOUT
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# version 2 for more details (a copy is included in the LICENSE file that
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# accompanied this code).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You should have received a copy of the GNU General Public License version
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# 2 along with this work; if not, write to the Free Software Foundation,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or visit www.oracle.com if you need additional information or have any
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# questions.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinBUILDDIR = ../..
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE = base
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude $(BUILDDIR)/common/Defs.gmk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Make the directories of include files shipped with the JDK.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinFILES_h = $(INCLUDEDIR)/jni.h \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(PLATFORM_INCLUDE)/jni_md.h \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(INCLUDEDIR)/jvmti.h \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(INCLUDEDIR)/jvmticmlr.h \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(INCLUDEDIR)/classfile_constants.h
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(install-non-module-file)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(install-non-module-file)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinJVMCFG_DIR = $(LIBDIR)/$(LIBARCH)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinJVMCFG = $(JVMCFG_DIR)/jvm.cfg
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# How to install jvm.cfg.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinifeq ($(ZERO_BUILD), true)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinJVMCFG_ARCH = zero
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinelse
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinJVMCFG_ARCH = $(ARCH)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinendif
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinifdef BUILD_CLIENT_ONLY
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(JVMCFG)::
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(MKDIR) -p $(JVMCFG_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @# Update jvm.cfg to use -client by default and alias -server to -client
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) -f $(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(ECHO) "-client KNOWN">$(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(ECHO) "-server ALIASED_TO -client">>$(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(ECHO) "-hotspot ALIASED_TO -client">>$(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(ECHO) "-classic WARN">>$(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(ECHO) "-native ERROR">>$(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(ECHO) "-green ERROR">>$(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinelse
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(JVMCFG): $(PLATFORM_SRC)/bin/$(JVMCFG_ARCH)/jvm.cfg
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(install-file)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinendif
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinall: build
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinbuild: $(FILES_h) $(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclean clobber::
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) $(FILES_h) $(JVMCFG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin