Skip to content

Commit f01545d

Browse files
committed
Add goto-bmc and libcprover-cpp to Makefile builds
Ensure both build infrastructures remain in sync.
1 parent eb20424 commit f01545d

File tree

3 files changed

+97
-0
lines changed

3 files changed

+97
-0
lines changed

src/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ DIRS = analyses \
77
cprover \
88
crangler \
99
goto-analyzer \
10+
goto-bmc \
1011
goto-cc \
1112
goto-checker \
1213
goto-diff \
@@ -20,6 +21,7 @@ DIRS = analyses \
2021
json \
2122
json-symtab-language \
2223
langapi \
24+
libcprover-cpp \
2325
linking \
2426
memory-analyzer \
2527
pointer-analysis \
@@ -34,6 +36,7 @@ all: cbmc.dir \
3436
cprover.dir \
3537
crangler.dir \
3638
goto-analyzer.dir \
39+
goto-bmc.dir \
3740
goto-cc.dir \
3841
goto-diff.dir \
3942
goto-instrument.dir \
@@ -114,6 +117,10 @@ goto-synthesizer.dir: languages util.dir goto-programs.dir langapi.dir \
114117
json.dir goto-checker.dir \
115118
goto-instrument.dir
116119

120+
goto-bmc.dir: libcprover-cpp.dir
121+
122+
libcprover-cpp.dir: cbmc.dir
123+
117124
# building for a particular directory
118125

119126
$(patsubst %, %.dir, $(DIRS)):

src/goto-bmc/Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
SRC = \
2+
goto_bmc_main.cpp \
3+
goto_bmc_parse_options.cpp \
4+
# Empty last line
5+
6+
OBJ += \
7+
../libcprover-cpp/libcprover-cpp$(LIBEXT) \
8+
# Empty last line
9+
10+
INCLUDES= -I .. -I ../libcprover-cpp
11+
12+
LIBS =
13+
14+
CLEANFILES = goto-bmc$(EXEEXT)
15+
16+
include ../config.inc
17+
include ../common
18+
19+
all: goto-bmc$(EXEEXT)
20+
21+
###############################################################################
22+
23+
goto-bmc$(EXEEXT): $(OBJ)
24+
$(LINKBIN)
25+
26+
.PHONY: goto-bmc-mac-signed
27+
28+
goto-bmc-mac-signed: goto-bmc$(EXEEXT)
29+
codesign -v -s $(OSX_IDENTITY) goto-bmc$(EXEEXT)

src/libcprover-cpp/Makefile

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
SRC = \
2+
api.cpp \
3+
api_options.cpp \
4+
verification_result.cpp \
5+
# Empty last line
6+
7+
OBJ += \
8+
../analyses/analyses$(LIBEXT) \
9+
../ansi-c/ansi-c$(LIBEXT) \
10+
../assembler/assembler$(LIBEXT) \
11+
../big-int/big-int$(LIBEXT) \
12+
../goto-checker/goto-checker$(LIBEXT) \
13+
../goto-instrument/cover$(OBJEXT) \
14+
../goto-instrument/cover_basic_blocks$(OBJEXT) \
15+
../goto-instrument/cover_filter$(OBJEXT) \
16+
../goto-instrument/cover_instrument_assume$(OBJEXT) \
17+
../goto-instrument/cover_instrument_branch$(OBJEXT) \
18+
../goto-instrument/cover_instrument_condition$(OBJEXT) \
19+
../goto-instrument/cover_instrument_decision$(OBJEXT) \
20+
../goto-instrument/cover_instrument_location$(OBJEXT) \
21+
../goto-instrument/cover_instrument_mcdc$(OBJEXT) \
22+
../goto-instrument/cover_instrument_other$(OBJEXT) \
23+
../goto-instrument/cover_util$(OBJEXT) \
24+
../goto-instrument/full_slicer$(OBJEXT) \
25+
../goto-instrument/nondet_static$(OBJEXT) \
26+
../goto-instrument/reachability_slicer$(OBJEXT) \
27+
../goto-instrument/source_lines$(OBJEXT) \
28+
../goto-instrument/unwindset$(OBJEXT) \
29+
../goto-programs/goto-programs$(LIBEXT) \
30+
../goto-symex/goto-symex$(LIBEXT) \
31+
../jsil/jsil$(LIBEXT) \
32+
../json-symtab-language/json-symtab-language$(LIBEXT) \
33+
../json/json$(LIBEXT) \
34+
../langapi/langapi$(LIBEXT) \
35+
../linking/linking$(LIBEXT) \
36+
../pointer-analysis/add_failed_symbols$(OBJEXT) \
37+
../pointer-analysis/goto_program_dereference$(OBJEXT) \
38+
../pointer-analysis/value_set$(OBJEXT) \
39+
../pointer-analysis/value_set_analysis_fi$(OBJEXT) \
40+
../pointer-analysis/value_set_dereference$(OBJEXT) \
41+
../pointer-analysis/value_set_domain_fi$(OBJEXT) \
42+
../pointer-analysis/value_set_fi$(OBJEXT) \
43+
../solvers/solvers$(LIBEXT) \
44+
../statement-list/statement-list$(LIBEXT) \
45+
../util/util$(LIBEXT) \
46+
../xmllang/xmllang$(LIBEXT) \
47+
# Empty last line
48+
49+
INCLUDES = -I ..
50+
51+
include ../config.inc
52+
include ../common
53+
54+
CLEANFILES = libcprover-cpp$(LIBEXT)
55+
56+
all: libcprover-cpp$(LIBEXT)
57+
58+
###############################################################################
59+
60+
libcprover-cpp$(LIBEXT): $(OBJ)
61+
$(LINKLIB)

0 commit comments

Comments
 (0)