Tue, 05 Apr 2011 14:12:31 -0700
7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
Summary: Update the copyright to be 2010 on all changed files in OpenJDK
Reviewed-by: ohair
duke@435 | 1 | # |
stefank@2314 | 2 | # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
duke@435 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@435 | 4 | # |
duke@435 | 5 | # This code is free software; you can redistribute it and/or modify it |
duke@435 | 6 | # under the terms of the GNU General Public License version 2 only, as |
duke@435 | 7 | # published by the Free Software Foundation. |
duke@435 | 8 | # |
duke@435 | 9 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@435 | 10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@435 | 11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@435 | 12 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@435 | 13 | # accompanied this code). |
duke@435 | 14 | # |
duke@435 | 15 | # You should have received a copy of the GNU General Public License version |
duke@435 | 16 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@435 | 17 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@435 | 18 | # |
trims@1907 | 19 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
trims@1907 | 20 | # or visit www.oracle.com if you need additional information or have any |
trims@1907 | 21 | # questions. |
duke@435 | 22 | # |
duke@435 | 23 | # |
duke@435 | 24 | |
duke@435 | 25 | # Rules to build gamma launcher, used by vm.make |
duke@435 | 26 | |
phh@1558 | 27 | |
sla@2327 | 28 | LAUNCHER_SCRIPT = hotspot |
phh@1558 | 29 | LAUNCHER = gamma |
duke@435 | 30 | |
sla@2327 | 31 | LAUNCHERDIR := $(GAMMADIR)/src/os/posix/launcher |
sla@2327 | 32 | LAUNCHERDIR_SHARE := $(GAMMADIR)/src/share/tools/launcher |
sla@2327 | 33 | LAUNCHERFLAGS := $(ARCHFLAG) \ |
duke@435 | 34 | -I$(LAUNCHERDIR) -I$(GAMMADIR)/src/share/vm/prims \ |
sla@2327 | 35 | -I$(LAUNCHERDIR_SHARE) \ |
duke@435 | 36 | -DFULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \ |
sla@2327 | 37 | -DJDK_MAJOR_VERSION=\"$(JDK_MAJOR_VERSION)\" \ |
sla@2327 | 38 | -DJDK_MINOR_VERSION=\"$(JDK_MINOR_VERSION)\" \ |
duke@435 | 39 | -DARCH=\"$(LIBARCH)\" \ |
duke@435 | 40 | -DGAMMA \ |
duke@435 | 41 | -DLAUNCHER_TYPE=\"gamma\" \ |
sla@2327 | 42 | -DLINK_INTO_$(LINK_INTO) \ |
sla@2327 | 43 | $(TARGET_DEFINES) |
duke@435 | 44 | |
duke@435 | 45 | ifeq ($(LINK_INTO),AOUT) |
duke@435 | 46 | LAUNCHER.o = launcher.o $(JVM_OBJ_FILES) |
duke@435 | 47 | LAUNCHER_MAPFILE = mapfile_reorder |
duke@435 | 48 | LFLAGS_LAUNCHER$(LDNOMAP) += $(MAPFLAG:FILENAME=$(LAUNCHER_MAPFILE)) |
duke@435 | 49 | LFLAGS_LAUNCHER += $(SONAMEFLAG:SONAME=$(LIBJVM)) $(STATIC_LIBGCC) |
duke@435 | 50 | LIBS_LAUNCHER += $(STATIC_STDCXX) $(LIBS) |
duke@435 | 51 | else |
duke@435 | 52 | LAUNCHER.o = launcher.o |
duke@435 | 53 | LFLAGS_LAUNCHER += -L `pwd` |
duke@435 | 54 | LIBS_LAUNCHER += -l$(JVM) $(LIBS) |
duke@435 | 55 | endif |
duke@435 | 56 | |
duke@435 | 57 | LINK_LAUNCHER = $(LINK.c) |
duke@435 | 58 | |
duke@435 | 59 | LINK_LAUNCHER/PRE_HOOK = $(LINK_LIB.CC/PRE_HOOK) |
duke@435 | 60 | LINK_LAUNCHER/POST_HOOK = $(LINK_LIB.CC/POST_HOOK) |
duke@435 | 61 | |
sla@2327 | 62 | LAUNCHER_OUT = launcher |
duke@435 | 63 | |
sla@2327 | 64 | SUFFIXES += .d |
duke@435 | 65 | |
sla@2327 | 66 | SOURCES := $(shell find $(LAUNCHERDIR) -name "*.c") |
sla@2327 | 67 | SOURCES_SHARE := $(shell find $(LAUNCHERDIR_SHARE) -name "*.c") |
sla@2327 | 68 | |
sla@2327 | 69 | OBJS := $(patsubst $(LAUNCHERDIR)/%.c,$(LAUNCHER_OUT)/%.o,$(SOURCES)) $(patsubst $(LAUNCHERDIR_SHARE)/%.c,$(LAUNCHER_OUT)/%.o,$(SOURCES_SHARE)) |
sla@2327 | 70 | |
sla@2327 | 71 | DEPFILES := $(patsubst %.o,%.d,$(OBJS)) |
sla@2327 | 72 | -include $(DEPFILES) |
sla@2327 | 73 | |
sla@2327 | 74 | $(LAUNCHER_OUT)/%.o: $(LAUNCHERDIR_SHARE)/%.c |
sla@2327 | 75 | $(QUIETLY) [ -d $(LAUNCHER_OUT) ] || { mkdir -p $(LAUNCHER_OUT); } |
sla@2327 | 76 | $(QUIETLY) $(CC) -g -o $@ -c $< -MMD $(LAUNCHERFLAGS) $(CPPFLAGS) |
sla@2327 | 77 | |
sla@2327 | 78 | $(LAUNCHER_OUT)/%.o: $(LAUNCHERDIR)/%.c |
sla@2327 | 79 | $(QUIETLY) [ -d $(LAUNCHER_OUT) ] || { mkdir -p $(LAUNCHER_OUT); } |
sla@2327 | 80 | $(QUIETLY) $(CC) -g -o $@ -c $< -MMD $(LAUNCHERFLAGS) $(CPPFLAGS) |
sla@2327 | 81 | |
sla@2327 | 82 | $(LAUNCHER): $(OBJS) $(LIBJVM) $(LAUNCHER_MAPFILE) |
sla@2327 | 83 | $(QUIETLY) echo Linking launcher... |
sla@2327 | 84 | $(QUIETLY) $(LINK_LAUNCHER/PRE_HOOK) |
sla@2327 | 85 | $(QUIETLY) $(LINK_LAUNCHER) $(LFLAGS_LAUNCHER) -o $@ $(OBJS) $(LIBS_LAUNCHER) |
sla@2327 | 86 | $(QUIETLY) $(LINK_LAUNCHER/POST_HOOK) |
sla@2327 | 87 | |
sla@2327 | 88 | $(LAUNCHER): $(LAUNCHER_SCRIPT) |
sla@2327 | 89 | |
sla@2327 | 90 | $(LAUNCHER_SCRIPT): $(LAUNCHERDIR)/launcher.script |
sla@2327 | 91 | $(QUIETLY) sed -e 's/@@LIBARCH@@/$(LIBARCH)/g' $< > $@ |
sla@2327 | 92 | $(QUIETLY) chmod +x $@ |
sla@2327 | 93 |