summaryrefslogtreecommitdiffabout
path: root/src/Make.am
Side-by-side diff
Diffstat (limited to 'src/Make.am') (more/less context) (ignore whitespace changes)
-rw-r--r--src/Make.am19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/Make.am b/src/Make.am
index 915e6c4..60c0f06 100644
--- a/src/Make.am
+++ b/src/Make.am
@@ -14,26 +14,36 @@
# You should have received a copy of the GNU General Public License
# along with Grecs. If not, see <http://www.gnu.org/licenses/>.
+if GRECS_COND_META1_PARSER
+ GRECS_PARSER_META1 = meta1-gram.y meta1-lex.l
+ GRECS_EXTRA_META1 = meta1-gram.h
+endif
+
GRECS_SRC = \
+ asprintf.c\
diag.c\
format.c\
grecs-gram.y\
grecs-lex.l\
join.c\
+ lineacc.c\
list.c\
lookup.c\
mem.c\
+ parser.c\
preproc.c\
sort.c\
symtab.c\
text.c\
tree.c\
+ txtacc.c\
version.c\
- wordsplit.c
+ wordsplit.c\
+ $(GRECS_PARSER_META1)
-noinst_HEADERS = yygrecs.h
+noinst_HEADERS =
-EXTRA_DIST=grecs-gram.h $(PP_SETUP_FILE) Make.am Make-inst.am Make-shared.am Make-static.am
+EXTRA_DIST=grecs-gram.h $(GRECS_EXTRA_META1) $(PP_SETUP_FILE) Make.am Make-inst.am Make-shared.am Make-static.am
INCLUDES = -I$(srcdir) -I$(top_srcdir)/@GRECS_SUBDIR@ @GRECS_INCLUDES@ @GRECS_HOST_PROJECT_INCLUDES@
AM_YFLAGS = -dtv
@@ -41,3 +51,6 @@ AM_LFLAGS = -d
incdir=$(pkgdatadir)/$(VERSION)/include
inc_DATA = $(PP_SETUP_FILE)
+
+LEXCOMPILE = $(top_srcdir)/@GRECS_SUBDIR@/build-aux/yyrename '$(LEX) $(LFLAGS) $(AM_LFLAGS)'
+YACCCOMPILE = $(top_srcdir)/@GRECS_SUBDIR@/build-aux/yyrename '$(YACC) $(YFLAGS) $(AM_YFLAGS)' \ No newline at end of file

Return to:

Send suggestions and report system problems to the System administrator.