Alexandre Julliard : makefiles: Generate explicit build rules for dlldata. c from makedep.

Alexandre Julliard julliard at winehq.org
Tue Oct 15 13:27:10 CDT 2013


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Oct 15 12:35:11 2013 +0200

makefiles: Generate explicit build rules for dlldata.c from makedep.

---

 Make.rules.in   |    5 -----
 tools/makedep.c |   10 ++++++++++
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/Make.rules.in b/Make.rules.in
index 83797ba..116dffd 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -65,11 +65,6 @@ CROSSOBJS = $(OBJS:.o=.cross.o)
 .po.mo:
 	$(MSGFMT) -o $@ $<
 
-# Rules for IDL files
-
-dlldata.c: $(WIDL) Makefile.in
-	$(WIDL) $(IDLFLAGS) --dlldata-only -o $@ $(IDL_P_SRCS)
-
 # Rules for main module
 
 $(MODULE) $(MODULE:%=%.so) $(MODULE:%=%.fake): $(MAINSPEC) $(OBJS) Makefile.in
diff --git a/tools/makedep.c b/tools/makedep.c
index 384a1a2..6141d4b 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -1096,6 +1096,16 @@ static void output_sources(void)
             if (strendswith( source->name, ".mc" )) output_filename( source->filename, &column );
         output( "\n" );
     }
+
+    if (find_src_file( "dlldata.o" ))
+    {
+        output( "dlldata.c: $(WIDL) Makefile.in\n" );
+        column = output( "\t$(WIDL) $(IDLFLAGS) --dlldata-only -o $@" );
+        LIST_FOR_EACH_ENTRY( source, &sources, struct incl_file, entry )
+            if (strendswith( source->name, ".idl" ) && find_target_src_file( source->name, "_p.c" ))
+                output_filename( source->filename, &column );
+        output( "\n" );
+    }
 }
 
 




More information about the wine-cvs mailing list