2008-08-28 04:33:50 +00:00
|
|
|
divert(-1)
|
|
|
|
#
|
|
|
|
# Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# By using this file, you agree to the terms and conditions set
|
|
|
|
# forth in the LICENSE file which can be found at the top level of
|
|
|
|
# the sendmail distribution.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Definitions for Makefile construction for sendmail
|
|
|
|
#
|
2012-12-29 20:13:40 +00:00
|
|
|
# $Id: switch.m4,v 8.18 2012/01/21 00:07:07 ashish Exp $
|
2008-08-28 04:33:50 +00:00
|
|
|
#
|
|
|
|
divert(0)dnl
|
|
|
|
include(confBUILDTOOLSDIR`/M4/string.m4')dnl
|
|
|
|
include(confBUILDTOOLSDIR`/M4/list.m4')dnl
|
|
|
|
include(confBUILDTOOLSDIR`/M4/subst_ext.m4')dnl
|
|
|
|
define(`bldDEPENDENCY_SECTION', `3')dnl
|
|
|
|
define(`bldTARGETS_SECTION', `6')dnl
|
|
|
|
define(`bldPUSH_TARGET',
|
|
|
|
`bldLIST_PUSH_ITEM(`bldTARGETS', `$1')'dnl
|
|
|
|
)dnl
|
|
|
|
|
|
|
|
define(`bldPUSH_INSTALL_TARGET',
|
|
|
|
`bldLIST_PUSH_ITEM(`bldINSTALL_TARGETS', `$1')'dnl
|
|
|
|
)dnl
|
|
|
|
|
|
|
|
define(`bldPUSH_CLEAN_TARGET',
|
|
|
|
`bldLIST_PUSH_ITEM(`bldCLEAN_TARGETS', `$1')'dnl
|
|
|
|
)dnl
|
|
|
|
|
|
|
|
define(`bldPUSH_ALL_SRCS',
|
|
|
|
`bldLIST_PUSH_ITEM(`bldALL_SRCS', `$1')'dnl
|
|
|
|
)dnl
|
|
|
|
|
|
|
|
define(`bldPUSH_SMDEPLIB',
|
|
|
|
`bldLIST_PUSH_ITEM(`bldSMDEPLIBS', `$1')'dnl
|
|
|
|
)dnl
|
|
|
|
|
|
|
|
define(`bldM4_TYPE_DIR',ifdef(`confNT', `NT', ``UNIX''))dnl
|
|
|
|
|
|
|
|
define(`bldPUSH_STRIP_TARGET',
|
|
|
|
`bldLIST_PUSH_ITEM(`bldSTRIP_TARGETS', `$1')'dnl
|
|
|
|
)dnl
|
|
|
|
|
|
|
|
define(`bldPRODUCT_START',
|
|
|
|
`define(`bldCURRENT_PRODUCT', `$2')dnl
|
2010-01-26 04:17:18 +00:00
|
|
|
define(`bldCURRENT_PRD', translit(`$2', `-.', `__'))dnl
|
2008-08-28 04:33:50 +00:00
|
|
|
define(`bldPRODUCT_TYPE', `$1')dnl'
|
|
|
|
)dnl
|
|
|
|
|
|
|
|
|
|
|
|
define(`bldPRODUCT_END',
|
|
|
|
`include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/'bldPRODUCT_TYPE`.m4')'
|
|
|
|
)dnl
|
|
|
|
|
|
|
|
include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/smlib.m4')dnl
|
|
|
|
|
2012-12-29 20:13:40 +00:00
|
|
|
define(`bldFINISH',
|
2008-08-28 04:33:50 +00:00
|
|
|
ifdef(`bldDONT_INCLUDE_ALL', ,``include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/all.m4')'')dnl
|
|
|
|
undivert(bldTARGETS_SECTION)dnl
|
|
|
|
)dnl
|