From d6227bf009f9a9cb4a02948433956ec7c3ac70d1 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Sat, 23 Dec 2023 17:33:03 +0800 Subject: [PATCH] =?UTF-8?q?>=20sim=20RTL=20ysyx=5F22040000=20=E6=9D=8E?= =?UTF-8?q?=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.1.65=20#1-NixOS=20SMP?= =?UTF-8?q?=20PREEMPT=5FDYNAMIC=20Sun=20Dec=20=203=2006:32:13=20UTC=202023?= =?UTF-8?q?=20x86=5F64=20GNU/Linux=20=2017:33:03=20=20up=20=2020:31,=20=20?= =?UTF-8?q?2=20users,=20=20load=20average:=201.50,=201.26,=200.99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/npc/Makefile b/npc/Makefile index efeb871..7671f60 100644 --- a/npc/Makefile +++ b/npc/Makefile @@ -2,17 +2,18 @@ VERILATOR := verilator VSRC := $(wildcard vsrc/*.v) CPPSRC := $(wildcard csrc/*.cpp) -PREFIX ?= . +PREFIX ?= ./build OBJDIR := $(PREFIX)/obj -all: - @echo "Write this Makefile by your self." +all: $(OBJDIR) + $(MAKE) -C $(OBJDIR) -f Vexample.mk -sim: obj_dir +sim: $(OBJDIR) $(call git_commit, "sim RTL") # DO NOT REMOVE THIS LINE!!! @echo "Write this Makefile by your self." -obj_dir: $(VSRC) $(CPPSRC) +$(OBJDIR): $(VSRC) $(CPPSRC) + mkdir -p $(OBJDIR) $(VERILATOR) $(VSRC:%=--cc %) $(CPPSRC:%=--exe %) --Mdir $(OBJDIR) include ../Makefile