Mon, 03 Jan 2011 15:30:05 -0800
7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass
Summary: Update the copyright to be 2010 on all changed files in OpenJDK
Reviewed-by: jcoomes
1 #
2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. 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.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23 #
25 #------------------------------------------------------------------------
26 # CC, CPP & AS
28 CPP = CC
29 CC = cc
30 AS = $(CC) -c
32 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
33 ARCHFLAG/i486 = -m32
34 ARCHFLAG/amd64 = -m64
36 CFLAGS += $(ARCHFLAG)
37 AOUT_FLAGS += $(ARCHFLAG)
38 LFLAGS += $(ARCHFLAG)
39 ASFLAGS += $(ARCHFLAG)
41 #------------------------------------------------------------------------
42 # Compiler flags
44 # position-independent code
45 PICFLAG = -KPIC
47 CFLAGS += $(PICFLAG)
48 # no more exceptions
49 CFLAGS += -features=no%except
50 # Reduce code bloat by reverting back to 5.0 behavior for static initializers
51 CFLAGS += -features=no%split_init
52 # allow zero sized arrays
53 CFLAGS += -features=zla
55 # Use C++ Interpreter
56 ifdef CC_INTERP
57 CFLAGS += -DCC_INTERP
58 endif
60 # We don't need libCstd.so and librwtools7.so, only libCrun.so
61 CFLAGS += -library=Crun
62 LIBS += -lCrun
64 CFLAGS += -mt
65 LFLAGS += -mt
67 # Compiler warnings are treated as errors
68 #WARNINGS_ARE_ERRORS = -errwarn=%all
69 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS)
70 # Special cases
71 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
73 # The flags to use for an Optimized build
74 OPT_CFLAGS+=-xO4
75 OPT_CFLAGS/NOOPT=-xO0
77 # Flags for creating the dependency files.
78 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
79 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
80 endif
82 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
83 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
85 #------------------------------------------------------------------------
86 # Linker flags
88 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
89 MAPFLAG = -Wl,--version-script=FILENAME
91 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
92 SONAMEFLAG = -h SONAME
94 # Build shared library
95 SHARED_FLAG = -G
97 #------------------------------------------------------------------------
98 # Debug flags
99 DEBUG_CFLAGS += -g
100 FASTDEBUG_CFLAGS = -g0