Skip to content

Commit b00d8be

Browse files
committed
Separate file for Makefile based building of smt2_incremental
So that the `.cpp` files for incremental SMT2 solving can be added/removed/renamed without triggering codeowner review of the `src/solvers` directory.
1 parent 9892924 commit b00d8be

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

src/solvers/Makefile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ ifneq ($(CADICAL),)
6868
CP_CXXFLAGS += -DHAVE_CADICAL
6969
endif
7070

71+
include smt2_incremental/Makefile
72+
7173
SRC = $(BOOLEFORCE_SRC) \
7274
$(CHAFF_SRC) \
7375
$(CUDD_SRC) \
@@ -193,17 +195,7 @@ SRC = $(BOOLEFORCE_SRC) \
193195
smt2/smt2_parser.cpp \
194196
smt2/smt2_tokenizer.cpp \
195197
smt2/smt2irep.cpp \
196-
smt2_incremental/convert_expr_to_smt.cpp \
197-
smt2_incremental/smt_bit_vector_theory.cpp \
198-
smt2_incremental/smt_commands.cpp \
199-
smt2_incremental/smt_core_theory.cpp \
200-
smt2_incremental/smt_logics.cpp \
201-
smt2_incremental/smt_options.cpp \
202-
smt2_incremental/smt_solver_process.cpp \
203-
smt2_incremental/smt_sorts.cpp \
204-
smt2_incremental/smt_terms.cpp \
205-
smt2_incremental/smt_to_smt2_string.cpp \
206-
smt2_incremental/smt2_incremental_decision_procedure.cpp \
198+
$(SMT2_INCREMENTAL_SRC) \
207199
# Empty last line
208200

209201
include ../common

src/solvers/smt2_incremental/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
SMT2_INCREMENTAL_SRC = \
3+
smt2_incremental/convert_expr_to_smt.cpp \
4+
smt2_incremental/smt_bit_vector_theory.cpp \
5+
smt2_incremental/smt_commands.cpp \
6+
smt2_incremental/smt_core_theory.cpp \
7+
smt2_incremental/smt_logics.cpp \
8+
smt2_incremental/smt_options.cpp \
9+
smt2_incremental/smt_solver_process.cpp \
10+
smt2_incremental/smt_sorts.cpp \
11+
smt2_incremental/smt_terms.cpp \
12+
smt2_incremental/smt_to_smt2_string.cpp \
13+
smt2_incremental/smt2_incremental_decision_procedure.cpp \
14+
# Empty last line

0 commit comments

Comments
 (0)