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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [Makefile] - Blame information for rev 42

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

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

powered by: WebSVN 2.1.0

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