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

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


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Oct 14 19:49:29 2013 +0200

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

---

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

diff --git a/Make.rules.in b/Make.rules.in
index 30a72fa..430e91b 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -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 $@ $<
 
diff --git a/tools/makedep.c b/tools/makedep.c
index 498a05d..d49c90a 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -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 */




More information about the wine-cvs mailing list