Files
cheri-cap-lib/Makefile
Ivan Ribeiro a6664e512c Implement changes suggested by @gameboo + bugfix
Uses argparse's "choices" argument, remove unused method and use abc and
for abstract methods.
Also updates the python filename in the Makefile
2023-10-02 17:46:29 +01:00

31 lines
524 B
Makefile

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