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

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [Makefile] - Diff between revs 2 and 6

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

Rev 2 Rev 6
Line 1... Line 1...
 
##############################################################################//
 
##
 
## Filename:    Makefile
 
##
 
## Project:     CMod S6 System on a Chip, ZipCPU demonstration project
 
##
 
## Purpose:     An initial attempt at a master project makefile.  Does not
 
##              yet support subdirectory recursion, so it currently does
 
##      little more than make a tar file or a date stamp.
 
##
 
## Creator:     Dan Gisselquist, Ph.D.
 
##              Gisselquist Technology, LLC
 
##
 
##############################################################################//
 
##
 
## Copyright (C) 2015-2016, Gisselquist Technology, LLC
 
##
 
## This program is free software (firmware): you can redistribute it and/or
 
## modify it under the terms of  the GNU General Public License as published
 
## by the Free Software Foundation, either version 3 of the License, or (at
 
## your option) any later version.
 
##
 
## This program is distributed in the hope that it will be useful, but WITHOUT
 
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
 
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
## for more details.
 
##
 
## You should have received a copy of the GNU General Public License along
 
## with this program.  (It's in the $(ROOT)/doc directory, run make with no
 
## target there if the PDF file isn't present.)  If not, see
 
##  for a copy.
 
##
 
## License:     GPL, v3, as defined and found on www.gnu.org,
 
##              http://www.gnu.org/licenses/gpl.html
 
##
 
##
 
##############################################################################//
 
##
 
##
.PHONY: all
.PHONY: all
all:    datestamp archive
all:    datestamp archive
# 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"`
BENCH :=
BENCH :=
RTL   := `find rtl -name "*.v"` `find rtl -name Makefile`
RTL   := `find rtl -name "*.v"` `find rtl -name Makefile`
Line 12... Line 51...
PROJ    :=
PROJ    :=
BIN     := `find xilinx -name "*.bit"`
BIN     := `find xilinx -name "*.bit"`
CONSTRAINTS := cmod.ucf
CONSTRAINTS := cmod.ucf
YYMMDD  := `date +%Y%m%d`
YYMMDD  := `date +%Y%m%d`
 
 
datestamp:      $(YYMMDD)-build.v
.PHONY: datestamp
$(YYMMDD)-build.v:
datestamp:
        -rm -rf 2*-build.v
        @bash -c 'if [ ! -e $(YYMMDD)-build.v ]; then rm 20??????-build.v; perl mkdatev.pl > $(YYMMDD)-build.v; rm -f rtl/builddate.v; fi'
        perl mkdatev.pl > $(YYMMDD)-build.v
        @bash -c 'if [ ! -e rtl/builddate.v ]; then cd rtl; cp ../$(YYMMDD)-build.v builddate.v; fi'
        cd rtl; ln -fs ../$(YYMMDD)-build.v builddate.v
 
 
 
.PHONY: archive
.PHONY: archive
archive:
archive:
        tar --transform s,^,$(YYMMDD)-s6/, -chjf $(YYMMDD)-xula.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
        tar --transform s,^,$(YYMMDD)-s6/, -chjf $(YYMMDD)-xula.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
 
 
# .PHONY: bit
# .PHONY: bit
# bit:
# bit:
#       cd xilinx ; make xula.bit
#       cd xilinx ; make xula.bit
 
 
 
axload:
 
        djtgcfg enum
 
        djtgcfg init -d CmodS6
 
        djtgcfg erase -d CmodS6 -i 0
 
        djtgcfg prog  -d CmodS6 -i 0 -f xilinx/alttop.bit
 
 
 
xload:
 
        djtgcfg prog -d CmodS6 -i 0 -f xilinx/toplevel.bit

powered by: WebSVN 2.1.0

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