Files
cheri-cap-lib/Makefile
2019-08-02 15:51:06 +01:00

23 lines
342 B
Makefile

CAP ?= 64
ifeq ($(CAP), 128)
BSCFLAGS = -D CAP128
else
BSCFLAGS = -D CAP64
endif
ARCH ?= RISCV
ifeq ($(ARCH), RISCV)
BSCFLAGS += -D RISCV
endif
verilog-wrappers: CHERICapWrap.bsv CHERICap.bsv CHERICC_Fat.bsv
bsc $(BSCFLAGS) -verilog -u $<
.PHONY: clean clean-verilog-wrappers
clean-verilog-wrappers: clean
rm -f *.v
clean:
rm -f *.bo