Changeset 9242 for trunk/make


Ignore:
Timestamp:
Sep 15, 2002, 1:30:09 AM (23 years ago)
Author:
bird
Message:

Enhanced memory model options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/setup.optional.mscvx-16.mk

    r9181 r9242  
    1 # $Id: setup.optional.mscvx-16.mk,v 1.2 2002-08-30 21:48:18 bird Exp $
     1# $Id: setup.optional.mscvx-16.mk,v 1.3 2002-09-14 23:30:09 bird Exp $
    22
    33#
     
    66#  Concidering the size of this, it really make sense putting it here.
    77#
     8MAKE_INCLUDE_CX_OPT = $(PATH_MAKE)\setup.optional.mscvx-16.mk
    89
    910#
     
    1718_CC_DEFAULT_LIBS= /Zl
    1819_CC_PACK        = /Zp
    19 _CC_MODEL       = /Asfw
     20_CC_MODEL       = /AC
    2021_OBJ_MODEL      = c
     22_CC_MODEL_CODE  =
     23_CC_MODEL_DATA  =
     24_CC_MODEL_SETUP = w
    2125_CC_CPU         = 2
    2226_CC_STACKPROB   = s
     
    9397!endif
    9498
     99!if !defined(CC_MODEL_CODE) && defined(ALL_MODEL_CODE)
     100CC_MODEL_CODE = $(ALL_MODEL_CODE)
     101!endif
     102!if "$(CC_MODEL_CODE)" != ""
     103_CC_MODEL_CODE  =
     104! if "$(CC_MODEL_CODE)" == "s"
     105_CC_MODEL_CODE  = s
     106! endif
     107! if "$(CC_MODEL_CODE)" == "l"
     108_CC_MODEL_CODE  = l
     109! endif
     110! if "$(_CC_MODEL_CODE)" == ""
     111!  error Invalid ALL/CC_MODEL_CODE. Valid options are 'l' for far code and 's' near code.
     112! endif
     113!endif
     114
     115!if !defined(CC_MODEL_DATA) && defined(ALL_MODEL_DATA)
     116CC_MODEL_DATA = $(ALL_MODEL_DATA)
     117!endif
     118!if "$(CC_MODEL_DATA)" != ""
     119_CC_MODEL_DATA  =
     120! if "$(CC_MODEL_DATA)" == "n"
     121_CC_MODEL_DATA  = n
     122! endif
     123! if "$(CC_MODEL_DATA)" == "f"
     124_CC_MODEL_DATA  = f
     125! endif
     126! if "$(CC_MODEL_DATA)" == "h"
     127_CC_MODEL_DATA  = h
     128! endif
     129! if "$(_CC_MODEL_DATA)" == ""
     130!  error Invalid ALL/CC_MODEL_DATA. Valid options are 'h' for hugh data, 'f' for far data and 'n' near data.
     131! endif
     132!endif
     133
     134!if !defined(CC_MODEL_SETUP) && defined(ALL_MODEL_SETUP)
     135CC_MODEL_SETUP= $(ALL_MODEL_SETUP)
     136!endif
     137!if "$(CC_MODEL_SETUP)" != ""
     138_CC_MODEL_SETUP  =
     139! if "$(CC_MODEL_SETUP)" == "d"
     140_CC_MODEL_SETUP  = d
     141! endif
     142! if "$(CC_MODEL_SETUP)" == "u"
     143_CC_MODEL_SETUP  = u
     144! endif
     145! if "$(CC_MODEL_SETUP)" == "w"
     146_CC_MODEL_SETUP  = w
     147! endif
     148! if "$(_CC_MODEL_SETUP)" == ""
     149!  error Invalid ALL/CC_MODEL_SETUP. Valid options are 'd' for SS==DS, 'u' for DS!=SS and DS reload on entry and 'w' for DS!=SS no DS reload on entry.
     150! endif
     151!endif
     152
    95153!if defined(CC_STACKPROB) || defined(ALL_STACKPROB)
    96154_CC_STACKPROB   =
     
    138196!endif
    139197
    140 
    141 _CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL) \
     198!if "$(_CC_MODEL_SETUP)" != "" && "$(_CC_MODEL_DATA)" != "" && "$(_CC_MODEL_CODE)" != ""
     199_CC_MODEL = /A
     200!endif
     201
     202_CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK)\
     203               $(_CC_MODEL)$(_CC_MODEL_SETUP)$(_CC_MODEL_DATA)$(_CC_MODEL_CODE) \
    142204               /G$(_CC_FASTCALL)$(_CC_STACKPROB)$(_CC_CPU) $(_CC_OPTIM) $(_CC_WAR)
    143205
Note: See TracChangeset for help on using the changeset viewer.