-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
32 lines (24 loc) · 835 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
vhls=/scratch/shared/Xilinx
user=$(if $(shell id -u),$(shell id -u),9001)
group=$(if $(shell id -g),$(shell id -g),1000)
# Build Docker container
build-docker:
(cd Docker; docker build --build-arg UID=$(user) --build-arg GID=$(group) --build-arg VHLS_PATH=$(vhls) . --tag dass-centos8)
# Enter Docker container
shell: build-docker
docker run -it -u $(user) -v $(vhls):$(vhls) -v $(shell pwd):/workspace dass-centos8:latest /bin/bash
# Sync and update submodules
sync:
git submodule sync
git submodule update --init --recursive
# Build DASS from scratch
build:
bash ./dass/scripts/build-dass.sh
rebuild: clean build
clean:
rm -rf ./llvm/build
rm -rf ./dhls/elastic-circuits/build
rm -rf ./dass/build
(cd ./dhls/Buffers; make clean)
(cd ./dass/tools/HlsVerifier; make clean)
(cd ./dass/tools/dot2vhdl; make clean)