2006-09-04 18:12:24 +03:00
|
|
|
pkglib_LTLIBRARIES = libexpr.la
|
2003-10-29 17:05:18 +02:00
|
|
|
|
2006-09-05 01:55:28 +03:00
|
|
|
libexpr_la_SOURCES = \
|
|
|
|
nixexpr.cc eval.cc primops.cc lexer-tab.cc parser-tab.cc \
|
2010-04-07 16:59:45 +03:00
|
|
|
get-drvs.cc attr-path.cc value-to-xml.cc common-opts.cc \
|
2008-07-01 13:10:32 +03:00
|
|
|
names.cc
|
2006-09-05 01:55:28 +03:00
|
|
|
|
|
|
|
pkginclude_HEADERS = \
|
2012-02-04 15:50:25 +02:00
|
|
|
nixexpr.hh eval.hh eval-inline.hh lexer-tab.hh parser-tab.hh \
|
2010-04-07 16:59:45 +03:00
|
|
|
get-drvs.hh attr-path.hh value-to-xml.hh common-opts.hh \
|
2012-01-07 19:26:33 +02:00
|
|
|
names.hh symbol-table.hh value.hh
|
2006-09-05 01:41:36 +03:00
|
|
|
|
|
|
|
libexpr_la_LIBADD = ../libutil/libutil.la ../libstore/libstore.la \
|
2011-02-09 23:23:13 +02:00
|
|
|
../boost/format/libformat.la @BDW_GC_LIBS@
|
2004-01-30 19:14:08 +02:00
|
|
|
|
2010-04-12 21:30:11 +03:00
|
|
|
BUILT_SOURCES = \
|
2006-09-05 00:36:15 +03:00
|
|
|
parser-tab.hh lexer-tab.hh parser-tab.cc lexer-tab.cc
|
2006-05-12 14:47:45 +03:00
|
|
|
|
2010-04-12 21:30:11 +03:00
|
|
|
EXTRA_DIST = lexer.l parser.y
|
2003-10-29 17:05:18 +02:00
|
|
|
|
|
|
|
AM_CXXFLAGS = \
|
2010-04-19 17:51:58 +03:00
|
|
|
-I$(srcdir)/.. \
|
2010-10-22 16:39:15 +03:00
|
|
|
-I$(srcdir)/../libutil -I$(srcdir)/../libstore
|
2003-10-29 18:05:03 +02:00
|
|
|
|
|
|
|
|
2004-01-30 17:21:42 +02:00
|
|
|
# Parser generation.
|
2003-10-29 18:05:03 +02:00
|
|
|
|
2006-09-05 00:06:23 +03:00
|
|
|
parser-tab.cc parser-tab.hh: parser.y
|
|
|
|
$(bison) -v -o parser-tab.cc $(srcdir)/parser.y -d
|
2003-10-29 18:05:03 +02:00
|
|
|
|
2006-09-05 00:36:15 +03:00
|
|
|
lexer-tab.cc lexer-tab.hh: lexer.l
|
|
|
|
$(flex) --outfile lexer-tab.cc --header-file=lexer-tab.hh $(srcdir)/lexer.l
|
2003-10-29 18:05:03 +02:00
|
|
|
|
|
|
|
|
2005-07-16 17:07:35 +03:00
|
|
|
# SDF stuff (not built by default).
|
|
|
|
nix.tbl: nix.sdf
|
|
|
|
sdf2table -m Nix -s -i nix.sdf -o nix.tbl
|
|
|
|
|
|
|
|
test.ast: test.nix nix.tbl
|
|
|
|
sglri -p nix.tbl -i test.nix -o test.ast
|