xlu@663: # dlong@3880: # Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved. xlu@663: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. xlu@663: # xlu@663: # This code is free software; you can redistribute it and/or modify it xlu@663: # under the terms of the GNU General Public License version 2 only, as xlu@663: # published by the Free Software Foundation. xlu@663: # xlu@663: # This code is distributed in the hope that it will be useful, but WITHOUT xlu@663: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or xlu@663: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License xlu@663: # version 2 for more details (a copy is included in the LICENSE file that xlu@663: # accompanied this code). xlu@663: # xlu@663: # You should have received a copy of the GNU General Public License version xlu@663: # 2 along with this work; if not, write to the Free Software Foundation, xlu@663: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. xlu@663: # trims@1907: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA trims@1907: # or visit www.oracle.com if you need additional information or have any trims@1907: # questions. xlu@663: # xlu@663: # xlu@663: xlu@663: # A list of object files built without the platform specific PIC flags, e.g. xlu@663: # -fPIC on linux. Performance measurements show that by compiling GC related xlu@663: # code, we could significantly reduce the GC pause time on 32 bit Linux/Unix xlu@663: # platforms. See 6454213 for more details. xlu@663: include $(GAMMADIR)/make/scm.make xlu@663: xlu@663: ifneq ($(OSNAME), windows) xlu@663: ifndef LP64 dlong@3880: PARTIAL_NONPIC=1 dlong@3880: endif jprovino@4025: PIC_ARCH = ppc arm dlong@3880: ifneq ("$(filter $(PIC_ARCH),$(BUILDARCH))","") dlong@3880: PARTIAL_NONPIC=0 dlong@3880: endif dlong@3880: ifeq ($(PARTIAL_NONPIC),1) xlu@663: NONPIC_DIRS = memory oops gc_implementation gc_interface xlu@663: NONPIC_DIRS := $(foreach dir,$(NONPIC_DIRS), $(GAMMADIR)/src/share/vm/$(dir)) xlu@663: # Look for source files under NONPIC_DIRS xlu@663: NONPIC_FILES := $(foreach dir,$(NONPIC_DIRS),\ xlu@663: $(shell find $(dir) \( $(SCM_DIRS) \) -prune -o \ xlu@663: -name '*.cpp' -print)) xlu@663: NONPIC_OBJ_FILES := $(notdir $(subst .cpp,.o,$(NONPIC_FILES))) xlu@663: endif xlu@663: endif