> sim RTL
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 14:23:04 up 23:02, 2 users, load average: 1.68, 1.08, 0.90
This commit is contained in:
parent
9803dc5b07
commit
3deed069e8
1 changed files with 6 additions and 4 deletions
10
npc/Makefile
10
npc/Makefile
|
@ -21,10 +21,12 @@ sim: $(VSRC) $(CPPSRCS) $(OBJDIR)/Vexample git_trace
|
|||
$(OBJDIR)/Vexample: $(SUBMAKE)
|
||||
$(MAKE) -C $(OBJDIR) -f $(notdir $(SUBMAKE)) Vexample
|
||||
|
||||
$(SUBMAKE): $(VSRC) $(CPPSRCS)
|
||||
mkdir -p $(OBJDIR)
|
||||
$(SUBMAKE): $(VSRC) $(CPPSRCS) $(OBJDIR)
|
||||
verilator $(VERILATOR_FLAGS) $(addprefix -CFLAGS , $(CXXFLAGS)) $(addprefix -LDFLAGS , $(LDFLAGS)) --Mdir $(abspath $(OBJDIR)) $(VSRC) $(CPPSRCS)
|
||||
|
||||
$(OBJDIR):
|
||||
mkdir -p $(OBJDIR)
|
||||
|
||||
ifneq (,$(wildcard ../Makefile))
|
||||
include ../Makefile
|
||||
else
|
||||
|
@ -51,8 +53,8 @@ nvboard: CXXFLAGS += -I$(NVBOARD_HOME)/include $(shell sdl2-config --cflags) -g
|
|||
nvboard: $(VSRC) $(CPPSRCS) $(SUBMAKE) $(SRC_AUTO_BIND) $(OBJDIR)/Vexample
|
||||
@NVBOARD_HOME=$(NVBOARD_HOME) $(OBJDIR)/Vexample
|
||||
|
||||
compile_commands.json: clean
|
||||
bear -- $(MAKE) -i all
|
||||
compile_commands.json: clean nvboard
|
||||
bear -- $(MAKE) -i all >
|
||||
bear -- $(MAKE) -i nvboard
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Reference in a new issue