From 75068e7d753cf6cbe45a4bf294000dca9bd41d8b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 4 Sep 2006 21:06:23 +0000 Subject: * Use a proper namespace. * Optimise header file usage a bit. * Compile the parser as C++. --- src/libexpr/Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libexpr/Makefile.am') diff --git a/src/libexpr/Makefile.am b/src/libexpr/Makefile.am index f0850425994f..3696e99d54f6 100644 --- a/src/libexpr/Makefile.am +++ b/src/libexpr/Makefile.am @@ -2,13 +2,13 @@ pkglib_LTLIBRARIES = libexpr.la libexpr_la_SOURCES = nixexpr.cc nixexpr.hh parser.cc parser.hh \ eval.cc eval.hh primops.cc \ - lexer-tab.c lexer-tab.h parser-tab.c parser-tab.h \ + lexer-tab.c lexer-tab.h parser-tab.cc parser-tab.hh \ get-drvs.cc get-drvs.hh \ attr-path.cc attr-path.hh \ expr-to-xml.cc expr-to-xml.hh BUILT_SOURCES = nixexpr-ast.cc nixexpr-ast.hh \ - parser-tab.h lexer-tab.h parser-tab.c lexer-tab.c + parser-tab.hh lexer-tab.h parser-tab.cc lexer-tab.c EXTRA_DIST = lexer.l parser.y nixexpr-ast.def nixexpr-ast.cc @@ -21,8 +21,8 @@ AM_CFLAGS = \ # Parser generation. -parser-tab.c parser-tab.h: parser.y - $(bison) -v -o parser-tab.c $(srcdir)/parser.y -d +parser-tab.cc parser-tab.hh: parser.y + $(bison) -v -o parser-tab.cc $(srcdir)/parser.y -d lexer-tab.c lexer-tab.h: lexer.l $(flex) --outfile lexer-tab.c --header-file=lexer-tab.h $(srcdir)/lexer.l -- cgit 1.4.1