make/linux/makefiles/sparcWorks.make

changeset 526
a294fd0c4b38
parent 485
485d403e94e1
child 631
d1605aabd0a1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/make/linux/makefiles/sparcWorks.make	Wed Apr 09 14:22:48 2008 -0400
     1.3 @@ -0,0 +1,93 @@
     1.4 +#
     1.5 +# Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 +#
     1.8 +# This code is free software; you can redistribute it and/or modify it
     1.9 +# under the terms of the GNU General Public License version 2 only, as
    1.10 +# published by the Free Software Foundation.
    1.11 +#
    1.12 +# This code is distributed in the hope that it will be useful, but WITHOUT
    1.13 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.14 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.15 +# version 2 for more details (a copy is included in the LICENSE file that
    1.16 +# accompanied this code).
    1.17 +#
    1.18 +# You should have received a copy of the GNU General Public License version
    1.19 +# 2 along with this work; if not, write to the Free Software Foundation,
    1.20 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.21 +#
    1.22 +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.23 +# CA 95054 USA or visit www.sun.com if you need additional information or
    1.24 +# have any questions.
    1.25 +#  
    1.26 +#
    1.27 +
    1.28 +#------------------------------------------------------------------------
    1.29 +# CC, CPP & AS
    1.30 +
    1.31 +CPP = CC
    1.32 +CC  = cc
    1.33 +AS  = $(CC) -c
    1.34 +
    1.35 +ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
    1.36 +ARCHFLAG/i486    = -m32
    1.37 +ARCHFLAG/amd64   = -m64
    1.38 +
    1.39 +CFLAGS     += $(ARCHFLAG)
    1.40 +AOUT_FLAGS += $(ARCHFLAG)
    1.41 +LFLAGS     += $(ARCHFLAG)
    1.42 +ASFLAGS    += $(ARCHFLAG)
    1.43 +
    1.44 +#------------------------------------------------------------------------
    1.45 +# Compiler flags
    1.46 +
    1.47 +# position-independent code
    1.48 +PICFLAG = -KPIC
    1.49 +
    1.50 +CFLAGS += $(PICFLAG)
    1.51 +# no more exceptions
    1.52 +CFLAGS += -features=no%except
    1.53 +# Reduce code bloat by reverting back to 5.0 behavior for static initializers
    1.54 +CFLAGS += -features=no%split_init
    1.55 +# allow zero sized arrays
    1.56 +CFLAGS += -features=zla
    1.57 +
    1.58 +# Use C++ Interpreter
    1.59 +ifdef CC_INTERP
    1.60 +  CFLAGS += -DCC_INTERP
    1.61 +endif
    1.62 +
    1.63 +# We don't need libCstd.so and librwtools7.so, only libCrun.so
    1.64 +CFLAGS += -library=Crun
    1.65 +LIBS += -lCrun
    1.66 +
    1.67 +CFLAGS += -mt
    1.68 +LFLAGS += -mt
    1.69 +
    1.70 +# Compiler warnings are treated as errors
    1.71 +#WARNINGS_ARE_ERRORS = -errwarn=%all
    1.72 +CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) 
    1.73 +# Special cases
    1.74 +CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@)) 
    1.75 +
    1.76 +# The flags to use for an Optimized build
    1.77 +OPT_CFLAGS+=-xO4
    1.78 +OPT_CFLAGS/NOOPT=-xO0
    1.79 +
    1.80 +#------------------------------------------------------------------------
    1.81 +# Linker flags
    1.82 +
    1.83 +# Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
    1.84 +MAPFLAG = -Wl,--version-script=FILENAME
    1.85 +
    1.86 +# Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
    1.87 +SONAMEFLAG = -h SONAME
    1.88 +
    1.89 +# Build shared library
    1.90 +SHARED_FLAG = -G
    1.91 +
    1.92 +#------------------------------------------------------------------------
    1.93 +# Debug flags
    1.94 +DEBUG_CFLAGS += -g
    1.95 +FASTDEBUG_CFLAGS = -g0
    1.96 +

mercurial