Bug Fix #14415 - Corrected some spellings error in help pages
[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 # Copyright (C) 2012 - 2016 - Scilab Enterprises
6 #
7 # This file is hereby licensed under the terms of the GNU GPL v2.0,
8 # pursuant to article 5.3.4 of the CeCILL v.2.1.
9 # This file was originally licensed under the terms of the CeCILL v2.1,
10 # and continues to be available under such terms.
11 # For more information, see the COPYING file which you should have received
12 # along with this program.
13
14 modulename=umfpack
15
16 pkglib_LTLIBRARIES = libsciumfpack.la
17
18 if UMFPACK
19 noinst_LTLIBRARIES = libsciumfpack-algo.la
20 endif
21
22 libsciumfpack_la_LDFLAGS = $(AM_LDFLAGS)
23
24 #### umfpack : Conf files ####
25 libsciumfpack_la_rootdir = $(mydatadir)
26 libsciumfpack_la_root_DATA =  \
27 license.txt \
28 TAUCS_license.txt \
29 UMFPACK_license.txt
30
31 #### umfpack : init scripts ####
32 libsciumfpack_la_etcdir = $(mydatadir)/etc
33 libsciumfpack_la_etc_DATA = \
34     etc/umfpack.quit \
35     etc/umfpack.start
36
37 if UMFPACK
38
39 UMFPACK_C_SOURCES = \
40     src/c/taucs_scilab.c \
41     src/c/common_umfpack.c \
42     src/c/with_umfpack.c
43
44 GATEWAY_C_SOURCES = \
45     sci_gateway/c/sci_res_with_prec.c \
46     sci_gateway/c/sci_taucs_chdel.c \
47     sci_gateway/c/sci_taucs_chfact.c \
48     sci_gateway/c/sci_taucs_chget.c \
49     sci_gateway/c/sci_taucs_chinfo.c \
50     sci_gateway/c/sci_taucs_chsolve.c \
51     sci_gateway/c/sci_umf_ludel.c \
52     sci_gateway/c/sci_umf_lufact.c \
53     sci_gateway/c/sci_umf_luget.c \
54     sci_gateway/c/sci_umf_luinfo.c \
55     sci_gateway/c/sci_umf_lusolve.c \
56     sci_gateway/c/sci_umfpack.c
57
58 #### umfpack : gateway declaration ####
59 libsciumfpack_la_sci_gatewaydir = $(mydatadir)/sci_gateway
60 libsciumfpack_la_sci_gateway_DATA = sci_gateway/umfpack_gateway.xml
61
62 libsciumfpack_algo_la_SOURCES = $(UMFPACK_C_SOURCES)
63 libsciumfpack_la_SOURCES = $(GATEWAY_C_SOURCES)
64 libsciumfpack_algo_la_CPPFLAGS = $(libsciumfpack_la_CPPFLAGS)
65
66 # For the code check (splint)
67 CHECK_SRC= $(libsciumfpack_la_SOURCES)
68 INCLUDE_FLAGS = $(libsciumfpack_la_CPPFLAGS)
69
70 libsciumfpack_la_LIBADD =  libsciumfpack-algo.la
71
72 libsciumfpack_la_LIBADD += $(UMFPACK_LIB)
73
74 if IS_MACOSX
75 # Crappy workaround to avoid an undefined symbol while using umfpack features
76 # For some unknown reasons, -lumfpack will not load cholmod & colamd
77 # libsciumfpack_la_LIBADD += -lcholmod -lcolamd
78 endif
79
80 libsciumfpack_la_CPPFLAGS= \
81     -I$(srcdir)/includes/ \
82     -I$(srcdir)/src/c/ \
83     -I$(top_srcdir)/modules/ast/includes/ast/ \
84     -I$(top_srcdir)/modules/ast/includes/exps/ \
85     -I$(top_srcdir)/modules/ast/includes/operations/ \
86     -I$(top_srcdir)/modules/ast/includes/parse/ \
87     -I$(top_srcdir)/modules/ast/includes/symbol/ \
88     -I$(top_srcdir)/modules/ast/includes/system_env/ \
89     -I$(top_srcdir)/modules/ast/includes/types/ \
90     -I$(top_srcdir)/modules/ast/includes/analysis/ \
91     -I$(top_srcdir)/modules/dynamic_link/includes/ \
92     -I$(top_srcdir)/modules/output_stream/includes/ \
93     -I$(top_srcdir)/modules/api_scilab/includes/ \
94     -I$(top_srcdir)/modules/localization/includes/ \
95     -I$(top_srcdir)/modules/mexlib/includes/ \
96     $(UMFPACK_CFLAGS) \
97     $(AM_CPPFLAGS)
98
99 else
100
101 UMFPACK_C_SOURCES = src/noumfpack/noumfpack.c
102
103 libsciumfpack_la_SOURCES = $(UMFPACK_C_SOURCES)
104 libsciumfpack_la_CPPFLAGS= \
105     -I$(top_srcdir)/modules/api_scilab/includes/ \
106     -I$(top_srcdir)/modules/umfpack/includes/ \
107     -I$(top_srcdir)/modules/output_stream/includes/ \
108     -I$(top_srcdir)/modules/localization/includes/ \
109     $(UMFPACK_CFLAGS) \
110     $(AM_CPPFLAGS)
111 endif
112
113 include $(top_srcdir)/Makefile.incl.am