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

Subversion Repositories qspiflash

[/] [qspiflash/] [trunk/] [rtl/] [Makefile] - Blame information for rev 23

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

Line No. Rev Author Line
1 16 dgisselq
################################################################################
2 11 dgisselq
##
3
## Filename:    Makefile
4
##
5
## Project:     Wishbone Controlled Quad SPI Flash Controller
6
##
7
## Purpose:     To direct the Verilator build of the SoC sources.  The result
8
##              is C++ code (built by Verilator), that is then built (herein)
9
##      into a library that you can find in obj_dir.
10
##
11
##
12
## Creator:     Dan Gisselquist, Ph.D.
13
##              Gisselquist Technology, LLC
14
##
15 16 dgisselq
################################################################################
16 11 dgisselq
##
17 16 dgisselq
## Copyright (C) 2015-2017, Gisselquist Technology, LLC
18 11 dgisselq
##
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 16 dgisselq
## You should have received a copy of the GNU General Public License along
30
## with this program.  (It's in the $(ROOT)/doc directory.  Run make with no
31
## target there if the PDF file isn't present.)  If not, see
32
##  for a copy.
33
##
34 11 dgisselq
## License:     GPL, v3, as defined and found on www.gnu.org,
35 16 dgisselq
##              http://www.gnu.org/licenses/gpl.html
36 11 dgisselq
##
37
##
38 16 dgisselq
################################################################################
39 11 dgisselq
##
40
##
41
all:    test
42
YYMMDD=`date +%Y%m%d`
43
CXX   := g++
44
FBDIR := .
45
VDIRFB:= $(FBDIR)/obj_dir
46
 
47
.PHONY: test
48 16 dgisselq
test: $(VDIRFB)/Veqspiflash__ALL.a $(VDIRFB)/Vwbqspiflash__ALL.a
49 11 dgisselq
# test: $(VDIRFB)/Vfastmaster__ALL.a
50
 
51
$(VDIRFB)/Veqspiflash.h $(VDIRFB)/Veqspiflash.cpp $(VDIRFB)/Veqspiflash.mk: eqspiflash.v lleqspi.v
52 16 dgisselq
$(VDIRFB)/Vwbqspiflash.h $(VDIRFB)/Vwbqspiflash.cpp $(VDIRFB)/Vwbqspiflash.mk: wbqspiflash.v llqspi.v
53 11 dgisselq
$(VDIRFB)/V%.cpp $(VDIRFB)/V%.h $(VDIRFB)/V%.mk: $(FBDIR)/%.v
54 16 dgisselq
        verilator -trace -cc $*.v
55 11 dgisselq
 
56
$(VDIRFB)/V%__ALL.a: $(VDIRFB)/V%.mk
57
        cd $(VDIRFB); make -f V$*.mk
58
 
59
.PHONY:
60
archive:
61
        tar --transform s,^,$(YYMMDD)-rtl/, -chjf $(YYMMDD)-rtl.tjz Makefile *.v cpu/*.v
62
 
63
.PHONY: clean
64
clean:
65
        rm -rf $(VDIRFB)/*.mk
66
        rm -rf $(VDIRFB)/*.cpp
67
        rm -rf $(VDIRFB)/*.h
68
        rm -rf $(VDIRFB)/
69
 

powered by: WebSVN 2.1.0

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