litex/vpi/Makefile

22 lines
322 B
Makefile

INSTDIR=/usr/lib/ivl
INCDIRS=-I/usr/include/iverilog
OBJ=ipc.o main.o
all: migensim.vpi
%.o: %.c
$(CC) -fPIC -Wall -O2 -c $(INCDIRS) -o $@ $<
migensim.vpi: $(OBJ)
$(CC) -shared -o $@ $(OBJ) -lvpi
install: migensim.vpi
install -m755 -t $(INSTDIR) $^
clean:
rm -f $(OBJ)
rm -f migensim.vpi
.PHONY: install clean