hotspot/make/bsd/makefiles/zeroshark.make
author alanb
Tue, 03 May 2016 09:11:31 +0100
changeset 37827 09fa0c82a5f7
parent 10565 dc90c239f4ec
permissions -rw-r--r--
8154956: Module system implementation refresh (4/2016) Reviewed-by: alanb, mchung, chegar, redestad Contributed-by: alan.bateman@oracle.com, erik.joelsson@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     1
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     2
# Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     3
# Copyright 2007, 2008 Red Hat, Inc.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     5
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     6
# This code is free software; you can redistribute it and/or modify it
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     7
# under the terms of the GNU General Public License version 2 only, as
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     8
# published by the Free Software Foundation.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     9
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    14
# accompanied this code).
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    15
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    19
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    22
# questions.
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    23
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    24
#
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    25
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    26
# Setup common to Zero (non-Shark) and Shark versions of VM
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    27
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    28
# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    29
OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    30
# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    31
OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    32
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    33
# Specify that the CPU is little endian, if necessary
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    34
ifeq ($(ZERO_ENDIANNESS), little)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    35
  CFLAGS += -DVM_LITTLE_ENDIAN
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    36
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    37
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    38
# Specify that the CPU is 64 bit, if necessary
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    39
ifeq ($(ARCH_DATA_MODEL), 64)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    40
  CFLAGS += -D_LP64=1
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    41
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    42
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    43
# Specify the path to the FFI headers
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    44
ifdef ALT_PACKAGE_PATH
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    45
  PACKAGE_PATH = $(ALT_PACKAGE_PATH)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    46
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    47
  ifeq ($(OS_VENDOR),Apple)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    48
    PACKAGE_PATH = /opt/local
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    49
  else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    50
    ifeq ($(OS_VENDOR),NetBSD)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    51
      PACKAGE_PATH = /usr/pkg
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    52
      LIBS += -Wl,-R${PACKAGE_PATH}/lib
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    53
    else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    54
      PACKAGE_PATH = /usr/local
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    55
    endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    56
  endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    57
endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    58
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    59
CFLAGS += -I$(PACKAGE_PATH)/include
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    60
LIBS += -L$(PACKAGE_PATH)/lib -lffi
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    61
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    62
OPT_CFLAGS/compactingPermGenGen.o = -O1