2017-03-14 07:28:03 +03:00
|
|
|
VPI_CFLAGS=`iverilog-vpi --cflags`
|
2017-03-26 04:26:28 +03:00
|
|
|
VPI_LDFLAGS=`iverilog-vpi --ldflags`
|
2017-03-14 07:28:03 +03:00
|
|
|
|
|
|
|
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)
|
2017-03-26 04:26:28 +03:00
|
|
|
$(CXX) $(VPI_CFLAGS) $(CFLAGS) -o $@ $(filter %.cc, $^) $(LDFLAGS) $(VPI_LDFLAGS)
|