Makefile revision 1582
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER START
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# The contents of this file are subject to the terms of the
080575042aba2197b425ebfd52061dea061a9aa1xy# Common Development and Distribution License (the "License").
080575042aba2197b425ebfd52061dea061a9aa1xy# You may not use this file except in compliance with the License.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
080575042aba2197b425ebfd52061dea061a9aa1xy# or http://www.opensolaris.org/os/licensing.
080575042aba2197b425ebfd52061dea061a9aa1xy# See the License for the specific language governing permissions
080575042aba2197b425ebfd52061dea061a9aa1xy# and limitations under the License.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# When distributing Covered Code, include this CDDL HEADER in each
080575042aba2197b425ebfd52061dea061a9aa1xy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
080575042aba2197b425ebfd52061dea061a9aa1xy# If applicable, add the following below this CDDL HEADER, with the
080575042aba2197b425ebfd52061dea061a9aa1xy# fields enclosed by brackets "[]" replaced with your own identifying
080575042aba2197b425ebfd52061dea061a9aa1xy# information: Portions Copyright [yyyy] [name of copyright owner]
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER END
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/shared-macros.mk
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_NAME= getopt
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_VERSION= 1.1.5
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_PROJECT_URL= http://software.frodo.looijaard.name/getopt/
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE_HASH= \
080575042aba2197b425ebfd52061dea061a9aa1xy sha256:11893276b94b1629606ab75772143918a5713259950fbf4216288e246f19fbb6
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/$(COMPONENT_ARCHIVE)
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_BUGDB= utility/gnu-getopt
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/prep.mk
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/justmake.mk
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/ips.mk
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# getopt doesn't use configure, override the hard-wired values in the Makefile.
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_BUILD_ARGS+= CC="$(SPRO_VROOT)/bin/cc $(CC_BITS)"
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_BUILD_ARGS+= CFLAGS="$(CFLAGS)"
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_BUILD_ARGS+= LIBCGETOPT=0
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_INSTALL_ARGS+= prefix=/usr/gnu
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_INSTALL_ARGS+= mandir=/usr/gnu/share/man
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_INSTALL_ARGS+= CC="$(SPRO_VROOT)/bin/cc $(CC_BITS)"
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_INSTALL_ARGS+= CFLAGS="$(CFLAGS)"
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# Stupid source tarball distribution contains two .o files.
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_POST_UNPACK_ACTION= \
080575042aba2197b425ebfd52061dea061a9aa1xy $(RM) $(COMPONENT_SRC)/gnu/*.o
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# common targets
080575042aba2197b425ebfd52061dea061a9aa1xybuild: $(BUILD_64)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinstall: $(INSTALL_64)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xytest: $(NO_TESTS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/depend.mk
080575042aba2197b425ebfd52061dea061a9aa1xy