################################ # Netcdf libraries on the imac ################################ #CDFLIB01 = -L/usr/local/lib/ -lnetcdf -lnetcdff CDFLIB01 = -Wl,-rpath=$(NETCDF_LIBCDIR):$(NETCDF_LIBFDIR) -L$(NETCDF_LIBCDIR) -L$(NETCDF_LIBFDIR) -lnetcdf -lnetcdff INCLUDE= -I$(NETCDF_INCCDIR) -I$(NETCDF_INCFDIR) ################################ # Fortran compiler flags ################################ #FFLAGS= -ffixed-line-length-132 #gfortran FFLAGS= -Mextend ############################### # Location of netcdf include files on the imac ############################### #INCLUDE= -I/usr/local/include INCLUDE= -I$(NETCDF_INCCDIR) -I$(NETCDF_INCFDIR) ################################ # Compile and Link Commands ################################ COMPILE.F = gfortran -c LINK.F = gfortran -o #COMPILE.F = pgf90 -c #LINK.F = pgf90 -os ######################################## # Define the object files for each program # module objects must be compiled before the main program ######################################## OBJ = retrieval_subs.o bilinear_interp.o radiant2s_driver.o\ read_first_guess.o radiant2s.o \ ErrPack.o mathsubs.o asymtx.o sunae.o julian_date.o \ gammam.o gammln.o OBJ90 = retrieval_subs.o bilinear_interp.o radiant2s_driver.o\ read_first_guess.o radiant2s.o \ mathsubs.o julian_date.o OBJ77 = ErrPack.o asymtx.o sunae.o gammam.o gammln.o ######################################### # Name of program to create ######################################### all: read_first_guess ################################################## # Link the object files to create executable files ################################################## read_first_guess: ${OBJ} ${LINK.F} ${FFLAGS} -o $@ ${OBJ} ${CDFLIB01} ###################################################### # Create the object files from the source files ###################################################### ${OBJ90}: %.o: %.f90 ${COMPILE.F} ${FFLAGS} ${INCLUDE} $< -o $@ ${OBJ77}: %.o: %.f ${COMPILE.F} ${FFLAGS} $< -o $@