96b10e8eb08d8fc8a467e0627bf5c75539bebaf8
[scilab.git] / scilab / modules / umfpack / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
3 # Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
4 #
5 # This file must be used under the terms of the CeCILL.
6 # This source file is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution.  The terms
8 # are also available at
9 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10
11 modulename=umfpack
12
13 pkglib_LTLIBRARIES = libsciumfpack.la
14
15 if UMFPACK
16 noinst_LTLIBRARIES = libsciumfpack-algo.la
17 endif
18
19 libsciumfpack_la_LDFLAGS = $(AM_LDFLAGS)
20
21 #### umfpack : Conf files ####
22 libsciumfpack_la_rootdir = $(mydatadir)
23 libsciumfpack_la_root_DATA =  \
24 license.txt \
25  \
26  \
27 TAUCS_license.txt \
28 UMFPACK_license.txt
29
30 #### umfpack : init scripts ####
31 libsciumfpack_la_etcdir = $(mydatadir)/etc
32 libsciumfpack_la_etc_DATA = etc/umfpack.quit etc/umfpack.start
33
34 if UMFPACK
35
36 libsciumfpack_la_LDFLAGS += $(UMFPACK_LIB)
37 UMFPACK_C_SOURCES = src/c/taucs_scilab.c \
38 src/c/common_umfpack.c \
39 src/c/with_umfpack.c
40
41 GATEWAY_C_SOURCES =  sci_gateway/c/gw_umfpack.c \
42 sci_gateway/c/sci_res_with_prec.c \
43 sci_gateway/c/sci_taucs_chdel.c \
44 sci_gateway/c/sci_taucs_chfact.c \
45 sci_gateway/c/sci_taucs_chget.c \
46 sci_gateway/c/sci_taucs_chinfo.c \
47 sci_gateway/c/sci_taucs_chsolve.c \
48 sci_gateway/c/sci_umf_ludel.c \
49 sci_gateway/c/sci_umf_lufact.c \
50 sci_gateway/c/sci_umf_luget.c \
51 sci_gateway/c/sci_umf_luinfo.c \
52 sci_gateway/c/sci_umf_lusolve.c \
53 sci_gateway/c/sci_umfpack.c
54
55 #### umfpack : gateway declaration ####
56 libsciumfpack_la_sci_gatewaydir = $(mydatadir)/sci_gateway
57 libsciumfpack_la_sci_gateway_DATA = sci_gateway/umfpack_gateway.xml
58
59 libsciumfpack_algo_la_SOURCES = $(UMFPACK_C_SOURCES)
60 libsciumfpack_la_SOURCES = $(GATEWAY_C_SOURCES)
61 libsciumfpack_algo_la_CPPFLAGS = $(libsciumfpack_la_CPPFLAGS)
62
63 # For the code check (splint)
64 CHECK_SRC= $(libsciumfpack_la_SOURCES)
65 INCLUDE_FLAGS = $(libsciumfpack_la_CPPFLAGS)
66
67 libsciumfpack_la_LIBADD =  libsciumfpack-algo.la
68
69 libsciumfpack_la_CPPFLAGS= -I$(srcdir)/includes/ \
70                         -I$(srcdir)/src/c/ \
71                         -I$(top_srcdir)/modules/dynamic_link/includes/ \
72                         -I$(top_srcdir)/modules/output_stream/includes/ \
73                         -I$(top_srcdir)/modules/api_scilab/includes/ \
74                         -I$(top_srcdir)/modules/localization/includes/ \
75                         -I$(top_srcdir)/modules/mexlib/includes/ \
76                         $(AM_CPPFLAGS)
77
78 else
79
80 UMFPACK_C_SOURCES = src/noumfpack/noumfpack.c
81
82 libsciumfpack_la_SOURCES = $(UMFPACK_C_SOURCES)
83 libsciumfpack_la_CPPFLAGS= -I$(top_srcdir)/modules/api_scilab/includes/ \
84 -I$(top_srcdir)/modules/umfpack/includes/ \
85 -I$(top_srcdir)/modules/output_stream/includes/ \
86 -I$(top_srcdir)/modules/localization/includes/ \
87 $(AM_CPPFLAGS)
88 endif
89
90 include $(top_srcdir)/Makefile.incl.am