#
#               Makefile for the clawpack 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 lib
#       (from the claw/clawpack/3d/lib sub-directory)
#
#       To combine all source files type:         make program
#       (from the application sub-directory)
#       (sometimes easier to debug all in one)
#
#

FFLAGS =  -O3
LFLAGS =
LINK	= g77

OBJECTS = \
  driver.o \
  qinit.o \
  bc3hex.o \
  mapc2p_rad.o \
  setprob.o \
  cellave3.o \
  fdisc.o \
  setaux.o \
  rpn3eu.o \
  rpt3eu.o \
  rptt3eu.o \
  sethexinfo.o \
  gethexinfo.o \
  trapfpe.o

LIBOBJECTS = \
  $(CLAW)/clawpack/3d/lib/claw3ez.o \
  $(CLAW)/clawpack/3d/lib/b4step3.o \
  $(CLAW)/clawpack/3d/lib/chkmth.o \
  $(CLAW)/clawpack/3d/lib/claw3.o \
  $(CLAW)/clawpack/3d/lib/step3.o \
  $(CLAW)/clawpack/3d/lib/step3ds.o \
  $(CLAW)/clawpack/3d/lib/dimsp3.o \
  $(CLAW)/clawpack/3d/lib/flux3.o \
  $(CLAW)/clawpack/3d/lib/copyq3.o \
  $(CLAW)/clawpack/3d/lib/limiter.o \
  $(CLAW)/clawpack/3d/lib/philim.o \
  $(CLAW)/clawpack/3d/lib/src3.o \
  $(CLAW)/clawpack/3d/lib/out3.o \
  $(CLAW)/clawpack/3d/lib/restart3.o



xclaw: $(OBJECTS)
	$(LINK) $(LFLAGS) $(OBJECTS) $(LIBOBJECTS) $(OUTOBJECTS) -o xclaw

clean:
	rm -f $(OBJECTS) xclaw core*

realclean:
	rm -f $(OBJECTS) fort.* *~ core*

### DO NOT remove this line - make depends on it ###
