-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.04 KB
/
Makefile
File metadata and controls
48 lines (38 loc) · 1.04 KB
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
40
41
42
43
44
45
46
47
48
ifeq ($(OS), Windows_NT)
detected_OS := Windows
else
detected_OS := $(shell uname -s)
endif
ifeq ($(detected_OS), Windows)
MILL := ./millw
else ifeq ($(detected_OS), Linux)
MILL := mill
else
MILL := mill
endif
TARGET_DIR := ./build
ifeq ($(origin DISABLE_SPLIT_VERILOG),command line)
CIRCT_FLAGS := --target-dir=$(TARGET_DIR)
SPLIT_STATUS := disabled
else
CIRCT_FLAGS := --target-dir=$(TARGET_DIR) --split-verilog
SPLIT_STATUS := enabled
endif
bsp:
@$(MILL) -i mill.bsp.BSP/install
verilog:
@$(MAKE) _verilog
verilog-nosplit:
@$(MAKE) _verilog DISABLE_SPLIT_VERILOG=1
_verilog: $(SOURCES) build.sc
ifneq ($(DISABLE_SPLIT_VERILOG),)
@echo Generate verilog files without split-verilog
@$(MILL) -i OpenMc.run --target-dir=$(TARGET_DIR)
else
@echo Generate verilog files with split-verilog
@$(MILL) -i OpenMc.run --target-dir=$(TARGET_DIR) --split-verilog
endif
clean:
@echo remove build files
@rm -rfv $(TARGET_DIR)
.PHONY: verilog clean reformat checkformat test testOnly