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

Subversion Repositories wbddr3

[/] [wbddr3/] [trunk/] [rtl/] [Makefile] - Blame information for rev 9

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

Line No. Rev Author Line
1 2 dgisselq
################################################################################
2
##
3
## Filename:    Makefile
4
##
5
## Project:     A wishbone conrolled DDR3 SDRAM controller.
6
##
7
## Purpose:     To direct the Verilator build of our one source file.  The
8
##              result will be a library, Vwbddrsdram__ALL.a, found and kept
9
##      in the obj_dir/ subdirectory.
10
##
11
##
12
## Creator:     Dan Gisselquist, Ph.D.
13
##              Gisselquist Technology, LLC
14
##
15
################################################################################
16
##
17
## Copyright (C) 2015, Gisselquist Technology, LLC
18
##
19
## This program is free software (firmware): you can redistribute it and/or
20
## modify it under the terms of  the GNU General Public License as published
21
## by the Free Software Foundation, either version 3 of the License, or (at
22
## your option) any later version.
23
##
24
## This program is distributed in the hope that it will be useful, but WITHOUT
25
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
26
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
27
## for more details.
28
##
29
## License:     GPL, v3, as defined and found on www.gnu.org,
30
##              http:##www.gnu.org/licenses/gpl.html
31
##
32
##
33
################################################################################
34
##
35
##
36
all:    wbddrsdram
37
YYMMDD=`date +%Y%m%d`
38
CXX   := g++
39
FBDIR := .
40
SOURCES:= wbddrsdram.v
41
VDIRFB:= $(FBDIR)/obj_dir
42
 
43
.PHONY: wbddrsdram
44
wbddrsdram: $(VDIRFB)/Vwbddrsdram__ALL.a
45
 
46
$(VDIRFB)/Vwbddrsdram__ALL.a: $(VDIRFB)/Vwbddrsdram.h $(VDIRFB)/Vwbddrsdram.cpp
47
$(VDIRFB)/Vfastmaster__ALL.a: $(VDIRFB)/Vwbddrsdram.mk
48
$(VDIRFB)/Vwbddrsdram.h $(VDIRFB)/wbddrsdram.cpp $(VDIRFB)/wbddrsdram.mk: $(SOURCES)
49
 
50
$(VDIRFB)/V%.cpp $(VDIRFB)/V%.h $(VDIRFB)/V%.mk: $(FBDIR)/%.v
51
        verilator -cc $*.v
52
 
53
 
54
$(VDIRFB)/V%__ALL.a: $(VDIRFB)/V%.mk
55
        cd $(VDIRFB); make -f V$*.mk
56
 
57
.PHONY: clean
58
clean:
59
        rm -rf $(VDIRFB)/*.mk
60
        rm -rf $(VDIRFB)/*.cpp
61
        rm -rf $(VDIRFB)/*.h
62
        rm -rf $(VDIRFB)/
63
 

powered by: WebSVN 2.1.0

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