Skip to content
Snippets Groups Projects
Makefile 1.55 KiB
Newer Older
  • Learn to ignore specific revisions
  • Douglas Guptill's avatar
    Douglas Guptill committed
    # Makefile for program cascade
    # developed by Jean Braun
    #              Research School of Earth Sciences
    #              The Australian National University
    #              Canberra, ACT 0200, Australia
    #              Tel:+61-2-6249-5512
    #              Fax:+61-2-6249-5443
    #              email: Jean.Braun@anu.edu.au
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    NAME=cascade
    
    include ../Makefile.inc
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    LIBFILE=lib$(NAME)$(BITS).a
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    # object (all the interesting bits to do the erosion/sedimentation
    #         computations)
    
    OBJECTS = \
    cascade.o \
    check_for_removal.o \
    change_sea_level.o \
    fluvial_erosion.o \
    find_neighbours.o \
    find_neighbour_list.o \
    find_centre.o \
    find_donors.o \
    find_order.o \
    random.o \
    find_surface.o \
    check_mesh.o \
    debug.o \
    diffusion_erosion.o \
    erosional_properties.o \
    tectonic_uplift.o \
    find_catchment.o \
    flexure.o \
    read_but_skip_comment.o \
    iread_but_skip_comment.o \
    initialize_nodal_geometry.o \
    initialize_general_parameters.o \
    tectonic_movement.o \
    update_bedrock.o \
    update_time_step.o \
    write_output.o \
    orography.o \
    sinft.o \
    four1.o \
    realft.o \
    nn_remove.o \
    del_flip.o
    
    # make the library
    #
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    all: $(LIBFILE)
    $(LIBFILE): $(OBJECTS) $(UTILS)
    	$(AR) -rv $(LIBFILE) $(OBJECTS) >$(LIBFILE).ar
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    .PHONY: objclean
    objclean:
    
    	rm -f *.o *.mod $(COMPILE_OUT) *__genmod.f90
    
    .PHONY: distclean
    distclean: objclean
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    	rm -f $(LIBFILE) $(LIBFILE).ar
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    .PHONY: more-output
    more-output:
    	@echo "--"
    	@echo "compiler output from `pwd`"
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    	@if test -e $(COMPILE_OUT) ; then ${PAGER} $(COMPILE_OUT) ; fi
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    	@echo "--"
    	@echo "$(AR) output from `pwd`"
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    	@if test -e $(LIBFILE).ar ; then ${PAGER} $(LIBFILE).ar ; fi