Makefile revision 6732
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg#
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# CDDL HEADER START
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg#
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# The contents of this file are subject to the terms of the
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Common Development and Distribution License (the "License").
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# You may not use this file except in compliance with the License.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg#
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# or http://www.opensolaris.org/os/licensing.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# See the License for the specific language governing permissions
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# and limitations under the License.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg#
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# When distributing Covered Code, include this CDDL HEADER in each
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0662ed52e814f8f08ef0e09956413a792584eddffuankg# If applicable, add the following below this CDDL HEADER, with the
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# fields enclosed by brackets "[]" replaced with your own identifying
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# information: Portions Copyright [yyyy] [name of copyright owner]
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg#
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# CDDL HEADER END
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg#
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg#
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg#
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg# When building with Studio, p7zip has many warnings about extra semicolons,
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg# and at least one hard error due to an extra semicolon. It also suffers from
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg# the pragma pack push/pop problem (15358176).
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankgCOMPILER= gcc
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankginclude ../../make-rules/shared-macros.mk
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_NAME= p7zip
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_VERSION= 15.14.1
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_PROJECT_URL= http://p7zip.sourceforge.net/
16b55a35cff91315d261d1baa776138af465c4e4fuankgCOMPONENT_SRC= $(COMPONENT_NAME)_$(COMPONENT_VERSION)
16b55a35cff91315d261d1baa776138af465c4e4fuankgCOMPONENT_ARCHIVE= $(COMPONENT_SRC)_src_all.tar.bz2
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_ARCHIVE_HASH= \
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg sha256:699db4da3621904113e040703220abb1148dfef477b55305e2f14a4f1f8f25d4
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/p7zip/p7zip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
16b55a35cff91315d261d1baa776138af465c4e4fuankgCOMPONENT_BUGDB= utility/p7zip
16b55a35cff91315d261d1baa776138af465c4e4fuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgTPNO= 27905
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankginclude $(WS_MAKE_RULES)/prep.mk
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankginclude $(WS_MAKE_RULES)/justmake.mk
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankginclude $(WS_MAKE_RULES)/ips.mk
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_BUILD_TARGETS = all3
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_INSTALL_ARGS += DEST_HOME=/usr DEST_DIR=$(PROTO_DIR)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# -Bdirect breaks x86 binaries - exceptions are not caught
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgLD_B_DIRECT=
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg$(SOURCE_DIR)/DOC/copying.txt $(SOURCE_DIR)/DOC/unRarLicense.txt: prep
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg$(BUILD_DIR)/%: $(SOURCE_DIR)/DOC/%
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg $(CP) $< $@
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg$(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOC/copying.txt
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg $(CP) $(SOURCE_DIR)/DOC/copying.txt $@
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgASLR_MODE = $(ASLR_ENABLE)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# common targets
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgbuild: $(BUILD_64)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgEXTRATARGETS = \
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg $(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankginstall: build $(INSTALL_64) $(EXTRATARGETS)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# When p7zip's install target is run, it creates all its directories mode 555,
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# so they're impossible to remove without adding the write bit first.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_POST_INSTALL_ACTION += $(CHMOD) -R u+w $(PROTO_DIR)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# build does this always
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgtest: $(BUILD_64)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg cd $(BUILD_DIR_64) && $(MAKE) -e test P7ZIP_HOME_DIR=$(BUILD_DIR_64)/bin
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg cd $(BUILD_DIR_64) && $(MAKE) -e test_7z P7ZIP_HOME_DIR=$(BUILD_DIR_64)/bin
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg cd $(BUILD_DIR_64) && $(MAKE) -e test_7zr P7ZIP_HOME_DIR=$(BUILD_DIR_64)/bin
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgREQUIRED_PACKAGES += shell/ksh93
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgREQUIRED_PACKAGES += system/library
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgREQUIRED_PACKAGES += system/library/math
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg