--- ambfor/makefile.orig 2015-05-02 19:49:10 UTC +++ ambfor/makefile @@ -12,12 +12,12 @@ # # -CFLAGS = -c -g ${EXT} +CFLAGS += -c #FC = g77 -FC = gfortran -FFLAGS = -c -g -ffast-math -funroll-loops -O3 +#FC = gfortran +#FFLAGS = -c -g -ffast-math -funroll-loops -O3 LIBS = -lm -LDR = ${FC} -g +LDR = ${FC} EXT := ifeq ($(uname), Darwin) @@ -56,7 +56,7 @@ ambmd: md.o verlet.o qvdw.o allocmd.o $( $(LDR) -o ambmd md.o verlet.o qvdw.o allocmd.o $(OBJS) $(LIBS) ambfor.o: ambfor.f - ${FC} -c -g -ffast-math -funroll-loops -o ambfor.o ambfor.f + ${FC} -c ${FFLAGS} -o ambfor.o ambfor.f allocmd.o: alloc.c $(CC) $(CFLAGS) -DMD -c alloc.c -o allocmd.o