-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 681 Bytes
/
Makefile
File metadata and controls
35 lines (24 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
OPTS = -Wall -g -mfma -march=native -D EFT_FMA -flto -ffat-lto-objects -Ofast
all: libeft.a libeft.mod
check: perf qual
qual: testCxx testC testF
./qual.py
perf: testCxx testC testF
./testCxx perf | tee perfCxx.dat
./testC perf | tee perfC.dat
./testF perf | tee perfF.dat
gnuplot perf.gp
testCxx: testCxx.cxx libeft.a
g++ $(OPTS) $< -left -L. -o $@
testC: testC.c libeft.a
gcc $(OPTS) $< -left -L. -o $@
testF: testF.f90 libeft.mod libeft.a
gfortran $(OPTS) $< -left -L. -o $@
libeft.a: libeft.o
gcc-ar rcs $@ $^
libeft.mod: libeft_f.f90
gfortran $(OPTS) -c $<
%.o: %.cxx libeft.hxx
g++ $(OPTS) -c $<
clean:
$(RM) *.o *.mod *.a essai *~ callgrind.out.*