sparse: make tests pass
[scilab.git] / scilab / modules / sparse / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2006 - INRIA - Sylvestre LEDRU
3 #
4 # This file is distributed under the same license as the Scilab package.
5
6 SPARSE_C_SOURCES = \
7     src/c/spUtils.c \
8     src/c/lu.c \
9     src/c/spFactor.c \
10     src/c/spBuild.c \
11     src/c/spOutput.c \
12     src/c/spAllocate.c \
13     src/c/spSolve.c
14
15 SPARSE_FORTRAN_SOURCES = \
16     src/fortran/isort1.f \
17     src/fortran/spt.f \
18     src/fortran/sz2ptr.f \
19     src/fortran/spreshape.f \
20     src/fortran/ordmmd.f \
21         src/fortran/blkfc1.f \
22         src/fortran/blkfct.f \
23         src/fortran/blkslv.f \
24         src/fortran/inpnv.f \
25         src/fortran/symfct.f
26         
27 GATEWAY_CPP_SOURCES = \
28     sci_gateway/cpp/sparse_gw.cpp \
29     sci_gateway/cpp/sci_adj2sp.cpp \
30     sci_gateway/cpp/sci_full.cpp \
31     sci_gateway/cpp/sci_nnz.cpp \
32     sci_gateway/cpp/sci_sp2adj.cpp \
33     sci_gateway/cpp/sci_sparse.cpp \
34     sci_gateway/cpp/sci_spcompack.cpp \
35     sci_gateway/cpp/sci_spget.cpp \
36     sci_gateway/cpp/sci_spzeros.cpp \
37     sci_gateway/cpp/sci_spones.cpp \
38     sci_gateway/cpp/sci_lufact.cpp \
39     sci_gateway/cpp/sci_lusolve.cpp \
40     sci_gateway/cpp/sci_luget.cpp \
41     sci_gateway/cpp/sci_ludel.cpp \
42     sci_gateway/cpp/sci_ordmmd.cpp \
43     sci_gateway/cpp/sci_spchol.cpp \
44         sci_gateway/cpp/sci_sfinit.cpp \
45         sci_gateway/cpp/sci_symfcti.cpp \
46         sci_gateway/cpp/sci_bfinit.cpp \
47         sci_gateway/cpp/sci_inpnv.cpp \
48         sci_gateway/cpp/sci_blkfc1i.cpp \
49         sci_gateway/cpp/sci_blkslvi.cpp
50         
51 libscisparse_la_CPPFLAGS = \
52     -I$(srcdir)/src/c/ \
53     -I$(srcdir)/includes/ \
54     -I$(top_srcdir)/modules/ast/includes/ast/ \
55     -I$(top_srcdir)/modules/ast/includes/exps/ \
56     -I$(top_srcdir)/modules/ast/includes/operations/ \
57     -I$(top_srcdir)/modules/ast/includes/parse/ \
58     -I$(top_srcdir)/modules/ast/includes/symbol/ \
59     -I$(top_srcdir)/modules/ast/includes/system_env/ \
60     -I$(top_srcdir)/modules/ast/includes/types/ \
61     -I$(top_srcdir)/modules/console/includes/ \
62     -I$(top_srcdir)/modules/ast/includes/analysis/ \
63     -I$(top_srcdir)/modules/threads/includes/ \
64     -I$(top_srcdir)/modules/string/includes/ \
65     -I$(top_srcdir)/modules/dynamic_link/includes/ \
66     -I$(top_srcdir)/modules/localization/includes/ \
67     -I$(top_srcdir)/modules/output_stream/includes/ \
68     -I$(top_srcdir)/modules/elementary_functions/includes/ \
69     $(EIGEN_CPPFLAGS) \
70     $(AM_CPPFLAGS)
71
72 #-Isrc/c/
73 if MAINTAINER_MODE
74 pkglib_LTLIBRARIES = libscisparse.la
75 noinst_LTLIBRARIES = libscisparse-algo.la
76 else
77 noinst_LTLIBRARIES = libscisparse-algo.la libscisparse.la
78 endif
79
80 if IS_MACOSX
81 #enforce -O0 for some files due to macOS crash
82 src/fortran/blkfct.lo: src/fortran/blkfct.f
83         $(LIBTOOL) $(AM_V_lt)  --tag=F77 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) -O0 -c -o src/fortran/blkfct.lo src/fortran/blkfct.f
84
85 src/fortran/symfct.lo: src/fortran/symfct.f
86         $(LIBTOOL) $(AM_V_lt)  --tag=F77 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) -O0 -c -o src/fortran/symfct.lo src/fortran/symfct.f
87
88 src/fortran/ordmmd.lo: src/fortran/ordmmd.f
89         $(LIBTOOL) $(AM_V_lt)  --tag=F77 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) -O0 -c -o src/fortran/ordmmd.lo src/fortran/ordmmd.f
90 endif
91
92 libscisparse_algo_la_SOURCES = $(SPARSE_C_SOURCES) $(SPARSE_FORTRAN_SOURCES)
93 libscisparse_la_SOURCES = $(GATEWAY_CPP_SOURCES)
94 libscisparse_algo_la_CPPFLAGS = $(libscisparse_la_CPPFLAGS)
95
96 # For the code check (splint)
97 CHECK_SRC = $(SPARSE_C_SOURCES)
98 INCLUDE_FLAGS = $(libscisparse_la_CPPFLAGS)
99
100 libscisparse_la_LIBADD = libscisparse-algo.la $(FLIBS)
101
102 #### Target ######
103 modulename=sparse
104
105
106 #### sparse : Conf files ####
107 libscisparse_la_rootdir = $(mydatadir)
108 libscisparse_la_root_DATA =  license.txt
109
110
111 ####┬ásparse : init scripts ####
112 libscisparse_la_etcdir = $(mydatadir)/etc
113 libscisparse_la_etc_DATA = \
114     etc/sparse.quit \
115     etc/sparse.start
116
117 ####┬ásparse : gateway declaration ####
118 libscisparse_la_sci_gatewaydir = $(mydatadir)/sci_gateway
119 libscisparse_la_sci_gateway_DATA =
120
121 include $(top_srcdir)/Makefile.incl.am