diff --git a/npc/Makefile b/npc/Makefile index 99871ce..8c2073d 100644 --- a/npc/Makefile +++ b/npc/Makefile @@ -14,6 +14,9 @@ sim: $(VSRC) $(CPPSRC) $(SUBMAKE) @echo "================================" @$(OBJDIR)/Vexample +$(OBJDIR)/Vexample: $(SUBMAKE) + make -C $(OBJDIR) -f $(notdir $(SUBMAKE)) Vexample + $(SUBMAKE): $(VSRC) $(CPPSRC) $(OBJDIR) verilator $(VERILATOR_FLAGS) --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC)