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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [rtl/] [Makefile] - Diff between revs 157 and 193

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

Rev 157 Rev 193
Line 30... Line 30...
#
#
#
#
################################################################################
################################################################################
#
#
.PHONY: all
.PHONY: all
all: zipsystem zipbones cpudefs.h div
all: zipsystem zipbones cpudefs.h div zipmmu cpuops
 
 
CORED:= core
CORED:= core
PRPHD:= peripherals
PRPHD:= peripherals
AUXD := aux
AUXD := aux
VSRC := zipsystem.v cpudefs.v                                   \
VSRC := zipsystem.v cpudefs.v                                   \
                $(PRPHD)/wbdmac.v $(PRPHD)/icontrol.v           \
                $(PRPHD)/wbdmac.v $(PRPHD)/icontrol.v           \
                $(PRPHD)/zipcounter.v $(PRPHD)/zipjiffies.v     \
                $(PRPHD)/zipcounter.v $(PRPHD)/zipjiffies.v     \
                $(PRPHD)/ziptimer.v $(PRPHD)/ziptrap.v          \
                $(PRPHD)/ziptimer.v                             \
        $(CORED)/zipcpu.v $(CORED)/cpuops.v $(CORED)/idecode.v  \
        $(CORED)/zipcpu.v $(CORED)/cpuops.v $(CORED)/idecode.v  \
                $(CORED)/pipefetch.v $(CORED)/prefetch.v        \
                $(CORED)/pipefetch.v $(CORED)/prefetch.v        \
                $(CORED)/pfcache.v                              \
                $(CORED)/pfcache.v                              \
                $(CORED)/memops.v $(CORED)/pipemem.v            \
                $(CORED)/memops.v $(CORED)/pipemem.v            \
                $(CORED)/div.v                                  \
                $(CORED)/div.v                                  \
Line 67... Line 67...
$(VOBJ)/Vzipbones.cpp: $(VZIP)
$(VOBJ)/Vzipbones.cpp: $(VZIP)
        verilator -cc -y $(CORED) -y $(PRPHD) -y $(AUXD) zipbones.v
        verilator -cc -y $(CORED) -y $(PRPHD) -y $(AUXD) zipbones.v
$(VOBJ)/Vzipbones.h: $(VOBJ)/Vzipbones.cpp
$(VOBJ)/Vzipbones.h: $(VOBJ)/Vzipbones.cpp
 
 
$(VOBJ)/Vdiv.cpp: $(CORED)/div.v
$(VOBJ)/Vdiv.cpp: $(CORED)/div.v
        verilator -cc -y $(CORED) -y $(PRPHD) -y $(AUXD) $(CORED)/div.v
        verilator -cc -y $(CORED) $(CORED)/div.v
$(VOBJ)/Vdiv.h: $(VOBJ)/Vdiv.cpp
$(VOBJ)/Vdiv.h: $(VOBJ)/Vdiv.cpp
 
 
 
$(VOBJ)/Vcpuops.cpp: $(CORED)/cpuops.v cpudefs.v
 
        verilator -cc -y $(CORED) $(CORED)/cpuops.v
 
$(VOBJ)/Vcpuops.h: $(VOBJ)/Vcpuops.cpp
 
 
 
$(VOBJ)/Vzipmmu.cpp: $(PRPHD)/zipmmu.v
 
        verilator -cc  -y $(PRPHD) $(PRPHD)/zipmmu.v
 
$(VOBJ)/Vzipmmu.h: $(VOBJ)/Vzipmmu.cpp
 
 
$(VOBJ)/Vzipsystem__ALL.a: $(VOBJ)/Vzipsystem.cpp $(VOBJ)/Vzipsystem.h
$(VOBJ)/Vzipsystem__ALL.a: $(VOBJ)/Vzipsystem.cpp $(VOBJ)/Vzipsystem.h
        cd $(VOBJ); make --no-print-directory -f Vzipsystem.mk
        cd $(VOBJ); make --no-print-directory -f Vzipsystem.mk
 
 
$(VOBJ)/Vzipbones__ALL.a: $(VOBJ)/Vzipbones.cpp $(VOBJ)/Vzipbones.h
$(VOBJ)/Vzipbones__ALL.a: $(VOBJ)/Vzipbones.cpp $(VOBJ)/Vzipbones.h
        cd $(VOBJ); make --no-print-directory -f Vzipbones.mk
        cd $(VOBJ); make --no-print-directory -f Vzipbones.mk
 
 
$(VOBJ)/Vdiv__ALL.a: $(VOBJ)/Vdiv.cpp $(VOBJ)/Vdiv.h
$(VOBJ)/Vdiv__ALL.a: $(VOBJ)/Vdiv.cpp $(VOBJ)/Vdiv.h
        cd $(VOBJ); make --no-print-directory -f Vdiv.mk
        cd $(VOBJ); make --no-print-directory -f Vdiv.mk
 
 
 
$(VOBJ)/Vcpuops__ALL.a: $(VOBJ)/Vcpuops.cpp $(VOBJ)/Vcpuops.h
 
        cd $(VOBJ); make --no-print-directory -f Vcpuops.mk
 
 
 
$(VOBJ)/Vzipmmu__ALL.a: $(VOBJ)/Vzipmmu.cpp $(VOBJ)/Vzipmmu.h
 
        cd $(VOBJ); make --no-print-directory -f Vzipmmu.mk
 
 
 
# $(VOBJ)/V%__ALL.a: $(VOBJ)/V%.cpp $(VOBJ)/V%.h
 
#       cd $(VOBJ); make --no-print-directory -f V%.mk
 
 
cpudefs.h: cpudefs.v
cpudefs.h: cpudefs.v
        @echo "Building cpudefs.h"
        @echo "Building cpudefs.h"
        @echo "// " > $@
        @echo "// " > $@
        @echo "// Do not edit this file, it is automatically generated!" >> $@
        @echo "// Do not edit this file, it is automatically generated!" >> $@
        @echo "// To generate this file, \"make cpudefs.h\" in the rtl directory." >> $@
        @echo "// To generate this file, \"make cpudefs.h\" in the rtl directory." >> $@
        @echo "// " >> $@
        @echo "// " >> $@
        @grep "^\`" $^ | sed -e '{ s/^`/#/ }' >> $@
        @grep "^\`" $^ | sed -e '{ s/^`/#/ }' >> $@
 
 
.PHONY: zipsystem
.PHONY: zipsystem
zipsystem: $(VOBJ)/Vzipsystem__ALL.a
zipsystem: $(VOBJ)/Vzipsystem__ALL.a cpudefs.h
 
 
.PHONY: zipbones
.PHONY: zipbones
zipbones: $(VOBJ)/Vzipbones__ALL.a
zipbones: $(VOBJ)/Vzipbones__ALL.a cpudefs.h
 
 
.PHONY: div
.PHONY: div
div: $(VOBJ)/Vdiv__ALL.a
div: $(VOBJ)/Vdiv__ALL.a
 
 
 
.PHONY: cpuops
 
cpuops: $(VOBJ)/Vcpuops__ALL.a cpudefs.h
 
 
 
.PHONY: zipmmu
 
zipmmu: $(VOBJ)/Vzipmmu__ALL.a
 
 
.PHONY: clean
.PHONY: clean
clean:
clean:
        rm -rf $(VOBJ) cpudefs.h
        rm -rf $(VOBJ) cpudefs.h

powered by: WebSVN 2.1.0

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