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#
5680N/A
5680N/A#
5341N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4596N/A#
5680N/ABUILD_BITS= 64
5680N/ACOMPILER= gcc
4596N/Ainclude ../../make-rules/shared-macros.mk
4596N/A
4596N/ACOMPONENT_NAME= re2c
5587N/ACOMPONENT_VERSION= 0.16
5587N/ACOMPONENT_PROJECT_URL= http://re2c.org/
4596N/ACOMPONENT_ARCHIVE_HASH= \
5587N/A sha256:48c12564297641cceb5ff05aead57f28118db6277f31e2262437feba89069e84
5587N/ACOMPONENT_ARCHIVE_URL= https://github.com/skvadrik/$(COMPONENT_NAME)/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
4596N/A
5587N/ATPNO = 27272
4596N/A
5680N/ASYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
4596N/A
5680N/Aexport PATH=$(GCC_ROOT)/bin:$(GNUBIN):$(USRBINDIR)
4596N/A
4596N/A# Needed to get the tests to run successfully.
4596N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
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
5680N/ACOMPONENT_SYSTEM_TEST_ENV += RE2C_BIN=$(USRBINDIR)/re2c
4596N/A
4596N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
4596N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime