#----------------------------------------------------------------------------- # # NAME: # Make.ncep_26level # # PURPOSE: # Makefile for pre-processing NCEP profiles for input into HIRS Pathfinder. # # CATEGORY: # NCEP RTM # # CALLING SEQUENCE: # make -f Make.ncep_26level # # LANGUAGE: # Unix make # # INCLUDE FILES: # make.macros: File containing the common definitions required # for this makefile. This file contains the compilation # and other flags that are PLATFORM DEPENDENT. Currently # the supported platforms/compilers are: # - Sun Solaris (assumed big-endian) # - IBM AIX (assumed big-endian) # - SGI IRIX (assumed big-endian) # - Linux using the Portland Group f90 compiler # (assumed little-endian). # Other platforms or compiler flags for third party # compilers on the above systems will require this # file to be modified to include the necessary definitions. # # make.rules: File containing the suffix rules for compiling the # Fortran 90 source code. # # RESTRICTIONS: # - Supported platforms: # o Sun Solaris (assumed big-endian) # o IBM AIX (assumed big-endian) # o SGI IRIX (assumed big-endian) # o Linux using the Portland Group f90 compiler # (assumed little-endian). # # - Compilation sequence # make -f Make.ncep_26level # # PROCEDURE: # The platform dependent compilation is started by selecting the required # definitions based on the output of the unix # # uname -s # # command. The current valid return values are "SunOS", "AIX", "IRIX64", # and "Linux". If your system provides different output, the result will # be the warning message "This system is not supported". # # CREATION HISTORY: # Written by: Paul van Delst, CIMSS/SSEC 20-Aug-2001 # paul.vandelst@ssec.wisc.edu # # modified -> Darren Jackson, CIRES-ETL Oct 2001 # # Copyright (C) 2001 Paul van Delst # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # -- Define macros -- #----------------------------------------------------------------------------- # ----------------------------------------- # Include file containing common defintions # ----------------------------------------- include make.macros # ------------- # This makefile # ------------- MAKE_FILE = Make.ncep_26level # ---------------- # Executable files # ---------------- EXE_FILE = ncep_26level EXE_DIR = ../../bin/ # ------------ # Object files # ------------ OBJ_FILES = type_kinds.o \ file_utility.o \ error_handler.o \ interpolate.o \ climatm.o \ dljf90lib.o \ $(EXE_FILE).o # ------------------------------- # Include and library definitions # ------------------------------- LIBRARIES = INCLUDES = #----------------------------------------------------------------------------- # -- Define dependecies -- #----------------------------------------------------------------------------- # --------------------- # Make based on OS type # --------------------- all: @echo "OS type detected: "`uname -s` @case `uname -s` in \ "SunOS") make -f $(MAKE_FILE) test_program $(SUNOS_FLAGS) ;; \ "AIX") make -f $(MAKE_FILE) test_program $(AIX_FLAGS) ;; \ "IRIX64" ) make -f $(MAKE_FILE) test_program $(IRIX64_FLAGS) ;; \ "Linux" ) make -f $(MAKE_FILE) test_program $(Linux_FLAGS_PGI) ;; \ *) echo "This system is not supported" ;; \ esac # ---------------- # Make the program # ---------------- test_program: $(OBJ_FILES) $(FL) $(OBJ_FILES) $(FL_FLAGS) $(EXE_DIR)$(EXE_FILE) # -------- # Clean up # -------- clean: remove_links $(REMOVE) $(OBJ_FILES) $(EXE_FILE) *.mod *.MOD # -------------------------------------------------- # Source code dependency lists # This list was generated using makedepf90, which # is available from: # http://www.helsinki.fi/~eedelman/makedepf90.html # -------------------------------------------------- # -- Dependencies $(EXE_FILE).o : $(EXE_FILE).f90 error_handler.o type_kinds.o interpolate.o climatm.o dljf90lib.o type_kinds.o : type_kinds.f90 file_utility.o : file_utility.f90 error_handler.o : error_handler.f90 file_utility.o interpolate.o : interpolate.f90 #----------------------------------------------------------------------------- # -- Define default rules -- #----------------------------------------------------------------------------- include make.rules