# # 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 claw1 # (from the claw/clawpack/1d/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 \ rp1acv.o \ setaux.o \ bc1.o \ philim.o \ trlimit.o \ step1.o \ setprob.o LIBOBJECTS = \ $(CLAW)/clawpack/1d/lib/claw1ez.o \ $(CLAW)/clawpack/1d/lib/out1.o \ $(CLAW)/clawpack/1d/lib/claw1.o \ $(CLAW)/clawpack/1d/lib/b4step1.o \ $(CLAW)/clawpack/1d/lib/copyq1.o \ $(CLAW)/clawpack/1d/lib/limiter.o \ $(CLAW)/clawpack/1d/lib/src1.o SOURCES = \ driver.f \ qinit.f \ rp1acv.f \ setprob.f \ bc1.f \ trlimit.f \ step1.f \ setaux.f \ $(CLAW)/clawpack/1d/lib/claw1ez.f \ $(CLAW)/clawpack/1d/lib/out1.f \ $(CLAW)/clawpack/1d/lib/claw1.f \ $(CLAW)/clawpack/1d/lib/b4step1.f \ $(CLAW)/clawpack/1d/lib/copyq1.f \ $(CLAW)/clawpack/1d/lib/limiter.f \ philim.f \ $(CLAW)/clawpack/1d/lib/src1.f xclaw: $(OBJECTS) $(LINK) $(LFLAGS) $(OBJECTS) $(LIBOBJECTS) -o xclaw program : $(SOURCES) cat $(SOURCES) > claw1program.f ### DO NOT remove this line - make depends on it ###