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