litex/vpi/Makefile

23 lines
308 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-08 12:14:40 -05:00
INCDIRS=
2012-03-06 09:51:09 -05:00
2012-03-04 15:27:02 -05:00
OBJ=ipc.o main.o
all: migensim.vpi
%.o: %.c
2012-03-08 12:14:40 -05:00
$(CC) -fPIC -Wall -O2 -c $(INCDIRS) -o $@ $<
2012-03-04 15:27:02 -05:00
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