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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [bench/] [cpp/] [Makefile] - Rev 19

Go to most recent revision | Compare with Previous | Blame | View Log

.PHONY: all
CXX      :=  g++
OBJDIR   :=  obj-pc
YYMMDD   := `date +%Y%m%d`
VOBJDR   := ../../rtl/obj_dir
VROOT    := /usr/share/verilator
VINC     := -I$(VROOT)/include -I$(VOBJDR)
CFLAGS   :=  -c -g -Wall -I. $(VINC)
#
all:    $(OBJDIR)/ programs archive

# GFXFLAGS :=  `pkg-config gtkmm-3.0 --cflags`
# GFXLIBS  :=  `pkg-config gtkmm-3.0 --cflags --libs`

.PHONY: programs
programs:       busmaster_tb

.PHONY: clean
clean:
        rm -f busmaster_rb $(OBJDIR)/*.o

$(OBJDIR)/:
        @bash -c "if [ ! -e $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi"

$(OBJDIR)/sdramsim.o: sdramsim.cpp sdramsim.h
        $(CXX) $(CFLAGS) $< -o $@
$(OBJDIR)/qspiflashsim.o: qspiflashsim.cpp qspiflashsim.h
        $(CXX) $(CFLAGS) $< -o $@
$(OBJDIR)/busmaster_tb.o: busmaster_tb.cpp pipecmdr.h sdramsim.h
$(OBJDIR)/busmaster_tb.o: port.h $(VOBJDR)/Vbusmaster.h
        $(CXX) $(CFLAGS) busmaster_tb.cpp -o $@
$(OBJDIR)/verilated.o: $(VROOT)/include/verilated.cpp
        $(CXX) $(CFLAGS) $< -o $@

busmaster_tb: $(OBJDIR)/qspiflashsim.o
busmaster_tb: $(OBJDIR)/verilated.o
busmaster_tb: $(VOBJDR)/Vbusmaster__ALL.a
busmaster_tb: $(OBJDIR)/busmaster_tb.o $(OBJDIR)/sdramsim.o
        $(CXX) -g -o $@ $^

.PHONY: archive
archive:
        tar --transform s,^,$(YYMMDD)-bench-cpp/, -chjf $(YYMMDD)-bench-cpp.tjz Makefile *.cpp *.h

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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