forked from pseudospectators/mpi2vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (31 loc) · 1.06 KB
/
Makefile
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
## Makefile for the flusi post-processing tools.
## set the default compiler if it's not already set, make sure it's not F77.
ifndef FC
FC = mpif90
endif
ifeq ($(FC),f77) # sometimes FC gets defined as f77, which is bad.
FC = mpif90
endif
# -----------------------------------------------------------------------
HDF_LIB = $(HDF_ROOT)/lib
HDF_INC = $(HDF_ROOT)/include
LDFLAGS = $(HDF5_FLAGS)
LDFLAGS += -L$(HDF_LIB) -lhdf5_fortran -lhdf5 -lz -ldl
FFLAGS += -I$(HDF_INC)
# Debug options:
# FFLAGS += -Wuninitialized -O -fimplicit-none -fbounds-check -g -ggdb
PROGRAMS = convert_mpiio2vtk convert_mpiio2vtk_ALL convert_mpiio2binary \
convert_hdf2xmf convert_hdf2xmf_2d
all: $(PROGRAMS)
convert_mpiio2vtk: convert_vtk.f90
$(FC) $(FFLAGS) $^ -o $@
convert_mpiio2vtk_ALL: convert_vtk_ALL.f90
$(FC) $(FFLAGS) $^ -o $@
convert_mpiio2binary: convert_mpiio.f90
$(FC) $(FFLAGS) $^ -o $@
convert_hdf2xmf: convert_hdf2xmf.f90
$(FC) $(FFLAGS) $^ -o $@ $(LDFLAGS)
convert_hdf2xmf_2d: convert_hdf2xmf_2d.f90
$(FC) $(FFLAGS) $^ -o $@ $(LDFLAGS)
clean:
rm -f *.o *.mod $(PROGRAMS)