SHELL= /bin/sh # The original user has machine type (ccs/zeus/wcoss etc.) set in .cshrc or # the "cmpilem" file under 'sorc'. Or you can set machine values here: # machine=tide # ifeq ($(machine),ccs) LIBS= -L/nwprod/lib -lw3_4 -lbacio_4 FC= ncepxlf90 FFLAGS= -O -qlist -qsource -qsuffix=cpp=f -WF,-DXLF endif ifeq ($(machine),zeus) Z_LIB_PATH=/home/Ratko.Vasic/lib_tmp LIBS= -L${Z_LIB_PATH} -lw3-2.1_4 -lbacio_4 FC= ifort FFLAGS= -FR -convert big_endian -cpp endif ifeq ($(machine),tide) LIB_PATH=/nwprod/lib LIBS= -L${LIB_PATH} -lw3nco_4 -lw3emc_4 -lbacio_4 FC= ifort FFLAGS= -FR -convert big_endian -cpp endif LDFLAGS= SRCS= mosaic.f OBJS= mosaic.o CMD= nam_mosaic all: $(CMD) $(CMD): $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) clean: -rm -f *.o *.lst $(CMD) mvexec: -mv $(CMD) ../../exec/.