[8352] | 1 | # $Id: setup.os2debmscv6.mk,v 1.6 2002-04-30 19:45:53 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
|
---|
[8197] | 11 |
|
---|
[8296] | 12 |
|
---|
[8197] | 13 | #
|
---|
[8213] | 14 | # Include some shared standard stuff: ALP.
|
---|
| 15 | #
|
---|
| 16 | !include $(PATH_MAKE)\setup.os2debalp.mk
|
---|
| 17 |
|
---|
[8296] | 18 |
|
---|
[8213] | 19 | #
|
---|
[8197] | 20 | # The tools
|
---|
| 21 | #
|
---|
| 22 | AR=ilib.exe
|
---|
[8352] | 23 | CC=cl386.exe
|
---|
[8197] | 24 | CXX=false
|
---|
| 25 | LINK=ilink.exe
|
---|
| 26 | IMPLIB=implib.exe
|
---|
| 27 | RC=rc.exe
|
---|
| 28 | RL=rc.exe
|
---|
| 29 | EXEPACK=lxlite.exe
|
---|
| 30 |
|
---|
[8296] | 31 |
|
---|
[8197] | 32 | #
|
---|
| 33 | # The flags
|
---|
| 34 | #
|
---|
| 35 | AR_FLAGS=/nologo /noignorecase
|
---|
| 36 | AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
|
---|
| 37 | _AR_LNK1= "$(TARGET_OBJS: ="&^
|
---|
| 38 | ")"
|
---|
| 39 | AR_LNK1= $(_AR_LNK1:""=)
|
---|
| 40 | AR_LNK2= $(@R).lst
|
---|
| 41 |
|
---|
[8334] | 42 |
|
---|
| 43 | #
|
---|
| 44 | # C Compiler flags.
|
---|
| 45 | #
|
---|
| 46 | _CC_SEG_TEXT =
|
---|
| 47 | _CC_SEG_DATA =
|
---|
| 48 | _CC_SEG_XCPT =
|
---|
| 49 | _CC_DEFAULT_LIBS = /Zl
|
---|
| 50 | _CC_PACK = /Zp
|
---|
[8352] | 51 | _CC_MODEL =
|
---|
[8334] | 52 |
|
---|
| 53 | !ifdef ALL_SEG_TEXT
|
---|
| 54 | _CC_SEG_TEXT=/NT$(ALL_SEG_TEXT)
|
---|
| 55 | !endif
|
---|
| 56 | !ifdef CC_SEG_TEXT
|
---|
| 57 | _CC_SEG_TEXT=/NT$(CC_SEG_TEXT)
|
---|
| 58 | !endif
|
---|
| 59 | !ifdef ALL_SEG_DATA
|
---|
| 60 | _CC_SEG_DATA=/ND$(ALL_SEG_TEXT)
|
---|
| 61 | !endif
|
---|
| 62 | !ifdef CC_SEG_DATA
|
---|
| 63 | _CC_SEG_DATA=/ND$(CC_SEG_TEXT)
|
---|
| 64 | !endif
|
---|
| 65 | !if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
---|
| 66 | _CC_DEFAULT_LIBS =
|
---|
| 67 | !endif
|
---|
| 68 | !ifdef ALL_PACK
|
---|
| 69 | _CC_PACK = /Zp$(ALL_PACK)
|
---|
| 70 | !endif
|
---|
| 71 | !ifdef CC_PACK
|
---|
| 72 | _CC_PACK = /Zp$(CC_PACK)
|
---|
| 73 | !endif
|
---|
[8352] | 74 | !if defined(CXX_MODEL) || defined(ALL_MODEL)
|
---|
| 75 | ! if [$(ECHO) warning: CXX_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
|
---|
| 76 | ! endif
|
---|
[8334] | 77 | !endif
|
---|
| 78 |
|
---|
| 79 | _CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
|
---|
| 80 |
|
---|
[8352] | 81 | 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] | 82 | CC_FLAGS_EXE=$(CC_FLAGS)
|
---|
[8197] | 83 | CC_FLAGS_DLL=$(CC_FLAGS)
|
---|
[8352] | 84 | CC_FLAGS_SYS=$(CC_FLAGS) /DRING0 /Gs /Owis
|
---|
[8213] | 85 | CC_FLAGS_IFS=$(CC_FLAGS_SYS)
|
---|
[8334] | 86 | CC_OBJ_OUT=/Fo
|
---|
[8352] | 87 | CC_LST_OUT=/Fl
|
---|
| 88 | CC_PC_2_STDOUT=/P /C /E
|
---|
[8197] | 89 |
|
---|
| 90 | CXX_FLAGS=
|
---|
| 91 | CXX_FLAGS_EXE=
|
---|
| 92 | CXX_FLAGS_DLL=
|
---|
| 93 | CXX_FLAGS_SYS=
|
---|
[8352] | 94 | CXX_FLAGS_IFS=
|
---|
[8197] | 95 | CXX_OBJ_OUT=
|
---|
[8352] | 96 | CXX_LST_OUT=
|
---|
[8197] | 97 | CXX_PC_2_STDOUT=
|
---|
| 98 |
|
---|
| 99 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
| 100 |
|
---|
[8334] | 101 | LINK_FLAGS=/nofree /nologo /de /map /NOE /NOD /Optfunc /PACKCODE /PACKDATA
|
---|
[8197] | 102 | LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /STACK:$(TARGET_STACKSIZE)
|
---|
| 103 | LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
|
---|
| 104 | LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16 /NOIgnorecase
|
---|
[8334] | 105 | LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16 /NOIgnorecase
|
---|
[8213] | 106 | LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
|
---|
[8197] | 107 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
|
---|
| 108 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
|
---|
| 109 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
|
---|
[8334] | 110 | LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
|
---|
[8213] | 111 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
|
---|
[8334] | 112 | LINK_LNK1=$(TARGET_OBJS: =+^
|
---|
| 113 | ),
|
---|
| 114 | LINK_LNK2=$(TARGET),
|
---|
| 115 | LINK_LNK3=$(TARGET_MAP),
|
---|
| 116 | LINK_LNK4=$(TARGET_LIBS: =+^
|
---|
| 117 | ),
|
---|
| 118 | LINK_LNK5=$(TARGET_DEF_LINK)
|
---|
[8197] | 119 |
|
---|
[8253] | 120 | RC_FLAGS=-r -n -i $(PATH_INCLUDES:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
|
---|
[8197] | 121 | RL_FLAGS=-x2 -n
|
---|
| 122 |
|
---|
[8296] | 123 |
|
---|
[8197] | 124 | #
|
---|
| 125 | # Libraries and object files.
|
---|
| 126 | #
|
---|
[8352] | 127 | LIB_OS = os2386.lib
|
---|
| 128 | LIB_C_OBJ = libc.lib
|
---|
| 129 | LIB_C_DLL = libc.lib
|
---|
| 130 | LIB_C_RTDLL = libc.lib
|
---|
[8213] | 131 | LIB_C_NRE =
|
---|
| 132 | LIB_C_DMNGL =
|
---|
| 133 | OBJ_PROFILE =
|
---|
[8197] | 134 |
|
---|
| 135 | # ---OS2, DEBUG, MSCV6-------------------------
|
---|
| 136 |
|
---|