Makefile revision 2899
358N/A#
358N/A# CDDL HEADER START
358N/A#
358N/A# The contents of this file are subject to the terms of the
358N/A# Common Development and Distribution License (the "License").
358N/A# You may not use this file except in compliance with the License.
358N/A#
358N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
358N/A# or http://www.opensolaris.org/os/licensing.
358N/A# See the License for the specific language governing permissions
358N/A# and limitations under the License.
358N/A#
358N/A# When distributing Covered Code, include this CDDL HEADER in each
358N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
358N/A# If applicable, add the following below this CDDL HEADER, with the
358N/A# fields enclosed by brackets "[]" replaced with your own identifying
358N/A# information: Portions Copyright [yyyy] [name of copyright owner]
358N/A#
358N/A# CDDL HEADER END
358N/A
358N/A#
2899N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
358N/A#
358N/A
358N/Ainclude ../../make-rules/shared-macros.mk
358N/A
358N/ACOMPONENT_NAME= libmemcached
358N/ACOMPONENT_VERSION= 0.16
358N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
358N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:d4fb3a64dc592c104caa4e98bc11f209fcb97eecdeb7f506797320dea75b9459
358N/ACOMPONENT_ARCHIVE_URL= http://launchpadlibrarian.net/33299595/${COMPONENT_ARCHIVE}
358N/ACOMPONENT_PROJECT_URL= http://libmemcached.org/libMemcached.html
1258N/ACOMPONENT_BUGDB= database/memcached
358N/A
2899N/ATPNO= 5582
2899N/A
358N/Ainclude $(WS_TOP)/make-rules/prep.mk
358N/Ainclude $(WS_TOP)/make-rules/configure.mk
358N/Ainclude $(WS_TOP)/make-rules/ips.mk
358N/A
358N/ACFLAGS += -xstrconst
358N/ALDFLAGS += -lsocket -lnsl
358N/A
358N/ACONFIGURE_ENV += MAKE=$(GMAKE)
358N/A
358N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
358N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
358N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
358N/A
358N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)
358N/A
358N/A# need some files in $(SOURCE_DIR)/docs during build
358N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
358N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
358N/A
358N/A# need /usr/perl5/bin on path to access pod2man perl script, used by
358N/A# the build to create docs
358N/ACOMPONENT_BUILD_ENV += PATH=/usr/perl5/bin:$(PATH)
358N/A
358N/ACOMPONENT_BUILD_ENV += MAKE="$(GMAKE)"
358N/A
358N/A# Libmemcached's configure script sets an incorrect CFLAGS in the Makefiles
358N/A# it generates. Make sure we use the correct one by passing CFLAGS in
358N/A# as a build argument (CFLAGS in the environment won't take precedence
358N/A# over the Makefile one).
358N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
358N/A
358N/A# Similarly, set pkglibdir in the arguments to gmake; otherwise
358N/A# the Makefile sets runpath to a non-existent /usr/lib/libmemcached directory.
358N/ACOMPONENT_BUILD_ARGS += pkglibdir=/usr/lib
358N/A
1639N/AASLR_MODE = $(ASLR_ENABLE)
1639N/A
358N/ACOMPONENT_INSTALL_ENV += DESTDIR=$(PROTO_DIR)
358N/A
358N/ACOMPONENT_TEST_TARGETS = test
358N/A
358N/A# common targets
358N/A
358N/Abuild: $(BUILD_32_and_64)
358N/A
358N/Ainstall: $(INSTALL_32_and_64)
358N/A
358N/A# Tests fail, probably because memcached is not running.
358N/Atest: $(TEST_32_and_64)
358N/A
358N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
358N/A
358N/Ainclude $(WS_TOP)/make-rules/depend.mk