litex/vpi/Makefile
Sebastien Bourdeauducq 0a23cadd38 vpi: install target
2012-03-06 15:51:09 +01:00

21 lines
288 B
Makefile

CC=clang
INSTDIR=/usr/lib/ivl
OBJ=ipc.o main.o
all: migensim.vpi
%.o: %.c
$(CC) -fPIC -Wall -O2 -c -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