]> granicus.if.org Git - yasm/commitdiff
Fix how lex and yacc are handled.
authorPeter Johnson <peter@tortall.net>
Fri, 29 Jun 2001 05:11:17 +0000 (05:11 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 29 Jun 2001 05:11:17 +0000 (05:11 -0000)
svn path=/trunk/yasm/; revision=70

src/Makefile.am

index f7333354dbc6555240ff66ae6db0897618170c67..0415ff70d950e6350697a216321300fbcab14eaa 100644 (file)
@@ -1,10 +1,8 @@
 bin_PROGRAMS = yasm
 
-INCLUDES = -I$(top_srcdir)/include
-
 yasm_SOURCES = \
-       lex.yy.c                \
-       bison.tab.c             \
+       bison.y                 \
+       token.l                 \
        bytecode.c              \
        errwarn.c               \
        main.c                  \
@@ -12,24 +10,13 @@ yasm_SOURCES = \
 
 noinst_SCRIPTS = gen_instr.pl
 
-# yes, generate it locally.
-bison.tab.c: bison.y
-       $(YACC) -d -t $(srcdir)/$< -o $@
-       mv bison.tab.h $(top_srcdir)/include/
-
-# yes, generate it locally.
-lex.yy.c: token.l
-       $(LEX) -o$@ $(srcdir)/$<
+AM_YFLAGS = -d
 
 token.l bison.y: instrs.dat token.l.in bison.y.in gen_instr.pl
        $(PERL) $(srcdir)/gen_instr.pl -i $(srcdir)/instrs.dat -t $(srcdir)/token.l -g $(srcdir)/bison.y
 
-BUILT_SOURCES = token.l bison.y lex.yy.c bison.tab.c
+BUILT_SOURCES = token.l bison.y
 
 EXTRA_DIST = \
        instrs.dat              \
-       gen_instr.pl            \
-       token.l.in              \
-       lex.yy.c                \
-       bison.y.in              \
-       bison.tab.c
+       gen_instr.pl