TIME = time --portability --append --output $@ N = 2e8 Out.txt : main.exe >$@ $(TIME) mono main.exe -terms:$N -threads:1 >> $@ $(TIME) mono main.exe -terms:$N -threads:2 >> $@ $(TIME) mono main.exe -terms:$N -threads:3 >> $@ $(TIME) mono main.exe -terms:$N -threads:4 >> $@ main.exe : main.cs mcs $< N1=2.01e8 N2=2.02e8 N3=2.03e8 N4=2.04e8 test: out1 out2 out3 out4 # make -j4 test out1: main.exe mono main.exe -terms:$(N1) -threads:1 > $@ out2: main.exe mono main.exe -terms:$(N2) -threads:1 > $@ out3: main.exe mono main.exe -terms:$(N3) -threads:1 > $@ out4: main.exe mono main.exe -terms:$(N4) -threads:1 > $@ test2: main.exe mono main.exe -terms:$(N1) -threads:1 > out1 & mono main.exe -terms:$(N2) -threads:1 > out2 & mono main.exe -terms:$(N3) -threads:1 > out3 & mono main.exe -terms:$(N4) -threads:1 > out4 & clean: $(RM) [Oo]ut*