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