Line 10... |
Line 10... |
#
|
#
|
# Targets include:
|
# Targets include:
|
#
|
#
|
# bench Build the CPP test bench/debugger facility.
|
# bench Build the CPP test bench/debugger facility.
|
#
|
#
|
|
# doc Build the ZipCPU chip specification and the GPL
|
|
# license. These should be distributed pre-built, but
|
|
# you are welcome to rebuild them if you would like.
|
|
#
|
# rtl Run Verilator on the RTL
|
# rtl Run Verilator on the RTL
|
#
|
#
|
# sw Build the assembler.
|
# sw Build the obsolete assembler, binutils, and GCC. By
|
|
# default, this also 'install's the compiler into the
|
|
# sw/install/ subdirectory as well.
|
#
|
#
|
# test Run the test bench on the assembler test file.
|
# test Run the test bench on the assembler test file.
|
#
|
#
|
#
|
#
|
# Creator: Dan Gisselquist, Ph.D.
|
# Creator: Dan Gisselquist, Ph.D.
|
# Gisselquist Technology, LLC
|
# Gisselquist Technology, LLC
|
#
|
#
|
################################################################################
|
################################################################################
|
#
|
#
|
# Copyright (C) 2015, Gisselquist Technology, LLC
|
# Copyright (C) 2015-2016, Gisselquist Technology, LLC
|
#
|
#
|
# This program is free software (firmware): you can redistribute it and/or
|
# This program is free software (firmware): you can redistribute it and/or
|
# modify it under the terms of the GNU General Public License as published
|
# modify it under the terms of the GNU General Public License as published
|
# by the Free Software Foundation, either version 3 of the License, or (at
|
# by the Free Software Foundation, either version 3 of the License, or (at
|
# your option) any later version.
|
# your option) any later version.
|
Line 41... |
Line 47... |
#
|
#
|
#
|
#
|
################################################################################
|
################################################################################
|
#
|
#
|
.PHONY: all
|
.PHONY: all
|
all: rtl
|
all: rtl sw
|
|
|
MAKE := `which make`
|
MAKE := `which make`
|
|
|
.PHONY: doc
|
.PHONY: doc
|
doc:
|
doc:
|
Line 55... |
Line 61... |
rtl:
|
rtl:
|
@echo "Building rtl for Verilator"; cd rtl; $(MAKE) --no-print-directory
|
@echo "Building rtl for Verilator"; cd rtl; $(MAKE) --no-print-directory
|
|
|
.PHONY: sw
|
.PHONY: sw
|
sw:
|
sw:
|
@echo "Building sw/zasm"; cd sw/zasm; $(MAKE) --no-print-directory
|
@echo "Building toolchain"; $(MAKE) --no-print-directory --directory=sw/
|
|
|
.PHONY: bench
|
.PHONY: bench
|
bench: rtl sw
|
bench: rtl sw
|
@echo "Building bench/cpp"; cd bench/cpp; $(MAKE) --no-print-directory
|
@echo "Building bench/cpp"; cd bench/cpp; $(MAKE) --no-print-directory
|
@echo "Building bench/asm"; cd bench/asm; $(MAKE) --no-print-directory
|
@echo "Building bench/asm"; cd bench/asm; $(MAKE) --no-print-directory
|