Skip to content
Snippets Groups Projects
Makefile 2.91 KiB
Newer Older
Douglas Guptill's avatar
Douglas Guptill committed
NAME=douar
include Makefile.deps
Douglas Guptill's avatar
Douglas Guptill committed
BIN=$(NAME)$(BITS)
Douglas Guptill's avatar
Douglas Guptill committed

OBJECTS = \
module_threads.o \
module_constants.o \
module_invariants.o \
module_gauss.o \
module_definitions.o \
module_random.o \
module_colormap.o \
DoRuRe.o \
build_surface_octree.o \
build_system_wsmp.o \
calculate_lsf.o \
compute_convergence_criterion.o \
check_delaunay.o \
compute_dhdx_dhdy_dhdz.o \
compute_divergence.o \
compute_pressure.o \
compute_positive_volume.o \
compute_normals.o \
create_surfaces.o \
define_bc.o \
define_bc_ritske.o \
define_bc_ritske_isurf.o \
Douglas Guptill's avatar
Douglas Guptill committed
define_bc_sphere.o \
define_bc_riedel.o \
Douglas Guptill's avatar
Douglas Guptill committed
define_bc_3Dpunch.o \
define_bc_2Dpunch.o \
define_bc_2Dpunch_vert.o \
define_bc_folding.o \
define_bc_pipo.o \
define_bc_jgr.o \
define_bc_subduction.o \
define_bc_parallipipede.o \
define_bc_model1.o \
Douglas Guptill's avatar
Douglas Guptill committed
define_surface.o \
define_cloud.o \
define_ov.o \
Douglas Guptill's avatar
Douglas Guptill committed
do_leaf_measurements.o \
embed_surface_in_octree.o \
erosion.o \
find_void_nodes.o \
Douglas Guptill's avatar
Douglas Guptill committed
flush.o \
Douglas Guptill's avatar
Douglas Guptill committed
heap.o \
Douglas Guptill's avatar
Douglas Guptill committed
improve_osolve.o \
Douglas Guptill's avatar
Douglas Guptill committed
initialize_temperature.o \
interpolate_ov_on_osolve.o \
interpolate_velocity_on_surface.o \
isostasy.o \
make_matrix.o \
make_cut.o \
make_pressure.o \
move_surface.o \
move_cloud.o \
pressure_cut.o \
qsort.o \
read_controlling_parameters.o \
read_input_file.o \
refine_surface.o \
solve_with_pwssmp.o \
solve_with_pwgsmp.o \
strain_history.o \
scanfile.o  slices.o smooth_pressures.o \
toolbox.o \
update_cloud_structure.o \
update_cloud_fields.o \
visualise_matrix.o \
remove_point.o \
Douglas Guptill's avatar
Douglas Guptill committed
wsmp_setup.o \
Douglas Guptill's avatar
Douglas Guptill committed
DOUAR.o \
write_global_output.o vrm.o

Douglas Guptill's avatar
Douglas Guptill committed

Douglas Guptill's avatar
Douglas Guptill committed
all: $(BIN)
$(BIN): subdirs $(OBJECTS)
	@echo "$(F90) $(FFLAGS) $(OPTIONS) $(OBJECTS) $(LIBS) -o $(BIN)" \
>$(BIN).link.stdout
Douglas Guptill's avatar
Douglas Guptill committed
	$(F90) $(FFLAGS) $(OPTIONS) $(OBJECTS) $(LIBS) -o $(BIN) \
1>>$(BIN).link.stdout 2>>$(BIN).link.stderr
Douglas Guptill's avatar
Douglas Guptill committed

# not on the p690...
	ldd $(BIN) >>$(BIN).link.stdout
Douglas Guptill's avatar
Douglas Guptill committed

Douglas Guptill's avatar
Douglas Guptill committed

Douglas Guptill's avatar
Douglas Guptill committed
.PHONY: install
install:
Douglas Guptill's avatar
Douglas Guptill committed
	mv -f $(BIN) bin
Douglas Guptill's avatar
Douglas Guptill committed

Douglas Guptill's avatar
Douglas Guptill committed
subdirs:
	cd CASCADE;   make all
	cd NN;        make all
	cd OCTREE;    make all
	cd RESAMPLE;  make all

.PHONY: objclean
objclean:
	cd CASCADE;   make $@
	cd NN;        make $@
	cd OCTREE;    make $@
	cd RESAMPLE;  make $@
	rm -f *.o *.mod $(COMPILE_OUT)

.PHONY: distclean
distclean: objclean
Douglas Guptill's avatar
Douglas Guptill committed
	cd CASCADE;   make $@
	cd NN;        make $@
	cd OCTREE;    make $@
	cd RESAMPLE;  make $@
	rm -f $(BIN) $(BIN).link.stdout $(BIN).link.stderr
Douglas Guptill's avatar
Douglas Guptill committed
.PHONY: more-output
more-output:
	cd CASCADE;   make $@
	cd NN;        make $@
	cd OCTREE;    make $@
	cd RESAMPLE;  make $@
	@echo "--"
	@echo "compiler output from `pwd`"
	@if test -e $(COMPILE_OUT) ; then more $(COMPILE_OUT) ; fi
	@echo "--"
	@echo "linker output...."
	@if test -e $(BIN).link.stdout ; then more $(BIN).link.stdout ; fi
	@if test -e $(BIN).link.stderr ; then more $(BIN).link.stderr ; fi

.PHONY: mahone
Douglas Guptill's avatar
Douglas Guptill committed
mahone::
	cp -f Makefile.mahone Makefile.deps

.PHONY: p690
Douglas Guptill's avatar
Douglas Guptill committed
p690::
	cp -f Makefile.p690 Makefile.deps
Douglas Guptill's avatar
Douglas Guptill committed
	@echo "If using WSMP, OBJECT_MODE must be 64"
	@if test "x${OBJECT_MODE}" != x64 ; then export OBJECT_MODE=64; fi
	@echo "OBJECT_MODE should be 64, is ${OBJECT_MODE}"