]> git.zerfleddert.de Git - raggedstone/blobdiff - heartbeat/Makefile
completely remove tmp uglyness
[raggedstone] / heartbeat / Makefile
index 44af9b93bfb20426e45dceb4af51ec3de898310b..7688155fbe434fe038cda604d75c16d85b992ff3 100644 (file)
@@ -1,10 +1,12 @@
 PWD := $(shell pwd)
 
+PROJECT := raggedstone
+
 INTSTYLE := silent
 
-PROJECT := raggedstone
+SOURCES = $(wildcard sources/*.v source/*.vhd)
 
-all: xst ngdbuild map par trace prom final
+all: $(PROJECT).bit final
 
 log:
        time make all &>build.log
@@ -13,7 +15,7 @@ xst: $(PROJECT).ngc
 
 ngdbuild: $(PROJECT).ngd
 
-$(PROJECT).ngc:
+$(PROJECT).ngc: $(SOURCES)
        @# echo synclib > $(PROJECT).lso # hmm. things are different in ise 9.1
        echo work > $(PROJECT).lso
        xst -intstyle $(INTSTYLE) -ifn $(PROJECT).xst -ofn $(PROJECT).syr
@@ -22,18 +24,18 @@ $(PROJECT).ngc:
 $(PROJECT).ngd: $(PROJECT).ngc
        ngdbuild -intstyle $(INTSTYLE) -dd "$(PWD)/_ngo" -nt timestamp -uc $(PROJECT).ucf  -p xc3s1500-fg456-4 $(PROJECT).ngc $(PROJECT).ngd
 
-map:
+$(PROJECT)_map.ngm $(PROJECT).pcf: $(PROJECT).ngd
        map -intstyle $(INTSTYLE) -p xc3s1500-fg456-4 -cm area -pr b -k 4 -c 100 -o $(PROJECT)_map.ncd $(PROJECT).ngd $(PROJECT).pcf
 
-par:
+$(PROJECT).ncd: $(PROJECT)_map.ngm $(PROJECT).pcf
        @#par -w -intstyle $(INTSTYLE) -ol std -n 4 -t 1 $(PROJECT)_map.ncd $(PROJECT).dir $(PROJECT).pcf
        par -w -intstyle $(INTSTYLE) -ol std -t 1 $(PROJECT)_map.ncd $(PROJECT).ncd $(PROJECT).pcf
 
-trace:
+$(PROJECT).twx: $(PROJECT).ncd
        trce -intstyle $(INTSTYLE) -e 3 -l 3 -s 4 -xml $(PROJECT) $(PROJECT).ncd -o $(PROJECT).twr $(PROJECT).pcf
        @#cat $(PROJECT).twr
 
-prom:
+$(PROJECT).bit: $(PROJECT).ncd
        bitgen -intstyle $(INTSTYLE) -f $(PROJECT).ut $(PROJECT).ncd
        @# cp $(PROJECT).bit ../jcarr_last.bit
        @#cat $(PROJECT).drc
@@ -57,9 +59,9 @@ flash: mcs
        impact -batch xcf.batch
 
 clean:
-       rm -f *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd
-       rm -f *.ngr *.pad *.par *.pcf *.prm *.syr *.twr *.twx *.xpi *.lso *.prm *.mcs _impact*
-       rm -f $(PROJECT)_map.* $(PROJECT)_pad.*
-       rm -f _ngo xst 
-       rm -f build.log
-       rm -f $(PROJECT).unroutes *.xml
+       @rm -rf *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd \
+               *.ngr *.pad *.par *.pcf *.prm *.syr *.twr *.twx *.xpi *.lso *.prm *.mcs _impact* \
+               $(PROJECT)_map.* $(PROJECT)_pad.* \
+               _ngo xst  \
+               build.log \
+               $(PROJECT).unroutes *.xml
Impressum, Datenschutz