Statistics
| Branch: | Revision:

root / synthbench / mixedMode / src / Makefile.jube

History | View | Annotate | Download (3.2 kB)

1
#------------------------------------------------#
2
#                                                #
3
# Jube Makefile for mixed mode benchmark suite.  #
4
#                                                #
5
# The FC and FFLAGS for the platform are         #
6
# substituted in.                                #
7
#------------------------------------------------#
8

    
9
FC=	#MPI_F90#
10
FFLAGS=	#FFLAGS#
11

    
12
#--------------------------------------#
13
# Build rules                          #
14
#--------------------------------------#
15

    
16
EXE=	#EXECNAME#
17

    
18
SRC=	parallelEnvironment.f90 \
19
	pt_to_pt_pingpong.f90 \
20
	pt_to_pt_pingping.f90 \
21
	pt_to_pt_haloexchange.f90 \
22
	collective_barrier.f90 \
23
	collective_reduction.f90 \
24
	collective_broadcast.f90 \
25
	collective_scatterGather.f90 \
26
	collective_alltoall.f90 \
27
	mixedModeBenchmarkDriver.f90 \
28
	output.f90 \
29
	benchmarkSetup.f90
30

    
31
#
32
# No need to edit below this line
33
#
34

    
35
.SUFFIXES:
36
.SUFFIXES: .f90 .o
37

    
38
OBJ=	$(SRC:.f90=.o)
39

    
40
MOD=	$(SRC:.f90=.mod)
41
EDT=	$(SRC:.f90=.f90~)
42
TMP=	$(MOD) $(EDT) core
43

    
44
.f90.o:
45
	$(FC) $(FFLAGS) -c $<
46

    
47

    
48
all:	$(EXE)
49

    
50
$(EXE):	$(OBJ)
51
	$(FC) $(FFLAGS) -o $@ $(OBJ) $(LFLAGS)
52

    
53
$(OBJ):	$(MF)
54

    
55
clean:
56
	rm -f $(EXE) *.o *.mod $(EDT) 
57
#
58
# Do not delete this line, f90depend requires it
59
#
60

    
61
benchmarkSetup.o benchmarkSetup.mod : benchmarkSetup.f90 
62
	$(FC) -c $(FFLAGS) benchmarkSetup.f90
63
mixedModeBenchmarkDriver.o  : mixedModeBenchmarkDriver.f90 pt_to_pt_pingpong.mod pt_to_pt_pingping.mod pt_to_pt_haloexchange.mod collective_barrier.mod collective_reduction.mod collective_broadcast.mod collective_scatterGather.mod collective_alltoall.f90 parallelEnvironment.mod collective_alltoall.mod output.mod
64
	$(FC) -c $(FFLAGS) mixedModeBenchmarkDriver.f90
65
pt_to_pt_pingpong.o pt_to_pt_pingpong.mod : pt_to_pt_pingpong.f90 parallelEnvironment.mod benchmarkSetup.mod output.mod
66
	$(FC) -c $(FFLAGS) pt_to_pt_pingpong.f90
67
pt_to_pt_pingping.o pt_to_pt_pingping.mod : pt_to_pt_pingping.f90 parallelEnvironment.mod benchmarkSetup.mod output.mod
68
	$(FC) -c $(FFLAGS) pt_to_pt_pingping.f90
69
pt_to_pt_haloexchange.o pt_to_pt_haloexchange.mod : pt_to_pt_haloexchange.f90 parallelEnvironment.mod benchmarkSetup.mod output.mod
70
	$(FC) -c $(FFLAGS) pt_to_pt_haloexchange.f90
71
collective_barrier.o collective_barrier.mod : collective_barrier.f90 parallelEnvironment.mod benchmarkSetup.mod output.mod
72
	$(FC) -c $(FFLAGS) collective_barrier.f90
73
collective_reduction.o collective_reduction.mod : collective_reduction.f90 parallelEnvironment.mod benchmarkSetup.mod output.mod
74
	$(FC) -c $(FFLAGS) collective_reduction.f90
75
collective_broadcast.o collective_broadcast.mod : collective_broadcast.f90 parallelEnvironment.mod benchmarkSetup.mod output.mod
76
	$(FC) -c $(FFLAGS) collective_broadcast.f90
77
collective_scatterGather.o collective_scatterGather.mod : collective_scatterGather.f90 parallelEnvironment.mod benchmarkSetup.mod output.mod
78
	$(FC) -c $(FFLAGS) collective_scatterGather.f90
79
collective_alltoall.o collective_alltoall.mod : collective_alltoall.f90 parallelEnvironment.mod benchmarkSetup.mod output.mod
80
	$(FC) -c $(FFLAGS) collective_alltoall.f90
81
output.o output.mod : output.f90 benchmarkSetup.mod parallelEnvironment.mod
82
	$(FC) -c $(FFLAGS) output.f90
83
parallelEnvironment.o parallelEnvironment.mod : parallelEnvironment.f90 
84
	$(FC) -c $(FFLAGS) parallelEnvironment.f90