Blame view

fvn_sparse/UFconfig/UFconfig.mk 2.03 KB
422234dc3   daniau   git-svn-id: https...
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
  # This is a fvn specific UFconfig.mk file
  
  
  include $(BTREE)/Make.inc
  
  # These are defined in Make.inc but could be overriden here
  #CC = gcc 
  #CFLAGS = -O2 -m64 -fpic
  
  # ranlib, and ar, for generating libraries
  RANLIB = ranlib
  AR = ar cr
  
  # delete and rename a file
  RM = rm -f
  MV = mv -f
  
  # Fortran compiler (not normally required)
  F77 = $(F95)
  F77FLAGS = $(F95FLAGS)
  F77LIB =
  
  # C and Fortran libraries
  # No use to repeat BLAS here as it should be defined in Make.inc
  # but in case we are using acml we include it here
  LIB = -lm $(ACML) $(EXTRALIBS) 
  
  XERBLA = 
  
  UMFPACK_CONFIG = 
  
  #------------------------------------------------------------------------------
  # Linux
  #------------------------------------------------------------------------------
  
  # Using default compilers:
  # CC = gcc
  # CFLAGS = -O3
  
  # alternatives:
  # CFLAGS = -g -fexceptions \
     	-Wall -W -Wshadow -Wmissing-prototypes -Wstrict-prototypes \
      	-Wredundant-decls -Wnested-externs -Wdisabled-optimization -ansi
  # CFLAGS = -O3 -fexceptions \
     	-Wall -W -Werror -Wshadow -Wmissing-prototypes -Wstrict-prototypes \
      	-Wredundant-decls -Wnested-externs -Wdisabled-optimization -ansi
  #CFLAGS = -O3 -fexceptions -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
  # CFLAGS = -O3
  
  # consider:
  # -fforce-addr -fmove-all-movables -freduce-all-givs -ftsp-ordering
  # -frename-registers -ffast-math -funroll-loops
  
  # Using the Goto BLAS:
  # BLAS = -lgoto -lfrtbegin -lg2c $(XERBLA) -lpthread
  
  # Using Intel's icc and ifort compilers:
  #   (does not work for mexFunctions unless you add a mexopts.sh file)
  # F77 = ifort
  # CC = icc
  # CFLAGS = -O3 -xN -vec_report=0
  # CFLAGS = -g
  # old (broken): CFLAGS = -ansi -O3 -ip -tpp7 -xW -vec_report0
  
  # 64bit:
  # F77FLAGS = -O -m64
  # CFLAGS = -O3 -fexceptions -m64
  # BLAS = -lgoto64 -lfrtbegin -lg2c -lpthread $(XERBLA)
  # LAPACK = -llapack64
  
  
  # SUSE Linux 10.1, AMD Opteron
  # F77 = gfortran
  # BLAS = -lgoto_opteron64 -lgfortran
  
  # SUSE Linux 10.1, Intel Pentium
  # F77 = gfortran
  # BLAS = -lgoto -lgfortran
  
  CLEAN = *.o *.obj *.ln *.bb *.bbg *.da *.tcov *.gcov gmon.out *.bak *.d