blob: ba3c58632548106135e200dc6140c4b18974cc6a [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
2# Copyright 1998-2002 Sun Microsystems, Inc. All Rights Reserved.
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 it
6# under the terms of the GNU General Public License version 2 only, as
7# published by the Free Software Foundation. Sun designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Sun in the LICENSE file that accompanied this code.
10#
11# This code is distributed in the hope that it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14# version 2 for more details (a copy is included in the LICENSE file that
15# accompanied this code).
16#
17# You should have received a copy of the GNU General Public License version
18# 2 along with this work; if not, write to the Free Software Foundation,
19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20#
21# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22# CA 95054 USA or visit www.sun.com if you need additional information or
23# have any questions.
24#
25
26#
27# Shared files between the different threads types on Solaris. Be
28# careful when including this, you must get your variables right.
29#
30
31#
32# Common files on Solaris.
33#
34ifneq ($(PLATFORM), windows)
35FILES_c += \
36 interrupt.c \
37 linker_md.c \
38 memory_md.c \
39 system_md.c \
40 hpi.c
41endif
42
43#
44# Include paths can also be shared.
45#
46ifneq ($(PLATFORM), windows)
47OTHER_INCLUDES += \
48 -I$(PLATFORM_SRC)/hpi/$(THREADDIR)/include \
49 -I$(PLATFORM_SRC)/hpi/include \
50 -I$(PLATFORM_SRC)/hpi/export \
51 -I$(SHARE_SRC)/hpi/include \
52 -I$(SHARE_SRC)/hpi/export
53else
54OTHER_INCLUDES += \
55 -I$(PLATFORM_SRC)/hpi/include \
56 -I$(PLATFORM_SRC)/hpi/export \
57 -I$(SHARE_SRC)/hpi/include \
58 -I$(SHARE_SRC)/hpi/export
59endif
60
61#
62# Add to the default C and assembly file search paths. Clear any initial
63# vpath settings to ensure that we don't look in unexpected places for HPI
64# files.
65#
66vpath %.c
67vpath %.c $(PLATFORM_SRC)/hpi/$(THREADDIR)/src
68vpath %.c $(PLATFORM_SRC)/hpi/src
69vpath %.c $(SHARE_SRC)/hpi/src
70
71vpath %.s
72vpath %.s $(PLATFORM_SRC)/hpi/$(THREADDIR)/src
73vpath %.s $(PLATFORM_SRC)/hpi/src
74
75#
76# By default leave out locking statistics
77#
78ifneq ($(PLATFORM), windows)
79LOCKSTATS = false
80ifeq ($(LOCKSTATS), true)
81 CFLAGS_COMMON += -DLOCKSTATS
82endif
83endif
84
85#
86# Things that must be linked in.
87#
88ifneq ($(PLATFORM), windows)
89OTHER_LDLIBS += $(LIBSOCKET) -lnsl $(LIBM) -ldl
90endif