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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [Makefile] - Blame information for rev 30

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

Line No. Rev Author Line
1 5 dgisselq
################################################################################
2
##
3
## Filename:    Makefile
4
##
5
## Project:     OpenArty, an entirely open SoC based upon the Arty platform
6
##
7
## Purpose:     A master project makefile.  It tries to build all targets
8
##              within the project, mostly by directing subdirectory makes.
9
##
10
##
11
## Creator:     Dan Gisselquist, Ph.D.
12
##              Gisselquist Technology, LLC
13
##
14
################################################################################
15
##
16
## Copyright (C) 2015, Gisselquist Technology, LLC
17
##
18
## This program is free software (firmware): you can redistribute it and/or
19
## modify it under the terms of  the GNU General Public License as published
20
## by the Free Software Foundation, either version 3 of the License, or (at
21
## your option) any later version.
22
##
23
## This program is distributed in the hope that it will be useful, but WITHOUT
24
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
25
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
26
## for more details.
27
##
28
## License:     GPL, v3, as defined and found on www.gnu.org,
29
##              http:##www.gnu.org/licenses/gpl.html
30
##
31
##
32
################################################################################
33
##
34
##
35
.PHONY: all
36 30 dgisselq
all:    archive datestamp rtl bench sw
37 5 dgisselq
# all:  verilated sw bench bit
38
#
39
# Could also depend upon load, if desired, but not necessary
40
BENCH := `find bench -name Makefile` `find bench -name "*.cpp"` `find bench -name "*.h"`
41
RTL   := `find rtl -name "*.v"` `find rtl -name Makefile`
42
NOTES := `find . -name "*.txt"` `find . -name "*.html"`
43
SW    := `find sw -name "*.cpp"` `find sw -name "*.h"`  \
44
        `find sw -name "*.sh"` `find sw -name "*.py"`   \
45
        `find sw -name "*.pl"` `find sw -name Makefile`
46
DEVSW := `find sw-board -name "*.cpp"` `find sw-board -name "*.h"` \
47
        `find sw-board -name Makefile`
48
PROJ  :=
49
BIN  := `find xilinx -name "*.bit"`
50
CONSTRAINTS := arty.xdc
51
YYMMDD:=`date +%Y%m%d`
52
 
53
.PHONY: datestamp
54
datestamp:
55 30 dgisselq
        @bash -c 'if [ ! -e $(YYMMDD)-build.v ]; then rm -f 20??????-build.v; perl mkdatev.pl > $(YYMMDD)-build.v; rm -f rtl/builddate.v; fi'
56 5 dgisselq
        @bash -c 'if [ ! -e rtl/builddate.v ]; then cd rtl; cp ../$(YYMMDD)-build.v builddate.v; fi'
57
 
58
.PHONY: archive
59
archive:
60 30 dgisselq
        tar --transform s,^,$(YYMMDD)-arty/, -chjf $(YYMMDD)-arty.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
61 5 dgisselq
 
62
.PHONY: verilated
63 30 dgisselq
verilated: datestamp
64 5 dgisselq
        cd rtl ; $(MAKE) --no-print-directory
65
 
66
.PHONY: rtl
67
rtl: verilated
68
 
69 7 dgisselq
.PHONY: bench
70
bench: rtl
71
        cd bench/cpp ; $(MAKE) --no-print-directory
72 5 dgisselq
 
73 7 dgisselq
.PHONY: sw
74
sw:
75 30 dgisselq
        cd sw/host ; $(MAKE) --no-print-directory
76 5 dgisselq
 
77
# .PHONY: bit
78
# bit:
79
#       cd xilinx ; $(MAKE) --no-print-directory xula.bit
80
 

powered by: WebSVN 2.1.0

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