Skip to content
Snippets Groups Projects
Commit 3fae4cff authored by Dave Whipp's avatar Dave Whipp
Browse files

Updated to work like other Makefiles

parent e11db73f
No related branches found
No related tags found
No related merge requests found
.SUFFIXES:.out .o .s .c .F .f .f90 .e .r .y .yr .ye .l .p .sh .csh .h
# Makefile for program post
include ../Makefile.pathscale
NAME=post
include ../Makefile.inc
INCLUDES=
BIN=$(NAME)$(BITS)
# object (make VTK output for visualization)
OBJECTS = \
../module_constants.o \
......@@ -13,22 +18,44 @@ find_volume.o \
rivers.o \
post.o
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
OCTREE = ../OCTREE/libOctree.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) -o $(BIN)" \
1>>$(BIN).link.stdout 2>>$(BIN).link.stderr
$(F90) $(FFLAGS) $(OPTIONS) $(OBJECTS) $(OCTREE) -o $(BIN) \
1>>$(BIN).link.stdout 2>>$(BIN).link.stderr
.f90.o:
$(F90) $(FLAGS) $(INCLUDE) $*.f90
.PHONY: objclean
objclean:
rm -f *.o *.mod $(COMPILE_OUT)
post: $(OBJECTS)
$(F90) -O3 $(OBJECTS) ../OCTREE/libOctree.a -o post
.PHONY: distclean
distclean: objclean
rm -f $(NAME) $(BIN).link.stderr $(BIN).link.stdout
topo: $(OBJECTSP)
$(F90) -O3 $(OBJECTSP) ../OCTREE/libOctree.a -o topo
#.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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment