annotate make/linux/makefiles/sparcWorks.make @ 1879:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents c18cbe5936b8
children c760f78e0a53
rev   line source
dcubed@50 1 #
trims@1472 2 # Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
dcubed@50 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dcubed@50 4 #
dcubed@50 5 # This code is free software; you can redistribute it and/or modify it
dcubed@50 6 # under the terms of the GNU General Public License version 2 only, as
dcubed@50 7 # published by the Free Software Foundation.
dcubed@50 8 #
dcubed@50 9 # This code is distributed in the hope that it will be useful, but WITHOUT
dcubed@50 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dcubed@50 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dcubed@50 12 # version 2 for more details (a copy is included in the LICENSE file that
dcubed@50 13 # accompanied this code).
dcubed@50 14 #
dcubed@50 15 # You should have received a copy of the GNU General Public License version
dcubed@50 16 # 2 along with this work; if not, write to the Free Software Foundation,
dcubed@50 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dcubed@50 18 #
trims@1472 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1472 20 # or visit www.oracle.com if you need additional information or have any
trims@1472 21 # questions.
dcubed@50 22 #
dcubed@50 23 #
dcubed@50 24
dcubed@50 25 #------------------------------------------------------------------------
dcubed@50 26 # CC, CPP & AS
dcubed@50 27
dcubed@50 28 CPP = CC
dcubed@50 29 CC = cc
dcubed@50 30 AS = $(CC) -c
dcubed@50 31
dcubed@50 32 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
dcubed@50 33 ARCHFLAG/i486 = -m32
dcubed@50 34 ARCHFLAG/amd64 = -m64
dcubed@50 35
dcubed@50 36 CFLAGS += $(ARCHFLAG)
dcubed@50 37 AOUT_FLAGS += $(ARCHFLAG)
dcubed@50 38 LFLAGS += $(ARCHFLAG)
dcubed@50 39 ASFLAGS += $(ARCHFLAG)
dcubed@50 40
dcubed@50 41 #------------------------------------------------------------------------
dcubed@50 42 # Compiler flags
dcubed@50 43
dcubed@50 44 # position-independent code
dcubed@50 45 PICFLAG = -KPIC
dcubed@50 46
dcubed@50 47 CFLAGS += $(PICFLAG)
dcubed@50 48 # no more exceptions
dcubed@50 49 CFLAGS += -features=no%except
dcubed@50 50 # Reduce code bloat by reverting back to 5.0 behavior for static initializers
dcubed@50 51 CFLAGS += -features=no%split_init
dcubed@50 52 # allow zero sized arrays
dcubed@50 53 CFLAGS += -features=zla
dcubed@50 54
dcubed@50 55 # Use C++ Interpreter
dcubed@50 56 ifdef CC_INTERP
dcubed@50 57 CFLAGS += -DCC_INTERP
dcubed@50 58 endif
dcubed@50 59
dcubed@50 60 # We don't need libCstd.so and librwtools7.so, only libCrun.so
dcubed@50 61 CFLAGS += -library=Crun
dcubed@50 62 LIBS += -lCrun
dcubed@50 63
dcubed@50 64 CFLAGS += -mt
dcubed@50 65 LFLAGS += -mt
dcubed@50 66
dcubed@50 67 # Compiler warnings are treated as errors
dcubed@50 68 #WARNINGS_ARE_ERRORS = -errwarn=%all
dcubed@50 69 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS)
dcubed@50 70 # Special cases
dcubed@50 71 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
dcubed@50 72
dcubed@50 73 # The flags to use for an Optimized build
dcubed@50 74 OPT_CFLAGS+=-xO4
dcubed@50 75 OPT_CFLAGS/NOOPT=-xO0
dcubed@50 76
stefank@1879 77 # Flags for creating the dependency files.
stefank@1879 78 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
stefank@1879 79 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
stefank@1879 80 endif
stefank@1879 81
dcubed@50 82 #------------------------------------------------------------------------
dcubed@50 83 # Linker flags
dcubed@50 84
dcubed@50 85 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
dcubed@50 86 MAPFLAG = -Wl,--version-script=FILENAME
dcubed@50 87
dcubed@50 88 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
dcubed@50 89 SONAMEFLAG = -h SONAME
dcubed@50 90
dcubed@50 91 # Build shared library
dcubed@50 92 SHARED_FLAG = -G
dcubed@50 93
dcubed@50 94 #------------------------------------------------------------------------
dcubed@50 95 # Debug flags
dcubed@50 96 DEBUG_CFLAGS += -g
dcubed@50 97 FASTDEBUG_CFLAGS = -g0
dcubed@50 98