Fix Scilab minimal compilation after:
[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.1-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 TAUCS_license.txt \
26 UMFPACK_license.txt
27
28 #### umfpack : init scripts ####
29 libsciumfpack_la_etcdir = $(mydatadir)/etc
30 libsciumfpack_la_etc_DATA = etc/umfpack.quit etc/umfpack.start
31
32 if UMFPACK
33
34 UMFPACK_C_SOURCES = src/c/taucs_scilab.c \
35 src/c/common_umfpack.c \
36 src/c/with_umfpack.c
37
38 GATEWAY_C_SOURCES =  sci_gateway/c/gw_umfpack.c \
39 sci_gateway/c/sci_res_with_prec.c \
40 sci_gateway/c/sci_taucs_chdel.c \
41 sci_gateway/c/sci_taucs_chfact.c \
42 sci_gateway/c/sci_taucs_chget.c \
43 sci_gateway/c/sci_taucs_chinfo.c \
44 sci_gateway/c/sci_taucs_chsolve.c \
45 sci_gateway/c/sci_umf_ludel.c \
46 sci_gateway/c/sci_umf_lufact.c \
47 sci_gateway/c/sci_umf_luget.c \
48 sci_gateway/c/sci_umf_luinfo.c \
49 sci_gateway/c/sci_umf_lusolve.c \
50 sci_gateway/c/sci_umfpack.c
51
52 #### umfpack : gateway declaration ####
53 libsciumfpack_la_sci_gatewaydir = $(mydatadir)/sci_gateway
54 libsciumfpack_la_sci_gateway_DATA = sci_gateway/umfpack_gateway.xml
55
56 libsciumfpack_algo_la_SOURCES = $(UMFPACK_C_SOURCES)
57 libsciumfpack_la_SOURCES = $(GATEWAY_C_SOURCES)
58 libsciumfpack_algo_la_CPPFLAGS = $(libsciumfpack_la_CPPFLAGS)
59
60 # For the code check (splint)
61 CHECK_SRC= $(libsciumfpack_la_SOURCES)
62 INCLUDE_FLAGS = $(libsciumfpack_la_CPPFLAGS)
63
64 libsciumfpack_la_LIBADD =  libsciumfpack-algo.la
65
66 libsciumfpack_la_LIBADD += $(UMFPACK_LIB)
67
68 if IS_MACOSX
69 # Crappy workaround to avoid an undefined symbol while using umfpack features
70 # For some unknown reasons, -lumfpack will not load cholmod & colamd
71 # libsciumfpack_la_LIBADD += -lcholmod -lcolamd
72 endif
73
74 libsciumfpack_la_CPPFLAGS= -I$(srcdir)/includes/ \
75                         -I$(srcdir)/src/c/ \
76                         -I$(top_srcdir)/modules/dynamic_link/includes/ \
77                         -I$(top_srcdir)/modules/output_stream/includes/ \
78                         -I$(top_srcdir)/modules/api_scilab/includes/ \
79                         -I$(top_srcdir)/modules/localization/includes/ \
80                         -I$(top_srcdir)/modules/mexlib/includes/ \
81                         $(UMFPACK_CFLAGS) \
82                         $(AM_CPPFLAGS)
83
84 else
85
86 UMFPACK_C_SOURCES = src/noumfpack/noumfpack.c
87
88 libsciumfpack_la_SOURCES = $(UMFPACK_C_SOURCES)
89 libsciumfpack_la_CPPFLAGS= -I$(top_srcdir)/modules/api_scilab/includes/ \
90 -I$(top_srcdir)/modules/umfpack/includes/ \
91 -I$(top_srcdir)/modules/output_stream/includes/ \
92 -I$(top_srcdir)/modules/localization/includes/ \
93 $(UMFPACK_CFLAGS) \
94 $(AM_CPPFLAGS)
95 endif
96
97 include $(top_srcdir)/Makefile.incl.am