Makefile revision 120
120N/A#
120N/A# CDDL HEADER START
120N/A#
120N/A# The contents of this file are subject to the terms of the
120N/A# Common Development and Distribution License (the "License").
120N/A# You may not use this file except in compliance with the License.
120N/A#
120N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
120N/A# or http://www.opensolaris.org/os/licensing.
120N/A# See the License for the specific language governing permissions
120N/A# and limitations under the License.
120N/A#
120N/A# When distributing Covered Code, include this CDDL HEADER in each
120N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
120N/A# If applicable, add the following below this CDDL HEADER, with the
120N/A# fields enclosed by brackets "[]" replaced with your own identifying
120N/A# information: Portions Copyright [yyyy] [name of copyright owner]
120N/A#
120N/A# CDDL HEADER END
120N/A#
120N/A
120N/A#
120N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
120N/A#
120N/A
120N/Ainclude ../../make-rules/shared-macros.mk
120N/A
120N/ACOMPONENT_NAME= bison
120N/ACOMPONENT_VERSION= 2.3
120N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
120N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
120N/ACOMPONENT_ARCHIVE_HASH= sha1:4df84c2c5971946111ff1982fb830b3c78d7c57e
120N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bison/$(COMPONENT_ARCHIVE)
120N/A
120N/Ainclude ../../make-rules/prep.mk
120N/Ainclude ../../make-rules/configure.mk
120N/Ainclude ../../make-rules/ips.mk
120N/A
120N/ACONFIGURE_LIBDIR.32 = $(SFWLIB)
120N/ACONFIGURE_LIBDIR.64 = $(SFWLIB)/$(MACH64)
120N/A
120N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
120N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
120N/A
120N/ASFWPROGS= bison
120N/A
120N/Ainclude ../../make-rules/shared-targets.mk
120N/A
120N/A# common targets
120N/Abuild: $(BUILD_32) $(BUILD_64)
120N/A
120N/Ainstall: build $(INSTALL_32) $(PROTOSFWLINKS)
120N/A cd $(PROTOSFWLIB); rm -f liby.so; ln -s liby.so.1 liby.so
120N/A $(INSTALL) -D $(BUILD_DIR_64)/lib/liby.so.1 $(PROTOSFWLIB64)/liby.so.1
120N/A cd $(PROTOSFWLIB64); rm -f liby.so; ln -s liby.so.1 liby.so
120N/A
120N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
120N/A
120N/Atest: build
120N/A @cd $(BUILD_DIR_32); $(MAKE) check
120N/A
120N/Ainclude ../../make-rules/depend.mk