aboutsummaryrefslogtreecommitdiffstats
path: root/math/arpack++/files/patch-Makefile.inc
blob: 13365323498cffd3602c38bd1ecf9685eac5f8b8 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
--- Makefile.inc.orig   Wed Apr  5 14:00:59 2000
+++ Makefile.inc    Mon Oct 20 21:56:56 2003
@@ -1,25 +1,27 @@
-# ARPACK++ v1.2 2/18/2000
+# ARPACK++ v1.2 2/20/2000
+# $FreeBSD$
 # c++ interface to ARPACK code.
 # This file contains some definitions used to compile arpack++ examples
-# with the g++ compiler under Sun Solaris.
+# with the g++ compiler under FreeBSD.
 
 
 # Defining the machine.
 
-PLAT         = solaris
+PLAT         = `uname -s`
 
 # Defining the compiler.
 
-CPP          = g++
+CPP          = $(CXX)
 
 # Defining ARPACK++ directories.
 # ARPACKPP_INC is the directory that contains all arpack++ header files.
 # SUPERLU_DIR and UMFPACK_DIR must be set to ARPACKPP_INC.
 
-ARPACKPP_DIR = $(HOME)/arpack++
-ARPACKPP_INC = $(ARPACKPP_DIR)/include
-SUPERLU_DIR  = $(ARPACKPP_INC)
-UMFPACK_DIR  = $(ARPACKPP_INC)
+ARPACK_INC   = %%LOCALBASE%%/include
+ARPACKPP_DIR = %%LOCALBASE%%
+ARPACKPP_INC = $(ARPACKPP_DIR)/include/ARPACK++
+SUPERLU_DIR  = %%LOCALBASE%%/include/superlu
+UMFPACK_DIR  = %%LOCALBASE%%/include/UMFPACK
 
 # Defining ARPACK, LAPACK, UMFPACK, SUPERLU, BLAS and FORTRAN libraries.
 # See the arpack++ manual or the README file for directions on how to 
@@ -33,31 +35,26 @@
 # Other libraries should be defined if the user intends to compile
 # arpack++ on another environment.
 
-ARPACK_LIB   = $(HOME)/lib/arpack_$(PLAT).a
-LAPACK_LIB   = /opt/LAPACK/lapack_$(PLAT).a
-UMFPACK_LIB  = $(HOME)/lib/umfpack_$(PLAT).a
-SUPERLU_LIB  = $(HOME)/lib/superlu_$(PLAT).a
-BLAS_LIB     = /opt/LAPACK/blas_$(PLAT).a 
-FORTRAN_LIBS = /opt/SUNWspro/SC4.0/lib/libF77.a \
-               /opt/SUNWspro/SC4.0/lib/libM77.a \
-               /opt/SUNWspro/SC4.0/lib/libsunmath.a
+ARPACK_LIB   = %%LOCALBASE%%/lib/libarpack.a
+LAPACK_LIB   = %%LOCALBASE%%/lib/liblapack.a
+UMFPACK_LIB  = %%LOCALBASE%%/lib/libumfpack.a
+SUPERLU_LIB  = %%LOCALBASE%%/lib/libsuperlu.a
+BLAS_LIB     = %%LOCALBASE%%/lib/libf77blas.a %%LOCALBASE%%/lib/libatlas.a
+FORTRAN_LIBS = -lg2c
 
 # Defining g++ flags and directories.
 
-# CPP_WARNINGS = -fpermissive 
-CPP_WARNINGS = -Wall -ansi -pedantic-errors
+CPP_WARNINGS = -Wno-deprecated
 CPP_DEBUG    = -g
-CPP_OPTIM    = -O
-CPP_LIBS     = 
-CPP_INC      = /usr/local/include/g++-3
+#CPP_OPTIM    = -O
+CPP_LIBS     = -lm
+CPP_INC      = %%LOCALBASE%%/include
 
-CPP_FLAGS    = $(CPP_DEBUG) -D$(PLAT) -I$(ARPACKPP_INC) -I$(CPP_INC) \
-               $(CPP_WARNINGS)
+CPP_FLAGS    = $(CXXFLAGS) $(CPP_WARNINGS) -D$(PLAT) -I$(ARPACKPP_INC) -I$(CPP_INC)
 
 # Putting all libraries together.
 
-ALL_LIBS     = $(CPP_LIBS) $(ARPACK_LIB) $(LAPACK_LIB) \
-               $(BLAS_LIB) $(FORTRAN_LIBS) 
+ALL_LIBS     = $(ARPACK_LIB) $(LAPACK_LIB) $(BLAS_LIB) $(FORTRAN_LIBS) $(CPP_LIBS)
 
 # defining paths.