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