summaryrefslogtreecommitdiff
path: root/math/dsdp/files/patch-make.include
blob: 86e14aaac4b56be5a8303c965a05670081d15c90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- make.include.orig	2005-10-21 19:31:14 UTC
+++ make.include
@@ -21,7 +21,7 @@ CC       = gcc
 
 # STEP 3a: Compiler Optimization. You should probably add a -On where
 # n is the maximum optimization allowed by your C compiler.
-OPTFLAGS = -O3
+OPTFLAGS = 
 #OPTFLAGS = /O2
 
 # STEP 3b: Add timing support by uncommenting one of the following lines.
@@ -43,7 +43,7 @@ DSDPCFLAGS = 
 
 
 # STEP 4.  Set Linker and FLAGS:  Link the DSDP library to application
-CFLAGS   = ${OPTFLAGS} -I. -I${DSDPROOT}/include ${DSDPCFLAGS}
+CFLAGS   += ${OPTFLAGS} -I. -I${DSDPROOT}/include ${DSDPCFLAGS}
 CLINKER	= ${CC} ${OPTFLAGS}
 #CLINKER	= ${CXX} ${OPTFLAGS} -static
 #CLINKER	= link /out:dsdp5.exe
@@ -55,7 +55,7 @@ CLINKER	= ${CC} ${OPTFLAGS}
 # Not needed to compile library or matlab executable
 # Needed to link DSDP library to the driver ( read SDPA files, maxcut example, ...)
 # Also include the math library and other libraries needed to link the BLAS to the C files that call them.
-LAPACKBLAS  = -llapack -lblas -lg2c -lm
+LAPACKBLAS  = -llapack -lblas -lm
 #LAPACKBLAS  = -L/usr/lib/ -llapack -lblas -lg2c -lm
 #LAPACKBLAS  = -L/home/benson/ATLAS/Linux_P4SSE2/lib -llapack -lcblas -lf77blas -latlas -lg2c -lm
 #LAPACKBLAS  = -L/sandbox/benson/ATLAS-3.6/lib/Linux_P4SSE2  -llapack -lcblas -lf77blas -latlas -lg2c -lm 
@@ -79,7 +79,7 @@ EXECDIR = ${DSDPROOT}/bin/
 
 # STEP 7  SET Operating system commands 
 # Other build information, archive, remove, move, copy
-ARCH     = ar cr
+ARCHX    = ar cr
 RANLIB   = ranlib
 #RANLIB   = echo
 RM       = rm -f
@@ -90,7 +90,7 @@ DD       = ./
 PP	 = ../
 
 dsdplib: ${DSDPOBJ}
-	${ARCH} ${DSDPLIB} ${DSDPOBJ}
+	${ARCHX} ${DSDPLIB} ${DSDPOBJ}
 	${RANLIB} ${DSDPLIB}	
 	make clean