Makefile revision 1845
2247N/A#
2247N/A# CDDL HEADER START
2247N/A#
2247N/A# The contents of this file are subject to the terms of the
2247N/A# Common Development and Distribution License (the "License").
2247N/A# You may not use this file except in compliance with the License.
2247N/A#
2247N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2247N/A# or http://www.opensolaris.org/os/licensing.
2247N/A# See the License for the specific language governing permissions
2247N/A# and limitations under the License.
2247N/A#
2247N/A# When distributing Covered Code, include this CDDL HEADER in each
2247N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2247N/A# If applicable, add the following below this CDDL HEADER, with the
2247N/A# fields enclosed by brackets "[]" replaced with your own identifying
2247N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2247N/A#
2247N/A# CDDL HEADER END
2247N/A#
3817N/A
2247N/A#
2247N/A# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
2247N/A#
2247N/A
2588N/Ainclude ../../make-rules/shared-macros.mk
2276N/A
2276N/ACOMPONENT_NAME= getopt
2276N/ACOMPONENT_VERSION= 1.1.5
2276N/ACOMPONENT_PROJECT_URL= http://software.frodo.looijaard.name/getopt/
2276N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2276N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2588N/ACOMPONENT_ARCHIVE_HASH= \
2276N/A sha256:11893276b94b1629606ab75772143918a5713259950fbf4216288e246f19fbb6
2276N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/$(COMPONENT_ARCHIVE)
2247N/ACOMPONENT_BUGDB= utility/gnu-getopt
2588N/A
2247N/Ainclude ../../make-rules/prep.mk
2247N/Ainclude ../../make-rules/justmake.mk
2247N/Ainclude ../../make-rules/ips.mk
3574N/A
3574N/A# getopt doesn't use configure, override the hard-wired values in the Makefile.
2899N/ACC += "$(CC_BITS)"
3817N/ACOMPONENT_BUILD_ARGS+= CC="$(CC)"
3817N/ACOMPONENT_BUILD_ARGS+= CFLAGS="$(CFLAGS)"
3817N/ACOMPONENT_BUILD_ARGS+= LIBCGETOPT=0
2247N/A
2247N/ACOMPONENT_INSTALL_ARGS+= prefix=/usr/gnu
2247N/ACOMPONENT_INSTALL_ARGS+= mandir=/usr/gnu/share/man
2247N/ACOMPONENT_INSTALL_ARGS+= CC="$(CC)"
3930N/ACOMPONENT_INSTALL_ARGS+= CFLAGS="$(CFLAGS)"
3930N/A
3142N/A# Stupid source tarball distribution contains two .o files.
3142N/ACOMPONENT_POST_UNPACK_ACTION= \
3142N/A $(RM) $(COMPONENT_SRC)/gnu/*.o
3142N/A
3142N/AASLR_MODE = $(ASLR_ENABLE)
3142N/A
3142N/A# common targets
3142N/Abuild: $(BUILD_64)
4076N/A
3142N/Ainstall: $(INSTALL_64)
3142N/A
2247N/Atest: $(NO_TESTS)
2247N/A
2247N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2247N/A
2247N/Ainclude ../../make-rules/depend.mk
3431N/A