makefiles: Generate explicit build rules for lex files from makedep.

This commit is contained in:
Alexandre Julliard 2013-10-14 19:49:29 +02:00
parent 66a559328a
commit efef36c05a
2 changed files with 3 additions and 4 deletions

View File

@ -36,7 +36,7 @@ CROSSOBJS = $(OBJS:.o=.cross.o)
# Implicit rules
.SUFFIXES: .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 _t.res .cross.o .po .mo @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
.SUFFIXES: .mc .rc .res .idl .tlb .h .y .tab.c .tab.h .ok .man.in .man _c.c _i.c _p.c _s.c _r.res _t.res .cross.o .po .mo @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
.c.o:
$(CC) -c $(ALLCFLAGS) -o $@ $<
@ -53,9 +53,6 @@ CROSSOBJS = $(OBJS:.o=.cross.o)
.y.tab.h:
$(BISON) $(BISONFLAGS) -p $*_ -o $*.tab.c -d $<
.l.yy.c:
$(FLEX) $(LEXFLAGS) -o$@ $<
.mc.res:
$(WMC) -U -O res $(PORCFLAGS) -o $@ $<

View File

@ -947,6 +947,8 @@ static void output_sources(void)
}
else if (!strcmp( ext, "l" )) /* lex file */
{
output( "%s.yy.c: %s\n", obj, source->filename );
output( "\t$(FLEX) $(LEXFLAGS) -o$@ %s\n", source->filename );
column += output( "%s.yy.o: %s.yy.c", obj, obj );
}
else if (!strcmp( ext, "rc" )) /* resource file */