Makefile revision 4911
970N/A#
970N/A# CDDL HEADER START
970N/A#
970N/A# The contents of this file are subject to the terms of the
1072N/A# Common Development and Distribution License (the "License").
970N/A# You may not use this file except in compliance with the License.
970N/A#
970N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970N/A# or http://www.opensolaris.org/os/licensing.
970N/A# See the License for the specific language governing permissions
970N/A# and limitations under the License.
970N/A#
970N/A# When distributing Covered Code, include this CDDL HEADER in each
970N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
970N/A# If applicable, add the following below this CDDL HEADER, with the
970N/A# fields enclosed by brackets "[]" replaced with your own identifying
970N/A# information: Portions Copyright [yyyy] [name of copyright owner]
970N/A#
970N/A# CDDL HEADER END
970N/A#
970N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
970N/A#
970N/Ainclude ../../make-rules/shared-macros.mk
970N/A
970N/ACOMPONENT_NAME= pixz
970N/ACOMPONENT_VERSION= 1.0
970N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
970N/ACOMPONENT_PROJECT_URL= http://github.com/vasi/pixz/
970N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
970N/ACOMPONENT_ARCHIVE_HASH= \
970N/A sha256:912c60de88f7eca2e1c6fe13eec5371f723018dca933796c47cd50bf6a349fc9
970N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)archive/$(COMPONENT_ARCHIVE)
970N/ACOMPONENT_BUGDB= utility/pixz
970N/A
970N/ATPNO= 11623
970N/A
970N/Ainclude $(WS_MAKE_RULES)/prep.mk
970N/Ainclude $(WS_MAKE_RULES)/justmake.mk
970N/Ainclude $(WS_MAKE_RULES)/ips.mk
970N/A
970N/APKG_PROTO_DIRS += $(BUILD_DIR_64)
970N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
970N/A
1105N/A# Userland default includes -mt which links with libthread which we don't need.
970N/Astudio_MT =
970N/A
970N/A# pixz's Makefile hard-codes some gcc-only flags in MYCFLAGS and MYLDFLAGS,
970N/A# then appends CFLAGS & LDFLAGS to each. Here we include their preset values
970N/A# minus the gcc-only parts, so we can build with Studio.
970N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
970N/ACOMPONENT_BUILD_ARGS += MYCFLAGS='$(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT)'
970N/ACOMPONENT_BUILD_ARGS += MYLDFLAGS='$(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT)'
970N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
970N/ACOMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)"
970N/A
970N/A# Create a small testball to use with the test script.
970N/ACOMPONENT_PRE_TEST_ACTION = \
970N/A (cd $(@D); tar cvf pixz-test-tarball.tar *.c *.o)
970N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION = \
970N/A (cd $(@D); tar cvf pixz-test-tarball.tar *.c *.o)
970N/A
970N/ACOMPONENT_TEST_TRANSFORMS += \
970N/A '-e "/^real/d" ' \
970N/A '-e "/^user/d" ' \
970N/A '-e "/^sys/d" '
970N/A
970N/ACOMPONENT_TEST_ENV = PATH=$(GNUBIN):$(PATH)
970N/ACOMPONENT_TEST_CMD = $(SOURCE_DIR)/test.sh
970N/ACOMPONENT_TEST_ARGS = pixz-test-tarball.tar pixz.c
1130N/ACOMPONENT_TEST_TARGETS =
970N/A
970N/ACOMPONENT_SYSTEM_TEST_ENV = PATH=$(GNUBIN):$(PATH)
970N/ACOMPONENT_SYSTEM_TEST_ENV += PIXZ_BIN=/usr/bin/pixz
970N/ACOMPONENT_SYSTEM_TEST_CMD = $(SOURCE_DIR)/test.sh
970N/ACOMPONENT_SYSTEM_TEST_ARGS = pixz-test-tarball.tar pixz.c
970N/ACOMPONENT_SYSTEM_TEST_TARGETS =
970N/A
970N/AASLR_MODE = $(ASLR_ENABLE)
970N/A
970N/Abuild: $(BUILD_64)
970N/A
970N/Ainstall: $(BUILD_64)
970N/A
970N/Atest: $(TEST_64)
970N/A
970N/Asystem-test: build $(SYSTEM_TEST_64)
970N/A
970N/A
970N/AREQUIRED_PACKAGES += compress/xz
970N/AREQUIRED_PACKAGES += library/libarchive
970N/AREQUIRED_PACKAGES += system/library
970N/A