Makefile revision 5249
5241N/A#
5241N/A# CDDL HEADER START
5241N/A#
5241N/A# The contents of this file are subject to the terms of the
5241N/A# Common Development and Distribution License (the "License").
5241N/A# You may not use this file except in compliance with the License.
5241N/A#
5241N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5241N/A# or http://www.opensolaris.org/os/licensing.
5241N/A# See the License for the specific language governing permissions
5241N/A# and limitations under the License.
5241N/A#
5241N/A# When distributing Covered Code, include this CDDL HEADER in each
5241N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5241N/A# If applicable, add the following below this CDDL HEADER, with the
5241N/A# fields enclosed by brackets "[]" replaced with your own identifying
5241N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5241N/A#
5241N/A# CDDL HEADER END
5241N/A#
5241N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5241N/A#
5241N/Ainclude ../../make-rules/shared-macros.mk
5241N/A
5241N/ACOMPONENT_NAME= serf
5241N/ACOMPONENT_VERSION= 1.3.8
5241N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5241N/ACOMPONENT_PROJECT_URL= http://serf.googlecode.com/
5241N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
5241N/ACOMPONENT_ARCHIVE_HASH= \
5241N/A sha256:e0500be065dbbce490449837bb2ab624e46d64fc0b090474d9acaa87c82b2590
5241N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)svn/src_releases/$(COMPONENT_ARCHIVE)
5241N/ACOMPONENT_BUGDB= library/libserf
5241N/A
5241N/ATPNO= 22208
5241N/A
5241N/Ainclude $(WS_MAKE_RULES)/prep.mk
5241N/A# Needed by the test: target. We override build and install.
5241N/Ainclude $(WS_MAKE_RULES)/justmake.mk
5241N/Ainclude $(WS_MAKE_RULES)/ips.mk
5241N/A
5241N/AUSED_APR = /usr/apr/1.5
5241N/AUSED_APU = /usr/apr-util/1.5
5241N/A
5241N/AAPR_32 = $(USED_APR)/bin/apr-1-config
5241N/AAPR_64 = $(USED_APR)/bin/$(MACH64)/apr-1-config
5241N/AAPU_32 = $(USED_APU)/bin/apu-1-config
5241N/AAPU_64 = $(USED_APU)/bin/$(MACH64)/apu-1-config
5241N/ASERFLIBPATH_32 = -R$(USED_APR)/lib -R$(USED_APU)/lib
5241N/ASERFLIBPATH_64 = -R$(USED_APR)/lib/64 -R$(USED_APU)/lib/64
5241N/ASERFLIBDIR_32 = /usr/lib
5241N/ASERFLIBDIR_64 = /usr/lib/64
5241N/A
5241N/A# We have to roll our own as serf is built with scons.
5241N/ASCONS = /usr/bin/scons
5249N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
5241N/ACOMPONENT_BUILD_ARGS += CPPFLAGS=-D__EXTENSIONS__
5241N/ACOMPONENT_BUILD_ARGS += CFLAGS=$(CC_BITS)
5241N/ACOMPONENT_BUILD_ARGS += LINKFLAGS="$(CC_BITS) $(SERFLIBPATH_$(BITS))"
5241N/ACOMPONENT_BUILD_ARGS += APR=$(APR_$(BITS))
5241N/ACOMPONENT_BUILD_ARGS += APU=$(APU_$(BITS))
5241N/ACOMPONENT_BUILD_ARGS += PREFIX=/usr
5241N/ACOMPONENT_BUILD_ARGS += LIBDIR=$(SERFLIBDIR_$(BITS))
5241N/A
5241N/ACOMPONENT_TEST_CMD = $(SCONS)
5241N/A
5241N/ACOMPONENT_TEST_TRANSFORMS += \
5241N/A '-e "/^cc /d" ' \
5241N/A '-e "/warning:/d"' \
5241N/A '-e "/prototype:/d"' \
5241N/A '-e "/argument/d"'
5241N/A
5241N/AASLR_MODE = $(ASLR_ENABLE)
5241N/A
5241N/A$(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep
5241N/A $(RM) -r $(@D) ; $(MKDIR) $(@D)
5241N/A $(CLONEY) $(SOURCE_DIR) $(@D)
5241N/A (cd $(@D) ; $(SCONS) $(COMPONENT_BUILD_ARGS))
5241N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
5241N/A -$(PARFAIT) $(@D)
5241N/Aendif
5241N/A $(TOUCH) $@
5241N/A
5241N/Aconfigure: $(CONFIGURE_32_and_64)
5241N/A
5241N/Abuild: $(BUILD_32_and_64)
5241N/A
5241N/A# As there aren't many files, just get them out of the build directory.
5241N/Ainstall: build
5241N/A
5241N/Atest: $(TEST_32_and_64)
5241N/A
5241N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
5241N/A
5241N/AREQUIRED_PACKAGES += developer/build/scons-27
5241N/AREQUIRED_PACKAGES += library/apr-15
5241N/AREQUIRED_PACKAGES += library/apr-util-15
5241N/AREQUIRED_PACKAGES += library/expat
5241N/AREQUIRED_PACKAGES += library/openldap
5241N/AREQUIRED_PACKAGES += library/security/openssl
5241N/AREQUIRED_PACKAGES += library/zlib
5241N/AREQUIRED_PACKAGES += system/library
5241N/AREQUIRED_PACKAGES += system/library/math