Wipe out the old (bison/flex generated) parser.
[ginac.git] / ginac / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 lib_LTLIBRARIES = libginac.la
4 libginac_la_SOURCES = add.cpp archive.cpp basic.cpp clifford.cpp color.cpp \
5   constant.cpp ex.cpp excompiler.cpp expair.cpp expairseq.cpp exprseq.cpp \
6   fail.cpp factor.cpp fderivative.cpp function.cpp idx.cpp indexed.cpp inifcns.cpp \
7   inifcns_trans.cpp inifcns_gamma.cpp inifcns_nstdsums.cpp \
8   integral.cpp lst.cpp matrix.cpp mul.cpp ncmul.cpp normal.cpp numeric.cpp \
9   operators.cpp power.cpp registrar.cpp relational.cpp remember.cpp \
10   pseries.cpp print.cpp symbol.cpp symmetry.cpp tensor.cpp \
11   utils.cpp wildcard.cpp \
12   remember.h tostring.h utils.h compiler.h \
13   parser/parse_binop_rhs.cpp \
14   parser/parser.cpp \
15   parser/parse_context.cpp \
16   parser/builtin_fcns.cpp \
17   parser/lexer.cpp \
18   parser/lexer.hpp \
19   parser/parser_compat.cpp \
20   parser/debug.hpp
21   
22 libginac_la_LDFLAGS = -version-info $(LT_VERSION_INFO) -release $(LT_RELEASE)
23 libginac_la_LIBADD = $(DL_LIBS)
24 ginacincludedir = $(includedir)/ginac
25 ginacinclude_HEADERS = ginac.h add.h archive.h assertion.h basic.h class_info.h \
26   clifford.h color.h constant.h container.h ex.h excompiler.h expair.h expairseq.h \
27   exprseq.h fail.h factor.h fderivative.h flags.h function.h hash_map.h idx.h indexed.h \
28   inifcns.h integral.h lst.h matrix.h mul.h ncmul.h normal.h numeric.h operators.h \
29   power.h print.h pseries.h ptr.h registrar.h relational.h structure.h \
30   symbol.h symmetry.h tensor.h version.h wildcard.h \
31   parser/parser.hpp \
32   parser/parse_context.hpp
33
34 EXTRA_DIST = function.pl version.h.in \
35 parser/default_reader.tpl parser/builtin_fcns.def
36
37 # Files produced by autogen(1) from templates
38 $(srcdir)/parser/builtin_fcns.cpp: $(srcdir)/parser/builtin_fcns.def $(srcdir)/parser/default_reader.tpl
39         set -e; if [ -n "$(AUTOGEN)" ]; then \
40                 cd $(srcdir)/parser; \
41                 $(AUTOGEN) -T default_reader.tpl builtin_fcns.def; \
42         elif [ -f $@ ]; then \
43                 echo "WARNING: AutoGen is not available, the \"$@\" file WON'T be re-generated"; \
44         else \
45                 echo "*** ERROR: the \"$@\" file does not exist, and AutoGen is not installed on your system"; \
46                 echo "***        Please install AutoGen (http://www.gnu.org/software/autogen)"; \
47                 exit 1; \
48         fi
49                 
50
51 # Files which are generated by perl scripts
52 $(srcdir)/function.h $(srcdir)/function.cpp: $(srcdir)/function.pl
53         cd $(srcdir) && perl -w function.pl
54
55 # Force build of headers before compilation
56 $(srcdir)/add.cpp: $(srcdir)/function.h