# # Makefile for the lib code: # # To make an executable, type: make xclaw # (from the application sub-directory) # # To compile a single file.f type: make file.o # (from the application sub-directory) # # To compile the lib library files type: make claw2 # (from the claw/clawpack/2d/lib sub-directory) # # To combine all source files type: make program # (from the application sub-directory) # (sometimes easier to debug all in one) # # FFLAGS = -O LFLAGS = -O LINK = f77 # .f.o: ; $(LINK) $(FFLAGS) $*.f OBJECTS = \ driver.o \ qinit.o \ ../rp/rpn2elv.o \ ../rp/rpt2elv.o \ setprob.o \ fdisc.o \ bc2.o \ out2.o \ b4step2.o \ setaux.o LIBOBJECTS = \ $(CLAW)/clawpack/2d/lib/claw2ez.o \ $(CLAW)/clawpack/2d/lib/claw2.o \ $(CLAW)/clawpack/2d/lib/cellave.o \ $(CLAW)/clawpack/2d/lib/step2.o \ $(CLAW)/clawpack/2d/lib/restart2.o \ $(CLAW)/clawpack/2d/lib/step2ds.o \ $(CLAW)/clawpack/2d/lib/dimsp2.o \ $(CLAW)/clawpack/2d/lib/flux2.o \ $(CLAW)/clawpack/2d/lib/copyq2.o \ $(CLAW)/clawpack/2d/lib/limiter.o \ $(CLAW)/clawpack/2d/lib/philim.o \ $(CLAW)/clawpack/2d/lib/src2.o SOURCES = \ driver.f \ qinit.f \ ../rp/rpn2elv.f \ ../rp/rpt2elv.f \ setprob.f \ fdisc.f \ bc2.f \ out2.f \ b4step2.f \ setaux.f \ $(CLAW)/clawpack/2d/lib/claw2ez.f \ $(CLAW)/clawpack/2d/lib/claw2.f \ $(CLAW)/clawpack/2d/lib/cellave.f \ $(CLAW)/clawpack/2d/lib/step2.f \ $(CLAW)/clawpack/2d/lib/restart2.f \ $(CLAW)/clawpack/2d/lib/step2ds.f \ $(CLAW)/clawpack/2d/lib/dimsp2.f \ $(CLAW)/clawpack/2d/lib/flux2.f \ $(CLAW)/clawpack/2d/lib/copyq2.f \ $(CLAW)/clawpack/2d/lib/limiter.f \ $(CLAW)/clawpack/2d/lib/philim.f \ $(CLAW)/clawpack/2d/lib/src2.f xclaw: $(OBJECTS) $(LINK) $(LFLAGS) $(OBJECTS) $(LIBOBJECTS) -o xclaw program : $(SOURCES) cat $(SOURCES) > claw2program.f ### DO NOT remove this line - make depends on it ###