Skip to content

Commit 6a9361b

Browse files
committed
Updated basic components of the repository, dependency paths, Makefile, gitignore.
1 parent f1cb20f commit 6a9361b

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ project/plugins/project/
1919
# IntelliJ-specific
2020
.idea
2121
*.iml
22+
23+
# Project-specific
24+
output/

.gitmodules

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
[submodule "rewrite/lib/c4"]
2-
path = lib/c4
3-
url = https://github.com/bloom-lang/c4/
4-
[submodule "rewrite/lib/z3"]
5-
path = lib/z3
6-
url = https://git.codeplex.com/z3
1+
[submodule "lib/c4"]
2+
path = lib/c4
3+
url = https://github.com/bloom-lang/c4
4+
ignore = dirty
5+
[submodule "lib/z3"]
6+
path = lib/z3
7+
url = https://github.com/Z3Prover/z3

Makefile

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
all: deps
22

3+
clean-deps:
4+
rm -rf lib/c4/build
5+
rm -rf lib/z3/build
6+
37
deps: get-submodules c4 z3
48

5-
clean-deps:
6-
rm -r lib/c4/build
7-
rm -r lib/z3/build
9+
get-submodules:
10+
git submodule update --init --recursive
811

912
c4: lib/c4/build/src/libc4/libc4.dylib
1013

1114
z3: lib/z3/build/z3-dist
1215

16+
lib/c4/build/src/libc4/libc4.dylib:
17+
@which cmake > /dev/null
18+
cd lib/c4 && mkdir -p build
19+
cd lib/c4/build && cmake ..
20+
cd lib/c4/build && make
21+
1322
lib/z3/build/z3-dist: lib/z3/build/libz3.dylib
1423
# We need to make these parent directories so that Z3's Makefile
1524
# doesn't complain about them missing when it copies files during
@@ -22,19 +31,7 @@ lib/z3/build/libz3.dylib:
2231
cd lib/z3 && python scripts/mk_make.py --prefix=z3-dist
2332
cd lib/z3/build && make -j4
2433

25-
lib/c4/build/src/libc4/libc4.dylib:
26-
@which cmake > /dev/null
27-
cd lib/c4 && mkdir -p build
28-
cd lib/c4/build && cmake ..
29-
cd lib/c4/build && make
30-
31-
get-submodules:
32-
git submodule init
33-
git submodule update
34-
35-
CMAKE-installed:
36-
3734
# SBT command for running only the fast unit tests and excluding the slower
3835
# end-to-end tests (which have been tagged using ScalaTest's `Slow` tag):
39-
fast-test: deps
36+
fast-test:
4037
sbt "testOnly *Suite -- -l org.scalatest.tags.Slow"

lib/c4

lib/z3

Submodule z3 added at a2f907c

0 commit comments

Comments
 (0)