Commit fab2266f authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

corundum: add lightclean target

preserves the object file for the verilator design, as this takes
forever to compile.
parent 3b467c6b
...@@ -10,7 +10,7 @@ SRCS = corundum_verilator.cpp dma.cpp mem.cpp ...@@ -10,7 +10,7 @@ SRCS = corundum_verilator.cpp dma.cpp mem.cpp
all: corundum_verilator all: corundum_verilator
obj_dir/Vinterface.cpp: rtl/interface.v obj_dir/Vinterface.cpp: rtl/interface.v
$(VERILATOR) $(VFLAGS) --cc -O3 \ $(VERILATOR) $(VFLAGS) --cc -O3 \
-CFLAGS "-I$(PWD)/../nicsim_common/include -I$(PWD)/../proto -O3 -g -Wall" \ -CFLAGS "-I$(PWD)/../nicsim_common/include -I$(PWD)/../proto -O3 -g -Wall" \
-y rtl \ -y rtl \
-y lib/axi/rtl \ -y lib/axi/rtl \
...@@ -39,7 +39,9 @@ corundum_verilator: obj_dir/Vinterface ...@@ -39,7 +39,9 @@ corundum_verilator: obj_dir/Vinterface
# obj_dir/Vinterface__Trace__Slow.o # obj_dir/Vinterface__Trace__Slow.o
# $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) # $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
lightclean:
rm -f obj_dir/Vinterface corundum_verilator obj_dir/mem.o obj_dir/dma.o
clean: clean:
rm -rf obj_dir corundum_verilator *.o rm -rf obj_dir corundum_verilator *.o
.PHONY: all clean .PHONY: all clean lightclean
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment