upsilon/firmware/rtl/spi/Makefile

17 lines
340 B
Makefile
Raw Normal View History

2023-03-14 11:42:41 -04:00
# Makefile for tests and hardware verification.
.PHONY: test clean
test: obj_dir/Vspi_switch
SRC= spi_switch.v spi_switch_sim.cpp
obj_dir/Vspi_switch.mk: $(SRC)
verilator --cc --exe -Wall \
$(SRC)
obj_dir/Vspi_switch: obj_dir/Vspi_switch.mk $(SRC)
cd obj_dir && make -f Vspi_switch.mk
./obj_dir/Vspi_switch
clean:
rm -rf obj_dir/