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

oldstable
Alexandre Julliard 2013-10-15 12:35:11 +02:00
parent d9a75184c7
commit d4593274dc
2 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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" );
}
}