# 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= spiegel.f bandread.f sread.f locate.f voigt.f bplanck.f block.f LIBS= PROGRAM= spiegel # 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)