Newer
Older
NAME=post
include ../Makefile.inc
INCLUDES=
BIN=$(NAME)$(BITS)
# object (make VTK output for visualization)
OBJECTS = \
../module_constants.o \
module_gauss.o\
../compute_dhdx_dhdy_dhdz.o\
../compute_positive_volume.o\
ps.o \
../toolbox.o \
find_volume.o \
rivers.o \
post.o
OCTREE = ../OCTREE/libOctree$(BITS).a
#OBJECTSP = \
#../module_constants.o \
#module_gauss.o\
#../compute_dhdx_dhdy_dhdz.o\
#../compute_positive_volume.o\
#ps.o \
#../toolbox.o \
#find_volume.o \
#rivers.o \
#topo.o
#topo: $(OBJECTSP)
# $(F90) -O3 $(OBJECTSP) ../OCTREE/libOctree.a -o topo
# make the program
#
all: $(BIN)
$(BIN): $(OBJECTS)
@echo "$(F90) $(FFLAGS) $(OPTIONS) $(OBJECTS) $(MPI_LIB) -o $(BIN)" \
1>>$(BIN).link.stdout 2>>$(BIN).link.stderr
$(F90) $(FFLAGS) $(OPTIONS) $(OBJECTS) $(OCTREE) $(MPI_LIB) -o $(BIN) \
1>>$(BIN).link.stdout 2>>$(BIN).link.stderr
.PHONY: objclean
objclean:
rm -f *.o *.mod $(COMPILE_OUT)
.PHONY: distclean
distclean: objclean
rm -f $(NAME) $(BIN).link.stderr $(BIN).link.stdout
#.PHONY: more-output
#more-output:
# @echo "--"
# @echo "compiler output from `pwd`"
# @if test -e $(COMPILE_OUT) ; then ${PAGER} $(COMPILE_OUT) ; fi
# @echo "--"
# @echo "$(AR) output from `pwd`"
# @if test -e $(LIBFILE).ar ; then ${PAGER} $(LIBFILE).ar ; fi