RUN = sfx.exe COMPILER ?= gnu FC_KEYS ?= -cpp -Wuninitialized # set compiler ifeq ($(COMPILER),intel) FC = ifort endif ifeq ($(COMPILER),gnu) FC = gfortran endif OBJ_F90 = sfx_phys_const.o sfx_common.o sfx_io.o sfx_data.o sfx_surface.o sfx_log_param.o sfx_log.o sfx_most_param.o sfx_most.o sfx_sheba_param.o sfx_sheba.o sfx_esm_param.o sfx_esm.o sfx_main.o OBJ_F = OBJ = $(OBJ_F90) $(OBJ_F) $(RUN): $(OBJ) $(FC) $(FC_KEYS) $(OBJ) -o $(RUN) $(OBJ_F90): %.o: srcF/%.f90 $(FC) $(FC_KEYS) -cpp -o $@ -c $< $(OBJ_F): %.o: srcF/%.F $(FC) $(FC_KEYS) -cpp -o $@ -c $< clean: rm -f $(OBJ) $(RUN) *.mod