]> git.zerfleddert.de Git - raggedstone/blobdiff - common/Makefile.common
perl -p -i -e "s/PCI_CLOCK'event and PCI_CLOCK = '1'/rising_edge(PCI_CLOCK)/" *.vhd
[raggedstone] / common / Makefile.common
index 534fe6d0240150e9eca4af3681f2fb7ab6e0a561..0f0e3da52dec4b6e880ab8d12e7b1c1ae3b74d03 100644 (file)
@@ -10,6 +10,7 @@ INTSTYLE := silent
 SOURCES = $(wildcard sources/*.v source/*.vhd)
 PART ?= xc3s1500-fg456-4
 TARGET ?= bit
+CLEANFILES ?=
 
 ifdef DRIVER
 PRELOAD = LD_PRELOAD=$(DRIVER)
@@ -77,13 +78,16 @@ flash: $(PROJECT)-xcf02s.mcs $(PROJECT)-xcf04s.mcs
        $(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 *.edn \
+       @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
Impressum, Datenschutz