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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [rtl/] [Makefile] - Diff between revs 38 and 56

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

Rev 38 Rev 56
Line 35... Line 35...
all: zipsystem zipbones cpudefs.h
all: zipsystem zipbones cpudefs.h
 
 
CORED:= core
CORED:= core
PRPHD:= peripherals
PRPHD:= peripherals
AUXD := aux
AUXD := aux
VSRC := zipsystem.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 $(PRPHD)/ziptrap.v          \
        $(CORED)/zipcpu.v $(CORED)/cpuops.v                     \
        $(CORED)/zipcpu.v $(CORED)/cpuops.v                     \
                $(CORED)/pipefetch.v $(CORED)/prefetch.v        \
                $(CORED)/pipefetch.v $(CORED)/prefetch.v        \
                $(CORED)/memops.v $(CORED)/pipemem.v            \
                $(CORED)/memops.v $(CORED)/pipemem.v            \
        $(AUXD)/busdelay.v                                      \
        $(AUXD)/busdelay.v                                      \
                $(AUXD)/wbdblpriarb.v $(AUXD)/wbpriarbiter.v
                $(AUXD)/wbdblpriarb.v $(AUXD)/wbpriarbiter.v
VZIP := zipbones.v                                              \
VZIP := zipbones.v cpudefs.v                                    \
        $(CORED)/zipcpu.v $(CORED)/cpuops.v                     \
        $(CORED)/zipcpu.v $(CORED)/cpuops.v                     \
                $(CORED)/pipefetch.v $(CORED)/prefetch.v        \
                $(CORED)/pipefetch.v $(CORED)/prefetch.v        \
                $(CORED)/memops.v $(CORED)/pipemem.v            \
                $(CORED)/memops.v $(CORED)/pipemem.v            \
        $(AUXD)/busdelay.v $(AUXD)/wbdblpriarb.v
        $(AUXD)/busdelay.v $(AUXD)/wbdblpriarb.v
 
 
VOBJ := obj_dir
VOBJ := obj_dir
 
 
$(VOBJ)/Vzipsystem.cpp: $(VSRC)
$(VOBJ)/Vzipsystem.cpp: $(VSRC)
        verilator -cc -y $(CORED) -y $(PRPHD) -y $(AUXD) zipsystem.v
        verilator -cc -y $(CORED) -y $(PRPHD) -y $(AUXD) zipsystem.v
 
$(VOBJ)/Vzipsystem.h: $(VOBJ)/Vzipsystem.cpp
 
 
$(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)/Vzipsystem__ALL.a: $(VOBJ)/Vzipsystem.cpp $(VOBJ)/Vzipsystem.h
$(VOBJ)/Vzipsystem__ALL.a: $(VOBJ)/Vzipsystem.cpp $(VOBJ)/Vzipsystem.h
        cd $(VOBJ); make -f Vzipsystem.mk
        cd $(VOBJ); make -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 -f Vzipbones.mk
        cd $(VOBJ); make -f Vzipbones.mk
 
 
cpudefs.h: $(CORED)/zipcpu.v
cpudefs.h: cpudefs.v
        @echo "// Do not edit this file, it is automatically generated!" > $@
        echo "// " > $@
        @grep ^.define $^ | grep OPT_ | sed -e '{ s/^.d/#d/ }' >> $@
        echo "// Do not edit this file, it is automatically generated!" >> $@
 
        echo "// " >> $@
 
        grep "^\`" $^ | sed -e '{ s/^`/#/ }' >> $@
 
 
.PHONY: zipsystem
.PHONY: zipsystem
zipsystem: $(VOBJ)/Vzipsystem__ALL.a
zipsystem: $(VOBJ)/Vzipsystem__ALL.a
 
 
.PHONY: zipbones
.PHONY: zipbones

powered by: WebSVN 2.1.0

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