Makefile revision 4337
10139N/A#
10139N/A# CDDL HEADER START
10139N/A#
12151N/A# The contents of this file are subject to the terms of the
10139N/A# Common Development and Distribution License (the "License").
10139N/A# You may not use this file except in compliance with the License.
10139N/A#
10139N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10139N/A# or http://www.opensolaris.org/os/licensing.
10139N/A# See the License for the specific language governing permissions
10139N/A# and limitations under the License.
10139N/A#
10139N/A# When distributing Covered Code, include this CDDL HEADER in each
14030N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14030N/A# If applicable, add the following below this CDDL HEADER, with the
14133N/A# fields enclosed by brackets "[]" replaced with your own identifying
12578N/A# information: Portions Copyright [yyyy] [name of copyright owner]
10139N/A#
10139N/A# CDDL HEADER END
10139N/A#
11256N/A
10142N/A#
12773N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
12773N/A#
12773N/A
11358N/Ainclude ../../make-rules/shared-macros.mk
10139N/A
11358N/ACOMPONENT_NAME= getopt
11358N/ACOMPONENT_VERSION= 1.1.6
11358N/ACOMPONENT_PROJECT_URL= http://frodo.looijaard.name/project/getopt/
11358N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
11358N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
11358N/ACOMPONENT_ARCHIVE_HASH= \
14126N/A sha256:d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe
11002N/ACOMPONENT_ARCHIVE_URL= http://frodo.looijaard.name/system/files/software/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
13025N/ACOMPONENT_BUGDB= utility/gnu-getopt
13025N/A
13907N/ATPNO= 21550
13907N/A
13664N/Ainclude $(WS_MAKE_RULES)/prep.mk
13664N/Ainclude $(WS_MAKE_RULES)/justmake.mk
14520N/Ainclude $(WS_MAKE_RULES)/ips.mk
14467N/A
14362N/A# getopt doesn't use configure, override the hard-wired values in the Makefile.
15230N/ACC += "$(CC_BITS)"
14362N/ACOMPONENT_BUILD_ARGS+= CC="$(CC)"
14568N/ACOMPONENT_BUILD_ARGS+= CFLAGS="$(CFLAGS)"
14568N/ACOMPONENT_BUILD_ARGS+= LIBCGETOPT=0
10139N/A
10139N/ACOMPONENT_INSTALL_ARGS+= prefix=/usr/gnu
10139N/ACOMPONENT_INSTALL_ARGS+= mandir=/usr/gnu/share/man
10139N/ACOMPONENT_INSTALL_ARGS+= CC="$(CC)"
10139N/ACOMPONENT_INSTALL_ARGS+= CFLAGS="$(CFLAGS)"
10139N/A
10139N/A# Stupid source tarball distribution contains two .o files.
10139N/ACOMPONENT_POST_UNPACK_ACTION= \
10139N/A $(RM) $(COMPONENT_SRC)/gnu/*.o
10139N/A
10139N/ACOMPONENT_TEST_ENV += PATH=$(BUILD_DIR_$(BITS)):$(PATH)
10139N/ACOMPONENT_TEST_TARGETS = test
10139N/A
10139N/AASLR_MODE = $(ASLR_ENABLE)
10139N/A
10139N/Abuild: $(BUILD_64)
10139N/A
10139N/Ainstall: $(INSTALL_64)
10139N/A
10139N/Atest: $(TEST_64)
10139N/A
10139N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
10139N/A
10139N/A
10139N/AREQUIRED_PACKAGES += system/library
10139N/A