Makefile revision 3651
2N/A# The contents of this file are subject to the terms of the 2N/A# Common Development and Distribution License (the "License"). 2N/A# You may not use this file except in compliance with the License. 2N/A# See the License for the specific language governing permissions 2N/A# and limitations under the License. 2N/A# When distributing Covered Code, include this CDDL HEADER in each 2N/A# If applicable, add the following below this CDDL HEADER, with the 2N/A# fields enclosed by brackets "[]" replaced with your own identifying 2N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. 2N/A# Although we build 32_and_64, everything except libmilter just wants 64, 2N/A# which is why the macros just below only have values for 64. libmilter 2N/A# is dealt with further below. 2N/A# Userland default includes -mt which links with libthread which we don't need. 2N/A# We set ARCH to match sendmail's configure-like script: on x86, it simply 2N/A# uses 'uname -m', but on sparc it shortens "sun4*" into "sun4". 2N/A# libmilter is built 32- and 64-bit, but its Makefile installs into a common 2N/A# location, so we use the macro below in its manifest to distinguish between 2N/A# the different built objects. 2N/A# This appends "+Sun" to the version string, which we do for historical 2N/A# reasons. If we did this via patch, then we would have to revise the patch 2N/A# with every new release, since the version string changes every time. 2N/A# libmilter and sendmail must come before include, so appending to the default 2N/A# value of LINT_FLAGS will not work; we must redefine it here. 2N/A# mailq's Makefile doesn't grok the 32- and 64-bit build. We just want 64. 2N/A# So we clean before we build, and the last build (64) wins, which is what 2N/A# The transforms below abstract out the 32- or 64-bit specific parts of 2N/A# the results, so we can use a common "all" master file. 2N/A '-e "s|$(SM_BUILD_SUB_DIR)|\\$$(SM_BUILD_SUB_DIR)|g" ' \
2N/A '-e "s|$(OS_VERSION)|\\$$(OS_VERSION)|g" ' \
2N/A '-e "s|$(ARCH)|\\$$(ARCH)|g" ' \
2N/A '-e "s|$(CC)|\\$$(CC)|g" ' \
2N/A '-e "s|$(CC_BITS)|\\$$(CC_BITS)|g" '