Makefile revision 1572
2209N/A#
2209N/A# CDDL HEADER START
2209N/A#
2209N/A# The contents of this file are subject to the terms of the
2209N/A# Common Development and Distribution License (the "License").
2209N/A# You may not use this file except in compliance with the License.
2209N/A#
2209N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2209N/A# or http://www.opensolaris.org/os/licensing.
2209N/A# See the License for the specific language governing permissions
2209N/A# and limitations under the License.
2209N/A#
2209N/A# When distributing Covered Code, include this CDDL HEADER in each
2209N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2209N/A# If applicable, add the following below this CDDL HEADER, with the
2209N/A# fields enclosed by brackets "[]" replaced with your own identifying
2209N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2209N/A#
2209N/A# CDDL HEADER END
2209N/A#
5680N/A
5680N/A#
5371N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
2209N/A#
2209N/A
2209N/Ainclude ../../make-rules/shared-macros.mk
2209N/A
2209N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin:/usr/sbin
3441N/A
3441N/ACOMPONENT_NAME= unrar
3441N/ACOMPONENT_VERSION= 4.2.4
2209N/ACOMPONENT_SRC= $(COMPONENT_NAME)
2209N/ACOMPONENT_PROJECT_URL= http://www.rarlabs.com/rar_add.htm
5537N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz
5537N/ACOMPONENT_ARCHIVE_HASH= \
5537N/A sha256:9432bf798e5f7123f3060f37b75b7c07f36f0091305f46473dcae9154f8cd686
5537N/ACOMPONENT_ARCHIVE_URL= http://www.rarlab.com/rar/$(COMPONENT_ARCHIVE)
6982N/ACOMPONENT_BUGDB= utility/unrar
5600N/A
2209N/Ainclude ../../make-rules/prep.mk
2209N/Ainclude ../../make-rules/justmake.mk
2209N/Ainclude ../../make-rules/ips.mk
2209N/A
2209N/APKG_PROTO_DIRS = $(MANGLED_DIR)
6982N/APKG_PROTO_DIRS += $(BUILD_DIR_64)
2209N/APKG_PROTO_DIRS += $(COMPONENT_DIR)
2931N/A
2209N/APATCH_LEVEL = 0
6982N/A
2899N/A
4368N/A# Needed by .../unrar/os.hpp to correctly define platform endianness.
4368N/ACXXFLAGS.i386 = -DLITTLE_ENDIAN
4368N/ACXXFLAGS.sparc = -DBIG_ENDIAN
4368N/ACXXFLAGS += $(CXXFLAGS.$(MACH))
4368N/ACXXFLAGS += "-erroff=wvarhidemem"
4368N/ACOMPONENT_BUILD_ENV += CXX="$(CXX)"
4368N/ACOMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
3062N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(studio_NORUNPATH) -m64"
2221N/ACOMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
2221N/A
3817N/ACOMPONENT_BUILD_ARGS += -f makefile.unix
3817N/ACOMPONENT_BUILD_ARGS += STRIP="/bin/true"
3817N/A
3817N/AASLR_MODE = $(ASLR_ENABLE)
2209N/A
2209N/A# common targets
2209N/Abuild: $(BUILD_64)
2209N/A
2209N/Ainstall: $(BUILD_64)
2209N/A
2209N/Atest: $(NO_TESTS)
2209N/A
2209N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2209N/A
2209N/Ainclude ../../make-rules/depend.mk
2209N/A