about summary refs log blame commit diff
path: root/src/libexpr/Makefile.am
blob: a11dbbda6c260f29c399473d35b7bd8c3324b3c5 (plain) (tree)
1
2
3
4
5
6
7
                            
 

                                                               

               
                                                               





                         

                                                                   

            
                                                         
 
                                  
noinst_LIBRARIES = libexpr.a

libexpr_a_SOURCES = nixexpr.cc nixexpr.hh parser.cc parser.hh \
 eval.cc eval.hh primops.cc primops.hh nix.sdf

AM_CXXFLAGS = \
 -I.. -I../../externals/inst/include -I../libutil -I../libstore


# Parse table generation.

parser.o: parse-table.h

parse-table.h: nix.tbl
	../bin2c/bin2c nixParseTable < $< > $@ || (rm $@ && exit 1)

%.tbl: %.sdf
	../../externals/inst/bin/sdf2table -s -i $< -o $@

CLEANFILES = parse-table.h nix.tbl