J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | # |
| 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 | # |
| 34 | ifneq ($(PLATFORM), windows) |
| 35 | FILES_c += \ |
| 36 | interrupt.c \ |
| 37 | linker_md.c \ |
| 38 | memory_md.c \ |
| 39 | system_md.c \ |
| 40 | hpi.c |
| 41 | endif |
| 42 | |
| 43 | # |
| 44 | # Include paths can also be shared. |
| 45 | # |
| 46 | ifneq ($(PLATFORM), windows) |
| 47 | OTHER_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 |
| 53 | else |
| 54 | OTHER_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 |
| 59 | endif |
| 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 | # |
| 66 | vpath %.c |
| 67 | vpath %.c $(PLATFORM_SRC)/hpi/$(THREADDIR)/src |
| 68 | vpath %.c $(PLATFORM_SRC)/hpi/src |
| 69 | vpath %.c $(SHARE_SRC)/hpi/src |
| 70 | |
| 71 | vpath %.s |
| 72 | vpath %.s $(PLATFORM_SRC)/hpi/$(THREADDIR)/src |
| 73 | vpath %.s $(PLATFORM_SRC)/hpi/src |
| 74 | |
| 75 | # |
| 76 | # By default leave out locking statistics |
| 77 | # |
| 78 | ifneq ($(PLATFORM), windows) |
| 79 | LOCKSTATS = false |
| 80 | ifeq ($(LOCKSTATS), true) |
| 81 | CFLAGS_COMMON += -DLOCKSTATS |
| 82 | endif |
| 83 | endif |
| 84 | |
| 85 | # |
| 86 | # Things that must be linked in. |
| 87 | # |
| 88 | ifneq ($(PLATFORM), windows) |
| 89 | OTHER_LDLIBS += $(LIBSOCKET) -lnsl $(LIBM) -ldl |
| 90 | endif |