Makefile revision 2899
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync#
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# CDDL HEADER START
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync#
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# The contents of this file are subject to the terms of the
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# Common Development and Distribution License (the "License").
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# You may not use this file except in compliance with the License.
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync#
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# or http://www.opensolaris.org/os/licensing.
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# See the License for the specific language governing permissions
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# and limitations under the License.
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync#
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# When distributing Covered Code, include this CDDL HEADER in each
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# If applicable, add the following below this CDDL HEADER, with the
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# fields enclosed by brackets "[]" replaced with your own identifying
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync#
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# CDDL HEADER END
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync#
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync#
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync#
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncinclude ../../make-rules/shared-macros.mk
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncCOMPONENT_NAME= getopt
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncCOMPONENT_VERSION= 1.1.5
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncCOMPONENT_PROJECT_URL= http://software.frodo.looijaard.name/getopt/
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncCOMPONENT_ARCHIVE_HASH= \
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync sha256:11893276b94b1629606ab75772143918a5713259950fbf4216288e246f19fbb6
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/$(COMPONENT_ARCHIVE)
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncCOMPONENT_BUGDB= utility/gnu-getopt
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncTPNO= 11356
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsync
e433ea25f22e39143efa35e99b05182b4a6f7dcevboxsyncinclude ../../make-rules/prep.mk
include ../../make-rules/justmake.mk
include ../../make-rules/ips.mk
# getopt doesn't use configure, override the hard-wired values in the Makefile.
CC += "$(CC_BITS)"
COMPONENT_BUILD_ARGS+= CC="$(CC)"
COMPONENT_BUILD_ARGS+= CFLAGS="$(CFLAGS)"
COMPONENT_BUILD_ARGS+= LIBCGETOPT=0
COMPONENT_INSTALL_ARGS+= prefix=/usr/gnu
COMPONENT_INSTALL_ARGS+= mandir=/usr/gnu/share/man
COMPONENT_INSTALL_ARGS+= CC="$(CC)"
COMPONENT_INSTALL_ARGS+= CFLAGS="$(CFLAGS)"
# Stupid source tarball distribution contains two .o files.
COMPONENT_POST_UNPACK_ACTION= \
$(RM) $(COMPONENT_SRC)/gnu/*.o
ASLR_MODE = $(ASLR_ENABLE)
# common targets
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk