Makefile revision 2484
0N/A#
2076N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1472N/A# CDDL HEADER END
1472N/A
1472N/A#
0N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
1879N/Ainclude ../../make-rules/shared-macros.mk
1879N/A
1879N/ACOMPONENT_NAME= unzip
1879N/ACOMPONENT_VERSION= 6.0
1879N/ACOMPONENT_SRC= $(COMPONENT_NAME)60
1879N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1879N/ACOMPONENT_ARCHIVE_HASH= \
1879N/A sha256:036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
1879N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
1879N/ACOMPONENT_PROJECT_URL=http://www.info-zip.org/UnZip.html
1879N/ACOMPONENT_BUGDB= utility/zip
1879N/A
1879N/Ainclude ../../make-rules/prep.mk
1879N/Ainclude ../../make-rules/justmake.mk
1879N/Ainclude ../../make-rules/ips.mk
1879N/A
1879N/A# remove the unwanted file.
1879N/ACOMPONENT_PREP_ACTION = $(RM) $(SOURCE_DIR)/crc_i386.S
1879N/A
1879N/ACOMPONENT_BUILD_ENV += \
1879N/A "LOCAL_UNZIP=-DUNICODE_SUPPORT -DNO_WORKING_ISPRINT -DUNICODE_WCHAR"
1879N/A
1879N/A# The Makefile we want is under unix/Makefile
1879N/ACOMPONENT_BUILD_ARGS += -f unix/Makefile
1879N/ACC += $(CC_BITS)
1879N/ACOMPONENT_BUILD_TARGETS += generic CC="$(CC)"
1879N/ACOMPONENT_INSTALL_ARGS += -f unix/Makefile
1879N/A
1879N/A# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
1879N/ACOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
1879N/ACOMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
0N/A
0N/A# Enable ASLR for this component
0N/AASLR_MODE = $(ASLR_ENABLE)
0N/A
0N/A# common targets
0N/A
0N/Abuild: $(BUILD_64)
0N/A
0N/Ainstall: $(INSTALL_64)
0N/A
0N/Atest: $(NO_TESTS)
0N/A
0N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
0N/A
0N/Ainclude ../../make-rules/depend.mk
0N/A