From: Peter Johnson Date: Mon, 3 Jun 2002 07:21:19 +0000 (-0000) Subject: Re-enable building of re2c (not lemon yet), including a generic Makefile rule. X-Git-Tag: v0.2.0~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13c443b70c999bfa9c4876fa2b05be01683f5e3d;p=yasm Re-enable building of re2c (not lemon yet), including a generic Makefile rule. A rewrite of the nasm-compat lexer in re2c is close to completion. svn path=/trunk/yasm/; revision=648 --- diff --git a/Makefile.am b/Makefile.am index b74f6798..583d7edd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ # $IdPath$ -SUBDIRS = libltdl m4 po +SUBDIRS = libltdl tools m4 po CFLAGS = @ANSI_CFLAGS@ AM_YFLAGS = -d @@ -35,3 +35,7 @@ EXTRA_DIST += \ Mkfiles/Makefile.vc Mkfiles/vc/config.h ACLOCAL_AMFLAGS = -I m4 + +SUFFIXES = .re +.re.c: tools/re2c/re2c$(EXEEXT) + tools/re2c/re2c -b $< | tools/re2c/cleanup.pl > $@ diff --git a/configure.ac b/configure.ac index b3bacc05..af183626 100644 --- a/configure.ac +++ b/configure.ac @@ -285,6 +285,8 @@ AC_SUBST(LIBLTDL) AC_CONFIG_FILES([Makefile libltdl/Makefile + tools/Makefile + tools/re2c/Makefile m4/Makefile po/Makefile.in ]) diff --git a/tools/Makefile.am b/tools/Makefile.am index 4890371d..de43148d 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,2 +1,2 @@ # $IdPath$ -SUBDIRS = lemon re2c +SUBDIRS = re2c