#!/bin/sh # # This makefile is to compile ensembel production generator # Author: Binbin Zhou # Aug 2, 2016 # OS: Linux (on WCOSS) # FC= ifort -convert big_endian #INC= /nwprod/lib/incmod/g2_4 INC= ${G2_INC4} LIBS= ${IP_LIB4} ${W3NCO_LIB4} ${W3EMC_LIB4} ${BACIO_LIB4} ${SP_LIB4} ${G2_LIB4} ${JASPER_LIB} ${PNG_LIB} ${Z_LIB} FFLAGS = -O3 -openmp -auto -I $(INC) #LIBS= -L/nwprod/lib -lip_4 -lw3nco_4 -lw3emc_4 -lbacio_4 -lsp_4 -lg2_4 -ljasper -lpng -lz #FFLAGS = -O2 -g -convert big_endian -openmp -auto -I $(INC) #FFLAGS = -O3 -openmp -auto -I $(INC) SRCS= char_process.f util.f readGB2.f print_gfld.f Zputgb2.f \ packGB2_mean.f packGB2_prob.f packGB2_mean_derv.f packGB2_prob_derv.f \ preciptype.f wind.f get_icing.f get_cat.f getflight.f Hains_index.f getceiling.f \ new_fog.f get_new_fog.f thickness.f llws.f getconv.f \ get_mxp.f mxp.f packGB2_mxp.f \ get_cptp_severe.f calibrate2_hrly_rgn3.f calibrate2_dryt.f calibrate2_svr.f calibrate2.f \ meanwind.f get_time_packGB2.f OBJ=${SRCS:.f=.o} #nsse: $(OBJ) # $(FC) $(FFLAGS) -o nsse_ensprod nsse_ens_gen.f $(OBJ) $(LIBS) narre: $(OBJ) $(FC) $(FFLAGS) -o narre_ensprod sref_ens_gen.f $(OBJ) $(LIBS) clean: -rm *.o copy: -mv narre_ensprod ../../exec #