Commit 949e210e authored by Alastair McKinstry's avatar Alastair McKinstry

Merge back unchanged makefiles

parent eed7590e
SHELL = /bin/bash
MAIN = flexpart.ecmwf
MAIN = FLEXPART_GFORTRAN
#
FC = gfortran
INCPATH = /usr/include
LIBPATH1 = /usr/lib
LIBPATH2 =
FFLAGS = -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
LFLAGS = $(LDFLAGS) $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper
MODPATH = /usr/include
INCPATH = /xnilu_wrk/flex_wrk/bin64/grib_api/include
LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib
LIBPATH2 = /flex_wrk/flexpart/lib64/gfortran/lib/
#FFLAGS = -O3 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
FFLAGS = -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
#FFLAGS = -fbounds-check -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper
#
MODOBJS = \
......@@ -78,13 +79,13 @@ dynamic_viscosity.o get_settling.o
$(MAIN): $(MODOBJS) $(OBJECTS)
$(FC) *.o -o $(MAIN) $(LFLAGS)
$(FC) *.o -o $(MAIN) $(LDFLAGS)
$(OBJECTS): $(MODOBJS)
%.o: %.f90
$(FC) -c $(FFLAGS) -I$(MODPATH) $<
$(FC) -c $(FFLAGS) $<
clean:
rm -f *.o *.mod
rm *.o *.mod
SHELL = /bin/bash
MAIN = flexpart.gfs
MAIN = FLEXPART_GFS_GFORTRAN
INCF = incl*
#
FC = gfortran
INCPATH = /usr/include
LIBPATH1 = /usr/lib
LIBPATH2 =
FFLAGS = -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
LFLAGS:= $(LDFLAGS) $(FFLAGS) -L$(LIBPATH1) -Wl,--as-needed -lgrib_api_f90 -lgrib_api -lm -ljasper
INCPATH = /xnilu_wrk/flex_wrk/bin64/grib_api/include
LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib
LIBPATH2 = /flex_wrk/flexpart/lib64/gfortran/lib/
FFLAGS = -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper
#
MODOBJS = \
......@@ -78,7 +78,7 @@ dynamic_viscosity.o get_settling.o
$(MAIN): $(MODOBJS) $(OBJECTS)
$(FC) *.o -o $(MAIN) $(LFLAGS)
$(FC) *.o -o $(MAIN) $(LDFLAGS)
$(OBJECTS): $(MODOBJS)
......@@ -86,5 +86,5 @@ $(OBJECTS): $(MODOBJS)
$(FC) -c $(FFLAGS) $<
clean:
rm -f *.o *.mod $(MAIN)
rm *.o *.mod
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment