Makefile revision 844
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# CDDL HEADER START
d6865474d3248c1d8ed080c221c4a9548b0a4bb3Simon Ulbricht# The contents of this file are subject to the terms of the
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# Common Development and Distribution License (the "License").
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# You may not use this file except in compliance with the License.
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# See the License for the specific language governing permissions
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# and limitations under the License.
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# When distributing Covered Code, include this CDDL HEADER in each
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4eefa68fee720a9e28cec9f7e664f0d4f68c4114Simon Ulbricht# If applicable, add the following below this CDDL HEADER, with the
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# fields enclosed by brackets "[]" replaced with your own identifying
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# information: Portions Copyright [yyyy] [name of copyright owner]
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# CDDL HEADER END
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
366c3a899de56473bd4e714c5079d7a873411605Simon UlbrichtCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht sha256:4a9fd2dac76fc08fd1dc400deba854fcefa12ad76226d93fb6c01a801324f106
366c3a899de56473bd4e714c5079d7a873411605Simon UlbrichtCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/zsh/zsh-dev/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
366c3a899de56473bd4e714c5079d7a873411605Simon UlbrichtCONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
366c3a899de56473bd4e714c5079d7a873411605Simon UlbrichtCONFIGURE_OPTIONS += --enable-function-subdirs
366c3a899de56473bd4e714c5079d7a873411605Simon UlbrichtCONFIGURE_OPTIONS += --enable-ldflags="-zignore"
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# pcre-config --libs unnecessarily emits "-L/usr/lib -R/usr/lib"; we remove it
dcbd586414fbe6a9b4355081269912c864b72991Simon Ulbricht# so that it doesn't end up in the binaries.
dcbd586414fbe6a9b4355081269912c864b72991Simon UlbrichtCOMPOVERRIDES = $(shell find Completion -type f -print)
7d37379cce57a8078407dde00d98867a8109a87aSimon Ulbricht# makepro.awk leaves turds behind when using gawk 3.1.5 and LANG=en_US.UTF-8.
7d37379cce57a8078407dde00d98867a8109a87aSimon Ulbricht# Upgrading gawk would fix the problem, but for now, all we can do is change
c86cf77506812a2479ce7754d5b483e10a8f0c78Simon Ulbricht# the language.
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# common targets
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbrichtbuild: $(BUILD_32) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
7295fc55bb16da7bc967fdf6d63cdfd03b061127Simon Ulbrichtinstall: build $(INSTALL_32) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
366c3a899de56473bd4e714c5079d7a873411605Simon Ulbricht# build does this always