--- Make.inc/Makefile.FREEBSD10.PAR.orig 2026-07-20 09:00:43 UTC +++ Make.inc/Makefile.FREEBSD10.PAR @@ -20,7 +20,7 @@ # #SCOTCHDIR = ${HOME}/scotch_6.0 -#ISCOTCH = -I$(SCOTCHDIR)/include +ISCOTCH = -I@LOCALBASE@/include # # You have to choose one among the following two lines depending on # the type of analysis you want to perform. If you want to perform only @@ -29,15 +29,15 @@ # line (remember to add -Dptscotch in the ORDERINGSF variable below) #LSCOTCH = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr -#LSCOTCH = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr +LSCOTCH = -L@LOCALBASE@/lib -lesmumps -lscotch -lscotcherr -lptesmumps -lptscotch -lptscotcherr -lz LPORDDIR = $(topdir)/PORD/lib/ IPORD = -I$(topdir)/PORD/include/ LPORD = -L$(LPORDDIR) -lpord$(PLAT) -#LMETISDIR = /opt/metis-5.1.0/build/Linux-x86_64/libmetis -#IMETIS = /opt/metis-5.1.0/include +LMETISDIR = @LOCALBASE@/lib +IMETIS = -I@LOCALBASE@/include # You have to choose one among the following two lines depending on # the type of analysis you want to perform. If you want to perform only @@ -45,7 +45,8 @@ LPORD = -L$(LPORDDIR) -lpord$(PLAT) # variable below); for both parallel and sequential analysis choose the second # line (remember to add -Dparmetis in the ORDERINGSF variable below) -#LMETIS = -L$(LMETISDIR) -lmetis +# FreeBSD note: Parmetis is not free, we use pt-scotch +LMETIS = -L$(LMETISDIR) -lmetis #LMETIS = -L$(LMETISDIR) -lparmetis -lmetis # The following variables will be used in the compilation process. @@ -53,7 +54,7 @@ LPORD = -L$(LPORDDIR) -lpord$(PLAT) # If you want to use Metis 4.X or an older version, you should use -Dmetis4 instead of -Dmetis # or in addition with -Dparmetis (if you are using parmetis 3.X or older). #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis -ORDERINGSF = -Dpord +ORDERINGSF = -Dpord -Dmetis -Dscotch -Dptscotch ORDERINGSC = $(ORDERINGSF) LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH) @@ -73,34 +74,34 @@ FPIC_OPT = -fPIC # Adapt/uncomment RPATH_OPT to avoid modifying # LD_LIBRARY_PATH in case of shared libraries # RPATH_OPT = -Wl,-rpath,/path/to/MUMPS_x.y.z/lib/ -OUTC = -o "" -OUTF = -o "" +OUTC = -o +OUTF = -o RM = /bin/rm -f -CC = cc -FC = gfortran48 -FL = gfortran48 +CC = @CC@ +FC = @FC@ +FL = @FC@ # keep a space at the end if options have to be separated from lib name -AR = ar -vr "" +AR = ar -vr RANLIB = ranlib -LAPACK = -llapack -SCALAP = -lscalapack -lblacs +LAPACK = @LAPACKLIB@ +SCALAP = -L@LOCALBASE@/lib -lscalapack -lblacs -lblacsc -lblacsf77 -lexecinfo -INCPAR = -I/usr/local/include -LIBPAR = $(SCALAP) $(LAPACK) -L/usr/local/lib -lmpi +INCPAR = @MPI_CFLAGS@ +LIBPAR = $(SCALAP) @MPI_LIBS@ INCSEQ = -I$(topdir)/libseq LIBSEQ = $(LAPACK) -L$(topdir)/libseq -lmpiseq$(PLAT) -LIBBLAS = -lblas -LIBOTHERS = -lpthread +LIBBLAS = @BLASLIB@ +LIBOTHERS = -lz -pthread #Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER) CDEFS = -DAdd_ #Begin Optimized options # uncomment -fopenmp in lines below to benefit from OpenMP -OPTF = -O #-fopenmp -OPTL = -O #-fopenmp -OPTC = -O -I. #-fopenmp +OPTF = @FCFLAGS@ -fopenmp +OPTL = -O -fopenmp +OPTC = @CFLAGS@ -I. -fopenmp #End Optimized options