Skip to content
Snippets Groups Projects
Makefile 613 B
Newer Older
  • Learn to ignore specific revisions
  • Douglas Guptill's avatar
    Douglas Guptill committed
    .SUFFIXES:.out .o .s .c .F .f .f90 .e .r .y .yr .ye .l .p .sh .csh .h
    
    include ../Makefile.p690
    #include ../Makefile.pathscale
    #include ../Makefile.ifort
    #include ../Makefile.macosx
    
    NAME=libnn
    COMPILE_OUT=$(NAME).compile
    
    OBJECTS_NN = \
    delaun.o \
    del_sub.o \
    nn.o \
    nnplot.o \
    qhullf_dummy.o \
    stack.o \
    stackpair.o \
    volume.o
    
    .f90.o:
    	$(F90) $(FLAGS) $(INCLUDE) -c $<  >>$(COMPILE_OUT) 2>&1
    
    .f.o:
    	$(F77) $(FLAGS) -c $<  >>$(COMPILE_OUT) 2>&1
    
    .c.o:
    	$(CC) $(FLAGS) -c $<  >>$(COMPILE_OUT) 2>&1
    
    $(NAME).a: $(OBJECTS_NN)
    	ar rcv $(NAME).a $(OBJECTS_NN)
    
    .PHONY: objclean
    objclean:
    	rm -f *.o $(COMPILE_OUT)