Skip to content

Commit 0108f0f

Browse files
committed
ebmc: move compilation instructions into COMPILING.md
This moves, and elaborates, the compilation instructions from README.md to COMPILING.md.
1 parent 4a122da commit 0108f0f

File tree

3 files changed

+35
-24
lines changed

3 files changed

+35
-24
lines changed

COMPILING

Lines changed: 0 additions & 16 deletions
This file was deleted.

COMPILING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Compiling
2+
=========
3+
4+
1. You need a C/C++ compiler, Flex and Bison, and GNU make.
5+
The GNU Make needs to be version 3.81 or higher.
6+
On Debian-like distributions, including Ubuntu, do as root:
7+
```
8+
apt-get install g++ gcc flex bison make git curl patch
9+
```
10+
On Red Hat/Fedora or derivates, do as root:
11+
```
12+
dnf install gcc gcc-c++ flex bison curl patch
13+
```
14+
Note that you need g++ version 7.0 or newer.
15+
16+
On Amazon Linux and similar distributions, do as root:
17+
```
18+
yum install gcc72-c++ flex bison curl patch tar
19+
```
20+
21+
2. Initialize and update the CBMC submodule:
22+
```
23+
git submodule init; git submodule update
24+
```
25+
26+
3. Download minisat:
27+
```
28+
make -C lib/cbmc/src minisat2-download
29+
```
30+
31+
4. Build EBMC:
32+
```
33+
make -C src
34+
```
35+
This also builds the CBMC submodule. The binary will be in src/ebmc/ebmc.

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ or CVC4 to solve the decision problem.
1212

1313
For full information see [cprover.org](http://www.cprover.org/ebmc/).
1414

15-
Compiling
16-
=========
17-
18-
- initialize and update the CBMC submodule: `$> git submodule init; git submodule update`
19-
- download minisat: `$> make -C lib/cbmc/src minisat2-download`
20-
- build EBMC: `$> make -C src` (this also builds the CBMC submodule)
21-
- optional: `$> export PATH=/full/path/hw-cbmc/src/ebmc:${PATH}` to get EBMC on the path
22-
2315
Usage
2416
=====
2517

0 commit comments

Comments
 (0)