Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/bsd/makefiles/zeroshark.make
32285 views
#1# Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.2# Copyright 2007, 2008 Red Hat, Inc.3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4#5# This code is free software; you can redistribute it and/or modify it6# under the terms of the GNU General Public License version 2 only, as7# published by the Free Software Foundation.8#9# This code is distributed in the hope that it will be useful, but WITHOUT10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12# version 2 for more details (a copy is included in the LICENSE file that13# accompanied this code).14#15# You should have received a copy of the GNU General Public License version16# 2 along with this work; if not, write to the Free Software Foundation,17# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18#19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20# or visit www.oracle.com if you need additional information or have any21# questions.22#23#2425# Setup common to Zero (non-Shark) and Shark versions of VM2627# If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to28# the compiler so as to be able to produce optimized objects29# without losing precision.30ifneq ($(FDLIBM_CFLAGS),)31OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)32OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)33else34OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)35OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)36endif3738# Specify that the CPU is little endian, if necessary39ifeq ($(ZERO_ENDIANNESS), little)40CFLAGS += -DVM_LITTLE_ENDIAN41endif4243# Specify that the CPU is 64 bit, if necessary44ifeq ($(ARCH_DATA_MODEL), 64)45CFLAGS += -D_LP64=146endif4748# Specify the path to the FFI headers49ifdef ALT_PACKAGE_PATH50PACKAGE_PATH = $(ALT_PACKAGE_PATH)51else52ifeq ($(OS_VENDOR),Apple)53PACKAGE_PATH = /opt/local54else55ifeq ($(OS_VENDOR),NetBSD)56PACKAGE_PATH = /usr/pkg57LIBS += -Wl,-R${PACKAGE_PATH}/lib58else59PACKAGE_PATH = /usr/local60endif61endif62endif6364CFLAGS += -I$(PACKAGE_PATH)/include65LIBS += -L$(PACKAGE_PATH)/lib -lffi6667OPT_CFLAGS/compactingPermGenGen.o = -O1686970