# To rebuild a new debuggable executable: type "make" # To build an optimized executable, type "make optimize" # To clean out all object files and other junk, type "make clean". # To find all programming discrepancies not found by the compiler, # type "make lint". CC=f77 SOURCES= mesopause.f gauleg.f bandread.f conduct.f uvheat.f irheat.f absorbk.f sread.f solread.f epsln.f cgrid.f ludcmp.f atmread1.f atmread2.f locate.f en.f dsmt.f voigt.f rybicki.f bplanck.f dplanck.f depsln.f drybicki.f vmatrix.f cascade.f random.f radioheat.f drybicki_lte.f hydrost.f atmwrite.f means.f tmatrix.f tridag.f abscheck.f block.f radiowrite.f hitran.f LIBS= PROGRAM= mesopause # default compile uses debug option CFLAGS= -g CPPFLAGS= LDFLAGS= LINTFLAGS= OBJECTS= $(SOURCES:.f=.o) LINTFILES= $(SOURCES:.f=.ln) .KEEP_STATE: all optimize: $(PROGRAM) optimize := CFLAGS= -O $(PROGRAM): $(OBJECTS) $(LINK.f) -o $@ $(OBJECTS) $(LIBS) lint: $(LINTFILES) $(LINTFILES): $(LINT.f) $(LINTFILES) clean: rm -f core $(OBJECTS) $(LINTFILES)