URL
https://opencores.org/ocsvn/wbddr3/wbddr3/trunk
[/] [wbddr3/] [trunk/] [bench/] [cpp/] [Makefile] - Diff between revs 4 and 13
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 4 |
Rev 13 |
Line 34... |
Line 34... |
##
|
##
|
##
|
##
|
################################################################################
|
################################################################################
|
##
|
##
|
##
|
##
|
all: $(OBJDIR)/ ddrsdram_tb
|
|
|
|
CXX := g++
|
|
OBJDIR := obj-pc
|
OBJDIR := obj-pc
|
|
CXX := g++
|
YYMMDD := `date +%Y%m%d`
|
YYMMDD := `date +%Y%m%d`
|
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 := 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
|
|
|
|
|
$(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)/ddrsdramsim.o: ddrsdramsim.cpp ddrsdramsim.h $(VOBJDR)/Vwbddrsdram.h
|
$(CXX) $(CFLAGS) ddrsdramsim.cpp -o $@
|
$(CXX) $(CFLAGS) ddrsdramsim.cpp -o $@
|
Line 67... |
Line 68... |
|
|
.PHONY: clean
|
.PHONY: clean
|
clean:
|
clean:
|
rm -rf $(OBJDIR)/ ddrsdram_tb
|
rm -rf $(OBJDIR)/ ddrsdram_tb
|
|
|
|
.PHONY: test
|
|
test: ddrsdram_tb
|
|
./ddrsdram_tb
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.