vpi: support extra include directories

This commit is contained in:
Sebastien Bourdeauducq 2012-03-08 18:14:40 +01:00
parent bbaadebf68
commit 84aa703447
1 changed files with 2 additions and 1 deletions

View File

@ -1,12 +1,13 @@
CC=clang CC=clang
INSTDIR=/usr/lib/ivl INSTDIR=/usr/lib/ivl
INCDIRS=
OBJ=ipc.o main.o OBJ=ipc.o main.o
all: migensim.vpi all: migensim.vpi
%.o: %.c %.o: %.c
$(CC) -fPIC -Wall -O2 -c -o $@ $< $(CC) -fPIC -Wall -O2 -c $(INCDIRS) -o $@ $<
migensim.vpi: $(OBJ) migensim.vpi: $(OBJ)
$(CC) -shared -o $@ $(OBJ) -lvpi $(CC) -shared -o $@ $(OBJ) -lvpi