#**************************************************************************** # Version: 0.1 # Last Changed: Mario Monteiro, 2005-02 # This is the MAKEFILE with the rules to compile all subroutines in order to # produce an executable MODCONV. # Please, adapt as necessary to your operating system and FORTRAN compiler. #**************************************************************************** #.SUFFIXES: #.SUFFIXES: .f .o # ******************************************************* # *** Compiler *** # ******************************************************* # This is for Digital True Unix: FC = /usr/bin/f77 -extend_source -warn argument_checking -warn truncated_source -convert big_endian # This is for simplest compiler: #FC = f77 # # ******************************************************* # *** Rule to produce the .o files *** # ******************************************************* .f.o:; $(FC) -c -o $@ $*.f # # ******************************************************* # *** Definition of folders with the source files *** # ******************************************************* LOCAL = . # # ******************************************************* # *** Definition of files to be compiled *** # ******************************************************* FILES1 = \ $(LOCAL)/modconv.o \ $(LOCAL)/ref_data.o FILES2 = \ $(LOCAL)/read_fgong.o \ $(LOCAL)/read_gong.o \ $(LOCAL)/read_osc.o \ $(LOCAL)/read_srox.o \ $(LOCAL)/read_amdl.o FILES3 = \ $(LOCAL)/write_fgong.o \ $(LOCAL)/write_osc.o \ $(LOCAL)/write_amdl.o \ $(LOCAL)/write_srox.o # ******************************************************* # *** Definition of how to produce the executable *** # ******************************************************* modconv: $(FILES1) $(FILES2) $(FILES3) $(FC) $(FILES1) $(FILES2) $(FILES3) -o modconv clear: rm -f *.o modconv *~