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