about summary refs log tree commit diff
path: root/src/libexpr/Makefile.new
blob: 5664365841788b1ee12bc1dd6af871056253630e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
LIBS += libexpr

libexpr_DIR := $(here)

libexpr_SOURCES = \
  nixexpr.cc eval.cc primops.cc lexer-tab.cc parser-tab.cc \
  get-drvs.cc attr-path.cc value-to-xml.cc value-to-json.cc \
  common-opts.cc names.cc

$(here)parser-tab.cc $(here)parser-tab.hh: $(here)parser.y
	bison -v -o $(here)parser-tab.cc $< -d

$(here)lexer-tab.cc $(here)lexer-tab.hh: $(here)lexer.l
	flex --outfile $(here)lexer-tab.cc --header-file=$(here)lexer-tab.hh $<