X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/raggedstone/blobdiff_plain/8f897de7e9503aa77b3a5d5840630d2ea1617a97..921552060a0eec3da9d504b06901d3bc3cf2dee3:/common/Makefile.common?ds=sidebyside diff --git a/common/Makefile.common b/common/Makefile.common index 0f0e3da..bbf4218 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -7,7 +7,7 @@ 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 ?= @@ -73,7 +73,10 @@ 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 @@ -90,4 +93,4 @@ clean: build.log \ $(PROJECT).unroutes *.xml $(CLEANFILES) -.PHONY: all final burn load flash clean xst ngdbuild log analyzer +.PHONY: all final burn load flash clean xst ngdbuild log analyzer i-really-want-to-flash