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