revert back to rm -rf but call it only once and don't show command running
[raggedstone] / heartbeat / Makefile
CommitLineData
95764a11 1PWD := $(shell pwd)
2
f8d46fe4 3INTSTYLE := silent
95764a11 4
ad16d1e3 5PROJECT := raggedstone
95764a11 6
82cc0f36 7all: xst ngdbuild map par trace prom final
95764a11 8
9log:
10 time make all &>build.log
11
12xst: $(PROJECT).ngc
13
f8d46fe4 14ngdbuild: $(PROJECT).ngd
95764a11 15
16$(PROJECT).ngc:
17 @# echo synclib > $(PROJECT).lso # hmm. things are different in ise 9.1
18 echo work > $(PROJECT).lso
f8d46fe4 19 xst -intstyle $(INTSTYLE) -ifn $(PROJECT).xst -ofn $(PROJECT).syr
20 @#cat $(PROJECT).syr
95764a11 21
f8d46fe4 22$(PROJECT).ngd: $(PROJECT).ngc
23 ngdbuild -intstyle $(INTSTYLE) -dd "$(PWD)/_ngo" -nt timestamp -uc $(PROJECT).ucf -p xc3s1500-fg456-4 $(PROJECT).ngc $(PROJECT).ngd
95764a11 24
25map:
f8d46fe4 26 map -intstyle $(INTSTYLE) -p xc3s1500-fg456-4 -cm area -pr b -k 4 -c 100 -o $(PROJECT)_map.ncd $(PROJECT).ngd $(PROJECT).pcf
95764a11 27
28par:
f8d46fe4 29 @#par -w -intstyle $(INTSTYLE) -ol std -n 4 -t 1 $(PROJECT)_map.ncd $(PROJECT).dir $(PROJECT).pcf
30 par -w -intstyle $(INTSTYLE) -ol std -t 1 $(PROJECT)_map.ncd $(PROJECT).ncd $(PROJECT).pcf
95764a11 31
32trace:
f8d46fe4 33 trce -intstyle $(INTSTYLE) -e 3 -l 3 -s 4 -xml $(PROJECT) $(PROJECT).ncd -o $(PROJECT).twr $(PROJECT).pcf
34 @#cat $(PROJECT).twr
95764a11 35
36prom:
f8d46fe4 37 bitgen -intstyle $(INTSTYLE) -f $(PROJECT).ut $(PROJECT).ncd
38 @# cp $(PROJECT).bit ../jcarr_last.bit
39 @#cat $(PROJECT).drc
40 @#cat $(PROJECT).bgn
95764a11 41
42mcs:
f8d46fe4 43 promgen -intstyle $(INTSTYLE) -w -p mcs -u 0 $(PROJECT) -o pci1 pci2 -x xcf02s xcf04s
95764a11 44
45final:
f8d46fe4 46 -@grep -A 8 -B 1 ^Selected\ Device $(PROJECT).syr
47 -@grep -A 8 -B 1 ^Timing\ Summary $(PROJECT).syr
48 -@grep -A 21 -B 1 ^Design\ Summary $(PROJECT)_map.map
95764a11 49
50burn:
51 xc3sprog $(PROJECT).bit
52
f8d46fe4 53load:
54 impact -batch xc3s1500.batch
55
56flash: mcs
57 impact -batch xcf.batch
58
95764a11 59clean:
55279288 60 @rm -rf *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd \
61 *.ngr *.pad *.par *.pcf *.prm *.syr *.twr *.twx *.xpi *.lso *.prm *.mcs _impact* \
62 $(PROJECT)_map.* $(PROJECT)_pad.* \
63 _ngo xst \
64 build.log \
65 $(PROJECT).unroutes *.xml
Impressum, Datenschutz