############################################################## # Makefile for urmamaxobs # Use: # make - build the executable # make clean - start with a clean slate ############################################################## # Tunable parameters: # FC Name of the Fortran compiling system to use # LDFLAGS Options of the loader # FFLAGS Options of the compilier # DEBUG Options of the compilier included for debugging # LIBS List of libraries # CMD Name of the executable FC = ftn LDFLAGS= -convert big_endian BINDIR= ../../exec INC=param.incl LIBS=${W3EMC_LIB4} CMD=urma_minrh DEBUG_OPT ?= 1 ifeq ($(DEBUG_OPT), 1) DEBUG= -g -traceback else DEBUG= endif FFLAGS= -O3 -I $(INC) $(DEBUG) SRCS= kinds.f90 constants.f90 main.f90 pullandcalc.f90 calcrh.f90 domain_dims.f # clear out all suffixes .SUFFIXES: # # list only those we use .SUFFIXES: .o .f .f90 # all: $(CMD) $(CMD): ${SRCS} ${FC} $(LDFLAGS) -o $(@) $(SRCS) $(LIBS) $(FFLAGS) clean: /bin/rm -f *.o $(CMD) *.mod install: -mv $(CMD) ${BINDR}/