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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [Makefile] - Diff between revs 7 and 30

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

Rev 7 Rev 30
Line 31... Line 31...
##
##
################################################################################
################################################################################
##
##
##
##
.PHONY: all
.PHONY: all
all:    archive datestamp rtl bench
all:    archive datestamp rtl bench sw
# all:  verilated sw bench bit
# all:  verilated sw bench bit
#
#
# Could also depend upon load, if desired, but not necessary
# Could also depend upon load, if desired, but not necessary
BENCH := `find bench -name Makefile` `find bench -name "*.cpp"` `find bench -name "*.h"`
BENCH := `find bench -name Makefile` `find bench -name "*.cpp"` `find bench -name "*.h"`
RTL   := `find rtl -name "*.v"` `find rtl -name Makefile`
RTL   := `find rtl -name "*.v"` `find rtl -name Makefile`
Line 50... Line 50...
CONSTRAINTS := arty.xdc
CONSTRAINTS := arty.xdc
YYMMDD:=`date +%Y%m%d`
YYMMDD:=`date +%Y%m%d`
 
 
.PHONY: datestamp
.PHONY: datestamp
datestamp:
datestamp:
        @bash -c 'if [ ! -e $(YYMMDD)-build.v ]; then rm 20??????-build.v; perl mkdatev.pl > $(YYMMDD)-build.v; rm -f rtl/builddate.v; fi'
        @bash -c 'if [ ! -e $(YYMMDD)-build.v ]; then rm -f 20??????-build.v; perl mkdatev.pl > $(YYMMDD)-build.v; rm -f rtl/builddate.v; fi'
        @bash -c 'if [ ! -e rtl/builddate.v ]; then cd rtl; cp ../$(YYMMDD)-build.v builddate.v; fi'
        @bash -c 'if [ ! -e rtl/builddate.v ]; then cd rtl; cp ../$(YYMMDD)-build.v builddate.v; fi'
 
 
.PHONY: archive
.PHONY: archive
archive:
archive:
        tar --transform s,^,$(YYMMDD)-xula/, -chjf $(YYMMDD)-xula.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
        tar --transform s,^,$(YYMMDD)-arty/, -chjf $(YYMMDD)-arty.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
 
 
.PHONY: verilated
.PHONY: verilated
verilated:
verilated: datestamp
        cd rtl ; $(MAKE) --no-print-directory
        cd rtl ; $(MAKE) --no-print-directory
 
 
.PHONY: rtl
.PHONY: rtl
rtl: verilated
rtl: verilated
 
 
Line 70... Line 70...
bench: rtl
bench: rtl
        cd bench/cpp ; $(MAKE) --no-print-directory
        cd bench/cpp ; $(MAKE) --no-print-directory
 
 
.PHONY: sw
.PHONY: sw
sw:
sw:
        cd sw ; $(MAKE) --no-print-directory
        cd sw/host ; $(MAKE) --no-print-directory
 
 
# .PHONY: bit
# .PHONY: bit
# bit:
# bit:
#       cd xilinx ; $(MAKE) --no-print-directory xula.bit
#       cd xilinx ; $(MAKE) --no-print-directory xula.bit
 
 

powered by: WebSVN 2.1.0

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