2003-11-18 11:38:25 +00:00
|
|
|
bin_PROGRAMS = nix-instantiate
|
2003-10-29 15:05:18 +00:00
|
|
|
|
2003-11-18 12:06:07 +00:00
|
|
|
nix_instantiate_SOURCES = nixexpr.cc parser.cc eval.cc primops.cc main.cc
|
2003-11-18 11:38:25 +00:00
|
|
|
nix_instantiate_LDADD = ../libmain/libmain.a ../libstore/libstore.a ../libutil/libutil.a \
|
2003-11-18 10:47:59 +00:00
|
|
|
../boost/format/libformat.a -L../../externals/inst/lib -ldb_cxx \
|
|
|
|
-lsglr -lATB -lconversion -lasfix2 -lmept -lATerm
|
2003-10-29 15:05:18 +00:00
|
|
|
|
|
|
|
AM_CXXFLAGS = \
|
2003-11-18 10:55:27 +00:00
|
|
|
-I.. -I../../externals/inst/include -I../libutil -I../libstore -I../libmain
|
2003-10-29 16:05:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Parse table generation.
|
|
|
|
|
|
|
|
parser.o: parse-table.h
|
|
|
|
|
2003-11-18 12:06:07 +00:00
|
|
|
parse-table.h: nix.tbl
|
|
|
|
../bin2c/bin2c nixParseTable < $< > $@ || (rm $@ && exit 1)
|
2003-10-29 16:05:03 +00:00
|
|
|
|
|
|
|
%.tbl: %.sdf
|
2003-11-19 10:04:03 +00:00
|
|
|
../../externals/inst/bin/sdf2table -s -i $< -o $@
|
2003-10-29 16:05:03 +00:00
|
|
|
|
2003-11-18 12:06:07 +00:00
|
|
|
CLEANFILES = parse-table.h nix.tbl
|