I did not try but I would say:
in the definition of LAPACKLIB you add libflapack.a and libfblas.a
- Code: Select all
LAPACKLIB = -lflapack -lfblas
I would put a space between $(LAPACKLIB) and $(lobpcglibLDFLAGS), although this might work without, I do not know what is $(lobpcglibLDFLAGS), I guess it's a kind of "-lm" in this case, it is fine after LAPACKLIB.
Note that if LAPACK has been compiled with the Fortran compiler then you'll certainly want to add a kind of "-lg2c" as well (-lg2c for g77/gcc for example, you put it at the end of the compilation line). Or more easily, you change $(CC) by $(F77) when you are making the executable.
If it's a C version of LAPACK then you should be fine with the $(CC).
And finally once everything is working, you certainly will want to have an optimized BLAS library instead of libfblas.a. See:
http://www.netlib.org/lapack/faq.html#1.9
http://www.netlib.org/lapack/faq.html#2.5
but that will be for after something's working.
Julien