--- Makefile.orig 2022-07-31 16:06:31 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 @@ OCCXMAIN = $(SCCXMAIN:.c=.o) 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.21: $(OCCXMAIN) ccx_2.21.a $(LIBS) - ./date.pl; $(CC) $(CFLAGS) -c ccx_2.21.c; $(FC) -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.21.a $(LIBS) -fopenmp + ./date.pl; $(CC) $(CFLAGS) -c ccx_2.21.c; $(FC) $(FFLAGS) -o $@ $(OCCXMAIN) ccx_2.21.a $(LIBS) -fopenmp ccx_2.21.a: $(OCCXF) $(OCCXC) ar vr $@ $?