2012-03-06 09:51:09 -05:00
|
|
|
INSTDIR=/usr/lib/ivl
|
2013-03-12 11:51:58 -04:00
|
|
|
INCDIRS=-I/usr/include/iverilog
|
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
|