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

Subversion Repositories zipcpu

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

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

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