Fix the library linking declaration
[scilab.git] / scilab / modules / matio / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2008 - INRIA - Vincent COUVERT <vincent.couvert@inria.fr>
3 # Copyright (C) 2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
4
5 # This file is distributed under the same license as the Scilab package.
6
7 include $(top_srcdir)/Makefile.incl.am
8
9 if MATIO
10
11 #### List of the gateway files ####
12 GATEWAY_C_SOURCES = sci_gateway/c/gw_matio.c \
13                     sci_gateway/c/sci_matfile_open.c \
14                     sci_gateway/c/sci_matfile_close.c \
15                     sci_gateway/c/sci_matfile_listvar.c \
16                     sci_gateway/c/sci_matfile_varreadnext.c \
17                     sci_gateway/c/sci_matfile_varwrite.c
18
19 #### List of the C files ####
20 MATIO_C_SOURCES = src/c/matfile_manager.c \
21                   src/c/CreateMatlabVariable.c \
22                   src/c/CreateBooleanVariable.c \
23                   src/c/CreateCharVariable.c \
24                   src/c/CreateDoubleVariable.c \
25                   src/c/CreateIntegerVariable.c \
26                   src/c/CreateHyperMatrixVariable.c \
27                   src/c/CreateStructVariable.c \
28                   src/c/CreateSparseVariable.c \
29                   src/c/CreateCellVariable.c \
30                   src/c/GetMatlabVariable.c \
31                   src/c/GetDoubleVariable.c \
32                   src/c/GetCharVariable.c \
33                   src/c/GetIntegerVariable.c \
34                   src/c/GetMlistVariable.c \
35                   src/c/GetCellVariable.c \
36                   src/c/GetStructVariable.c \
37                   src/c/GetSparseVariable.c
38
39 libscimatio_la_LDFLAGS = $(AM_LDFLAGS)
40
41 else
42
43 MATIO_C_SOURCES = src/nomatio/nomatio.c
44
45 endif
46
47 libscimatio_la_CPPFLAGS = -I$(srcdir)/includes/ \
48                         -I$(srcdir)/src/c/ \
49                         -I$(srcdir)/src/matio/ \
50                         -I$(top_srcdir)/modules/localization/includes/ \
51                         -I$(top_srcdir)/modules/output_stream/includes/ \
52                         -I$(top_srcdir)/modules/string/includes/ \
53                         -I$(top_srcdir)/modules/api_scilab/includes/ \
54                         $(MATIO_CFLAGS) \
55                         $(AM_CPPFLAGS)
56
57 pkglib_LTLIBRARIES = libscimatio.la
58 noinst_LTLIBRARIES = libscimatio-algo.la
59
60 libscimatio_algo_la_SOURCES = $(MATIO_C_SOURCES)
61 libscimatio_la_SOURCES = $(GATEWAY_C_SOURCES)
62 libscimatio_algo_la_CPPFLAGS = $(libscimatio_la_CPPFLAGS)
63
64 # For the code check (splint)
65 CHECK_SRC= $(libscimatio_la_SOURCES)
66 INCLUDE_FLAGS = $(libscimatio_la_CPPFLAGS)
67
68 #### Target ######
69 modulename=matio
70
71 #### matio : Conf files ####
72 libscimatio_la_rootdir = $(mydatadir)
73 libscimatio_la_root_DATA =  license.txt 
74
75 #### matio : init scripts ####
76 libscimatio_la_etcdir = $(mydatadir)/etc
77 libscimatio_la_etc_DATA = etc/matio.quit etc/matio.start
78
79 #### matio : gateway declaration ####
80 libscimatio_la_sci_gatewaydir = $(mydatadir)/sci_gateway
81 libscimatio_la_sci_gateway_DATA = sci_gateway/matio_gateway.xml
82
83 libscimatio_la_LIBADD = libscimatio-algo.la $(MATIO_LIBS)