From 0580ae4b9be3a39fbefd88429dbc3920f5590529 Mon Sep 17 00:00:00 2001
From: George Tasker <gtasker@allenbrook.com>
Date: Tue, 16 Jan 2001 10:59:36 +0000
Subject: [PATCH] Changed code to use the RM environment variable (if one
 exists) to delete files.  If one does not exist, the ERASE command is used
 which is what was used previously Target added for building .OBJ files for .C
 files in DEBUG or RELEASE subdirs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 src/makevc.env | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/makevc.env b/src/makevc.env
index 4566c9a4fd..71d8e2dca0 100644
--- a/src/makevc.env
+++ b/src/makevc.env
@@ -8,6 +8,10 @@
 #
 !include <ntwin32.mak>
 
+!if "$(RM)" == ""
+RM= erase
+!endif
+
 WXVERSION=23_0
 WIN95=1
 
@@ -227,6 +231,12 @@ $(CPPFLAGS2) /Fo$@ /c $<
 $(CPPFLAGS2) /Fo$@ /c $<
 <<
 
+#use CPPFLAGS2 so as not to use precompiled headers
+{}.c{$D}.obj:
+	cl @<<
+$(CPPFLAGS2) /Fo$@ /c $<
+<<
+
 {}.cpp{$D}.obj:
 	cl @<<
 $(CPPFLAGS) /Fo$@ /c /Tp $<
-- 
2.47.2