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_8 -lbufr_8_64 FC= ncepxlf90 FFLAGS= -O -qlist -qsource -qsuffix=f=f -qintsize=8 -qrealsize=8 endif ifeq ($(machine),zeus) Z_LIB_PATH=/home/Ratko.Vasic/lib_tmp LIBS= -L${Z_LIB_PATH} -lw3-2.1_d -lbufr_8_64 FC= ifort FFLAGS= -FR -convert big_endian -cpp endif ifeq ($(machine),tide) LIB_PATH=/nwprod/lib LIBS= -L${LIB_PATH} -lw3nco_4 -lw3emc_4 -lbufr_8_64 FC= ifort FFLAGS= -O -i8 -r8 -FR -convert big_endian -cpp endif LDFLAGS= SRCS= prephads.f OBJS= prephads.o CMD= nam_prephads all: $(CMD) $(CMD): $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) clean: -rm -f *.o *.lst $(CMD) mvexec: -mv $(CMD) ../../exec/.