Ticket #42016: patch-make.include.diff
File patch-make.include.diff, 1.8 KB (added by jwhowse4, 11 years ago) |
---|
-
make.include
old new 6 6 # the defaults below should work, although fast BLAS and LAPACK recommended. 7 7 8 8 # STEP 2: Set the name of the C compiler. 9 CC = gcc9 CC = @@MP_CC@@ 10 10 #CC = cc 11 11 #CC = g++ 12 12 #CC = mpicc … … 32 32 #DSDPTIMER = DSDP_MS_TIME 33 33 34 34 # STEP 3c: Add other compiler flags. 35 DSDPCFLAGS = 35 DSDPCFLAGS = -DDSDP_TIME -I/usr/include/sys 36 36 #DSDPCFLAGS = -Wall 37 37 #DSDPCFLAGS = -DDSDPMATLAB 38 38 # Other flags concern BLAS and LAPACK libraries -- see next step. … … 43 43 44 44 45 45 # STEP 4. Set Linker and FLAGS: Link the DSDP library to application 46 CFLAGS = ${OPTFLAGS} -I. -I${DSDPROOT}/include ${DSDPCFLAGS}47 CLINKER = ${CC} ${OPTFLAGS} 46 CFLAGS = ${OPTFLAGS} @@MP_ARCHFLAGS@@ -I. -I${DSDPROOT}/include ${DSDPCFLAGS} 47 CLINKER = ${CC} ${OPTFLAGS} @@MP_ARCHFLAGS@@ 48 48 #CLINKER = ${CXX} ${OPTFLAGS} -static 49 49 #CLINKER = link /out:dsdp5.exe 50 50 … … 55 55 # Not needed to compile library or matlab executable 56 56 # Needed to link DSDP library to the driver ( read SDPA files, maxcut example, ...) 57 57 # Also include the math library and other libraries needed to link the BLAS to the C files that call them. 58 LAPACKBLAS = -l lapack -lblas -lg2c -lm58 LAPACKBLAS = -lm -L@@PREFIX@@/lib -llapack -lcblas -lf77blas -latlas -L@@PREFIX@@/lib/gcc48 -lgfortran 59 59 #LAPACKBLAS = -L/usr/lib/ -llapack -lblas -lg2c -lm 60 60 #LAPACKBLAS = -L/home/benson/ATLAS/Linux_P4SSE2/lib -llapack -lcblas -lf77blas -latlas -lg2c -lm 61 61 #LAPACKBLAS = -L/sandbox/benson/ATLAS-3.6/lib/Linux_P4SSE2 -llapack -lcblas -lf77blas -latlas -lg2c -lm … … 63 63 64 64 65 65 # STEP 6, MATLAB MACROS - If compiling Matlab interface, check MEX flag. 66 MEX = m ex -O66 MEX = mkoctfile --mex 67 67 #MEX = C:\Matlab\bin\mex 68 68 DSDPMATLABDIR = ${DSDPROOT}/matlab 69 69