Makefile revision 5680
5053N/A#
5053N/A# CDDL HEADER START
5053N/A#
5053N/A# The contents of this file are subject to the terms of the
5053N/A# Common Development and Distribution License (the "License").
5053N/A# You may not use this file except in compliance with the License.
5053N/A#
5053N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5053N/A# or http://www.opensolaris.org/os/licensing.
5053N/A# See the License for the specific language governing permissions
5053N/A# and limitations under the License.
5053N/A#
5053N/A# When distributing Covered Code, include this CDDL HEADER in each
5053N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5053N/A# If applicable, add the following below this CDDL HEADER, with the
5053N/A# fields enclosed by brackets "[]" replaced with your own identifying
5053N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5053N/A#
5053N/A# CDDL HEADER END
5053N/A#
5053N/A
5053N/A#
5452N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5053N/A#
5680N/ABUILD_BITS= 64_and_32
5053N/Ainclude ../../make-rules/shared-macros.mk
5053N/A
5053N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
5680N/APATH=$(PARFAIT_TOOLS):$(GNUBIN):$(SPRO_VROOT)/bin:$(USRBINDIR)
5680N/Aelse
5680N/APATH=$(GNUBIN):$(SPRO_VROOT)/bin:$(USRBINDIR)
5053N/Aendif
5053N/A
5053N/ACOMPONENT_NAME= cyrus-sasl
5053N/A#
5053N/A# If you update the COMPONENT_VERSION, you should make a corresponding change
5053N/A# in the dependency at the bottom of the openldap/openldap.p5m file.
5053N/A#
5053N/ACOMPONENT_VERSION= 2.1.26
5680N/ACOMPONENT_PROJECT_URL= ftp://ftp.cyrusimap.org/cyrus-sasl
5053N/ACOMPONENT_ARCHIVE_HASH= \
5053N/A sha256:8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
5053N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE)
5053N/A
5053N/A# Check DONOTUSE items when updating the version and hash
5053N/ADONOTUSE= $(SOURCE_DIR)/mac $(SOURCE_DIR)/dlcompat-20010505
5053N/A
5053N/ACOMPONENT_BUGDB= library/libsasl
5053N/A
5053N/ATPNO= 21351
5053N/A
5053N/ASASL2.32 = $(USRLIBDIR)/sasl2
5053N/ASASL2.64 = $(USRLIBDIR)/sasl2/$(MACH64)
5680N/ASASL_CONFDIR = $(ETCDIR)/sasl
5053N/APROTO_CONFDIR = $(PROTO_DIR)$(SASL_CONFDIR)
5053N/A
5087N/A# Migrated from ON in S12, including stuff from system/header, so this
5087N/A# cannot be installed on an S11 box.
5087N/Aifeq ($(BUILD_TYPE), evaluation)
5087N/APUBLISH_STAMP=
5087N/Aendif
5087N/A
5680N/AINSTALL_TARGET=
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5053N/A
5680N/A# This causes the default compilation argument to be wrong and isn't necessary.
5680N/Astudio_MT=
5680N/A
5680N/ACPPFLAGS += -I$(USRINCDIR)/openldap
5680N/ALDFLAGS += -lbsm -lscf -lresolv $(CC_BITS)
5053N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
5680N/ACONFIGURE_OPTIONS += --enable-auth-sasldb
5053N/ACONFIGURE_OPTIONS += --with-dblib=berkeley
5053N/ACONFIGURE_OPTIONS += --with-saslauthd=$(USRSBINDIR)/saslauthd
5053N/ACONFIGURE_OPTIONS += --with-gss_impl=seam
5680N/ACONFIGURE_OPTIONS += --without-gnu-ld
5053N/ACONFIGURE_OPTIONS.32 += --with-plugindir=$(SASL2.32)
5053N/ACONFIGURE_OPTIONS.64 += --with-plugindir=$(SASL2.64)
5053N/ACONFIGURE_OPTIONS.32 += --with-sasldir=$(SASL2.32)
5053N/ACONFIGURE_OPTIONS.64 += --with-sasldir=$(SASL2.64)
5053N/ACONFIGURE_OPTIONS += --with-ipctype=doors
5053N/ACONFIGURE_OPTIONS += --with-ldap=$(USRDIR)
5680N/ACONFIGURE_OPTIONS += --enable-sample
5053N/ACONFIGURE_OPTIONS += --with-configdir=$(ETCDIR)/sasl
5053N/A
5053N/APKG_PROTO_DIRS += $(SOURCE_DIR)/doc $(COMPONENT_DIR)/Solaris
5053N/A
5053N/A# TODO -- make these work or rule them out in Phase II, second integration
5053N/A#CONFIGURE_OPTIONS += --with-dbpath=$(SASL_CONFDIR)/sasl2db
5053N/A#CONFIGURE_OPTIONS += --with-mysql=$?????
5053N/A#CONFIGURE_OPTIONS += --enable-sql=yes
5053N/A#CONFIGURE_OPTIONS += --enable-ldapdb=yes
5053N/A# postfix or AD might need --enable-login and --enable-ntlm
5053N/A#CONFIGURE_OPTIONS += --enable-login=yes
5053N/A#CONFIGURE_OPTIONS += --enable-ntlm=yes
5053N/A# test xalias levels:
5053N/A#CFLAGS += -xalias_level=strict
5053N/A
5053N/ALINTINCDIR= $(SOURCE_DIR)/include/sasl
5053N/A
5053N/AINCLIST= hmac-md5.h \
5053N/A md5.h \
5053N/A md5global.h \
5053N/A prop.h \
5053N/A sasl.h \
5053N/A saslplug.h \
5053N/A saslutil.h
5053N/A
5053N/ACFG_COMPILE=/usr/share/automake-1.15
5053N/A
5053N/ACOMPONENT_PREP_ACTION = ( cd $(@D) && \
5053N/A ( cd config && ln -s $(CFG_COMPILE)/compile . ) ; \
5053N/A ( cd saslauthd/config && ln -s $(CFG_COMPILE)/compile . ); \
5680N/A $(AUTORECONF) -m --force -v \
5053N/A -I $(COMPONENT_DIR)/m4 \
5053N/A -I $(SOURCE_DIR)/cmulocal \
5053N/A -I $(SOURCE_DIR)/config ; \
5053N/A )
5053N/A
5053N/A# Remove some things we don't use and aren't in the TPNO
5053N/A# Make an include/sasl directory to make llib-lsasl2 match llib-lsasl2.ln
5053N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5053N/A -$(RM) -r $(DONOTUSE) ; \
5053N/A $(MKDIR) $(LINTINCDIR) ; \
5053N/A ( cd $(LINTINCDIR) && \
5053N/A ( for i in $(INCLIST) ; do \
5053N/A ln -s ../$$i $$i ; \
5053N/A done ) \
5053N/A )
5053N/A
5053N/AINSTALL_32 += $(PROTOUSRLIBDIR)/libsasl.so.1
5053N/AINSTALL_64 += $(PROTOUSRLIBDIR64)/libsasl.so.1
5053N/A
5053N/A# common targets
5053N/Ainstall: build $(INSTALL_32_and_64)
5053N/A
5053N/A$(BUILD_32): COMPONENT_POST_BUILD_ACTION = \
5053N/A $(LD) -F libsasl2.so.3 -o $(BUILD_DIR)/$(MACH32)/lib/.libs/libsasl.so.1 \
5680N/A -G -hlibsasl.so.1 $(LD_B_DIRECT) $(LD_Z_DEFS) -M$(COMPONENT_DIR)/mapfile
5053N/A
5053N/A$(BUILD_64): COMPONENT_POST_BUILD_ACTION = \
5053N/A $(LD) -F libsasl2.so.3 -64 -G \
5053N/A -o $(BUILD_DIR)/$(MACH64)/lib/.libs/libsasl.so.1 \
5680N/A -hlibsasl.so.1 $(LD_B_DIRECT) -Wl,$(LD_Z_DEFS) -Wl,-M$(COMPONENT_DIR)/mapfile
5053N/A
5053N/A$(PROTOUSRLIBDIR)/libsasl.so.1: $(BUILD_DIR)/$(MACH32)/lib/.libs/libsasl.so.1
5053N/A $(CP) $< $@
5053N/A
5053N/A$(PROTOUSRLIBDIR64)/libsasl.so.1: $(BUILD_DIR)/$(MACH64)/lib/.libs/libsasl.so.1
5053N/A $(CP) $< $@
5053N/A
5053N/AASLR_MODE = $(ASLR_ENABLE)
5053N/A
5053N/AREQUIRED_PACKAGES += database/berkeleydb-5
5053N/AREQUIRED_PACKAGES += developer/build/automake-115
5053N/AREQUIRED_PACKAGES += library/openldap
5053N/AREQUIRED_PACKAGES += library/security/openssl
5053N/AREQUIRED_PACKAGES += system/library/security/gss