Makefile revision 1800
380N/A#
380N/A# CDDL HEADER START
380N/A#
380N/A# The contents of this file are subject to the terms of the
380N/A# Common Development and Distribution License (the "License").
380N/A# You may not use this file except in compliance with the License.
380N/A#
380N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
380N/A# or http://www.opensolaris.org/os/licensing.
380N/A# See the License for the specific language governing permissions
380N/A# and limitations under the License.
380N/A#
380N/A# When distributing Covered Code, include this CDDL HEADER in each
380N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
380N/A# If applicable, add the following below this CDDL HEADER, with the
380N/A# fields enclosed by brackets "[]" replaced with your own identifying
380N/A# information: Portions Copyright [yyyy] [name of copyright owner]
380N/A#
380N/A# CDDL HEADER END
380N/A#
3661N/A# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
380N/A#
380N/Ainclude ../../make-rules/shared-macros.mk
380N/A
380N/ACOMPONENT_NAME= pixz
816N/ACOMPONENT_VERSION= 1.0
816N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
380N/ACOMPONENT_PROJECT_URL= http://github.com/vasi/pixz/
380N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
380N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:912c60de88f7eca2e1c6fe13eec5371f723018dca933796c47cd50bf6a349fc9
844N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)archive/$(COMPONENT_ARCHIVE)
380N/ACOMPONENT_BUGDB= utility/pixz
1273N/A
380N/Ainclude ../../make-rules/prep.mk
3661N/Ainclude ../../make-rules/justmake.mk
3661N/Ainclude ../../make-rules/ips.mk
380N/A
380N/APKG_PROTO_DIRS += $(BUILD_DIR_64)
380N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
380N/A
380N/A# Userland default includes -mt which links with libthread which we don't need.
380N/Astudio_MT =
380N/A
380N/A# pixz's Makefile hard-codes some gcc-only flags in MYCFLAGS and MYLDFLAGS,
380N/A# then appends CFLAGS & LDFLAGS to each. Here we include their preset values
380N/A# minus the gcc-only parts, so we can build with Studio.
380N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
380N/ACOMPONENT_BUILD_ARGS += MYCFLAGS='$(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT)'
380N/ACOMPONENT_BUILD_ARGS += MYLDFLAGS='$(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT)'
380N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
380N/ACOMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)"
380N/A
380N/AASLR_MODE = $(ASLR_ENABLE)
380N/A
380N/A# common targets
380N/Abuild: $(BUILD_64)
install: $(BUILD_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk