# 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 hitran.f radiowrite.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) hitrandriver: hitran.f hitrandriver.f sread.f $(LINK.f) -o $@ hitran.f hitrandriver.f sread.f $(LIBS) hcnheat: hcnheat.f sread.f hitran.f $(LINK.f) -o $@ hcnheat.f sread.f hitran.f $(LIBS) lint: $(LINTFILES) $(LINTFILES): $(LINT.f) $(LINTFILES) clean: rm -f core $(OBJECTS) $(LINTFILES)