Makefile revision 2899
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# CDDL HEADER START
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# The contents of this file are subject to the terms of the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Common Development and Distribution License (the "License").
9b2bd54c98edb185a3985410367754ab33217362bnicholes# You may not use this file except in compliance with the License.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b2bd54c98edb185a3985410367754ab33217362bnicholes# or http://www.opensolaris.org/os/licensing.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# See the License for the specific language governing permissions
9b2bd54c98edb185a3985410367754ab33217362bnicholes# and limitations under the License.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# When distributing Covered Code, include this CDDL HEADER in each
9b2bd54c98edb185a3985410367754ab33217362bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If applicable, add the following below this CDDL HEADER, with the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
9b2bd54c98edb185a3985410367754ab33217362bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# CDDL HEADER END
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/shared-macros.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_NAME= pwgen
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_VERSION= 2.06
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_PROJECT_URL= http://sourceforge.net/projects/pwgen/
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_HASH= \
9b2bd54c98edb185a3985410367754ab33217362bnicholes sha256:61598c9e3a0f7eb2e7367d4ecc71522c4f16a7d41ed31db29e3afee8d9843454
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/pwgen/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_BUGDB= utility/pwgen
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesTPNO= 9020
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += LDFLAGS="$(CC_BITS)"
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/prep.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/configure.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/ips.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# IPS Package versions contain sequences of non-negative (for now) integers,
9b2bd54c98edb185a3985410367754ab33217362bnicholes# separated by dots. Leading zeroes are not allowed, due to ordering
9b2bd54c98edb185a3985410367754ab33217362bnicholes# ambiguity, so IPS team has to massage "06" into "6" and thus IPS version
9b2bd54c98edb185a3985410367754ab33217362bnicholes# of pwgen is actually 2.6 and not 2.06. IPS_COMPONENT_VERSION is by default
9b2bd54c98edb185a3985410367754ab33217362bnicholes# set to $(COMPONENT_VERSION) but in this case it has to be set specifically
9b2bd54c98edb185a3985410367754ab33217362bnicholes# to "2.6" to comply with the convention described above.
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesIPS_COMPONENT_VERSION= 2.6
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# configure in pwgen is generated by autoconf 2.13, which does not accept the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# variables like CC, CXX, etc. The solution is to generate a new configure
9b2bd54c98edb185a3985410367754ab33217362bnicholes# using modern autoconf available on the build system (version 2.63 in the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# time of creating this makefile).
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_PREP_ACTION= (cd $(@D) ; autoconf)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# This is to get rid of gcc specific -Wxxx options in pwgen makefile
9b2bd54c98edb185a3985410367754ab33217362bnicholes#
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_BUILD_ARGS = WALL_OPTS=
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesASLR_MODE = $(ASLR_ENABLE)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholes# common targets
9b2bd54c98edb185a3985410367754ab33217362bnicholesbuild: $(BUILD_64)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinstall: $(INSTALL_64)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholestest: $(NO_TESTS)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
9b2bd54c98edb185a3985410367754ab33217362bnicholes
9b2bd54c98edb185a3985410367754ab33217362bnicholesinclude ../../make-rules/depend.mk
9b2bd54c98edb185a3985410367754ab33217362bnicholes