1
GA_CONFIG := # e.g. /path/to/ga/install/bin/ga-config
3
CPPFLAGS := $(shell $(GA_CONFIG) --cppflags)
4
FFLAGS := $(shell $(GA_CONFIG) --fflags)
5
CFLAGS := $(shell $(GA_CONFIG) --cflags)
6
LIBS := $(shell $(GA_CONFIG) --libs)
7
FLIBS := $(shell $(GA_CONFIG) --flibs)
8
LDFLAGS := $(shell $(GA_CONFIG) --ldflags)
9
CC := $(shell $(GA_CONFIG) --cc)
10
F77 := $(shell $(GA_CONFIG) --f77)
16
cp -f ../global/testing/mp3.h ./ga-benchmarks/mp3.h
17
cp -f ../global/testing/mp3.fh ./ga-benchmarks/mp3.fh
18
cp -f ../global/testing/ga_shift.F ./ga-benchmarks/ga_shift.F
19
cp -f ../global/testing/perf.F ./ga-benchmarks/ga_ptp.F
20
cp -f ../global/testing/perf2.c ./ga-benchmarks/ga_perf.c
21
cp -f ../armci/testing/perf.c ./ga-benchmarks/armci_perf.c
22
cp -f ./Makefile ./ga-benchmarks/Makefile
23
cp -f ./config.h ./ga-benchmarks/config.h
24
cp -f ./config.fh ./ga-benchmarks/config.fh
25
cp -f ./util.c ./ga-benchmarks/util.c
26
cp -f ./testutil.fh ./ga-benchmarks/testutil.fh
27
cp -f ./README ./ga-benchmarks/README
28
sed -i '13,31d' ./ga-benchmarks/Makefile
29
rm -f ga-benchmarks.tgz
30
tar -czf ga-benchmarks.tgz ./ga-benchmarks
34
benchmarks: ga_shift.x ga_ptp.x ga_perf.x armci_perf.x
36
ga_shift.x: ga_shift.o util.o
37
$(F77) -o $@ $^ $(LDFLAGS) $(LIBS)
38
ga_shift.o: ga_shift.F mp3.fh config.fh
39
$(F77) -o $@ -c $< -DHAVE_CONFIG_H -I. $(CPPFLAGS) $(FFLAGS)
41
ga_ptp.x: ga_ptp.o util.o
42
$(F77) -o $@ $^ $(LDFLAGS) $(LIBS)
43
ga_ptp.o: ga_ptp.F mp3.fh config.fh
44
$(F77) -o $@ -c $< -DHAVE_CONFIG_H -I. $(CPPFLAGS) $(FFLAGS)
46
ga_perf.x: ga_perf.o util.o
47
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS) $(FLIBS)
48
ga_perf.o: ga_perf.c mp3.h config.h
49
$(CC) -o $@ -c $< -DHAVE_CONFIG_H -I. $(CPPFLAGS) $(CFLAGS)
51
armci_perf.x: armci_perf.o util.o
52
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS) $(FLIBS)
53
armci_perf.o: armci_perf.c mp3.h config.h
54
$(CC) -o $@ -c $< -DHAVE_CONFIG_H -I. $(CPPFLAGS) $(CFLAGS)
57
$(CC) -o $@ -c $< -DHAVE_CONFIG_H -I. $(CPPFLAGS) $(CFLAGS)