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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [bench/] [asm/] [Makefile] - Blame information for rev 105

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

Line No. Rev Author Line
1 4 dgisselq
################################################################################
2
##
3
## Filename:    Makefile
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
all: memtest.z
35
ZIPD := $(HOME)/work/rnd/zipcpu/trunk
36
ZASM := $(ZIPD)/sw/zasm/zasm
37
ZDUMP:= $(ZIPD)/sw/zasm/zdump
38
 
39 35 dgisselq
ZIPCPP:= $(CROSSD)zip-cpp
40
ZIPAS := $(CROSSD)zip-as
41
ZIPLD := $(CROSSD)zip-ld
42
OBDMP := $(CROSSD)zip-objdump
43
XULALNK:= xulalink.x
44
 
45 4 dgisselq
.PHONY: genlrs
46
genlrs: genlrs.z
47
genlrs.z: genlrs.S
48
        $(ZASM) $< -o $@
49
genlrs.txt: genlrs.z
50
        $(ZDUMP) $< > $@
51
 
52
.PHONY: cputest
53
cputest: cputest.z
54
cputest.z: cputest.S sys.i
55
        $(ZASM) $< -o $@
56
cputest.txt: cputest.z
57
        $(ZDUMP) $< > $@
58
 
59
.PHONY: memtest
60
memtest: memtest.z
61 35 dgisselq
memtest.zo: memtest.s
62
        $(ZIPCPP) $< | $(ZIPAS) -o $@ --
63
memtest.z: memtest.zo
64
        $(ZIPLD) -T $(XULALNK) $< -o $@
65 4 dgisselq
memtest.txt: memtest.z
66 35 dgisselq
        $(OBDMP) -d $< > $@
67 4 dgisselq
 
68 16 dgisselq
.PHONY: cfgtest
69
cfgtest: cfgtest.z
70
cfgtest.z: cfgtest.s dev.i sys.i
71
        $(ZASM) $< -o $@
72
cfgtest.txt: cfgtest.z
73
        $(ZDUMP) $< > $@
74
 
75 4 dgisselq
.PHONY:
76
clean:
77 35 dgisselq
        @rm -f memtest.z memtest.txt cfgtest.txt cfgtest.z *.zo a.out

powered by: WebSVN 2.1.0

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