jdk/make/java/hpi/hpi_common.gmk
author dl
Tue, 24 Mar 2009 19:42:23 -0700
changeset 2428 e63d91602813
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6800572: Removing elements from views of NavigableMap implementations does not always work correctly. Summary: Replace use of new TreeSet with new KeySet Reviewed-by: martin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
# Copyright 1998-2002 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Shared files between the different threads types on Solaris. Be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
# careful when including this, you must get your variables right.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
# Common files on Solaris.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
FILES_c += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    interrupt.c \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
    linker_md.c \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    memory_md.c \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
    system_md.c \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    hpi.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
# Include paths can also be shared.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
OTHER_INCLUDES += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    -I$(PLATFORM_SRC)/hpi/$(THREADDIR)/include \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    -I$(PLATFORM_SRC)/hpi/include \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    -I$(PLATFORM_SRC)/hpi/export \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    -I$(SHARE_SRC)/hpi/include \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    -I$(SHARE_SRC)/hpi/export
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
OTHER_INCLUDES += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    -I$(PLATFORM_SRC)/hpi/include \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    -I$(PLATFORM_SRC)/hpi/export \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    -I$(SHARE_SRC)/hpi/include \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    -I$(SHARE_SRC)/hpi/export
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
# Add to the default C and assembly file search paths.  Clear any initial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
# vpath settings to ensure that we don't look in unexpected places for HPI
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
# files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
vpath %.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
vpath %.c   $(PLATFORM_SRC)/hpi/$(THREADDIR)/src
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
vpath %.c   $(PLATFORM_SRC)/hpi/src
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
vpath %.c   $(SHARE_SRC)/hpi/src
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
vpath %.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
vpath %.s   $(PLATFORM_SRC)/hpi/$(THREADDIR)/src
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
vpath %.s   $(PLATFORM_SRC)/hpi/src
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
# By default leave out locking statistics
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
LOCKSTATS = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
ifeq ($(LOCKSTATS), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    CFLAGS_COMMON += -DLOCKSTATS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
# Things that must be linked in.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
ifneq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
OTHER_LDLIBS += $(LIBSOCKET) -lnsl $(LIBM) -ldl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
endif