configure.in: only compile occ if code_gen library is available
[barvinok.git] / omega / Makefile.am
blobf0b9776db55f4a6a10b805ae2054ebc10a074664
1 noinst_PROGRAMS = @bv_omega_programs@
2 EXTRA_PROGRAMS = occ
4 occ_SOURCES = \
5         Exit.cc \
6         convert.cc \
7         convert.h \
8         count.cc \
9         count.h \
10         lex.yy.cc \
11         polyfunc.cc \
12         polyfunc.h \
13         vertices.cc \
14         vertices.h \
15         y.tab.cc \
16         omega_calc/yylex.h
17 LDADD = -lcode_gen -lomega ../libbarvinok.la ../bernstein/libbernstein.la \
18         @POLYLIB_LIBS@ @PIPLIB_LIBS@
19 AM_LDFLAGS = @OMEGA_LDFLAGS@ @POLYLIB_LDFLAGS@ @PIPLIB_LDFLAGS@
20 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/bernstein/include \
21             @OMEGA_CPPFLAGS@
23 EXTRA_DIST = \
24         parser.l \
25         parser.y
27 YACC_FLAGS = -d
29 y.tab.hh y.tab.cc: parser.y
30         $(YACC) -o y.tab.cc -v -d $<
32 lex.yy.cc: parser.l y.tab.hh
33         $(LEX) -olex.yy.cc -i $<