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

Subversion Repositories openarty

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

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 36 dgisselq
SW    := `find sw -name "*.cpp"` `find sw -name "*.c"`  \
44
        `find sw -name "*.h"`   `find sw -name "*.sh"`  \
45
        `find sw -name "*.py"`  `find sw -name "*.pl"`  \
46
        `find sw -name "*.png"` `find sw -name Makefile`
47 5 dgisselq
DEVSW := `find sw-board -name "*.cpp"` `find sw-board -name "*.h"` \
48
        `find sw-board -name Makefile`
49
PROJ  :=
50
BIN  := `find xilinx -name "*.bit"`
51
CONSTRAINTS := arty.xdc
52
YYMMDD:=`date +%Y%m%d`
53
 
54
.PHONY: datestamp
55
datestamp:
56 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'
57 5 dgisselq
        @bash -c 'if [ ! -e rtl/builddate.v ]; then cd rtl; cp ../$(YYMMDD)-build.v builddate.v; fi'
58
 
59
.PHONY: archive
60
archive:
61 30 dgisselq
        tar --transform s,^,$(YYMMDD)-arty/, -chjf $(YYMMDD)-arty.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
62 5 dgisselq
 
63
.PHONY: verilated
64 30 dgisselq
verilated: datestamp
65 5 dgisselq
        cd rtl ; $(MAKE) --no-print-directory
66
 
67
.PHONY: rtl
68
rtl: verilated
69
 
70 7 dgisselq
.PHONY: bench
71
bench: rtl
72
        cd bench/cpp ; $(MAKE) --no-print-directory
73 5 dgisselq
 
74 7 dgisselq
.PHONY: sw
75
sw:
76 30 dgisselq
        cd sw/host ; $(MAKE) --no-print-directory
77 5 dgisselq
 
78
# .PHONY: bit
79
# bit:
80
#       cd xilinx ; $(MAKE) --no-print-directory xula.bit
81
 

powered by: WebSVN 2.1.0

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