Makefile revision 844
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# The contents of this file are subject to the terms of the
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# Common Development and Distribution License (the "License").
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# You may not use this file except in compliance with the License.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# See the License for the specific language governing permissions
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# and limitations under the License.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# If applicable, add the following below this CDDL HEADER, with the
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# CDDL HEADER END
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# we really need to use studio so we don't like that
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# parfait is g++ in disguise
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCOMPONENT_PROJECT_URL= http://stdcxx.apache.org/
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCOMPONENT_PROJECT_URL= http://stdcxx.apache.org/
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User sha256:00854223cbd947bf1bd85d9dabd1b2829706d9062e0007d5022082a5e4b7e15e
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCOMPONENT_ARCHIVE_URL= http://www.apache.org/dist/stdcxx/$(COMPONENT_ARCHIVE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntISA_PATCH_DIR_32 = $(WS_TOP)/components/stdcxx/isa_patches/$(MACH)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntISA_PATCH_DIR_64 = $(WS_TOP)/components/stdcxx/isa_patches/$(MACH64)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1034-sunpro.config.$(MACH).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1035-GNUmakefile.tst.$(MACH).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1036-GNUmakefile.rwt.$(MACH).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1037-GNUmakefile.lib.$(MACH).patch \
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User $(ISA_PATCH_DIR)/1038-GNUmakefile.ph.$(MACH).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1039-GNUmakefile.exm.$(MACH).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1040-GNUmakefile.cfg.$(MACH).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1041-GNUmakefile.bin.$(MACH).patch
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1034-sunpro.config.$(MACH64).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1035-GNUmakefile.tst.$(MACH64).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1036-GNUmakefile.rwt.$(MACH64).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1037-GNUmakefile.lib.$(MACH64).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1038-GNUmakefile.ph.$(MACH64).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1039-GNUmakefile.exm.$(MACH64).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1040-GNUmakefile.cfg.$(MACH64).patch \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(ISA_PATCH_DIR)/1041-GNUmakefile.bin.$(MACH64).patch
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# Please see the README file in this directory for a detailed explanation
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# about these flags, what they do, and why we need them.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserFLAGS_sparc = -m32 -xarch=sparcvis -xmemalign=8i
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserFLAGS_sparcv9 = -m64 -xarch=sparcvis -xmemalign=16i
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCFLAGS_sparc += -Qoption cg -xregs=no%appl -xbuiltin=%none -xO4 $(PICFLAG)
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCFLAGS_i386 = -Xc -features=extinl -xregs=no%frameptr
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCFLAGS_i386 += -xO3 -xbuiltin=%none $(PICFLAG)
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCFLAGS_32 = $(FLAGS_$(MACH)) $(CFLAGS_$(MACH))
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCFLAGS_64 = $(FLAGS_$(MACH64)) $(CFLAGS_$(MACH))
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCXXFLAGS_sparc = -xvis=yes -xregs=no%appl -xO4
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCXXFLAGS_i386 = -xregs=no%frameptr -xO3 -xbuiltin=%none $(PICFLAG)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCFLAGS_GENERIC += -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCFLAGS_GENERIC += -D_XPG6 -D_XOPEN_SOURCE=600 -D_POSIX_PTHREAD_SEMANTICS
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCFLAGS_GENERIC += -D_POSIX_C_SOURCE=200112L -D__XOPEN_OR_POSIX
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCFLAGS_GENERIC += -D_STRICT_STDC -D_STRICT_STDC__ -D_STDC_C99 -D_ISOC99_SOURCE
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCXXFLAGS_GENERIC = -library=Cstd -library=Crun -norunpath
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCXXFLAGS_GENERIC += -Qoption ccfe ++boolflag:sunwcch=false
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCXXFLAGS_GENERIC += -Qoption ccfe +d2,-xgeninl=system
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCXXFLAGS_GENERIC += -Qoption ccfe -expand=10000
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCXXFLAGS_GENERIC += -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox UserCXXFLAGS_GENERIC += +w2 -errtags -erroff=hidef
BUILD_NLSPATH = :%N.cat:/usr/lib/locale/%L/%N.cat:/usr/share/locale/%L/%N.cat:$(BUILD_DIR_$(BITS))/lib/rwstderr.cat
$(COMPONENT_DIR)/
clean::