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