components/re2c/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 26 Jan 2017 16:44:14 -0800
changeset 7617 14b1a4293086
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
permissions -rw-r--r--
Close of build 117.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5589
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5589
diff changeset
    22
#
5343
48c162cab8f5 22541052 aspell, cppunit, openusb, and re2c shouldn't override gcc version
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 4945
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5589
diff changeset
    25
BUILD_BITS= 64
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5589
diff changeset
    26
COMPILER= gcc
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		re2c
5589
35e7f040df70 22886441 Update re2c to version 0.16
Rich Burridge <rich.burridge@oracle.com>
parents: 5343
diff changeset
    30
COMPONENT_VERSION=	0.16
35e7f040df70 22886441 Update re2c to version 0.16
Rich Burridge <rich.burridge@oracle.com>
parents: 5343
diff changeset
    31
COMPONENT_PROJECT_URL=	http://re2c.org/
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
5589
35e7f040df70 22886441 Update re2c to version 0.16
Rich Burridge <rich.burridge@oracle.com>
parents: 5343
diff changeset
    33
    sha256:48c12564297641cceb5ff05aead57f28118db6277f31e2262437feba89069e84
35e7f040df70 22886441 Update re2c to version 0.16
Rich Burridge <rich.burridge@oracle.com>
parents: 5343
diff changeset
    34
COMPONENT_ARCHIVE_URL=	https://github.com/skvadrik/$(COMPONENT_NAME)/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
5589
35e7f040df70 22886441 Update re2c to version 0.16
Rich Burridge <rich.burridge@oracle.com>
parents: 5343
diff changeset
    36
TPNO =			27272
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5589
diff changeset
    38
SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5589
diff changeset
    39
include $(WS_MAKE_RULES)/common.mk
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5589
diff changeset
    41
export PATH=$(GCC_ROOT)/bin:$(GNUBIN):$(USRBINDIR)
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
# Needed to get the tests to run successfully.
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
# Needed for "gmake test" to work successfully.
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
# If SHELLOPTS is exported (as it is by the userland makefiles),
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
# then all shell options get exported to child invocations of bash,
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
# which results in test failures due to nounset and xtrace being
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
# set unexpectedly, and errors such as "$1: unbound variable" and
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
# diffs failing due to script tracing in output files.
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
unexport SHELLOPTS
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5589
diff changeset
    54
COMPONENT_SYSTEM_TEST_ENV +=	RE2C_BIN=$(USRBINDIR)/re2c
4598
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
b74b65884262 PSARC 2015/229 re2c scanner generator
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime