Makefile revision 844
012a352f4b26cfd874db8d06debc495c2303e8b2Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# CDDL HEADER START
50722c0d550a63d4a2b8f34e907b693a81d864e0Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# The contents of this file are subject to the terms of the
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Common Development and Distribution License (the "License").
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# You may not use this file except in compliance with the License.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
2320f230995995595438a9d9301d84931fd266ceMark Andrews#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinclude ../../make-rules/shared-macros.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_NAME= memcached
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyCOMPONENT_VERSION= 1.4.5
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_PROJECT_URL= http://memcached.org/
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyCOMPONENT_ARCHIVE_HASH= \
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley sha256:9571b4b85484e46b3b10f07ccba77a1fa97d60660b32859f990effefb3005f91
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCOMPONENT_ARCHIVE_URL= http://memcached.googlecode.com/files/$(COMPONENT_ARCHIVE)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceinclude ../../make-rules/prep.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinclude ../../make-rules/configure.mk
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyinclude ../../make-rules/ips.mk
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David LawrencePATH=/usr/bin:/usr/gnu/bin:/usr/perl5/bin
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
fcb54ce0a4f7377486df5bec83b3aa4711bf4131Mark AndrewsCOMPONENT_PRE_CONFIGURE_ACTION = \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence ($(CLONEY) $(SOURCE_DIR) $(@D))
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceCOMPONENT_TEST_TARGETS= test
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
460b427411b72da26b1836b9424e2e70d65d9394David Lawrencestudio_OPT = -xO5
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCFLAGS += -D__ATTRIBUTE_DISABLED
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/lib/$(MACH64)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCONFIGURE_OPTIONS.64 += --with-libevent=/usr/lib/${MACH64}
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark AndrewsCONFIGURE_OPTIONS += --enable-dtrace --disable-docs --disable-coverage
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark AndrewsCONFIGURE_OPTIONS += --localstatedir=/var
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# common targets
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrencebuild: $(BUILD_64)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrenceinstall: $(INSTALL_64)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrencetest: $(TEST_64)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
596912ee9ca8eb14d30707ec286ab5d28bd39b3eMark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
8319af16557b81eba3277ee67215285f0823b587Mark Andrews
8319af16557b81eba3277ee67215285f0823b587Mark Andrewsinclude ../../make-rules/depend.mk
aee5e9cbacd8f88325840b8a498876f4319b0890Mark Andrews