diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-09-02 20:41:08 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-09-02 20:41:08 +0000 |
commit | 1d18e5ebed9a5b20ed6a8fe21d11842acf6fa7ea (patch) | |
tree | 7074f04453914bc377ff6aeb307dd17b82b76ff3 /src/Makefile.am | |
parent | 74770f1071e6102795393cf65dd0c651038db6b4 (diff) |
Merge from my post-smtcomp branch. Includes:
Dumping infrastructure. Can dump preprocessed queries and clauses. Can
also dump queries (for testing with another solver) to see if any conflicts
are missed, T-propagations are missed, all lemmas are T-valid, etc. For a
full list of options see --dump=help.
CUDD building much cleaner.
Documentation and assertion fixes.
Printer improvements, printing of commands in language-defined way, etc.
Typechecker stuff in expr package now autogenerated, no need to manually
edit the expr package when adding a new theory.
CVC3 compatibility layer (builds as libcompat).
SWIG detection and language binding support (infrastructure).
Support for some Z3 extended commands (like datatypes) in SMT-LIBv2 mode
(when not in compliance mode).
Copyright and file headers regenerated.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index de9aa0339..9ffe249ee 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,10 +17,12 @@ AM_CPPFLAGS = \ -I@srcdir@/include -I@srcdir@ -I@builddir@ AM_CXXFLAGS = -Wall -Wno-unknown-pragmas $(FLAG_VISIBILITY_HIDDEN) -SUBDIRS = lib expr util context theory prop smt printer . parser main +SUBDIRS = lib expr util context theory prop smt printer bindings . parser compat main lib_LTLIBRARIES = libcvc4.la +if HAVE_CXXTESTGEN noinst_LTLIBRARIES = libcvc4_noinst.la +endif libcvc4_la_LDFLAGS = -version-info $(LIBCVC4_VERSION) @@ -57,10 +59,6 @@ EXTRA_DIST = \ include/cvc4_private.h \ include/cvc4_public.h -publicheaders = \ - include/cvc4_public.h \ - include/cvc4parser_public.h - subversion_versioninfo.cpp: svninfo $(AM_V_GEN)( \ if test -s svninfo; then \ @@ -87,16 +85,39 @@ svninfo: svninfo.tmp svninfo.tmp: $(AM_V_GEN)(cd "$(top_srcdir)" && svn info && echo "Modifications: `test -z \"\`svn status -q\`\" && echo false || echo true`") >"$@" 2>/dev/null || true -install-data-local: $(publicheaders) - $(mkinstalldirs) $(DESTDIR)$(prefix)$(includedir)/cvc4 - @for f in $(publicheaders); do \ - echo $(INSTALL_DATA) "$(srcdir)/$$f" "$(DESTDIR)$(prefix)$(includedir)/cvc4"; \ - $(INSTALL_DATA) "$(srcdir)/$$f" "$(DESTDIR)$(prefix)$(includedir)/cvc4"; \ +install-data-local: + (echo include/cvc4_public.h; \ + find * -name '*.h' | \ + xargs grep -l '^# *include *"cvc4.*_public\.h"'; \ + (cd "$(srcdir)" && find * -name '*.h' | \ + xargs grep -l '^# *include *"cvc4.*_public\.h"')) | \ + while read f; do \ + if expr "$$f" : ".*_\(template\|private\|test_utils\)\.h$$" &>/dev/null; then \ + continue; \ + fi; \ + d="$$(echo "$$f" | sed 's,^include/,,')"; \ + $(mkinstalldirs) "$$(dirname "$(DESTDIR)$(includedir)/cvc4/$$d")"; \ + if [ -e "$$f" ]; then \ + path="$$f"; \ + else \ + path="$(srcdir)/$$f"; \ + fi; \ + echo $(INSTALL_DATA) "$$path" "$(DESTDIR)$(includedir)/cvc4/$$d"; \ + $(INSTALL_DATA) "$$path" "$(DESTDIR)$(includedir)/cvc4/$$d"; \ done uninstall-local: - @for f in $(publicheaders); do \ - f=`echo "$$f" | sed 's,.*/,,'`; \ - rm -f "$(DESTDIR)$(prefix)$(includedir)/cvc4/$$f"; \ + -(echo include/cvc4_public.h; \ + find * -name '*.h' | \ + xargs grep -l '^# *include *"cvc4.*_public\.h"'; \ + (cd "$(srcdir)" && find * -name '*.h' | \ + xargs grep -l '^# *include *"cvc4.*_public\.h"')) | \ + while read f; do \ + if expr "$$f" : ".*_\(template\|private\|test_utils\)\.h$$" &>/dev/null; then \ + continue; \ + fi; \ + d="$$(echo "$$f" | sed 's,^include/,,')"; \ + rm -f "$(DESTDIR)$(includedir)/cvc4/$$d"; \ + rmdir -p "$$(dirname "$(DESTDIR)$(includedir)/cvc4/$$d")" 2>/dev/null; \ done - @rmdir "$(DESTDIR)$(prefix)$(includedir)/cvc4" + -rmdir "$(DESTDIR)$(includedir)/cvc4" |