summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 17c8671635d88c7b941b5fc881952f9ee167d63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# LIBCVC4_VERSION (-version-info) is in the form current:revision:age
#
# current -
#   increment if interfaces have been added, removed or changed
# revision -
#   increment if source code has changed
#   set to zero if current is incremented
# age -
#   increment if interfaces have been added
#   set to zero if interfaces have been removed
#   or changed
#
LIBCVC4_VERSION = @CVC4_LIBRARY_VERSION@

AM_CPPFLAGS =
	-D__BUILDING_CVC4LIB \
	-I@srcdir@/include -I@srcdir@
AM_CXXFLAGS = -Wall -fvisibility=hidden

SUBDIRS = expr util context theory prop smt . parser main

lib_LTLIBRARIES = libcvc4.la

noinst_LTLIBRARIES = libcvc4_noinst.la

libcvc4_la_LDFLAGS = -version-info $(LIBCVC4_VERSION)
libcvc4_la_LINK = $(CXXLINK)

libcvc4_la_SOURCES =
libcvc4_la_LIBADD = libcvc4_noinst.la

# empty.cpp is a fake file added to "trick" automake into linking us as a
# C++ library (rather than as a C library, which messes up exception
# handling support)
libcvc4_noinst_la_SOURCES = empty.cpp
libcvc4_noinst_la_LIBADD = \
	@builddir@/util/libutil.la \
	@builddir@/expr/libexpr.la \
	@builddir@/context/libcontext.la \
	@builddir@/prop/libprop.la \
	@builddir@/prop/minisat/libminisat.la \
	@builddir@/smt/libsmt.la \
	@builddir@/theory/libtheory.la

# empty.cpp hack; see above
empty.cpp:; touch empty.cpp

publicheaders = \
	include/cvc4_public.h \
	include/cvc4parser_public.h

install-data-local: $(publicheaders)
	$(mkinstalldirs) $(DESTDIR)$(includedir)/cvc4
	@for f in $(publicheaders); do \
		echo $(INSTALL_DATA) "$(srcdir)/$$f" "$(DESTDIR)/$(includedir)/cvc4"; \
		$(INSTALL_DATA) "$(srcdir)/$$f" "$(DESTDIR)/$(includedir)/cvc4"; \
	done

include/cvc4.h: smt/smt_engine.h
	@srcdir@/headergen.pl $< $@
include/cvc4_expr.h: expr/expr.h
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback