1 | # $Id: setup.os2relmscv6.mk,v 1.13 2002-08-28 03:42:46 bird Exp $
|
---|
2 |
|
---|
3 | # ---OS2, RELEASE, MSCV6-------------------------
|
---|
4 | ENV_NAME="OS/2, Release, Microsoft C v6.0a 32-bit"
|
---|
5 | ENV_STATUS=OK
|
---|
6 | !if "$(ENV_ENVS)" == ""
|
---|
7 | ENV_ENVS=vac308 mscv6
|
---|
8 | !else
|
---|
9 | ENV_ENVS_FORCE=vac308 mscv6
|
---|
10 | !endif
|
---|
11 | !undef ENV_16BIT
|
---|
12 |
|
---|
13 |
|
---|
14 | #
|
---|
15 | # Include some shared standard stuff: ALP.
|
---|
16 | #
|
---|
17 | !include $(PATH_MAKE)\setup.os2relalp.mk
|
---|
18 | !include $(PATH_MAKE)\setup.os2relrc.mk
|
---|
19 | !include $(PATH_MAKE)\setup.os2relwrc.mk
|
---|
20 | !include $(PATH_MAKE)\setup.os2relilink.mk
|
---|
21 |
|
---|
22 |
|
---|
23 | #
|
---|
24 | # The tools
|
---|
25 | #
|
---|
26 | AR=ilib.exe
|
---|
27 | CC=cl386.exe
|
---|
28 | CXX=false
|
---|
29 | LINK=ilink.exe
|
---|
30 | IMPLIB=implib.exe
|
---|
31 |
|
---|
32 |
|
---|
33 | #
|
---|
34 | # The flags
|
---|
35 | #
|
---|
36 | AR_FLAGS=/nologo /noignorecase
|
---|
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";
|
---|
45 |
|
---|
46 |
|
---|
47 |
|
---|
48 | #
|
---|
49 | # C Compiler flags.
|
---|
50 | #
|
---|
51 | _CC_SEG_TEXT =
|
---|
52 | _CC_SEG_DATA =
|
---|
53 | _CC_SEG_XCPT =
|
---|
54 | _CC_DEFAULT_LIBS = /Zl
|
---|
55 | _CC_PACK = /Zp
|
---|
56 | _CC_MODEL =
|
---|
57 |
|
---|
58 | !ifdef ALL_SEG_TEXT
|
---|
59 | _CC_SEG_TEXT=/NT$(ALL_SEG_TEXT)
|
---|
60 | !endif
|
---|
61 | !ifdef CC_SEG_TEXT
|
---|
62 | _CC_SEG_TEXT=/NT$(CC_SEG_TEXT)
|
---|
63 | !endif
|
---|
64 | !ifdef ALL_SEG_DATA
|
---|
65 | _CC_SEG_DATA=/ND$(ALL_SEG_TEXT)
|
---|
66 | !endif
|
---|
67 | !ifdef CC_SEG_DATA
|
---|
68 | _CC_SEG_DATA=/ND$(CC_SEG_TEXT)
|
---|
69 | !endif
|
---|
70 | !if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
---|
71 | _CC_DEFAULT_LIBS =
|
---|
72 | !endif
|
---|
73 | !ifdef ALL_PACK
|
---|
74 | _CC_PACK = /Zp$(ALL_PACK)
|
---|
75 | !endif
|
---|
76 | !ifdef CC_PACK
|
---|
77 | _CC_PACK = /Zp$(CC_PACK)
|
---|
78 | !endif
|
---|
79 | !if defined(CXX_MODEL) || defined(ALL_MODEL)
|
---|
80 | ! if [$(ECHO) warning: CXX_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
|
---|
81 | ! endif
|
---|
82 | !endif
|
---|
83 |
|
---|
84 | _CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
|
---|
85 |
|
---|
86 | 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)
|
---|
87 | CC_FLAGS_EXE=$(CC_FLAGS)
|
---|
88 | CC_FLAGS_DLL=$(CC_FLAGS)
|
---|
89 | CC_FLAGS_SYS=$(CC_FLAGS) /DRING0 /Gs
|
---|
90 | CC_FLAGS_IFS=$(CC_FLAGS_SYS)
|
---|
91 | CC_OBJ_OUT=/Fo
|
---|
92 | CC_LST_OUT=/Fl
|
---|
93 | CC_PC_2_STDOUT=/P /C /E
|
---|
94 |
|
---|
95 | CXX_FLAGS=
|
---|
96 | CXX_FLAGS_EXE=
|
---|
97 | CXX_FLAGS_DLL=
|
---|
98 | CXX_FLAGS_SYS=
|
---|
99 | CXX_FLAGS_IFS=
|
---|
100 | CXX_OBJ_OUT=
|
---|
101 | CXX_LST_OUT=
|
---|
102 | CXX_PC_2_STDOUT=
|
---|
103 |
|
---|
104 | !if "$(CC_AS_CXX)" != ""
|
---|
105 | ! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX is not supported by this compiler!$(CLRRST)]
|
---|
106 | ! endif
|
---|
107 | ! error
|
---|
108 | !endif
|
---|
109 | !if "$(CXX_AS_CC)" != ""
|
---|
110 | ! if [@(ECHO) $(CLRERR)Error: CXX_AS_CC is not supported by this compiler!$(CLRRST)]
|
---|
111 | ! endif
|
---|
112 | ! error
|
---|
113 | !endif
|
---|
114 |
|
---|
115 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
116 |
|
---|
117 |
|
---|
118 | #
|
---|
119 | # Libraries and object files.
|
---|
120 | #
|
---|
121 | LIB_OS = os2386.lib
|
---|
122 | LIB_C_OBJ = libc.lib
|
---|
123 | LIB_C_DLL = libc.lib
|
---|
124 | LIB_C_RTDLL = libc.lib
|
---|
125 | LIB_C_NRE =
|
---|
126 | LIB_C_DMNGL =
|
---|
127 | OBJ_PROFILE =
|
---|
128 |
|
---|
129 | # ---OS2, RELEASE, MSCV6-------------------------
|
---|
130 |
|
---|