verilog.mk 289 Bytes
Newer Older
1
VPI_CFLAGS=`iverilog-vpi --cflags`
2
VPI_LDFLAGS=`iverilog-vpi --ldflags`
3 4 5 6 7 8 9

VER_SRCS = $(wildcard verilog/*.v)

VER_LIBS=lib/tvm_vpi.vpi

lib/tvm_vpi.vpi: verilog/tvm_vpi.cc verilog/tvm_vpi.h
	@mkdir -p $(@D)
10
	$(CXX) $(VPI_CFLAGS) $(CFLAGS) -o $@ $(filter %.cc, $^) $(LDFLAGS) $(VPI_LDFLAGS)