#!/bin/make FC = ifort FCFLAGS = -O3 -I. -I../JCSDA_crtm -I../../include/GMAO_mpeu LD = $(FC) LDFLAGS = -L../../lib -lCRTM -lNCEP_bufr_r4i4 -lGMAO_eu -lscs SRCS_SIM_RAD = sim_obs_rad.f90 \ m_cloud.f90 \ m_kinds.f90 \ m_relhum.f90 \ m_interface_crtm.f90 \ m_interp_nr.f90 \ m_rdata_boxes.f90 \ m_bufr_rw.f90 SRCS_SIM_CONV = sim_obs_conv.f90 \ m_kinds.f90 \ m_relhum.f90 \ m_interp_nr.f90 \ m_bufr_rw.f90 SRCS_ADD_ERROR = add_error.f90 \ m_kinds.f90 \ m_relhum.f90 \ m_obs_pert.f90 \ m_bufr_rw.f90 SRCS_ADD_TIME = addtime.f90 OBJS_SIM_RAD = $(SRCS_SIM_RAD:.f90=.o) OBJS_SIM_CONV = $(SRCS_SIM_CONV:.f90=.o) OBJS_ADD_ERROR = $(SRCS_ADD_ERROR:.f90=.o) OBJS_ADD_TIME = $(SRCS_ADD_TIME:.f90=.o) .SUFFIXES: .SUFFIXES: .f90 .o .f90.o: $(FC) -c $(FCFLAGS) $< all: sim_rad.x sim_conv.x add_error.x addtime.x # make excutable file for sim_rad.x sim_rad.x: $(OBJS_SIM_RAD) $(LD) -o $@ $(OBJS_SIM_RAD) $(LDFLAGS) # make excutable file for sim_conv.x sim_conv.x: $(OBJS_SIM_CONV) $(LD) -o $@ $(OBJS_SIM_CONV) $(LDFLAGS) # make excutable file for add_error.x add_error.x: $(OBJS_ADD_ERROR) $(LD) -o $@ $(OBJS_ADD_ERROR) $(LDFLAGS) # make excutable file for sim_conv.x addtime.x: $(OBJS_ADD_TIME) $(LD) -o $@ $(OBJS_ADD_TIME) $(LDFLAGS) clean: rm -f *.o *.mod *.x include make.prereq