imporove makefile
-CFLAGS = -Wall -O3 -fopenmp -I $(PREFIX)/include/spooles -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT=1
-FFLAGS = -Wall -O3 -fopenmp
-
-CC=gcc
-FC=gfortran
+CFLAGS = $(CFLAGS) -Wall -O3 -fopenmp -I $(PREFIX)/include/spooles -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT=1
+FFLAGS = $(FFLAGS) -Wall -O3 -fopenmp
.c.o :
$(CC) $(CFLAGS) -c $<
@@ -23,13 +20,11 @@ DIR=../../../SPOOLES.2.2
LIBS = \
$(PREFIX)/lib/spoolesMT.a \
$(PREFIX)/lib/spooles.a \
- $(PREFIX)/lib/libarpack.a \
- $(PREFIX)/lib/liblapack.a \
- -lpthread -lm
+ -larpack -llapack -lpthread -lm
ccx_2.14_MT: $(OCCXMAIN) ccx_2.14_MT.a $(LIBS)
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.14.c; $(FC) -fopenmp -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.14_MT.a $(LIBS)
+ ./date.pl; $(CC) $(CFLAGS) -c ccx_2.14.c; $(FC) $(FFLAGS) -o $@ $(OCCXMAIN) ccx_2.14_MT.a $(LIBS)
ccx_2.14_MT.a: $(OCCXF) $(OCCXC)
- ar vr $@ $?
+ $(AR) vr $@ $?
