card=-c0 all : sc_send.dat cp sc_send.dat ../DATA sc_send.dat : switch.dat fitred.dat full.dat grep -h -E "^[0-9-]+ [0-9-]+ [0-9-]+ (127|1|2|3|4|5|6)\b" $^ > $@ full.dat : full.tcs main.tcs tcc $< > $@ switch.dat : switch.tcs tcc $< > $@ fitred.dat : cpu0 cpu1 cpu2 cpu3 codem -i0 cpu0 -i1 cpu1 -i2 cpu2 -i3 cpu3 -o $@ -3 -s127 cpu0 cpu1 cpu2 cpu3 : fitred.asm asm_mimd -i $< -od $@ -ol $@.log -d$@ -dtrap3 -dnsamples=63 @grep -i 'warning\|error' $@.log init: all pci2trap $(card) -r0 -i sc_send.dat -o out pre: pci2trap $(card) -r0 -i pre.dat -o out_pre clean : rm -f $(wildcard *~) sc_send.dat main.dat fitred.dat full.dat sc_recv.dat switch.dat rm -f cpu0 cpu1 cpu2 cpu3 cpu0.log cpu1.log cpu2.log cpu3.log rm -rf pre.dat out out_pre .PHONY : clean all init pre