Makefile revision 3651
842ae4bd224140319ae7feec1872b93dfd491143fielding# CDDL HEADER START
842ae4bd224140319ae7feec1872b93dfd491143fielding# The contents of this file are subject to the terms of the
842ae4bd224140319ae7feec1872b93dfd491143fielding# Common Development and Distribution License (the "License").
842ae4bd224140319ae7feec1872b93dfd491143fielding# You may not use this file except in compliance with the License.
71da3cca78eea6010f89b139ecadb79e6d213c4fnd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
71da3cca78eea6010f89b139ecadb79e6d213c4fnd# See the License for the specific language governing permissions
71da3cca78eea6010f89b139ecadb79e6d213c4fnd# and limitations under the License.
71da3cca78eea6010f89b139ecadb79e6d213c4fnd# When distributing Covered Code, include this CDDL HEADER in each
71da3cca78eea6010f89b139ecadb79e6d213c4fnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b0fb330a8581c8bfab5e523084f9f39264a52b12gstein# If applicable, add the following below this CDDL HEADER, with the
f4c310fd2555c6faca1f980f00b161eadb089023gstein# fields enclosed by brackets "[]" replaced with your own identifying
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# information: Portions Copyright [yyyy] [name of copyright owner]
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# CDDL HEADER END
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
f4c310fd2555c6faca1f980f00b161eadb089023gsteinCOMPONENT_PROJECT_URL= ftp://ftp.sendmail.org/pub/sendmail/
b980ad7fdc218b4855cde9f75a747527f50c554dwroweCOMPONENT_ARCHIVE= $(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz
2acd42d5591f6db91fc3716300ecce1818e6fc14gstein sha256:f5a497151abd8f341cca0736c3f9bd703d574d93146b2989689dff6d7a445d75
f39230a531b23d94f86a087963299bbe2e431a4agsteinCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
02fed5190fb8d69dbb70fb2330526fff85af1c41gstein# Although we build 32_and_64, everything except libmilter just wants 64,
02fed5190fb8d69dbb70fb2330526fff85af1c41gstein# which is why the macros just below only have values for 64. libmilter
f4c310fd2555c6faca1f980f00b161eadb089023gstein# is dealt with further below.
f4c310fd2555c6faca1f980f00b161eadb089023gsteinPKG_PROTO_DIRS += $(BUILD_DIR_64)/obj.SunOS.$(OS_VERSION).$(ARCH)
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe# Userland default includes -mt which links with libthread which we don't need.
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe# We set ARCH to match sendmail's configure-like script: on x86, it simply
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe# uses 'uname -m', but on sparc it shortens "sun4*" into "sun4".
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe# libmilter is built 32- and 64-bit, but its Makefile installs into a common
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe# location, so we use the macro below in its manifest to distinguish between
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe# the different built objects.
f4c310fd2555c6faca1f980f00b161eadb089023gstein# This appends "+Sun" to the version string, which we do for historical
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe# reasons. If we did this via patch, then we would have to revise the patch
f4c310fd2555c6faca1f980f00b161eadb089023gstein# with every new release, since the version string changes every time.
f4c310fd2555c6faca1f980f00b161eadb089023gsteinCOMPONENT_PREP_ACTION = $(GSED) -i -e 's/\(Version\[\] = "8\.[^"]*\)/\1+Sun/' \
f4c310fd2555c6faca1f980f00b161eadb089023gstein# libmilter and sendmail must come before include, so appending to the default
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe# value of LINT_FLAGS will not work; we must redefine it here.
49cea03e96dc4707bce15d6318eb013cb8668d96minfrinSM_INCLUDES= -I$(SM_BUILD_DIR)/libmilter -I$(SOURCE_DIR)/sendmail \
98e9c4a310bb623ff788680f88b6bd200ff36a24wrowe# mailq's Makefile doesn't grok the 32- and 64-bit build. We just want 64.
98e9c4a310bb623ff788680f88b6bd200ff36a24wrowe# So we clean before we build, and the last build (64) wins, which is what
98e9c4a310bb623ff788680f88b6bd200ff36a24wroweCOMPONENT_POST_INSTALL_ACTION += cd $(FILE_DIR)/aux ; $(GMAKE) install ;
98e9c4a310bb623ff788680f88b6bd200ff36a24wrowe $(CP) $(FILE_DIR)/cf/domain/solaris-generic.m4 $(@D)/cf/domain/ ;
f4c310fd2555c6faca1f980f00b161eadb089023gstein# The transforms below abstract out the 32- or 64-bit specific parts of
f4c310fd2555c6faca1f980f00b161eadb089023gstein# the results, so we can use a common "all" master file.
f4c310fd2555c6faca1f980f00b161eadb089023gsteinCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe '-e "s|$(SM_BUILD_SUB_DIR)|\\$$(SM_BUILD_SUB_DIR)|g" ' \
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe '-e "s|$(OS_VERSION)|\\$$(OS_VERSION)|g" ' \
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe '-e "s|$(ARCH)|\\$$(ARCH)|g" ' \
f4c310fd2555c6faca1f980f00b161eadb089023gstein '-e "s|$(CC)|\\$$(CC)|g" ' \
99d46a23c6eac800f327b29f8009f7d7da986230trawick '-e "s|$(CC_BITS)|\\$$(CC_BITS)|g" '
f4c310fd2555c6faca1f980f00b161eadb089023gstein# common targets