Add defines and include directories

This commit is contained in:
Koray Yanik 2023-10-01 22:57:34 +01:00
parent 3f8450ac6a
commit 1486728ced

View File

@ -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))