obj_launch = acama_gwd_rando.o flott_gwd_rando.o orografi_strato.o laun_gwd_era5.o

all: laun_gwd_era5 

laun_gwd_era5: ${obj_launch}
	$(FC) $(LDFLAGS) $^ $(LDLIBS) -o $@


LDLIBS = -lnetcdff -lnetcdf
FFLAGS = -I/lib64/gfortran/modules -mcmodel=large -fdefault-real-8 -Wunused-parameter -Wall -fcheck=bounds
##FFLAGS = -I/usr/include -mcmodel=large 
FC = gfortran

%.o: %.f90
	$(COMPILE.f90) $(OUTPUT_OPTION) $<
COMPILE.f90 = $(FC) $(F90FLAGS) $(TARGET_ARCH) -c

F90FLAGS= -ffree-form -ftest-forall-temp -Wunused-parameter -fbounds-check ${FFLAGS}

laun_gwd_era5.o: acama_gwd_rando.o flott_gwd_rando.o

clean:
	\rm -rf file_*  *.h *.f90  *.nc *.o *.mod laun_gwd_era5 *data *ctl *.nml *.dat fort.* nohup* store a.out tempor* Makefile pdf_*


