Makefile revision 618
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# CDDL HEADER START
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# The contents of this file are subject to the terms of the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Common Development and Distribution License (the "License").
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# You may not use this file except in compliance with the License.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# or http://www.opensolaris.org/os/licensing.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# See the License for the specific language governing permissions
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# and limitations under the License.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# When distributing Covered Code, include this CDDL HEADER in each
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# If applicable, add the following below this CDDL HEADER, with the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# CDDL HEADER END
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncinclude ../../make-rules/shared-macros.mk
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_NAME= zip
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_VERSION= 3.0
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_PROJECT_URL= http://www.info-zip.org/Zip.html
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)30
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_ARCHIVE_HASH= sha1:c9f4099ecf2772b53c2dd4a8e508064ce015d182
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncinclude ../../make-rules/prep.mk
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncinclude ../../make-rules/justmake.mk
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncinclude ../../make-rules/ips.mk
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# remove the unwanted file.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_PREP_ACTION = rm -f $(SOURCE_DIR)/match.S
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# The Makefile we want is under unix/Makefile
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_BUILD_ARGS += -f unix/Makefile
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_BUILD_TARGETS += generic CC=$(CC)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_INSTALL_ARGS += -f unix/Makefile
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# common targets
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncbuild: $(BUILD_32)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncinstall: $(INSTALL_32)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctest: $(NO_TESTS)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncinclude ../../make-rules/depend.mk
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync