Update Makefile for fmr_omp-str_base generation

This commit is contained in:
Thomas Preud'homme 2012-01-31 17:27:39 +01:00 committed by Thomas Preud'homme
parent e07d4d39ab
commit 502ec92654
2 changed files with 14 additions and 7 deletions

4
pipepar/.gitignore vendored
View File

@ -1,7 +1,5 @@
fmr_omp-str_base
fmr_omp-str_base.raw
fmr_omp-str_base-prog
fmr_omp-str_base.txt
fmr_omp-str_base.S
output*.dat
lattice
pipeline_template

View File

@ -1,5 +1,14 @@
fmr_omp-str_base: fmr_omp-str_base.S
gcc $(CFLAGS) -fopenmp -o $@ $< -lm
CFLAGS?=-Wall -Wextra
fmr_omp-str_base.S: fmr_omp-str_base.c
gcc $(CFLAGS) -S -fopenmp -o $@ $<
all: fmr_omp-str_base-prog fmr_omp-str_base-prog-fopenmp
runall: runfmrprog runfmrprog-fopenmp
fmr_omp-str_base-%: fmr_omp-str_base.c
gcc $(CFLAGS) $(subst prog,,$*) -o $@ $< -lm
runfmr%: fmr_omp-str_base-%
perf stat -r 10 ./$<
rm fmr_omp-str_base-$*.txt
.PHONY: runall runfmr%