litex/vpi/Makefile
2013-03-12 16:51:58 +01:00

21 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