VexRiscv/scripts/regression/verilator.mk

21 lines
405 B
Makefile
Raw Normal View History

.ONESHELL:
verilator/configure:
rm -rf verilator*
2020-06-07 05:33:24 -04:00
wget https://www.veripool.org/ftp/verilator-4.034.tgz
tar xvzf verilator*.t*gz
2020-06-07 05:33:24 -04:00
mv verilator-4.034 verilator
verilator/Makefile: verilator/configure
cd verilator
./configure
verilator/bin/verilator_bin: verilator/Makefile
cd verilator
make -j$(shell nproc)
rm -rf src/obj_dbg
rm -rf src/obj_opt
verilator_binary: verilator/bin/verilator_bin