vpi: support extra include directories
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 8 Mar 2012 17:14:40 +0000 (18:14 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 8 Mar 2012 17:14:40 +0000 (18:14 +0100)
vpi/Makefile

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