# 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= trans.f bandread.f sread.f cgrid.f atmread.f locate.f voigt.f sort.f LIBS= PROGRAM= trans # 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)