X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/raggedstone/blobdiff_plain/f026519d99c0b3afb0560431530bb0a5b11e705b..a93ef3acf570a7f2bd850608f286510d291a199d:/common/Makefile.common?ds=sidebyside diff --git a/common/Makefile.common b/common/Makefile.common index 5bea6cc..bbf4218 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -7,9 +7,10 @@ CABLE ?= auto INTSTYLE := silent -SOURCES = $(wildcard sources/*.v source/*.vhd) +SOURCES := $(shell find . -name "*.vhd" -print) $(shell find . -name "*.v" -print) PART ?= xc3s1500-fg456-4 TARGET ?= bit +CLEANFILES ?= ifdef DRIVER PRELOAD = LD_PRELOAD=$(DRIVER) @@ -72,18 +73,24 @@ load: $(PROJECT).bit $(PRELOAD) impact -batch xc3s1500.batch.tmp @rm xc3s1500.batch.tmp -flash: $(PROJECT)-xcf02s.mcs $(PROJECT)-xcf04s.mcs +flash: + @echo "NO" + +i-really-want-to-flash: $(PROJECT)-xcf02s.mcs $(PROJECT)-xcf04s.mcs @sed -e "s|%CABLE%|$(CABLE)|g" -e "s|%PROJECT%|$(PROJECT)|g" ../common/xcf.batch >xcf.batch.tmp $(PRELOAD) impact -batch xcf.batch.tmp @rm xcf.batch.tmp +analyzer: + $(CHIPSCOPE)/bin/lin/analyzer.sh -project $(PWD)/$(PROJECT).cpj + clean: - @rm -rf *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd \ + @rm -rf *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd *.edn *.ncf *.ngo *.cdc \ *.ngr *.pad *.par *.pcf *.prm *.syr *.twr *.twx *.xpi *.lso *.prm *.mcs _impact* \ - *.vm6 *.jed *.gyd *.mfd *.pnx *.rpt *.err \ + *.vm6 *.jed *.gyd *.mfd *.pnx *.rpt *.err *.log \ $(PROJECT)_map.* $(PROJECT)_pad.* \ _ngo xst \ build.log \ - $(PROJECT).unroutes *.xml + $(PROJECT).unroutes *.xml $(CLEANFILES) -.PHONY: all final burn load flash clean xst ngdbuild log +.PHONY: all final burn load flash clean xst ngdbuild log analyzer i-really-want-to-flash