Debian Codegraph @

tests/Makefile.template

raw
1 #----------------------------------------------------------
2 # Parameters to be configured by the user
3
4 # root for the blas library, for ex. /home/foo/ATLAS/lib/Linux_P4SSE2
5 BLASROOT =
6
7 # ATLAS BLAS users : uncomment these lines:
8 #CXXFLAGS+=-D__LINBOX_HAVE_CBLAS
9 #LOADLIBES+=-L${BLASROOT} -lcblas -latlas
10
11 # GotoBlas BLAS users : uncomment this line:
12 #LOADLIBES+=-L${BLASROOT} -lgoto
13
14 # Other BLAS users, uncomment this line:
15 #LOADLIBES+=-L${BLASROOT} -lcblas
16
17 # architecture parameter for gcc:
18 #ARCH = -march=pentium3
19 #ARCH = -march=pentium4
20 #ARCH = -march=athlon
21 #ARCH = -march=opteron
22 #ARCH = -m64 -mtune=k8
23
24 # Givaro/GMP root (only necessary for compiling the regression tests testeur_fgemm, testeur_lqup and testeur_ftrsm)
25 #GIVARO_ROOT=
26 #GMP_ROOT=
27 #INCLUDES+= -I ${GIVARO_ROOT}/include -I ${GMP_ROOT}/include
28 #LOADLIBES+= -L ${GIVARO_ROOT}/lib -lgivaro -L ${GMP_ROOT}/lib -lgmp -lgmpxx
29
30 #----------------------------------------------------------
31
32 OPTFLAGS+=-O3
33 #OPTFLAGS+=-g
34 OPTFLAGS+= ${ARCH}
35
36 CXXFLAGS+=${OPTFLAGS}
37
38 INCLUDES+=-I. -I../include
39
40
41 CXX=g++ ${INCLUDES}
42
43 all: test-fgemm test-invert test-det test-rank test-charpoly test-lqup test-nullspace dense_generator
44
45 regression: testeur_fgemm testeur_lqup testeur_ftrsm
46
47 clean:
48 rm -f test-fgemm test-fgemv test-invert test-det test-rank test-charpoly test-lqup dense_generator testeur_fgemm testeur_lqup testeur_ftrsm