[9120] | 1 | # $Id: setup.os2relmscv6.mk,v 1.10 2002-08-24 04:59:48 bird Exp $
|
---|
[8197] | 2 |
|
---|
| 3 | # ---OS2, RELEASE, MSCV6-------------------------
|
---|
[8352] | 4 | ENV_NAME="OS/2, Release, Microsoft C v6.0a 32-bit"
|
---|
[8197] | 5 | ENV_STATUS=OK
|
---|
[8296] | 6 | !if "$(ENV_ENVS)" == ""
|
---|
[8334] | 7 | ENV_ENVS=vac308 mscv6
|
---|
[8296] | 8 | !else
|
---|
[8334] | 9 | ENV_ENVS_FORCE=vac308 mscv6
|
---|
[8296] | 10 | !endif
|
---|
[8423] | 11 | !undef ENV_16BIT
|
---|
[8197] | 12 |
|
---|
[8296] | 13 |
|
---|
[8197] | 14 | #
|
---|
[8213] | 15 | # Include some shared standard stuff: ALP.
|
---|
| 16 | #
|
---|
| 17 | !include $(PATH_MAKE)\setup.os2relalp.mk
|
---|
[9120] | 18 | !include $(PATH_MAKE)\setup.os2relwrc.mk
|
---|
[8213] | 19 |
|
---|
[8296] | 20 |
|
---|
[8213] | 21 | #
|
---|
[8197] | 22 | # The tools
|
---|
| 23 | #
|
---|
| 24 | AR=ilib.exe
|
---|
[8352] | 25 | CC=cl386.exe
|
---|
[8197] | 26 | CXX=false
|
---|
| 27 | LINK=ilink.exe
|
---|
| 28 | IMPLIB=implib.exe
|
---|
| 29 | RC=rc.exe
|
---|
| 30 | RL=rc.exe
|
---|
| 31 | EXEPACK=lxlite.exe
|
---|
| 32 |
|
---|
[8296] | 33 |
|
---|
[8197] | 34 | #
|
---|
| 35 | # The flags
|
---|
| 36 | #
|
---|
| 37 | AR_FLAGS=/nologo /noignorecase
|
---|
[9060] | 38 | AR_CMD=$(AR) $(AR_FLAGS) @"$(TARGET_LNK)"
|
---|
| 39 | AR_LNK1= "$(@R).$(EXT_LIB)"
|
---|
| 40 | AR_LNK2=y
|
---|
| 41 | _AR_LNK3= +"$(TARGET_OBJS: ="&^
|
---|
| 42 | +")"
|
---|
| 43 | AR_LNK3= $(_AR_LNK3:+""&^
|
---|
| 44 | =)
|
---|
| 45 | AR_LNK4= "$(@R).lst";
|
---|
[8197] | 46 |
|
---|
[8352] | 47 |
|
---|
[9060] | 48 |
|
---|
[8334] | 49 | #
|
---|
| 50 | # C Compiler flags.
|
---|
| 51 | #
|
---|
| 52 | _CC_SEG_TEXT =
|
---|
| 53 | _CC_SEG_DATA =
|
---|
| 54 | _CC_SEG_XCPT =
|
---|
| 55 | _CC_DEFAULT_LIBS = /Zl
|
---|
| 56 | _CC_PACK = /Zp
|
---|
[8352] | 57 | _CC_MODEL =
|
---|
[8334] | 58 |
|
---|
| 59 | !ifdef ALL_SEG_TEXT
|
---|
| 60 | _CC_SEG_TEXT=/NT$(ALL_SEG_TEXT)
|
---|
| 61 | !endif
|
---|
| 62 | !ifdef CC_SEG_TEXT
|
---|
| 63 | _CC_SEG_TEXT=/NT$(CC_SEG_TEXT)
|
---|
| 64 | !endif
|
---|
| 65 | !ifdef ALL_SEG_DATA
|
---|
| 66 | _CC_SEG_DATA=/ND$(ALL_SEG_TEXT)
|
---|
| 67 | !endif
|
---|
| 68 | !ifdef CC_SEG_DATA
|
---|
| 69 | _CC_SEG_DATA=/ND$(CC_SEG_TEXT)
|
---|
| 70 | !endif
|
---|
| 71 | !if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
---|
| 72 | _CC_DEFAULT_LIBS =
|
---|
| 73 | !endif
|
---|
| 74 | !ifdef ALL_PACK
|
---|
| 75 | _CC_PACK = /Zp$(ALL_PACK)
|
---|
| 76 | !endif
|
---|
| 77 | !ifdef CC_PACK
|
---|
| 78 | _CC_PACK = /Zp$(CC_PACK)
|
---|
| 79 | !endif
|
---|
[8352] | 80 | !if defined(CXX_MODEL) || defined(ALL_MODEL)
|
---|
| 81 | ! if [$(ECHO) warning: CXX_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
|
---|
| 82 | ! endif
|
---|
[8334] | 83 | !endif
|
---|
| 84 |
|
---|
| 85 | _CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
|
---|
| 86 |
|
---|
[8352] | 87 | CC_FLAGS=/nologo /c /DDEBUG /DOS2 /D__32BIT__ /D__i386__ /W0 /G3 /Ogeitln /Zi $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES) $(ALL_INCLUDES) /I$(PATH_INCLUDES)
|
---|
[8197] | 88 | CC_FLAGS_EXE=$(CC_FLAGS)
|
---|
| 89 | CC_FLAGS_DLL=$(CC_FLAGS)
|
---|
[8352] | 90 | CC_FLAGS_SYS=$(CC_FLAGS) /DRING0 /Gs
|
---|
[8213] | 91 | CC_FLAGS_IFS=$(CC_FLAGS_SYS)
|
---|
[8334] | 92 | CC_OBJ_OUT=/Fo
|
---|
[8352] | 93 | CC_LST_OUT=/Fl
|
---|
| 94 | CC_PC_2_STDOUT=/P /C /E
|
---|
[8197] | 95 |
|
---|
| 96 | CXX_FLAGS=
|
---|
| 97 | CXX_FLAGS_EXE=
|
---|
| 98 | CXX_FLAGS_DLL=
|
---|
| 99 | CXX_FLAGS_SYS=
|
---|
[8213] | 100 | CXX_FLAGS_IFS=
|
---|
[8197] | 101 | CXX_OBJ_OUT=
|
---|
[8334] | 102 | CXX_LST_OUT=
|
---|
[8197] | 103 | CXX_PC_2_STDOUT=
|
---|
| 104 |
|
---|
[8423] | 105 | !if "$(CC_AS_CXX)" != ""
|
---|
| 106 | ! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX is not supported by this compiler!$(CLRRST)]
|
---|
| 107 | ! endif
|
---|
| 108 | ! error
|
---|
| 109 | !endif
|
---|
| 110 | !if "$(CXX_AS_CC)" != ""
|
---|
| 111 | ! if [@(ECHO) $(CLRERR)Error: CXX_AS_CC is not supported by this compiler!$(CLRRST)]
|
---|
| 112 | ! endif
|
---|
| 113 | ! error
|
---|
| 114 | !endif
|
---|
| 115 |
|
---|
[8197] | 116 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
| 117 |
|
---|
[9120] | 118 | LINK_FLAGS=/nofree /nologo /map /linenumbers /NOIgnorecase /NOE /NOD /PACKCODE /PACKDATA /EXEPACK:2 /NODEBUG
|
---|
[8334] | 119 | LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /BASE:0x10000 /STACK:$(TARGET_STACKSIZE)
|
---|
[8197] | 120 | LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
|
---|
[8359] | 121 | LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16
|
---|
| 122 | LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16
|
---|
[8213] | 123 | LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
|
---|
[8197] | 124 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
|
---|
| 125 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
|
---|
| 126 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
|
---|
[8334] | 127 | LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
|
---|
[8213] | 128 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
|
---|
[8334] | 129 | LINK_LNK1=$(TARGET_OBJS: =+^
|
---|
| 130 | ),
|
---|
| 131 | LINK_LNK2=$(TARGET),
|
---|
| 132 | LINK_LNK3=$(TARGET_MAP),
|
---|
| 133 | LINK_LNK4=$(TARGET_LIBS: =+^
|
---|
| 134 | ),
|
---|
| 135 | LINK_LNK5=$(TARGET_DEF_LINK)
|
---|
[8197] | 136 |
|
---|
[8423] | 137 | RC_FLAGS=-r -n $(RC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(RC_INCLUDES:-I=-i ) $(ALL_INCLUDES:-I=-i ) -i $(PATH_INCLUDES:;= -i )
|
---|
[8197] | 138 | RL_FLAGS=-x2 -n
|
---|
| 139 |
|
---|
[8296] | 140 |
|
---|
[8197] | 141 | #
|
---|
| 142 | # Libraries and object files.
|
---|
| 143 | #
|
---|
[8352] | 144 | LIB_OS = os2386.lib
|
---|
| 145 | LIB_C_OBJ = libc.lib
|
---|
| 146 | LIB_C_DLL = libc.lib
|
---|
| 147 | LIB_C_RTDLL = libc.lib
|
---|
[8213] | 148 | LIB_C_NRE =
|
---|
| 149 | LIB_C_DMNGL =
|
---|
| 150 | OBJ_PROFILE =
|
---|
[8197] | 151 |
|
---|
| 152 | # ---OS2, RELEASE, MSCV6-------------------------
|
---|
| 153 |
|
---|