Skip to content

Commit cbe691b

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2363 from diffblue/Makefile-TAR
Compiling with Solaris 11
2 parents 9d40a9e + eaa2e05 commit cbe691b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

COMPILING.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,23 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
7979

8080
1. As root, get the necessary development tools:
8181
```
82-
pkg install system/header developer/lexer/flex developer/parser/bison developer/versioning/git
83-
pkg install --accept developer/gcc/gcc-c++-5
82+
pkgadd -d http://get.opencsw.org/now
83+
/opt/csw/bin/pkgutil -U
84+
/opt/csw/bin/pkgutil -i gcc5g++ bison flex git
8485
```
8586
2. As a user, get the CBMC source via
8687
```
88+
export PATH=/opt/csw/bin:$PATH
8789
git clone https://github.com/diffblue/cbmc cbmc-git
8890
```
8991
3. Get MiniSat2 by entering
9092
```
91-
cd cbmc-git
92-
wget http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz
93-
gtar xfz minisat_2.2.1.orig.tar.gz
94-
mv minisat2-2.2.1 minisat-2.2.1
95-
(cd minisat-2.2.1; patch -p1 < ../scripts/minisat-2.2.1-patch)
93+
cd cbmc-git/src
94+
gmake minisat2-download DOWNLOADER=wget TAR=gtar
9695
```
97-
4. Type
96+
4. To compile, type
9897
```
99-
cd src; gmake
98+
gmake
10099
```
101100
That should do it. To run, you will need
102101
```

src/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ $(patsubst %, %_clean, $(DIRS)):
8787
# minisat2 and glucose download, for your convenience
8888

8989
DOWNLOADER = lwp-download
90+
TAR = tar
9091

9192
minisat2-download:
9293
@echo "Downloading Minisat 2.2.1"
9394
@$(DOWNLOADER) http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz
94-
@tar xfz minisat2_2.2.1.orig.tar.gz
95+
@$(TAR) xfz minisat2_2.2.1.orig.tar.gz
9596
@rm -Rf ../minisat-2.2.1
9697
@mv minisat2-2.2.1 ../minisat-2.2.1
9798
@(cd ../minisat-2.2.1; patch -p1 < ../scripts/minisat-2.2.1-patch)
@@ -100,7 +101,7 @@ minisat2-download:
100101
glucose-download:
101102
@echo "Downloading glucose-syrup"
102103
@$(DOWNLOADER) http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup.tgz
103-
@tar xfz glucose-syrup.tgz
104+
@$(TAR) xfz glucose-syrup.tgz
104105
@rm -Rf ../glucose-syrup
105106
@mv glucose-syrup ../
106107
@(cd ../glucose-syrup; patch -p1 < ../scripts/glucose-syrup-patch)

0 commit comments

Comments
 (0)