summaryrefslogtreecommitdiffstats
path: root/math/sdpara/files/patch-Makefile
blob: f5c363278af83cdcaebb9a4c7fe10bc71cfb3331 (plain)
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
--- Makefile.orig	Fri Oct  8 15:08:59 2004
+++ Makefile	Thu May 12 14:02:57 2005
@@ -18,11 +18,10 @@
 # This file is Makefile of SDPARA
 # $Id: Makefile,v 1.2 2004/10/08 05:57:48 makoto Exp $
 
-LAPACK = $(HOME)/lapack
+LAPACK = %%LOCALBASE%%
 RSDPA  = .
 
-LAPACK_LIB =  -llapack -lcblaswr -lcblas \
-              -lf77blas -lI77 -lF77 -latlas
+LAPACK_LIB = %%LAPACK%% %%BLAS%% %%GCCLIBDIR%% %%FORTRANLIBS%%
 
 # if you use BLAS in clapack.tgz, use next line
 # and set NON_ATLAS_SDPA in rsdpa_include.h to 1.
@@ -36,10 +35,12 @@
 #RSDPA_LIB_NAME = rsdpa
 RSDPA_LIB = -l$(RSDPA_LIB_NAME)
 
-MPIBIN=
-CC = $(MPIBIN)mpicxx
+MPIBIN= %%LOCALBASE%%/mpich2/bin/
+CC = $(MPIBIN)mpicxx
 F77 = $(MPIBIN)mpif77
 OPTION = -O3  #-g
+FFLAGS = %%FFLAGS%%
+CXXFLAGS = %%CXXFLAGS%% -DMPICH_IGNORE_CXX_SEEK
 
 TARGET_EXE = $(RSDPA_LIB_NAME)
 #TARGET_EXE = rsdpa_main.exe
@@ -60,9 +61,9 @@
 	  -L$(LAPACK)/lib $(SCALAPACK_LIB) $(LAPACK_LIB)
 
 .cpp.o:
-	$(CC) $(OPTION) -c -I$(RSDPA) -I$(LAPACK)/include $<
+	$(CC) $(CXXFLAGS) -c -I$(RSDPA) -I$(LAPACK)/include $<
 .f.o:
-	$(F77) $(OPTION) -c $<
+	$(F77) $(FFLAGS) -c $<
 
 force: clean now
 forceall: clean all
OpenPOWER on IntegriCloud