| [8332] | 1 | # $Id: setup.optional.watcom11x.mk,v 1.1 2002-04-30 06:11:23 bird Exp $
|
|---|
| 2 |
|
|---|
| 3 | #
|
|---|
| 4 | # Helper file for all the optional stuff which is common for
|
|---|
| 5 | # all watcom11xx compilers.
|
|---|
| 6 | # Concidering the size of this, it really make sense putting it here.
|
|---|
| 7 | #
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | #
|
|---|
| 11 | # C Compiler flags.
|
|---|
| 12 | #
|
|---|
| 13 | _CC_SEG_TEXT =
|
|---|
| 14 | _CC_SEG_DATA =
|
|---|
| 15 | _CC_SEG_XCPT =
|
|---|
| 16 | _CC_DEFAULT_LIBS = -zl
|
|---|
| 17 | _CC_PACK =
|
|---|
| 18 | _CC_MODEL = -mf
|
|---|
| 19 |
|
|---|
| 20 | !ifdef ALL_SEG_TEXT
|
|---|
| 21 | _CC_SEG_TEXT=-nt=$(ALL_SEG_TEXT)
|
|---|
| 22 | !endif
|
|---|
| 23 | !ifdef CC_SEG_TEXT
|
|---|
| 24 | _CC_SEG_TEXT=-nt=$(CC_SEG_TEXT)
|
|---|
| 25 | !endif
|
|---|
| 26 | !ifdef ALL_SEG_DATA
|
|---|
| 27 | _CC_SEG_DATA=-nd=$(ALL_SEG_TEXT)
|
|---|
| 28 | !endif
|
|---|
| 29 | !ifdef CC_SEG_DATA
|
|---|
| 30 | _CC_SEG_DATA=-nd=$(CC_SEG_TEXT)
|
|---|
| 31 | !endif
|
|---|
| 32 | !if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
|---|
| 33 | _CC_DEFAULT_LIBS =
|
|---|
| 34 | !endif
|
|---|
| 35 | !ifdef ALL_PACK
|
|---|
| 36 | _CC_PACK = -zp=$(ALL_PACK)
|
|---|
| 37 | !endif
|
|---|
| 38 | !ifdef CC_PACK
|
|---|
| 39 | _CC_PACK = -zp=$(CC_PACK)
|
|---|
| 40 | !endif
|
|---|
| 41 | !if !defined(CC_MODEL) && defined(ALL_MODEL)
|
|---|
| 42 | CC_MODEL = $(ALL_MODEL)
|
|---|
| 43 | !endif
|
|---|
| 44 | !ifdef CC_MODEL
|
|---|
| 45 | _CC_MODEL =
|
|---|
| 46 | !endif
|
|---|
| 47 | #!if "$(CC_MODEL)" == "TINY"
|
|---|
| 48 | #_CC_MODEL = -mt
|
|---|
| 49 | #!endif
|
|---|
| 50 | !if "$(CC_MODEL)" == "SMALL"
|
|---|
| 51 | _CC_MODEL = -ms
|
|---|
| 52 | !endif
|
|---|
| 53 | !if "$(CC_MODEL)" == "COMPACT"
|
|---|
| 54 | _CC_MODEL = -mc
|
|---|
| 55 | !endif
|
|---|
| 56 | !if "$(CC_MODEL)" == "MEDIUM"
|
|---|
| 57 | _CC_MODEL = -mm
|
|---|
| 58 | !endif
|
|---|
| 59 | !if "$(CC_MODEL)" == "LARGE"
|
|---|
| 60 | _CC_MODEL = -ml
|
|---|
| 61 | !endif
|
|---|
| 62 | !if "$(CC_MODEL)" == "HUGE"
|
|---|
| 63 | _CC_MODEL = -ml
|
|---|
| 64 | !endif
|
|---|
| 65 | !if "$(_CC_MODEL)" == ""
|
|---|
| 66 | ! error Invalid MODEL. CC_MODEL=$(CC_MODEL)
|
|---|
| 67 | !endif
|
|---|
| 68 |
|
|---|
| 69 | _CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | #
|
|---|
| 74 | # C++ Compiler flags.
|
|---|
| 75 | #
|
|---|
| 76 | _CXX_SEG_TEXT =
|
|---|
| 77 | _CXX_SEG_DATA =
|
|---|
| 78 | _CXX_SEG_XCPT =
|
|---|
| 79 | _CXX_DEFAULT_LIBS = -zl
|
|---|
| 80 | _CXX_PACK =
|
|---|
| 81 | _CXX_XCPT = -xd
|
|---|
| 82 | _CXX_MODEL = -mf
|
|---|
| 83 |
|
|---|
| 84 | !ifdef ALL_SEG_TEXT
|
|---|
| 85 | _CXX_SEG_TEXT=-nt=$(ALL_SEG_TEXT)
|
|---|
| 86 | !endif
|
|---|
| 87 | !ifdef CXX_SEG_TEXT
|
|---|
| 88 | _CXX_SEG_TEXT=-nt=$(CXX_SEG_TEXT)
|
|---|
| 89 | !endif
|
|---|
| 90 | !ifdef ALL_SEG_DATA
|
|---|
| 91 | _CXX_SEG_DATA=-nd=$(ALL_SEG_TEXT)
|
|---|
| 92 | !endif
|
|---|
| 93 | !ifdef CXX_SEG_DATA
|
|---|
| 94 | _CXX_SEG_DATA=-nd=$(CXX_SEG_TEXT)
|
|---|
| 95 | !endif
|
|---|
| 96 | !ifdef ALL_SEG_XCPT
|
|---|
| 97 | _CXX_SEG_XCPT=
|
|---|
| 98 | !endif
|
|---|
| 99 | !ifdef CXX_SEG_XCPT
|
|---|
| 100 | _CXX_SEG_XCPT=
|
|---|
| 101 | !endif
|
|---|
| 102 | !if defined(CXX_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
|---|
| 103 | _CXX_DEFAULT_LIBS =
|
|---|
| 104 | !endif
|
|---|
| 105 | !ifdef ALL_PACK
|
|---|
| 106 | _CXX_PACK = -zp=$(ALL_PACK)
|
|---|
| 107 | !endif
|
|---|
| 108 | !ifdef CXX_PACK
|
|---|
| 109 | _CXX_PACK = -zp=$(CXX_PACK)
|
|---|
| 110 | !endif
|
|---|
| 111 | !ifdef CXX_XCPT
|
|---|
| 112 | _CXX_XCPT = -xs
|
|---|
| 113 | !endif
|
|---|
| 114 | !ifdef CXX_NO_XCPT
|
|---|
| 115 | _CXX_XCPT = -xd
|
|---|
| 116 | !endif
|
|---|
| 117 | !if !defined(CC_MODEL) && defined(ALL_MODEL)
|
|---|
| 118 | CXX_MODEL = $(ALL_MODEL)
|
|---|
| 119 | !endif
|
|---|
| 120 | !ifdef CXX_MODEL
|
|---|
| 121 | _CXX_MODEL =
|
|---|
| 122 | !endif
|
|---|
| 123 | #!if "$(CXX_MODEL)" == "TINY"
|
|---|
| 124 | #_CXX_MODEL = -mt
|
|---|
| 125 | #!endif
|
|---|
| 126 | !if "$(CXX_MODEL)" == "SMALL"
|
|---|
| 127 | _CXX_MODEL = -ms
|
|---|
| 128 | !endif
|
|---|
| 129 | !if "$(CXX_MODEL)" == "COMPACT"
|
|---|
| 130 | _CXX_MODEL = -mc
|
|---|
| 131 | !endif
|
|---|
| 132 | !if "$(CXX_MODEL)" == "MEDIUM"
|
|---|
| 133 | _CXX_MODEL = -mm
|
|---|
| 134 | !endif
|
|---|
| 135 | !if "$(CXX_MODEL)" == "LARGE"
|
|---|
| 136 | _CXX_MODEL = -ml
|
|---|
| 137 | !endif
|
|---|
| 138 | !if "$(CXX_MODEL)" == "HUGE"
|
|---|
| 139 | _CXX_MODEL = -ml
|
|---|
| 140 | !endif
|
|---|
| 141 | !if "$(_CXX_MODEL)" == ""
|
|---|
| 142 | ! error Invalid MODEL. CXX_MODEL=$(CXX_MODEL)
|
|---|
| 143 | !endif
|
|---|
| 144 |
|
|---|
| 145 | _CXX_OPTIONAL = $(_CXX_SEG_TEXT) $(_CXX_SEG_DATA) $(_CXX_SEG_XCPT) $(_CXX_DEFAULT_LIBS) $(_CXX_PACK) $(_CXX_XCPT) $(_CXX_MODEL)
|
|---|
| 146 |
|
|---|
| 147 |
|
|---|