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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [Makefile] - Blame information for rev 66

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

Line No. Rev Author Line
1 28 dgisselq
################################################################################
2
#
3
# Filename:     Makefile
4
#
5
# Project:      Zip CPU -- a small, lightweight, RISC CPU soft core
6
#
7
# Purpose:      This is a grand makefile for the entire project.  It will
8
#               build the assembler, and a Verilog testbench, and then
9
#               even test the CPU via that test bench.
10
#
11
#       Targets include:
12
#
13
#               bench   Build the CPP test bench/debugger facility.
14
#
15
#               rtl     Run Verilator on the RTL
16
#
17
#               sw      Build the assembler.
18
#
19
#               test    Run the test bench on the assembler test file.
20
#
21
#
22
# Creator:      Dan Gisselquist, Ph.D.
23
#               Gisselquist Tecnology, LLC
24
#
25
################################################################################
26
#
27
# Copyright (C) 2015, Gisselquist Technology, LLC
28
#
29
# This program is free software (firmware): you can redistribute it and/or
30
# modify it under the terms of  the GNU General Public License as published
31
# by the Free Software Foundation, either version 3 of the License, or (at
32
# your option) any later version.
33
#
34
# This program is distributed in the hope that it will be useful, but WITHOUT
35
# ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
36
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
37
# for more details.
38
#
39
# License:      GPL, v3, as defined and found on www.gnu.org,
40
#               http://www.gnu.org/licenses/gpl.html
41
#
42
#
43
################################################################################
44
#
45
.PHONY: all
46 36 dgisselq
all: doc rtl sw bench
47 28 dgisselq
 
48 49 dgisselq
MAKE := `which make`
49
 
50 36 dgisselq
.PHONY: doc
51
doc:
52 49 dgisselq
        @echo "Building docs"; cd doc; $(MAKE) --no-print-directory
53 36 dgisselq
 
54 28 dgisselq
.PHONY: rtl
55
rtl:
56 49 dgisselq
        @echo "Building rtl for Verilator"; cd rtl; $(MAKE) --no-print-directory
57 28 dgisselq
 
58
.PHONY: sw
59
sw:
60 49 dgisselq
        @echo "Building sw/zasm"; cd sw/zasm; $(MAKE) --no-print-directory
61 28 dgisselq
 
62
.PHONY: bench
63 49 dgisselq
bench:  rtl sw
64
        @echo "Building bench/cpp"; cd bench/cpp; $(MAKE) --no-print-directory
65
        @echo "Building bench/asm"; cd bench/asm; $(MAKE) --no-print-directory
66 28 dgisselq
 
67 49 dgisselq
.PHONY: test
68 28 dgisselq
test: sw rtl
69 49 dgisselq
        @echo "Building zasm test"; cd sw/zasm; $(MAKE) test --no-print-directory
70
        @echo "Bench test"; cd bench/cpp; $(MAKE) test --no-print-directory
71 28 dgisselq
 
72 49 dgisselq
.PHONY: dhrystone
73
dhrystone: sw bench
74
        @echo "Building Asm Dhrystone"; cd bench/asm; $(MAKE) zipdhry.z --no-print-directory
75
        @echo "Running Dhrystone"; cd bench/cpp; $(MAKE) dhrystone --no-print-directory

powered by: WebSVN 2.1.0

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