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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [Makefile] - Diff between revs 158 and 202

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 158 Rev 202
Line 49... Line 49...
################################################################################
################################################################################
#
#
.PHONY: all
.PHONY: all
all: rtl sw
all: rtl sw
 
 
MAKE := `which make`
MAKE := make    # Was `which make`
 
SUBMAKE := $(MAKE) --no-print-directory
 
 
.PHONY: doc
.PHONY: doc
doc:
doc:
        @echo "Building docs"; cd doc; $(MAKE) --no-print-directory
        @echo "Building docs"; cd doc;
 
        +@$(SUBMAKE) --directory=doc/
 
 
.PHONY: rtl
.PHONY: rtl
rtl:
rtl:
        @echo "Building rtl for Verilator"; cd rtl; $(MAKE) --no-print-directory
        @echo "Building rtl for Verilator";
 
        +@$(SUBMAKE) --directory=rtl/
 
 
.PHONY: sw
.PHONY: sw
sw:
sw:
        @echo "Building toolchain"; $(MAKE) --no-print-directory --directory=sw/
        @echo "Building toolchain";
 
        +@$(SUBMAKE) --directory=sw/
 
 
.PHONY: bench
.PHONY: sim
bench:  rtl sw
sim:    cppsim vsim
        @echo "Building bench/cpp"; cd bench/cpp; $(MAKE) --no-print-directory
 
        @echo "Building bench/asm"; cd bench/asm; $(MAKE) --no-print-directory
cppsim:
 
        @echo "Building in C++ simulator";
.PHONY: test
        +@$(SUBMAKE) --directory=sim/cpp
test: sw rtl
 
        @echo "Building zasm test"; cd sw/zasm; $(MAKE) test --no-print-directory
vsim: rtl
        @echo "Bench test"; cd bench/cpp; $(MAKE) test --no-print-directory
        @echo "Building Verilator simulator";
 
        +@$(SUBMAKE) --directory=sim/verilator
.PHONY: dhrystone
 
dhrystone: sw bench
clean:
        @echo "Building Asm Dhrystone"; cd bench/asm; $(MAKE) zipdhry.z --no-print-directory
        +@$(SUBMAKE) --directory=rtl
        @echo "Running Dhrystone"; cd bench/cpp; $(MAKE) dhrystone --no-print-directory
        +@$(SUBMAKE) --directory=sw
 
        +@$(SUBMAKE) --directory=sim/cpp
 
        +@$(SUBMAKE) --directory=sim/verilator
 
        +@$(SUBMAKE) --directory=bench/asm
 
        +@$(SUBMAKE) --directory=bench/cpp
 
 
 
# .PHONY: bench
 
# bench: rtl sw
 
        # @echo "Building in bench/rtl"; $(SUBMAKE) --directory=bench/rtl
 
        # @echo "Building in bench/cpp"; $(SUBMAKE) --directory=bench/cpp
 
        # @echo "Building in bench/asm"; $(SUBMAKE) --directory=bench/asm
 
 
 
# .PHONY: test
 
# test: sw rtl
 
        # @echo "Building zasm test"; cd sw/zasm; $(MAKE) test --no-print-directory
 
        # @echo "Bench test"; cd bench/cpp; $(MAKE) test --no-print-directory
 
 
 
# .PHONY: dhrystone
 
# dhrystone: sw bench
 
        # @echo "Building Asm Dhrystone"; $(SUBMAKE) zipdhry.z --no-print-directory
 
        # @echo "Running Dhrystone"; cd bench/cpp; $(SUBMAKE) dhrystone --no-print-directory

powered by: WebSVN 2.1.0

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