This adds a rule which will trigger automatic conversion between msvc

style and pseh syntactically.  Name any file that should be converted
as foo_msvc.c and put foo.o in TARGET_OBJECTS and the file will be
preprocessed.

I asked some opinions about the naming and everyone seems ok with it.

svn path=/trunk/; revision=10711
This commit is contained in:
Art Yerkes
2004-08-27 18:24:28 +00:00
parent fbd1a52cdf
commit ad74693225
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -134,6 +134,7 @@ export MKHIVE = $(Q)$(TOOLS_PATH)/mkhive/mkhive
export CDMAKE = $(Q)$(TOOLS_PATH)/cdmake/cdmake
export BIN2RES = $(Q)$(TOOLS_PATH)/bin2res/bin2res
export XSLTPROC = $(Q)xsltproc
export MS2PS = $(Q)$(TOOLS_PATH)/ms2ps/ms2ps
export STD_CFLAGS = -I$(PATH_TO_TOP)/include -I$(W32API_PATH)/include -pipe -march=i386 -D_M_IX86
export STD_CPPFLAGS = $(STD_CFLAGS)
+6 -1
View File
@@ -1,4 +1,4 @@
# $Id: helper.mk,v 1.76 2004/08/15 16:38:59 chorns Exp $
# $Id: helper.mk,v 1.77 2004/08/27 18:24:28 arty Exp $
#
# Helper makefile for ReactOS modules
# Variables this makefile accepts:
@@ -1082,6 +1082,11 @@ endif
$(WINEBUILD) $(DEFS) -o $@ --def $<
%.i: %.c
$(CC) $(TARGET_CFLAGS) -E $< > $@
# rule for msvc conversion
%.c: %_msvc.c
$(MS2PS) -try try -except except -finally finally < $< > $@
# Kill implicit rule
.o:;