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