Skip to content
Snippets Groups Projects
Makefile 801 B
Newer Older
  • Learn to ignore specific revisions
  • Douglas Guptill's avatar
    Douglas Guptill committed
    NAME=Octree
    
    include ../Makefile.inc
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    LIBFILE=lib$(NAME)$(BITS).a
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    OBJECTS_OCTREE = \
    OctreeBitPlus.o \
    diamtr_sloan.o \
    graph_sloan.o \
    isorti_sloan.o \
    label_sloan.o \
    number_sloan.o \
    
    octree_interpolate_three.o \
    
    octree_interpolate_five.o \
    
    octree_interpolate_three_derivative.o \
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    profil_sloan.o \
    rootls_sloan.o
    
    
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    all: $(LIBFILE)
    $(LIBFILE): $(OBJECTS_OCTREE)
    	$(AR) -rv $(LIBFILE) $(OBJECTS_OCTREE) >$(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)
    
    .PHONY: distclean
    distclean: objclean
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    	rm -f $(LIBFILE) $(LIBFILE).ar
    
    Douglas Guptill's avatar
    Douglas Guptill committed
    
    
    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