makefile 3.21 KB
Newer Older
Matthias Langer's avatar
 
Matthias Langer committed
1
SHELL = /bin/bash
2
MAIN = FP_ecmwf_gfortran
Matthias Langer's avatar
 
Matthias Langer committed
3
4

FC       = gfortran
5
6
7
INCPATH  = /xnilu_wrk/flex_wrk/bin64/grib_api/include
LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib
LIBPATH2 =   /usr/lib/x86_64-linux-gnu/
8
9
#FFLAGS   =   -O2           -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
FFLAGS   =    -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
10
#FFLAGS   =   -fbounds-check -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
11
LDFLAGS  = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper
Matthias Langer's avatar
 
Matthias Langer committed
12

13

Matthias Langer's avatar
 
Matthias Langer committed
14
MODOBJS = \
15
par_mod.o    com_mod.o \
Matthias Langer's avatar
 
Matthias Langer committed
16
17
18
19
20
21
22
conv_mod.o              hanna_mod.o \
interpol_mod.o          cmapf_mod.o \
unc_mod.o               oh_mod.o \
xmass_mod.o             flux_mod.o \
point_mod.o             outg_mod.o

OBJECTS = \
23
writeheader.o  writeheader_txt.o   writeheader_surf.o       assignland.o\
24
calcpar.o               part0.o \
Matthias Langer's avatar
 
Matthias Langer committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
caldate.o               partdep.o \
coordtrafo.o            psih.o \
raerod.o \
drydepokernel.o         random.o \
erf.o                   readavailable.o \
ew.o                    readcommand.o \
advance.o               readdepo.o \
releaseparticles.o      psim.o     \
FLEXPART.o              readlanduse.o \
getfields.o             init_domainfill.o\
interpol_wind.o         readoutgrid.o \
interpol_all.o          readpaths.o \
getrb.o                 readreceptors.o \
getrc.o                 readreleases.o \
getvdep.o               readspecies.o \
40
41
interpol_misslev.o      readwind.o \
conccalc.o              richardson.o \
42
concoutput.o  concoutput_surf.o          scalev.o \
Matthias Langer's avatar
 
Matthias Langer committed
43
44
45
pbl_profile.o           readOHfield.o\
juldate.o               timemanager.o \
interpol_vdep.o         interpol_rain.o \
46
verttransform.o         partoutput.o \
Matthias Langer's avatar
 
Matthias Langer committed
47
48
49
hanna.o                 wetdepokernel.o \
mean.o                  wetdepo.o \
hanna_short.o           windalign.o \
50
obukhov.o               gridcheck.o \
Matthias Langer's avatar
 
Matthias Langer committed
51
hanna1.o                initialize.o \
52
53
                        gridcheck_nests.o \
readwind_nests.o        calcpar_nests.o \
Matthias Langer's avatar
 
Matthias Langer committed
54
55
56
verttransform_nests.o   interpol_all_nests.o \
interpol_wind_nests.o   interpol_misslev_nests.o \
interpol_vdep_nests.o   interpol_rain_nests.o \
57
getvdep_nests.o \
Matthias Langer's avatar
 
Matthias Langer committed
58
59
60
readageclasses.o        readpartpositions.o \
calcfluxes.o            fluxoutput.o \
qvsat.o                 skplin.o \
61
convmix.o               calcmatrix.o \
Matthias Langer's avatar
 
Matthias Langer committed
62
63
64
65
66
67
68
69
70
71
convect43c.o               redist.o \
sort2.o                 distance.o \
centerofmass.o          plumetraj.o \
openouttraj.o           calcpv.o \
calcpv_nests.o          distance2.o \
clustering.o            interpol_wind_short.o \
interpol_wind_short_nests.o shift_field_0.o \
shift_field.o           outgrid_init.o \
openreceptors.o         boundcond_domainfill.o\
partoutput_short.o      readoutgrid_nest.o \
72
73
outgrid_init_nest.o     writeheader_nest.o writeheader_nest_surf.o \
concoutput_nest.o concoutput_surf_nest.o      wetdepokernel_nest.o \
Matthias Langer's avatar
 
Matthias Langer committed
74
75
76
77
78
79
drydepokernel_nest.o    zenithangle.o \
ohreaction.o            getvdep_nests.o \
initial_cond_calc.o     initial_cond_output.o \
dynamic_viscosity.o     get_settling.o


80
81
$(MAIN): $(MODOBJS) $(OBJECTS)
	$(FC) *.o -o $(MAIN) $(LDFLAGS)
Matthias Langer's avatar
 
Matthias Langer committed
82
83
84
85
86
87
88
89
90

$(OBJECTS): $(MODOBJS)

%.o: %.f90
	$(FC) -c $(FFLAGS) $<

clean:
	rm *.o *.mod

91
92
cleanall:
	rm *.o *.mod $(MAIN)