litex/vpi/Makefile

22 lines
288 B
Makefile
Raw Normal View History

2012-03-04 15:27:02 -05:00
CC=clang
2012-03-06 09:51:09 -05:00
INSTDIR=/usr/lib/ivl
2012-03-04 15:27:02 -05:00
OBJ=ipc.o main.o
all: migensim.vpi
%.o: %.c
$(CC) -fPIC -Wall -O2 -c -o $@ $<
migensim.vpi: $(OBJ)
$(CC) -shared -o $@ $(OBJ) -lvpi
2012-03-06 09:51:09 -05:00
install: migensim.vpi
install -m755 -t $(INSTDIR) $^
2012-03-04 15:27:02 -05:00
clean:
rm -f $(OBJ)
rm -f migensim.vpi
2012-03-06 09:51:09 -05:00
.PHONY: install clean