# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* # ** Copyright UCAR (c) 1992 - 2005 # ** University Corporation for Atmospheric Research(UCAR) # ** National Center for Atmospheric Research(NCAR) # ** Research Applications Lab (RAL) # ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA # *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* ############################################################################### # # Makefile for the Model Evaluation Tools Project # ############################################################################### ############################################################################### # # Begin Variables to be modified before building # ############################################################################### # Path to the C++ Compiler CPP_COMPILER = /usr/bin/icc # Path to the Fortran-77 Compiler F77_COMPILER = /usr/bin/ifort # Top level directory for the MET build MET_BASE = /Users/Erik/MET/build_MET_project/METv0.9 # Top level directory for the NetCDF library NETCDF_BASE = /opt/intel/netcdf-4.0-beta/ # Directory within the NetCDF library containing the C/C++ header files: # netcdf.hh # Specified as "-I/your/include/path" NETCDF_INCS = -I$(NETCDF_BASE)/include # Directories within the NetCDF library containing the C/C++ archive files: # libnetcdf.a and libnetcdf_c++.a # Specified as "-L/" NETCDF_LIBS = -L$(NETCDF_BASE)/lib # Top level directory for the BUFR library BUFR_BASE = /usr/local/BUFRLIB/lib # Directory within the BUFR library containing header files # Specified as "-I/your/include/path" BUFR_INCS = -I$(BUFR_BASE) # Directory within the BUFR library containing the libbufr.a archive file # Specified as "-L/your/library/path" BUFR_LIBS = -L$(BUFR_BASE) # Directory containing the GNU Scientific Library header files # (if they're not in a standard location) # Specified as "-I/your/include/path" GSL_INCS = /usr/local # Directory containing the GNU Scientific Library archive file, libgsl.a # (if it's not in a standard location) # Specified as "-L/your/library/path" GSL_LIBS =/usr/local/lib ############################################################################### # # End Variables to be modified before building # ############################################################################### ############################################################################### # # Export variables to be used by submakes # ############################################################################### export MET_BASE export NETCDF_INCS export NETCDF_LIBS export BUFR_INCS export BUFR_LIBS export GSL_INCS export GSL_LIBS ############################################################################### # # End export variables to be used by submakes # ############################################################################### PGI_LIBS = FLAGS = -g -Wall -Wshadow -static FAKES = all clean libs targets LIB_DIR = lib INC_DIR = lib SRC_DIR = src VX_AFM = $(LIB_DIR)/vx_afm VX_CAL = $(LIB_DIR)/vx_cal VX_COLOR = $(LIB_DIR)/vx_color VX_CONTABLE = $(LIB_DIR)/vx_contable VX_DATA_GRIDS = $(LIB_DIR)/vx_data_grids VX_GRIB_CLASSES = $(LIB_DIR)/vx_grib_classes VX_GSL_PROB = $(LIB_DIR)/vx_gsl_prob VX_MATH = $(LIB_DIR)/vx_math VX_MATH_CONFIG = $(LIB_DIR)/vx_math_config VX_MET_UTIL = $(LIB_DIR)/vx_met_util VX_NAV = $(LIB_DIR)/vx_nav VX_PLOT_UTIL = $(LIB_DIR)/vx_plot_util VX_PS = $(LIB_DIR)/vx_ps VX_PXM = $(LIB_DIR)/vx_pxm VX_RENDER = $(LIB_DIR)/vx_render VX_UTIL = $(LIB_DIR)/vx_util VX_WRFDATA = $(LIB_DIR)/vx_wrfdata VX_WRFMODE = $(LIB_DIR)/vx_wrfmode PCP_COMBINE = $(SRC_DIR)/pcp_combine MODE = $(SRC_DIR)/mode GRID_STAT = $(SRC_DIR)/grid_stat PB2NC = $(SRC_DIR)/pb2nc POINT_STAT = $(SRC_DIR)/point_stat all: @ echo @ echo "*** Making the Model Evaluation Tools Project ***" @ echo @ make libs --no-print-directory @ make targets --no-print-directory @ echo @ echo "*** Finished Making the Model Evaluation Tools Project ***" @ echo libs: @ cd $(VX_AFM); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_CAL); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_COLOR); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_CONTABLE); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_DATA_GRIDS); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_GRIB_CLASSES);make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_GSL_PROB); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_MATH); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_MATH_CONFIG); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_MET_UTIL); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_NAV); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_PLOT_UTIL); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_PS); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_PXM); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_RENDER); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_UTIL); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_WRFDATA); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory @ cd $(VX_WRFMODE); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory targets: @ cd $(PCP_COMBINE); make COMPILER=$(CPP_COMPILER) MET_BASE=$(MET_BASE) FLAGS="$(FLAGS)" --no-print-directory @ cd $(MODE); make COMPILER=$(CPP_COMPILER) MET_BASE=$(MET_BASE) FLAGS="$(FLAGS)" --no-print-directory @ cd $(GRID_STAT); make COMPILER=$(CPP_COMPILER) MET_BASE=$(MET_BASE) FLAGS="$(FLAGS)" --no-print-directory @ cd $(PB2NC); make CPP_COMPILER=$(CPP_COMPILER) F77_COMPILER=$(F77_COMPILER) FLAGS="$(FLAGS)" PGI_LIBS="$(PGI_LIBS)" --no-print-directory @ cd $(POINT_STAT); make COMPILER=$(CPP_COMPILER) MET_BASE=$(MET_BASE) FLAGS="$(FLAGS)" --no-print-directory clean: @ cd $(VX_AFM); make clean --no-print-directory @ cd $(VX_CAL); make clean --no-print-directory @ cd $(VX_COLOR); make clean --no-print-directory @ cd $(VX_CONTABLE); make clean --no-print-directory @ cd $(VX_DATA_GRIDS); make clean --no-print-directory @ cd $(VX_GRIB_CLASSES);make clean --no-print-directory @ cd $(VX_GSL_PROB); make clean --no-print-directory @ cd $(VX_MATH); make clean --no-print-directory @ cd $(VX_MET_UTIL); make clean --no-print-directory @ cd $(VX_MATH_CONFIG); make clean --no-print-directory @ cd $(VX_NAV); make clean --no-print-directory @ cd $(VX_PLOT_UTIL); make clean --no-print-directory @ cd $(VX_PS); make clean --no-print-directory @ cd $(VX_PXM); make clean --no-print-directory @ cd $(VX_RENDER); make clean --no-print-directory @ cd $(VX_UTIL); make clean --no-print-directory @ cd $(VX_WRFDATA); make clean --no-print-directory @ cd $(VX_WRFMODE); make clean --no-print-directory @ cd $(PCP_COMBINE); make clean --no-print-directory @ cd $(MODE); make clean --no-print-directory @ cd $(GRID_STAT); make clean --no-print-directory @ cd $(PB2NC); make clean --no-print-directory @ cd $(POINT_STAT); make clean --no-print-directory rm -r -f *.a *.o junk temp core log c.ps a.out .PHONY: $(FAKES)