Makefile revision 4943
4596N/A#
4596N/A# CDDL HEADER START
4596N/A#
4596N/A# The contents of this file are subject to the terms of the
4596N/A# Common Development and Distribution License (the "License").
4596N/A# You may not use this file except in compliance with the License.
4596N/A#
4596N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4596N/A# or http://www.opensolaris.org/os/licensing.
4596N/A# See the License for the specific language governing permissions
4596N/A# and limitations under the License.
4596N/A#
4596N/A# When distributing Covered Code, include this CDDL HEADER in each
4596N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4596N/A# If applicable, add the following below this CDDL HEADER, with the
4596N/A# fields enclosed by brackets "[]" replaced with your own identifying
4596N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4596N/A#
4596N/A# CDDL HEADER END
4596N/A#
4596N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4596N/A#
4596N/Ainclude ../../make-rules/shared-macros.mk
4596N/A
4596N/ACOMPONENT_NAME= re2c
4596N/ACOMPONENT_VERSION= 0.14.2
4596N/ACOMPONENT_PROJECT_URL= http://sf.net/projects/re2c/
4596N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4596N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4596N/ACOMPONENT_ARCHIVE_HASH= \
4596N/A sha256:a702eb63977af4715555edb41eba3b47bbfdcdb44b566d146869a7db022f1c30
4596N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
4596N/ACOMPONENT_BUGDB= utility/re2c
4596N/A
4596N/ATPNO = 22638
4596N/A
4596N/Ainclude $(WS_MAKE_RULES)/prep.mk
4596N/Ainclude $(WS_MAKE_RULES)/configure.mk
4596N/Ainclude $(WS_MAKE_RULES)/ips.mk
4596N/A
4596N/ACOMPILER = gcc
4596N/AGCC_ROOT = /usr/gcc/4.8
4596N/A
4596N/Aexport PATH=$(GCC_ROOT)/bin:/usr/gnu/bin:/usr/bin
4596N/A
4596N/A# Needed to get the tests to run successfully.
4596N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
4596N/A
4596N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
4596N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
4596N/A
4596N/A# Needed for "gmake test" to work successfully.
4596N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
4596N/A# then all shell options get exported to child invocations of bash,
4596N/A# which results in test failures due to nounset and xtrace being
4596N/A# set unexpectedly, and errors such as "$1: unbound variable" and
4596N/A# diffs failing due to script tracing in output files.
4596N/Aunexport SHELLOPTS
4596N/A
4943N/ACOMPONENT_SYSTEM_TEST_ENV += RE2C_BIN=/usr/bin/re2c
4943N/A
4596N/AASLR_MODE = $(ASLR_ENABLE)
4596N/A
4943N/Aconfigure: $(CONFIGURE_64)
4943N/A
4596N/Abuild: $(BUILD_64)
4596N/A
4596N/Ainstall: $(INSTALL_64)
4596N/A
4596N/Atest: $(TEST_64)
4596N/A
4943N/Asystem-test: build $(SYSTEM_TEST_64)
4943N/A
4596N/AREQUIRED_PACKAGES += system/library
4596N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
4596N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime