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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [bench/] [asm/] [Makefile] - Blame information for rev 134

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

Line No. Rev Author Line
1 50 dgisselq
################################################################################
2
#
3
# Filename:     Makefile
4
#
5
# Project:      Zip CPU -- a small, lightweight, RISC CPU soft core
6
#
7
# Purpose:      This makefile builds the various assembler level test benches
8
#               that exist.
9
#
10
# Creator:      Dan Gisselquist, Ph.D.
11 69 dgisselq
#               Gisselquist Technology, LLC
12 50 dgisselq
#
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 74 dgisselq
all: zipdhry.z testdiv.z wdt.z halttest.z zipdhry.txt nullpc.txt poptest.txt
34
ZDIR := ../../sw/zasm
35 69 dgisselq
ZASM := $(ZDIR)/zasm
36
ZDMP := $(ZDIR)/zdump
37 41 dgisselq
LIBS := ../../sw/lib
38 69 dgisselq
INCS := -I$(ZDIR)/
39 41 dgisselq
 
40
dump: zipdhry.txt testdiv.txt
41
 
42 57 dgisselq
halttest.z: halttest.S
43
        $(ZASM) $(INCS) $^ -o $@
44 41 dgisselq
zipdhry.z: zipdhry.S $(LIBS)/divs.S $(LIBS)/divu.S stack.S
45
        $(ZASM) $(INCS) $^ -o $@
46
zipdhry.txt: zipdhry.z
47
        $(ZDMP) zipdhry.z > zipdhry.txt
48
 
49 74 dgisselq
nullpc.z: nullpc.s
50
        $(ZASM) $(INCS) $^ -o $@
51
nullpc.txt: nullpc.z
52
        $(ZDMP) nullpc.z > nullpc.txt
53
 
54
poptest.z: poptest.s
55
        $(ZASM) $(INCS) $^ -o $@
56
poptest.txt: poptest.z
57
        $(ZDMP) poptest.z > poptest.txt
58
 
59 41 dgisselq
wdt.z: wdt.S
60
        $(ZASM) $(INCS) $^ -o $@
61
 
62
.PHONY: testdiv
63
testdiv: testdiv.z
64
testdiv.z: testdiv.S $(LIBS)/divs.S $(LIBS)/divu.S stack.S
65
        $(ZASM) $(INCS) $^ -o $@
66
 
67
testdiv.txt: testdiv.z
68
        $(ZDMP) testdiv.z > testdiv.txt
69
 
70
clean:
71 69 dgisselq
        rm -rf *.z zipdhry.txt testdiv.txt

powered by: WebSVN 2.1.0

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