Alexandre Julliard : makefiles: Add rules for building dll registration resources.

Alexandre Julliard julliard at winehq.org
Tue Nov 30 11:01:09 CST 2010


Module: wine
Branch: master
Commit: 1a2837a0892133c0da84f5e5b1cdef687c07eed3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1a2837a0892133c0da84f5e5b1cdef687c07eed3

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Nov 30 11:53:52 2010 +0100

makefiles: Add rules for building dll registration resources.

---

 Make.rules.in        |   11 +++++++----
 tools/make_makefiles |    2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Make.rules.in b/Make.rules.in
index 8aec95d..30f6bf5 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -29,7 +29,7 @@ CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $
                 $(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) $(MC_SRCS:.mc=.mc.rc)
 
 OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) \
-       $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.mc.res) $(EXTRA_OBJS)
+       $(IDL_R_SRCS:.idl=_r.res) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.mc.res) $(EXTRA_OBJS)
 
 CROSSOBJS = $(OBJS:.o=.cross.o)
 LINTS  = $(C_SRCS:.c=.ln)
@@ -41,7 +41,7 @@ filter: dummy
 
 # Implicit rules
 
-.SUFFIXES: .mc .rc .mc.rc .res .idl .tlb .h .y .l .tab.c .tab.h .yy.c .ok .man.in .man _c.c _i.c _p.c _s.c .cross.o @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
+.SUFFIXES: .mc .rc .mc.rc .res .idl .tlb .h .y .l .tab.c .tab.h .yy.c .ok .man.in .man _c.c _i.c _p.c _s.c _r.res .cross.o @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
 
 .c.o:
 	$(CC) -c $(ALLCFLAGS) -o $@ $<
@@ -76,6 +76,9 @@ filter: dummy
 .idl_p.c:
 	$(WIDL) $(IDLFLAGS) -p -o $@ $<
 
+.idl_r.res:
+	$(WIDL) $(IDLFLAGS) -r -o $@ $<
+
 .idl_s.c:
 	$(WIDL) $(IDLFLAGS) -s -o $@ $<
 
@@ -129,7 +132,7 @@ winapi_check:: dummy
 
 DEPEND_SRCS = $(C_SRCS) $(RC_SRCS) $(MC_SRCS) \
               $(IDL_H_SRCS) $(IDL_C_SRCS) $(IDL_I_SRCS) $(IDL_P_SRCS) $(IDL_S_SRCS) \
-              $(IDL_GEN_C_SRCS) $(IDL_TLB_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) \
+              $(IDL_GEN_C_SRCS) $(IDL_R_SRCS:.idl=_r.res) $(IDL_TLB_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) \
               $(BISON_SRCS) $(LEX_SRCS) $(EXTRA_SRCS)
 
 depend: dummy
@@ -160,7 +163,7 @@ install install-lib install-dev uninstall::
 
 $(MC_SRCS:.mc=.mc.rc): $(WMC)
 
-$(IDL_GEN_HEADERS) $(IDL_GEN_C_SRCS) $(IDL_TLB_SRCS:.idl=.tlb): $(WIDL)
+$(IDL_GEN_HEADERS) $(IDL_GEN_C_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_R_SRCS:.idl=_r.res): $(WIDL)
 
 $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.mc.res): $(WRC)
 
diff --git a/tools/make_makefiles b/tools/make_makefiles
index 7084258..39441de 100755
--- a/tools/make_makefiles
+++ b/tools/make_makefiles
@@ -304,7 +304,7 @@ sub parse_makefile($)
             $make{$1} = $2;
             next;
         }
-        if (/^\s*(BISON_SRCS|LEX_SRCS|IDL_[CHIPS]_SRCS|IDL_TLB_SRCS|IMPLIB_SRCS|C_SRCS|MC_SRCS|RC_SRCS|SVG_SRCS|MANPAGES|PROGRAMS)\s*=\s*(.*)/)
+        if (/^\s*(BISON_SRCS|LEX_SRCS|IDL_[CHIPRS]_SRCS|IDL_TLB_SRCS|IMPLIB_SRCS|C_SRCS|MC_SRCS|RC_SRCS|SVG_SRCS|MANPAGES|PROGRAMS)\s*=\s*(.*)/)
         {
             my @list = split(/\s+/, $2);
             $make{$1} = \@list;




More information about the wine-cvs mailing list