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.
10 .PHONY
: all install examples install-examples
11 all install examples install-examples .DEFAULT
:
12 @if
test -d
$(builddir
); then \
13 echo cd
$(builddir
); \
16 $(MAKE
) $@ || exit
1; \
17 $(MAKE
) show-config
; \
20 echo
'Run configure first, or type "make" in a configured build directory.'; \
24 distclean maintainerclean
:
25 @if
test -d
$(builddir
); then \
26 echo cd
$(builddir
); \
29 $(MAKE
) $@ || exit
1; \
31 test -z
"$(builddir)" ||
rm -fr
"$(builddir)"
34 # synonyms for "check"
38 .PHONY
: doc doc-internals
40 doc-internals
: doc-internals-builds
42 YEAR
:= $(shell date
+%Y
)
43 submission submission-main
:
44 @if
[ -n
"`ls src/parser/*/generated 2>/dev/null`" ]; then \
46 echo
'ERROR: Please make maintainer-clean first.' >&2; \
50 @if
test -d cvc4-smtcomp-
$(YEAR
) ||
test -e cvc4-smtcomp-
$(YEAR
).zip
; then \
52 echo
'ERROR: Please remove cvc4-smtcomp-$(YEAR) and cvc4-smtcomp-$(YEAR).zip first.' >&2; \
57 .
/configure competition
--disable-shared
--enable-static-binary
--with-cln
--with-glpk
--with-abc
--enable-gpl
61 #$(MAKE) -C test/regress/regress1 check
63 mkdir
-p cvc4-smtcomp-
$(YEAR
)/bin
64 cp
-p builds
/bin
/cvc4 cvc4-smtcomp-
$(YEAR
)/bin
/cvc4
65 cp contrib
/run-script-smtcomp2014 cvc4-smtcomp-
$(YEAR
)/bin
/starexec_run_default
66 chmod
755 cvc4-smtcomp-
$(YEAR
)/bin
/starexec_run_default
67 echo
"CVC4 for SMT_COMP main track `builds/bin/cvc4 --version | head -1 | sed 's,.*version ,,;s,-,_,g;s,[^a-zA-Z0-9. _],,g'`" > cvc4-smtcomp-
$(YEAR
)/starexec_description.txt
68 cd cvc4-smtcomp-
$(YEAR
) && zip
-r ..
/cvc4-smtcomp-
$(YEAR
).zip
*
69 submission-application
:
70 # application track is a separate build because it has different preprocessor #defines
71 @if
[ -n
"`ls src/parser/*/generated 2>/dev/null`" ]; then \
73 echo
'ERROR: Please make maintainer-clean first.' >&2; \
77 @if
test -d cvc4-application-smtcomp-
$(YEAR
) ||
test -e cvc4-application-smtcomp-
$(YEAR
).zip
; then \
79 echo
'ERROR: Please remove cvc4-application-smtcomp-$(YEAR) and cvc4-application-smtcomp-$(YEAR).zip first.' >&2; \
84 .
/configure competition
--disable-shared
--enable-static-binary
--with-cln
--with-glpk
--with-abc
--enable-gpl CXXFLAGS
=-DCVC4_SMTCOMP_APPLICATION_TRACK CFLAGS
=-DCVC4_SMTCOMP_APPLICATION_TRACK
88 #$(MAKE) -C test/regress/regress1 check
89 # package the application track zipfile
90 mkdir
-p cvc4-application-smtcomp-
$(YEAR
)/bin
91 cp
-p builds
/bin
/cvc4 cvc4-application-smtcomp-
$(YEAR
)/bin
/cvc4
92 cp contrib
/run-script-smtcomp2014-application cvc4-application-smtcomp-
$(YEAR
)/bin
/starexec_run_default
93 chmod
755 cvc4-application-smtcomp-
$(YEAR
)/bin
/starexec_run_default
94 echo
"CVC4 for SMT_COMP application track `builds/bin/cvc4 --version | head -1 | sed 's,.*version ,,;s,-,_,g;s,[^a-zA-Z0-9. _],,g'`" > cvc4-application-smtcomp-
$(YEAR
)/starexec_description.txt
95 cd cvc4-application-smtcomp-
$(YEAR
) && zip
-r ..
/cvc4-application-smtcomp-
$(YEAR
).zip
*
97 # parallel track can't be built with -cln, so it's a separate build
98 @if
[ -n
"`ls src/parser/*/generated 2>/dev/null`" ]; then \
100 echo
'ERROR: Please make maintainer-clean first.' >&2; \
104 @if
test -d cvc4-parallel-smtcomp-
$(YEAR
) ||
test -e cvc4-parallel-smtcomp-
$(YEAR
).zip
; then \
106 echo
'ERROR: Please remove cvc4-parallel-smtcomp-$(YEAR) and cvc4-parallel-smtcomp-$(YEAR).zip first.' >&2; \
111 .
/configure competition
--disable-shared
--enable-static-binary
--with-gmp
--with-portfolio
--with-glpk
--with-abc
--enable-gpl
113 strip builds
/bin
/pcvc4
114 # some test cases fail (and are known to fail)
115 -$(MAKE
) check BINARY
=pcvc4
116 #$(MAKE) -C test/regress/regress1 check BINARY=pcvc4
117 # package the parallel track zipfile
118 mkdir
-p cvc4-parallel-smtcomp-
$(YEAR
)/bin
119 cp
-p builds
/bin
/pcvc4 cvc4-parallel-smtcomp-
$(YEAR
)/bin
/pcvc4
120 ( echo
'#!/bin/sh'; \
121 echo
'exec ./pcvc4 --threads 2 -L smt2 --no-checking --no-interactive' ) > cvc4-parallel-smtcomp-
$(YEAR
)/bin
/starexec_run_default
122 chmod
755 cvc4-parallel-smtcomp-
$(YEAR
)/bin
/starexec_run_default
123 echo
"CVC4 for SMT_COMP parallel track `builds/bin/cvc4 --version | head -1 | sed 's,.*version ,,;s,-,_,g;s,[^a-zA-Z0-9. _],,g'`" > cvc4-parallel-smtcomp-
$(YEAR
)/starexec_description.txt
124 cd cvc4-parallel-smtcomp-
$(YEAR
) && zip
-r ..
/cvc4-parallel-smtcomp-
$(YEAR
).zip
*