Makefile revision 1258
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# CDDL HEADER START
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# The contents of this file are subject to the terms of the
a44595f7b1afc7ccbd8653598753b32899d01c76Timo Sirainen# Common Development and Distribution License (the "License").
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# You may not use this file except in compliance with the License.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# or http://www.opensolaris.org/os/licensing.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# See the License for the specific language governing permissions
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# and limitations under the License.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# When distributing Covered Code, include this CDDL HEADER in each
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# If applicable, add the following below this CDDL HEADER, with the
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# fields enclosed by brackets "[]" replaced with your own identifying
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# information: Portions Copyright [yyyy] [name of copyright owner]
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# CDDL HEADER END
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
d567cc27913a45c893b4c091f84b496854d814e7Aki Tuomi
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinclude ../../make-rules/shared-macros.mk
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
a44595f7b1afc7ccbd8653598753b32899d01c76Timo SirainenCOMPONENT_NAME= flex
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_VERSION= 2.5.35
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael SlusarzCOMPONENT_PROJECT_URL= http://flex.sourceforge.net/
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael SlusarzCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_ARCHIVE_HASH= \
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz sha256:0becbd4b2b36b99c67f8c22ab98f7f80c9860aec70f0350a0018f29a88704e7b
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_ARCHIVE_URL= http://softlayer.dl.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.bz2
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_BUGDB= utility/flex
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael SlusarzSONAME=libfl.so.1
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael SlusarzLDFLAGS = $(CC_BITS)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarzinclude ../../make-rules/prep.mk
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinclude ../../make-rules/configure.mk
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarzinclude ../../make-rules/ips.mk
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael SlusarzCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCONFIGURE_OPTIONS += M4="/usr/gnu/bin/m4"
e7e9ca33af09b6ab77633bcafe27d751adf09c93Michael Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael SlusarzCOMPONENT_BUILD_ENV += SONAME="$(SONAME)"
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_INSTALL_ENV += SONAME="$(SONAME)"
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_BUILD_TARGETS += $(SONAME)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_INSTALL_TARGETS += $(SONAME)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinclude ../../make-rules/shared-targets.mk
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz# common targets
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarzbuild: $(BUILD_32_and_64)
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarzinstall: $(INSTALL_32_and_64)
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarztest: $(TEST_32_and_64)
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael SlusarzBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarzinclude ../../make-rules/depend.mk
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz
f6fb60c7dcfc88895c8c45514c3fc424d3126336Michael Slusarz