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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [bench/] [cpp/] [Makefile] - Blame information for rev 6

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

Line No. Rev Author Line
1 4 dgisselq
.PHONY: all
2
CXX      :=  g++
3
OBJDIR   :=  obj-pc
4
YYMMDD   := `date +%Y%m%d`
5
VOBJDR   := ../../rtl/obj_dir
6
VROOT    := /usr/share/verilator
7
VINC     := -I$(VROOT)/include -I$(VOBJDR)
8
CFLAGS   :=  -c -g -Wall -I. $(VINC)
9
#
10
all:    $(OBJDIR)/ programs archive
11
 
12
# GFXFLAGS :=  `pkg-config gtkmm-3.0 --cflags`
13
# GFXLIBS  :=  `pkg-config gtkmm-3.0 --cflags --libs`
14
 
15
.PHONY: programs
16
programs:       busmaster_tb
17
 
18
.PHONY: clean
19
clean:
20
        rm -f busmaster_rb $(OBJDIR)/*.o
21
 
22
$(OBJDIR)/:
23
        @bash -c "if [ ! -e $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi"
24
 
25
$(OBJDIR)/sdramsim.o: sdramsim.cpp sdramsim.h
26
        $(CXX) $(CFLAGS) $< -o $@
27
$(OBJDIR)/qspiflashsim.o: qspiflashsim.cpp qspiflashsim.h
28
        $(CXX) $(CFLAGS) $< -o $@
29
$(OBJDIR)/busmaster_tb.o: busmaster_tb.cpp pipecmdr.h sdramsim.h
30
$(OBJDIR)/busmaster_tb.o: port.h $(VOBJDR)/Vbusmaster.h
31
        $(CXX) $(CFLAGS) busmaster_tb.cpp -o $@
32
$(OBJDIR)/verilated.o: $(VROOT)/include/verilated.cpp
33
        $(CXX) $(CFLAGS) $< -o $@
34
 
35
busmaster_tb: $(OBJDIR)/qspiflashsim.o
36
busmaster_tb: $(OBJDIR)/verilated.o
37
busmaster_tb: $(VOBJDR)/Vbusmaster__ALL.a
38
busmaster_tb: $(OBJDIR)/busmaster_tb.o $(OBJDIR)/sdramsim.o
39
        $(CXX) -g -o $@ $^
40
 
41
.PHONY: archive
42
archive:
43
        tar --transform s,^,$(YYMMDD)-bench-cpp/, -chjf $(YYMMDD)-bench-cpp.tjz Makefile *.cpp *.h

powered by: WebSVN 2.1.0

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