components/sendmail/Makefile
author John Beck <John.Beck@Oracle.COM>
Mon, 19 Jan 2015 20:04:39 -0800
changeset 3651 1ca146aae014
parent 3649 4006eaaa7d29
child 3817 30b42c38bbc4
permissions -rw-r--r--
20373507 migrate sendmail & friends to 64-bit
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
#
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
COMPONENT_NAME=		sendmail
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
COMPONENT_VERSION=	8.14.9
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	ftp://ftp.sendmail.org/pub/sendmail/
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    31
    sha256:f5a497151abd8f341cca0736c3f9bd703d574d93146b2989689dff6d7a445d75
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).sig
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_BUGDB=	utility/sendmail
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    35
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    36
TPNO=			7435
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    37
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    39
include ../../make-rules/justmake.mk
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    41
include ../../make-rules/lint-libraries.mk
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    42
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    43
# Although we build 32_and_64, everything except libmilter just wants 64,
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    44
# which is why the macros just below only have values for 64.  libmilter
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    45
# is dealt with further below.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    46
PKG_PROTO_DIRS += $(BUILD_DIR_64)
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    47
PKG_PROTO_DIRS += $(BUILD_DIR_64)/obj.SunOS.$(OS_VERSION).$(ARCH)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    48
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    49
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files/man
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    50
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    51
# Userland default includes -mt which links with libthread which we don't need.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    52
studio_MT =
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    53
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    54
# We set ARCH to match sendmail's configure-like script: on x86, it simply
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    55
# uses 'uname -m', but on sparc it shortens "sun4*" into "sun4".
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    56
ARCH	:=	$(shell uname -m)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    57
ifeq ($(findstring sun4,$(ARCH)),sun4)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    58
ARCH	=	sun4
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    59
endif
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    60
FILE_DIR=$(COMPONENT_DIR)/files
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    61
M4_ARG=-DSUN_HIDE_INTERNAL_DETAILS
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    62
SM_BUILD_SUB_DIR=obj.SunOS.$(OS_VERSION).$(ARCH)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    63
SM_BUILD_DIR=$(@D)/$(SM_BUILD_SUB_DIR)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    64
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    65
# libmilter is built 32- and 64-bit, but its Makefile installs into a common
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    66
# location, so we use the macro below in its manifest to distinguish between
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    67
# the different built objects.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    68
PKG_MACROS += LIBMILTER_BUILD_DIR=$(SM_BUILD_SUB_DIR)
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    69
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    70
CLEAN_PATHS += $(FILE_DIR)/aux/mailq
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    71
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    72
# This appends "+Sun" to the version string, which we do for historical
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    73
# reasons.  If we did this via patch, then we would have to revise the patch
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    74
# with every new release, since the version string changes every time.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    75
COMPONENT_PREP_ACTION =	$(GSED) -i -e 's/\(Version\[\] = "8\.[^"]*\)/\1+Sun/' \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    76
    $(COMPONENT_SRC)/sendmail/version.c
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    77
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    78
# libmilter and sendmail must come before include, so appending to the default
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    79
# value of LINT_FLAGS will not work; we must redefine it here.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    80
SM_DEFS=	-DSOLARIS=21200
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    81
SM_INCLUDES=	-I$(SM_BUILD_DIR)/libmilter -I$(SOURCE_DIR)/sendmail \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    82
    -I$(SOURCE_DIR)/include -I$(SOURCE_DIR) -I.
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    83
LINT_FLAGS =	-nsvx $(SM_DEFS) $(SM_INCLUDES)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    84
CCOPTS =	-erroff=E_STATEMENT_NOT_REACHED $(CC_BITS)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    85
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    86
COMPONENT_BUILD_ARGS += CC="$(CC)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    87
COMPONENT_BUILD_ARGS += CCOPTS="$(CCOPTS)"
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    88
COMPONENT_BUILD_ARGS += CCLINK="$(CC)"
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    89
COMPONENT_BUILD_ARGS += CC_PIC="$(CC_PIC)"
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    90
COMPONENT_BUILD_ARGS += LDOPTS="$(CC_BITS)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    91
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    92
# mailq's Makefile doesn't grok the 32- and 64-bit build. We just want 64.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    93
# So we clean before we build, and the last build (64) wins, which is what
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    94
# we want.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    95
COMPONENT_POST_BUILD_ACTION = cd $(FILE_DIR)/aux ; \
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
    96
    $(GMAKE) BITS=$(BITS) clean build
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    97
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    98
COMPONENT_POST_INSTALL_ACTION += cd $(FILE_DIR)/aux ; $(GMAKE) install ;
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    99
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   100
    $(CP) $(FILE_DIR)/cf/domain/solaris-generic.m4 $(@D)/cf/domain/ ;
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   101
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   102
    $(CP) $(FILE_DIR)/cf/cf/sendmail.mc $(@D)/cf/cf/ ;
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   103
COMPONENT_POST_INSTALL_ACTION += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   104
    cd $(@D)/cf/cf ; \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   105
    $(RM) submit.cf ; \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   106
    m4 $(M4_ARG) ../m4/cf.m4 submit.mc > submit.cf ; \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   107
    m4 $(M4_ARG) ../m4/cf.m4 sendmail.mc > sendmail.cf
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   108
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   109
COMPONENT_TEST_ARGS += CC="$(CC)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   110
COMPONENT_TEST_ARGS += CCOPTS="$(CCOPTS)"
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   111
COMPONENT_TEST_ARGS += CCLINK="$(CC)"
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   112
COMPONENT_TEST_ARGS += CC_PIC="$(CC_PIC)"
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   113
COMPONENT_TEST_ARGS += LDOPTS="$(CC_BITS)"
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   114
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   115
COMPONENT_TEST_ENV +=	PATH=/usr/gnu/bin:/usr/bin
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   116
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   117
# The transforms below abstract out the 32- or 64-bit specific parts of
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   118
# the results, so we can use a common "all" master file.
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   119
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   120
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   121
COMPONENT_TEST_TRANSFORMS += \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   122
    '-e "s|$(SM_BUILD_SUB_DIR)|\\$$(SM_BUILD_SUB_DIR)|g" ' \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   123
    '-e "s|$(OS_VERSION)|\\$$(OS_VERSION)|g" ' \
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   124
    '-e "s|$(ARCH)|\\$$(ARCH)|g" ' \
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   125
    '-e "s|$(CC)|\\$$(CC)|g" ' \
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   126
    '-e "s|$(CC_BITS)|\\$$(CC_BITS)|g" '
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   127
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   128
ASLR_MODE = $(ASLR_ENABLE)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   129
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   130
INSTALL_64=
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   131
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   132
# common targets
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   133
build:		$(BUILD_32_and_64)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   134
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   135
install:	$(INSTALL_32_and_64)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   136
3651
1ca146aae014 20373507 migrate sendmail & friends to 64-bit
John Beck <John.Beck@Oracle.COM>
parents: 3649
diff changeset
   137
test:		$(TEST_32_and_64)
3649
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   138
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   139
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   140
4006eaaa7d29 20355401 add sendmail to Userland
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
   141
include ../../make-rules/depend.mk