Add defines and include directories
This commit is contained in:
parent
3f8450ac6a
commit
1486728ced
@ -7,6 +7,9 @@ XSIM ?= xsim
|
||||
vpath %.sv $(PATH_SRC)
|
||||
vpath %.svh $(PATH_SRC)
|
||||
|
||||
INC_DIRS=$(patsubst %,-i %,$(subst :, ,$(PATH_SRC)))
|
||||
DEFS=$(patsubst %,-d %,$(subst :, ,$(DEFINES)))
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .sv .svh .sdb
|
||||
|
||||
@ -17,7 +20,7 @@ all: sim
|
||||
OBJS=$(subst sv,sdb,$(SOURCES))
|
||||
|
||||
xsim.dir/work/%.sdb: %.sv $(INCLUDES)
|
||||
$(XVLOG) --sv --nolog $<
|
||||
$(XVLOG) --sv --nolog $< $(INC_DIRS) $(DEFS)
|
||||
rm xvlog.pb
|
||||
|
||||
xsim.dir/work.$(TB)/xsim.dbg: $(addprefix xsim.dir/work/, $(OBJS))
|
||||
|
Loading…
Reference in New Issue
Block a user