16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
|
21 |
|
22 # |
21 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
23 COMPILER = gcc |
25 BUILD_BITS= 64 |
24 |
26 COMPILER= gcc |
25 include ../../make-rules/shared-macros.mk |
27 include ../../make-rules/shared-macros.mk |
26 |
28 |
27 COMPONENT_NAME= re2c |
29 COMPONENT_NAME= re2c |
28 COMPONENT_VERSION= 0.16 |
30 COMPONENT_VERSION= 0.16 |
29 COMPONENT_PROJECT_URL= http://re2c.org/ |
31 COMPONENT_PROJECT_URL= http://re2c.org/ |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
33 sha256:48c12564297641cceb5ff05aead57f28118db6277f31e2262437feba89069e84 |
33 sha256:48c12564297641cceb5ff05aead57f28118db6277f31e2262437feba89069e84 |
34 COMPONENT_ARCHIVE_URL= https://github.com/skvadrik/$(COMPONENT_NAME)/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
34 COMPONENT_ARCHIVE_URL= https://github.com/skvadrik/$(COMPONENT_NAME)/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
35 COMPONENT_BUGDB= utility/re2c |
|
36 |
35 |
37 TPNO = 27272 |
36 TPNO = 27272 |
38 |
37 |
39 include $(WS_MAKE_RULES)/prep.mk |
38 SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64) |
40 include $(WS_MAKE_RULES)/configure.mk |
39 include $(WS_MAKE_RULES)/common.mk |
41 include $(WS_MAKE_RULES)/ips.mk |
|
42 |
40 |
43 export PATH=$(GCC_ROOT)/bin:/usr/gnu/bin:/usr/bin |
41 export PATH=$(GCC_ROOT)/bin:$(GNUBIN):$(USRBINDIR) |
44 |
42 |
45 # Needed to get the tests to run successfully. |
43 # Needed to get the tests to run successfully. |
46 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
44 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
47 |
|
48 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
49 CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
|
50 |
45 |
51 # Needed for "gmake test" to work successfully. |
46 # Needed for "gmake test" to work successfully. |
52 # If SHELLOPTS is exported (as it is by the userland makefiles), |
47 # If SHELLOPTS is exported (as it is by the userland makefiles), |
53 # then all shell options get exported to child invocations of bash, |
48 # then all shell options get exported to child invocations of bash, |
54 # which results in test failures due to nounset and xtrace being |
49 # which results in test failures due to nounset and xtrace being |
55 # set unexpectedly, and errors such as "$1: unbound variable" and |
50 # set unexpectedly, and errors such as "$1: unbound variable" and |
56 # diffs failing due to script tracing in output files. |
51 # diffs failing due to script tracing in output files. |
57 unexport SHELLOPTS |
52 unexport SHELLOPTS |
58 |
53 |
59 COMPONENT_SYSTEM_TEST_ENV += RE2C_BIN=/usr/bin/re2c |
54 COMPONENT_SYSTEM_TEST_ENV += RE2C_BIN=$(USRBINDIR)/re2c |
60 |
55 |
61 ASLR_MODE = $(ASLR_ENABLE) |
|
62 |
|
63 configure: $(CONFIGURE_64) |
|
64 |
|
65 build: $(BUILD_64) |
|
66 |
|
67 install: $(INSTALL_64) |
|
68 |
|
69 test: $(TEST_64) |
|
70 |
|
71 system-test: build $(SYSTEM_TEST_64) |
|
72 |
|
73 REQUIRED_PACKAGES += system/library |
|
74 REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
56 REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
75 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
57 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |