--- Makefile.orig 2024-08-05 17:13:21 UTC +++ Makefile @@ -1,9 +1,9 @@ -CFLAGS = -Wall -O2 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT -FFLAGS = -Wall -O2 +CFLAGS += -O2 -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/spooles -DARCH="FreeBSD" -DSPOOLES -DARPACK -DUSE_MT=1 -DMATRIXSTORAGE -DNETWORKOUT +FFLAGS += -O2 -CC=cc -FC=gfortran +CC=%%CC%% +FC=%%FC%% .c.o : $(CC) $(CFLAGS) -c $< @@ -21,12 +21,12 @@ LIBS = \ DIR=../../../SPOOLES.2.2 LIBS = \ - $(DIR)/spooles.a \ - ../../../ARPACK/libarpack_INTEL.a \ - -lpthread -lm -lc + -lspooles -larpack %%BLAS_LIBS%% %%LAPACK_LIBS%% \ + -lpthread -lm + ccx_2.22: $(OCCXMAIN) ccx_2.22.a $(LIBS) - ./date.pl; $(CC) $(CFLAGS) -c ccx_2.22.c; $(FC) -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.22.a $(LIBS) -fopenmp + ./date.pl; $(CC) $(CFLAGS) -c ccx_2.22.c; $(FC) $(FFLAGS) -o $@ $(OCCXMAIN) ccx_2.22.a $(LIBS) -fopenmp ccx_2.22.a: $(OCCXF) $(OCCXC) ar vr $@ $?