Makefile revision 93
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# CDDL HEADER START
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# The contents of this file are subject to the terms of the
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen# Common Development and Distribution License (the "License").
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# You may not use this file except in compliance with the License.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# See the License for the specific language governing permissions
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# and limitations under the License.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# CDDL HEADER END
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerCOMPONENT_ARCHIVE_HASH= sha1:132f9ce411bf318abccbae9cdc2f8cc14f8be85b
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/zsh/zsh-dev/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenCONFIGURE_OPTIONS += --enable-cppflags="$(LFS_CFLAGS)"
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenCONFIGURE_OPTIONS += --enable-function-subdirs
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenCONFIGURE_OPTIONS += --enable-ldflags="-zignore"
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenCONFIGURE_OPTIONS += --enable-maildir-support
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen# pcre-config --libs unnecessarily emits "-L/usr/lib -R/usr/lib"; we remove it
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# so that it doesn't end up in the binaries.
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos KoscoCOMPOVERRIDES = $(shell find Completion -type f -print)
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Kosco# makepro.awk leaves turds behind when using gawk 3.1.5 and LANG=en_US.UTF-8.
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Kosco# Upgrading gawk would fix the problem, but for now, all we can do is change
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Kosco# the language.
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Kosco# common targets
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Koscobuild: $(BUILD_32) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Koscoinstall: build $(INSTALL_32) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Kosco# build does this always