5f1b42f0e9c50cfa52a4e99f7f342c76d9daa500
[cvc5.git] / Makefile
1 # -*-makefile-*-
2 #
3 # This makefile is the _source_ directory's makefile, and is static,
4 # not generated. Makefile.am is the automake makefile for the build
5 # top-level (its corresponding Makefile.in is here, too, but the
6 # corresponding Makefile is under builds/$arch/$buildid.
7 #
8 builddir = builds
9
10 .PHONY: all
11 all .DEFAULT:
12 @if test -d $(builddir); then \
13 echo cd $(builddir); \
14 cd $(builddir); \
15 echo $(MAKE) $@; \
16 $(MAKE) $@; \
17 else \
18 echo; \
19 echo 'Run configure first, or type "make" in a configured build directory.'; \
20 echo; \
21 fi
22
23 distclean maintainerclean:
24 @if test -d $(builddir); then \
25 echo cd $(builddir); \
26 cd $(builddir); \
27 echo $(MAKE) $@; \
28 $(MAKE) $@; \
29 fi
30 test -z "$(builddir)" || rm -fr "$(builddir)"
31 rm -f config.reconfig
32
33 # synonyms for "check"
34 .PHONY: test
35 test: check
36
37 .PHONY: doc
38 doc: doc-builds
39
40 .PHONY: examples
41 examples: all
42 (cd examples && $(MAKE) $(AM_MAKEFLAGS))
43
44 YEAR := $(shell date +%Y)
45 submission:
46 if [ ! -e configure ]; then ./autogen.sh; fi
47 ./configure competition --disable-shared --enable-static-binary --with-cln
48 $(MAKE)
49 strip builds/bin/cvc4
50 $(MAKE) regress1
51 mkdir -p cvc4-smtcomp-$(YEAR)
52 cp -p builds/bin/cvc4 cvc4-smtcomp-$(YEAR)/cvc4
53 ( echo '#!/bin/sh'; \
54 echo 'exec ./cvc4 -L smt2 --no-interactive' ) > cvc4-smtcomp-$(YEAR)/run
55 chmod 755 cvc4-smtcomp-$(YEAR)/run
56 tar cf cvc4-smtcomp-$(YEAR).tar cvc4-smtcomp-$(YEAR)