File: Makefile.CC

package info (click to toggle)
arpack++ 2.1-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,216 kB
  • ctags: 2,349
  • sloc: cpp: 19,093; ansic: 2,201; makefile: 508
file content (60 lines) | stat: -rw-r--r-- 2,001 bytes parent folder | download
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
# ARPACK++ v1.0 8/1/1997
# c++ interface to ARPACK code.
# This file contains some definitions used to compile arpack++ examples
# with the CC compiler on a SUN workstation.


# defining the machine.

MACHINE      = SUN4

# defining the compiler.

CPP          = CC

# 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)

# Defining ARPACK, LAPACK, UMFPACK, SUPERLU, BLAS and FORTRAN libraries.
# See arpack++ manual for directions on how to obtain arpack, umfpack and
# SuperLU packages. UMFPACK_LIB and SUPERLU_LIB must be declared only if
# umfpack and superlu are going to be used. BLAS and LAPACK fortran routines
# are distributed along with arpack fortran code, but the user should verify
# if optimized versions of these libraries are available before installing
# arpack. The fortran libraries described below are those required to link
# fortran and c++ code together in a Sun SparcStation. Other libraries
# should be defined if the user intends to compile arpack++ on another
# environment.

ARPACK_LIB   = $(HOME)/ARPACK/libarpack.a
LAPACK_LIB   = $(HOME)/LAPACK/liblapack.a
UMFPACK_LIB  = $(HOME)/UMFPACK/libumfpack.a
SUPERLU_LIB  = -lm $(HOME)/SuperLU/superlu.a
BLAS_LIB     = $(HOME)/LAPACK/libblas.a
FORTRAN_LIBS = -lm /opt/SUNWspro/SC4.2/lib/libF77.a \
               -lm /opt/SUNWspro/SC4.2/lib/libsunmath.a \
               -lm /opt/SUNWspro/SC4.2/lib/libM77.a \
               -lm /opt/SUNWspro/SC4.2/lib/libsunmath.a 

# defining CC flags.

CPP_DEBUG    = -g
CPP_OPTIM    = -O3
CPP_LIBS     =

CPP_FLAGS    = $(CPP_OPTIM) -D$(MACHINE) -I$(ARPACKPP_INC)

# putting all libraries together.

ALL_LIBS     = $(CPP_LIBS) $(ARPACK_LIB) $(LAPACK_LIB) \
               $(BLAS_LIB) $(FORTRAN_LIBS)

# defining paths.

vpath %.h  $(ARPACK_INC)