Merge from vendor branch SENDMAIL:
[dragonfly.git] / contrib / sendmail-8.13.8 / devtools / M4 / switch.m4
1 divert(-1)
2 #
3 # Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
4 #       All rights reserved.
5 #
6 # By using this file, you agree to the terms and conditions set
7 # forth in the LICENSE file which can be found at the top level of
8 # the sendmail distribution.
9 #
10 #
11 #  Definitions for Makefile construction for sendmail
12 #
13 #       $Id: switch.m4,v 8.16 2000/04/06 18:45:22 peterh Exp $
14 #
15 divert(0)dnl
16 include(confBUILDTOOLSDIR`/M4/string.m4')dnl
17 include(confBUILDTOOLSDIR`/M4/list.m4')dnl
18 include(confBUILDTOOLSDIR`/M4/subst_ext.m4')dnl
19 define(`bldDEPENDENCY_SECTION', `3')dnl
20 define(`bldTARGETS_SECTION', `6')dnl
21 define(`bldPUSH_TARGET',
22         `bldLIST_PUSH_ITEM(`bldTARGETS', `$1')'dnl
23 )dnl
24
25 define(`bldPUSH_INSTALL_TARGET',
26         `bldLIST_PUSH_ITEM(`bldINSTALL_TARGETS', `$1')'dnl
27 )dnl
28
29 define(`bldPUSH_CLEAN_TARGET',
30         `bldLIST_PUSH_ITEM(`bldCLEAN_TARGETS', `$1')'dnl
31 )dnl
32
33 define(`bldPUSH_ALL_SRCS',
34         `bldLIST_PUSH_ITEM(`bldALL_SRCS', `$1')'dnl
35 )dnl
36
37 define(`bldPUSH_SMDEPLIB',
38         `bldLIST_PUSH_ITEM(`bldSMDEPLIBS', `$1')'dnl
39 )dnl
40
41 define(`bldM4_TYPE_DIR',ifdef(`confNT', `NT', ``UNIX''))dnl
42
43 define(`bldPUSH_STRIP_TARGET',
44         `bldLIST_PUSH_ITEM(`bldSTRIP_TARGETS', `$1')'dnl
45 )dnl
46
47 define(`bldPRODUCT_START',
48 `define(`bldCURRENT_PRODUCT', `$2')dnl
49 define(`bldCURRENT_PRD', translit(`$2', `.', `_'))dnl
50 define(`bldPRODUCT_TYPE', `$1')dnl'
51 )dnl
52
53
54 define(`bldPRODUCT_END',
55 `include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/'bldPRODUCT_TYPE`.m4')'
56 )dnl
57
58 include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/smlib.m4')dnl
59
60 define(`bldFINISH', 
61 ifdef(`bldDONT_INCLUDE_ALL', ,``include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/all.m4')'')dnl
62 undivert(bldTARGETS_SECTION)dnl
63 )dnl