SHELL=/bin/sh # If it is invoked by the command line # # make -f makefile INCLUDES = -I. AR = ar rv RANLIB = ranlib # add path to c compiler CC = icc FC = ifort # add c compiler optimization flags OPTFLAGS = -O3 CFLAGS = $(COPTIONS) $(OPTFLAGS) $(INCLUDES) LD = $(CC) -L. LIB = libestofsutil.a OBJS = stack.o stackpair.o volume.o utility.o interp_bilinear.o .c.o: $(CC) $(CFLAGS) -c stack.c stackpair.c volume.c .F.o: $FC -c -o utility.o utility.f $FC -c -o interp_bilinear.o interp_bilinear.f ${LIB}: $(OBJS) $(AR) $@ $(OBJS) $(RANLIB) $@ rm -f $(OBJS) clean: rm -f *.o realclean: rm -f *.o ; rm -f *.a