-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
72 lines (57 loc) · 1.41 KB
/
Makefile.in
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@CC@
@CXX@
@F90@
@CFLAGS@
@CXXFLAGS@
@FFLAGS@
@LIBS@
MODULES=\
FUtil.o \
DebugUtil.o \
StringModule.o \
DoubleVectorModule.o \
BoxModule.o \
BoxArrayModule.o \
CartesianDecompModule.o \
MPIFileOffsetModule.o \
MPIFileHintModule.o \
UnitManagerModule.o \
PosixFileModule.o \
RunConfigModule.o \
LogFileModule.o \
MPIFileModule.o \
IOBenchmarkCommandLineModule.o
TARGETS=\
TestParticleWriter \
DumpParticleFile \
IOBenchmarkContiguous \
IOBenchmarkUniformGrid \
DumpSubArrayFile \
TestLustreFUtil
.PHONY : all
all: $(TARGETS)
.PHONY : test
test: $(TARGETS)
mpiexec -np 3 ./TestParticleWriter
./DumpParticleFile ./particles.dat
mpiexec -np 3 ./H3D-IO-Benchmark
./DumpSubArrayFile ./subarray.dat 3
.PHONY : clean
clean:
rm -f $(TARGETS) *.o *.mod *.dat *~ core*
%Module.o : %Module.f90
$(F90) $(FFLAGS) -c $< -o $@
%.o : %.c
$(CC) $(CFLAGS) $^ -c -o $@
TestParticleWriter: TestParticleWriter.f90 ParticleWriter.f90 $(MODULES)
$(F90) $(FFLAGS) $^ $(LIBS) -o $@
DumpParticleFile: DumpParticleFile.cpp
$(CXX) $(CXXFLAGS) $^ -o $@
IOBenchmarkUniformGrid: IOBenchmarkUniformGrid.f90 $(MODULES)
$(F90) $(FFLAGS) $^ -o $@ $(DEBUGFLAGS) $(LIBS)
IOBenchmarkContiguous: IOBenchmarkContiguous.f90 $(MODULES)
$(F90) $(FFLAGS) $^ -o $@ $(DEBUGFLAGS) $(LIBS)
DumpSubArrayFile: DumpSubArrayFile.cpp
$(CXX) $(CXXFLAGS) $^ -o $@
TestLustreFUtil: TestLustreFUtil.f90 FUtil.o
$(F90) $^ -o $@ $(LIBS)