forked from chipsalliance/firrtl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 846 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
32
33
34
35
36
37
38
39
root_dir ?= $(PWD)
regress_dir ?= $(root_dir)/regress
install_dir ?= $(root_dir)/utils/bin
SBT ?= sbt
SBT_FLAGS ?= -Dsbt.log.noformat=true
scala_jar ?= $(install_dir)/firrtl.jar
scala_src := $(shell find src -type f \( -name "*.scala" -o -path "*/resources/*" \))
build: build-scala
clean:
$(MAKE) -C $(root_dir)/spec clean
rm -f $(install_dir)/firrtl.jar
$(SBT) "clean"
.PHONY : specification
specification:
$(MAKE) -C $(root_dir)/spec all
regress: $(scala_jar)
cd $(regress_dir) && $(install_dir)/firrtl -i rocket.fir -o rocket.v -X verilog
# Scala Added Makefile commands
build-scala: $(scala_jar)
$(scala_jar): $(scala_src)
$(SBT) "assembly"
test-scala:
$(SBT) test
jenkins-build: clean
$(SBT) $(SBT_FLAGS) +clean +test +publish-local
$(SBT) $(SBT_FLAGS) coverageReport
.PHONY: build clean regress build-scala test-scala