#============================================================================== # # Makefile for Performs the temperature retrieval using ASCII formated data # from the Advanced Microwave Sounding Unit on the GOES satellite # platform. # # This version is for the HPUX, F90 # # Notes: make compilies the one executables (temp_ret.exe) # make clean removes the object files and executables # make install places the *.exe files in the ../bin directory # # Executables: temp_ret.exe # # Written by J. Knaff and M. DeMaria, May 2003 # Modified by: A. Krautkramer 5/19/03 # Added comments and standardized makefile # Modified by: ARK 2/10/2005 # Compile on the IBM # #============================================================================== #----------------------------------------------------------------------------- # -- Define default macros -- #----------------------------------------------------------------------------- # -------------------- # Define default shell # -------------------- SHELL = /bin/sh CP = cp -f RM = rm -f #----------------------------------------------------------------------------- # -- Define file lists -- #----------------------------------------------------------------------------- # --------- # Libraries # --------- FLIBS = # -------- # Includes # -------- FINCS = # ------------ # Source/Object/Executable files # ------------ SRC = amsua_ret_n15.f amsua_ret_n16.f amsua_ret_n18.f distk.f jdayi.f md2jul.f temp_ret.f OBS = $(SRC:.f=.o) CMD = amsu_tempret #----------------------------------------------------------------------------- # -- Define dependecies -- #----------------------------------------------------------------------------- # ------------------ # Compiler # ------------------ #... HP F90 Compiler #FC = f90 #... Linux PG F90 Compiler #FC =pgf90 #... IBM AIX #FC = xlf_r FC = ncepxlf # ----------------------------- # Compiler Flags # ----------------------------- DEBUG_FLAGS=-g #COMMON_FLAGS=$(DEBUG_FLAGS) +O2 -DA2.0 #HP #COMMON_FLAGS=$(DEBUG_FLAGS) -DA2.0 #Linux COMMON_FLAGS=$(DEBUG_FLAGS) #IBM # ------------ # Common Flags # ------------ FC_FLAGS=$(COMMON_FLAGS) -c FL_FLAGS=$(COMMON_FLAGS) -o # ------------- # Make program # ------------ all: $(CMD) #------------- # make the executable #--------------- $(CMD): $(OBS) $(FC) $(FL_FLAGS) $@ $(OBS) $(FLIBS) %.o:%.f $(FC) $(FC_FLAGS) $< # -------- # Clean up # -------- clean: $(RM) *.o $(EXE)