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

Subversion Repositories qspiflash

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

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

Line No. Rev Author Line
1 11 dgisselq
##########################################################################/
2
##
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
##
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:    test
37
YYMMDD=`date +%Y%m%d`
38
CXX   := g++
39
FBDIR := .
40
VDIRFB:= $(FBDIR)/obj_dir
41
 
42
.PHONY: test
43
test: $(VDIRFB)/Veqspiflash__ALL.a
44
# test: $(VDIRFB)/Vfastmaster__ALL.a
45
 
46
$(VDIRFB)/Veqspiflash.h $(VDIRFB)/Veqspiflash.cpp $(VDIRFB)/Veqspiflash.mk: eqspiflash.v lleqspi.v
47
$(VDIRFB)/V%.cpp $(VDIRFB)/V%.h $(VDIRFB)/V%.mk: $(FBDIR)/%.v
48
        verilator -cc $*.v
49
 
50
$(VDIRFB)/V%__ALL.a: $(VDIRFB)/V%.mk
51
        cd $(VDIRFB); make -f V$*.mk
52
 
53
.PHONY:
54
archive:
55
        tar --transform s,^,$(YYMMDD)-rtl/, -chjf $(YYMMDD)-rtl.tjz Makefile *.v cpu/*.v
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-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.