Makefile revision 5055
246N/A#
246N/A# CDDL HEADER START
246N/A#
246N/A# The contents of this file are subject to the terms of the
246N/A# Common Development and Distribution License (the "License").
246N/A# You may not use this file except in compliance with the License.
246N/A#
246N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
246N/A# or http://www.opensolaris.org/os/licensing.
246N/A# See the License for the specific language governing permissions
246N/A# and limitations under the License.
246N/A#
246N/A# When distributing Covered Code, include this CDDL HEADER in each
246N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
246N/A# If applicable, add the following below this CDDL HEADER, with the
246N/A# fields enclosed by brackets "[]" replaced with your own identifying
246N/A# information: Portions Copyright [yyyy] [name of copyright owner]
246N/A#
246N/A# CDDL HEADER END
246N/A#
3817N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
246N/A#
5055N/A
5055N/ACOMPILER=gcc
5055N/A
246N/Ainclude ../../make-rules/shared-macros.mk
246N/A
246N/ACOMPONENT_NAME= binutils
5055N/ACOMPONENT_VERSION= 2.25.1
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/binutils/
246N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
246N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
246N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
844N/ACOMPONENT_ARCHIVE_HASH= \
5055N/A sha256:b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22
1258N/ACOMPONENT_BUGDB= utility/gnu-binutils
246N/A
5055N/ATPNO= 23923
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
246N/A
5055N/APATCH_LEVEL := 0
5055N/A
246N/APARCH = $(MACH:i386=i386-pc)
246N/AGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
246N/A
246N/APKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
246N/A
5055N/ACFLAGS.i386 = -mtune=opteron -march=opteron
5055N/ACFLAGS.sparc = -mtune=ultrasparc3 -mcpu=ultrasparc3 -mvis2 \
5055N/A -mno-unaligned-doubles -mhard-float -mimpure-text
5055N/A
5055N/ACFLAGS = $(CC_BITS) -g -O2 -std=c99
5055N/ACFLAGS += $(CFLAGS.$(MACH))
5055N/ACFLAGS += -D_REENTRANT $(CPP_LARGEFILES) $(CPP_POSIX)
5055N/ACXXFLAGS = $(CC_BITS) -g -O2 -std=c++03
5055N/ACXXFLAGS += $(CFLAGS.$(MACH))
5055N/ACXXFLAGS += -D_REENTRANT $(CPP_LARGEFILES) $(CPP_POSIX)
5055N/ACPPFLAGS += -D_REENTRANT $(CPP_LARGEFILES) $(CPP_POSIX)
1365N/A
246N/ACONFIGURE_PREFIX = /usr/gnu
246N/A
5055N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
5055N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
5055N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
5055N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
5055N/ACONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
5055N/ACONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
5055N/ACONFIGURE_ENV += LIBS="$(LIBS)"
5055N/ACONFIGURE_ENV += PATH="$(PATH)"
5055N/A
1365N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
1365N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
5055N/ACONFIGURE_OPTIONS += --enable-64-bit-bfd=yes
1365N/ACONFIGURE_OPTIONS += --enable-gold=no
5055N/ACONFIGURE_OPTIONS += --enable-plugins=yes
5055N/ACONFIGURE_OPTIONS += --enable-nls=yes
5055N/ACONFIGURE_OPTIONS += --enable-host-shared=yes
1365N/ACONFIGURE_OPTIONS += --disable-libtool-lock
1365N/ACONFIGURE_OPTIONS += --enable-largefile=yes
246N/A
5055N/A
1365N/ACONFIGURE_OPTIONS += CC="$(CC)"
1365N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
1365N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1365N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
1365N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
5055N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
5055N/ACONFIGURE_OPTIONS += LD_OPTIONS="$(LD_OPTIONS)"
246N/A
246N/A# common targets
5055N/Aconfigure: $(CONFIGURE_32_and_64)
3477N/A
5055N/Abuild: $(BUILD_32_and_64)
246N/A
5055N/Ainstall: $(INSTALL_32_and_64)
246N/A
246N/Atest: $(TEST_32)
246N/A
4337N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4337N/A
3817N/A
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += system/library/math
5055N/AREQUIRED_PACKAGES += system/library/flex-runtime