############################################################## # 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= -O BINDIR= ../../exec INC= LIBS = ${BUFR_LIB4} CMD=urma_mintobs DEBUG_OPT ?= 1 ifeq ($(DEBUG_OPT), 1) DEBUG= -g -traceback else DEBUG= endif #FFLAGS= -O3 -I $(INC) $(DEBUG) FFLAGS= $(DEBUG) SRCS = calcmintobs.f90 indictb.f90 maxmin.f maxmin_ak.f # clear out all suffixes .SUFFIXES: # # list only those we use .SUFFIXES: .o .f .f90 # all: $(CMD) $(CMD): ${SRCS} ${FC} -o $(CMD) ${SRCS} ${LIBS} ${FFLAGS} clean: /bin/rm -f *.o $(CMD) install: -mv $(CMD) ${BINDR}/