OpenCores
URL https://opencores.org/ocsvn/wbddr3/wbddr3/trunk

Subversion Repositories wbddr3

[/] [wbddr3/] [trunk/] [bench/] [cpp/] [Makefile] - Diff between revs 13 and 16

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 13 Rev 16
Line 42... Line 42...
RTLD    := ../../rtl
RTLD    := ../../rtl
VOBJDR  := $(RTLD)/obj_dir
VOBJDR  := $(RTLD)/obj_dir
VROOT   := /usr/share/verilator
VROOT   := /usr/share/verilator
VINC    := -I$(VROOT)/include -I$(VOBJDR)
VINC    := -I$(VROOT)/include -I$(VOBJDR)
CFLAGS  := -Wall -c -Og -g -I. $(VINC)
CFLAGS  := -Wall -c -Og -g -I. $(VINC)
SOURCES := ddrsdramsim.cpp ddrsdram_tb.cpp
SOURCES := pddrsim.cpp ddrsdramsim.cpp ddrsdram_tb.cpp
VOBJDR  := $(RTLD)/obj_dir
VOBJDR  := $(RTLD)/obj_dir
VLIB    := $(VROOT)/include/verilated.cpp
VLIB    := $(VROOT)/include/verilated.cpp
 
 
all:    $(OBJDIR)/ ddrsdram_tb
all:    $(OBJDIR)/ ddrsdram_tb
 
 
 
 
$(OBJDIR)/:
$(OBJDIR)/:
        @bash -c "if [ ! -e $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi"
        @bash -c "if [ ! -e $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi"
 
 
$(OBJDIR)/ddrsdramsim.o: ddrsdramsim.cpp ddrsdramsim.h $(VOBJDR)/Vwbddrsdram.h
$(OBJDIR)/pddrsim.o: pddrsim.cpp pddrsim.h ddrsdramsim.h
 
        $(CXX) $(CFLAGS) pddrsim.cpp -o $@
 
# $(VOBJDR)/Vwbddrsdram.h
 
$(OBJDIR)/ddrsdramsim.o: ddrsdramsim.cpp ddrsdramsim.h
        $(CXX) $(CFLAGS) ddrsdramsim.cpp -o $@
        $(CXX) $(CFLAGS) ddrsdramsim.cpp -o $@
$(OBJDIR)/verilated.o: $(VLIB) $(OBJDIR)/
$(OBJDIR)/verilated.o: $(VLIB)
        $(CXX) $(CFLAGS) $(VLIB) -o $@
        $(CXX) $(CFLAGS) $(VLIB) -o $@
$(OBJDIR)/ddrsdram_tb.o: ddrsdram_tb.cpp ddrsdramsim.h $(VOBJDR)/Vwbddrsdram.h
$(OBJDIR)/ddrsdram_tb.o: ddrsdram_tb.cpp pddrsim.h $(VOBJDR)/Vwbddrsdram.h
        $(CXX) $(CFLAGS) ddrsdram_tb.cpp -o $@
        $(CXX) $(CFLAGS) ddrsdram_tb.cpp -o $@
 
 
OBJECTS := ddrsdramsim.o ddrsdram_tb.o verilated.o
OBJECTS := ddrsdramsim.o pddrsim.o ddrsdram_tb.o verilated.o
OBJECTSDR:= $(addprefix $(OBJDIR)/,$(OBJECTS))
OBJECTSDR:= $(addprefix $(OBJDIR)/,$(OBJECTS))
ddrsdram_tb: $(OBJECTSDR) $(VOBJDR)/Vwbddrsdram__ALL.a
ddrsdram_tb: $(OBJECTSDR) $(VOBJDR)/Vwbddrsdram__ALL.a
        $(CXX) -Wall $(INCS) $^ -o $@
        $(CXX) -Wall $(INCS) $^ -o $@
 
 
.PHONY: clean
.PHONY: clean

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.