Makefile revision 3916
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jorton# The contents of this file are subject to the terms of the
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jorton# Common Development and Distribution License (the "License").
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jorton# You may not use this file except in compliance with the License.
00f53c09b10014571b639d5e9df993fb188220a6sf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
00f53c09b10014571b639d5e9df993fb188220a6sf# See the License for the specific language governing permissions
459eaf0826f995b73a0dc066f59ea10d2824e72dsf# and limitations under the License.
459eaf0826f995b73a0dc066f59ea10d2824e72dsf# When distributing Covered Code, include this CDDL HEADER in each
459eaf0826f995b73a0dc066f59ea10d2824e72dsf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6d6cd31bddca0b7d9cf9d18e46cd2361530e24f3sf# If applicable, add the following below this CDDL HEADER, with the
6d6cd31bddca0b7d9cf9d18e46cd2361530e24f3sf# fields enclosed by brackets "[]" replaced with your own identifying
6d6cd31bddca0b7d9cf9d18e46cd2361530e24f3sf# information: Portions Copyright [yyyy] [name of copyright owner]
53e9b27aba029b18be814df40bcf6f0428771d1efuankg# CDDL HEADER END
53e9b27aba029b18be814df40bcf6f0428771d1efuankg# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
21da42a6b8f551ef603bd06356d3bf71d6d0c21dsfCOMPONENT_PROJECT_URL= ftp://ftp.sendmail.org/pub/sendmail/
21da42a6b8f551ef603bd06356d3bf71d6d0c21dsfCOMPONENT_ARCHIVE= $(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz
2876a591f17b0c6ed0cf28da929643965e67c953sf sha256:ed1f9e0f2a1a58c9ff94950264a2fc186d6fd237bac66b175d79a2b89a950746
2876a591f17b0c6ed0cf28da929643965e67c953sfCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
6135cc8178d75a52828ad225b1d568cd1e97799erpluem# Although we build 32_and_64, everything except libmilter just wants 64,
6135cc8178d75a52828ad225b1d568cd1e97799erpluem# which is why the macros just below only have values for 64. libmilter
6135cc8178d75a52828ad225b1d568cd1e97799erpluem# is dealt with further below.
44761f3e3072cf78a4997a88bb9a515ca101a1f4covenerPKG_PROTO_DIRS += $(BUILD_DIR_64)/obj.SunOS.$(OS_VERSION).$(ARCH)
c7502880be24058c7fc03771fda61f95bc238339sf# Userland default includes -mt which links with libthread which we don't need.
ca61ccd0c306c2c72df153688ba1b49f3eceed80sf# We set ARCH to match sendmail's configure-like script: on x86, it simply
ca61ccd0c306c2c72df153688ba1b49f3eceed80sf# uses 'uname -m', but on sparc it shortens "sun4*" into "sun4".
b40bfdb714672f972887f9f1f1e154e00125bb68covener# libmilter is built 32- and 64-bit, but its Makefile installs into a common
b40bfdb714672f972887f9f1f1e154e00125bb68covener# location, so we use the macro below in its manifest to distinguish between
b40bfdb714672f972887f9f1f1e154e00125bb68covener# the different built objects.
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinPKG_MACROS += LIBMILTER_BUILD_DIR=$(SM_BUILD_SUB_DIR)
23f1535d6a60817d2846bac0aea230ea475d7dccminfrin# This appends "+Sun" to the version string, which we do for historical
23f1535d6a60817d2846bac0aea230ea475d7dccminfrin# reasons. If we did this via patch, then we would have to revise the patch
23f1535d6a60817d2846bac0aea230ea475d7dccminfrin# with every new release, since the version string changes every time.
23f1535d6a60817d2846bac0aea230ea475d7dccminfrinCOMPONENT_PREP_ACTION = $(GSED) -i -e 's/\(Version\[\] = "8\.[^"]*\)/\1+Sun/' \
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung# libmilter and sendmail must come before include, so appending to the default
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung# value of LINT_FLAGS will not work; we must redefine it here.
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungSM_INCLUDES= -I$(SM_BUILD_DIR)/libmilter -I$(SOURCE_DIR)/sendmail \
cfa64348224b66dd1c9979b809406c4d15b1c137fielding# mailq's Makefile doesn't grok the 32- and 64-bit build. We just want 64.
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim# So we clean before we build, and the last build (64) wins, which is what
cfa64348224b66dd1c9979b809406c4d15b1c137fieldingCOMPONENT_POST_INSTALL_ACTION += cd $(FILE_DIR)/aux ; $(GMAKE) install ;
cfa64348224b66dd1c9979b809406c4d15b1c137fielding $(CP) $(FILE_DIR)/cf/domain/solaris-generic.m4 $(@D)/cf/domain/ ;
# Without the two $(CP)s below we would pick up the version of submit.cf
test: $(TEST_32_and_64)