make/windows/makefiles/compile.make

changeset 1080
c3a720eefe82
parent 862
3c07cda72b7d
child 1094
520d43965b1f
equal deleted inserted replaced
1079:c517646eef23 1080:c3a720eefe82
168 BUFFEROVERFLOWLIB = bufferoverflowU.lib 168 BUFFEROVERFLOWLIB = bufferoverflowU.lib
169 LINK_FLAGS = /manifest $(LINK_FLAGS) $(BUFFEROVERFLOWLIB) 169 LINK_FLAGS = /manifest $(LINK_FLAGS) $(BUFFEROVERFLOWLIB)
170 # Manifest Tool - used in VS2005 and later to adjust manifests stored 170 # Manifest Tool - used in VS2005 and later to adjust manifests stored
171 # as resources inside build artifacts. 171 # as resources inside build artifacts.
172 MT=mt.exe 172 MT=mt.exe
173 !if "$(BUILDARCH)" == "i486" 173 # VS2005 and later restricts the use of certain libc functions without this
174 # VS2005 on x86 restricts the use of certain libc functions without this
175 CPP_FLAGS=$(CPP_FLAGS) /D _CRT_SECURE_NO_DEPRECATE 174 CPP_FLAGS=$(CPP_FLAGS) /D _CRT_SECURE_NO_DEPRECATE
176 !endif
177 !endif 175 !endif
178 176
179 !if "$(COMPILER_NAME)" == "VS2008" 177 !if "$(COMPILER_NAME)" == "VS2008"
180 PRODUCT_OPT_OPTION = /O2 /Oy- 178 PRODUCT_OPT_OPTION = /O2 /Oy-
181 FASTDEBUG_OPT_OPTION = /O2 /Oy- 179 FASTDEBUG_OPT_OPTION = /O2 /Oy-
183 GX_OPTION = /EHsc 181 GX_OPTION = /EHsc
184 LINK_FLAGS = /manifest $(LINK_FLAGS) 182 LINK_FLAGS = /manifest $(LINK_FLAGS)
185 # Manifest Tool - used in VS2005 and later to adjust manifests stored 183 # Manifest Tool - used in VS2005 and later to adjust manifests stored
186 # as resources inside build artifacts. 184 # as resources inside build artifacts.
187 MT=mt.exe 185 MT=mt.exe
188 !if "$(BUILDARCH)" == "i486" 186 # VS2005 and later restricts the use of certain libc functions without this
189 # VS2005 on x86 restricts the use of certain libc functions without this
190 CPP_FLAGS=$(CPP_FLAGS) /D _CRT_SECURE_NO_DEPRECATE 187 CPP_FLAGS=$(CPP_FLAGS) /D _CRT_SECURE_NO_DEPRECATE
191 !endif
192 !endif 188 !endif
193 189
194 # Compile for space above time. 190 # Compile for space above time.
195 !if "$(Variant)" == "kernel" 191 !if "$(Variant)" == "kernel"
196 PRODUCT_OPT_OPTION = /O1 /Oy- 192 PRODUCT_OPT_OPTION = /O1 /Oy-

mercurial