special_functions, statistics, xml must have a dynamic library, fix error message...
[scilab.git] / scilab / modules / xml / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) 2011 - DIGITEO - Calixte DENIZET
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
12 #### Target ######
13 modulename=xml
14
15
16 #### xml : Conf files ####
17 libscixml_la_rootdir = $(mydatadir)
18 libscixml_la_root_DATA =  license.txt 
19
20
21 #### scinotes : init scripts & configuration files ####
22 libscixml_la_etcdir = $(mydatadir)/etc
23 libscixml_la_etc_DATA = etc/xml.quit \
24                 etc/xml.start
25
26 include $(top_srcdir)/Makefile.incl.am
27
28 XML_JNI_SOURCES = 
29
30 XML_C_SOURCES = src/c/XMLMlistsManagement.c
31
32 XML_CPP_SOURCES = src/cpp/VariableScope.cpp \
33           src/cpp/XMLObject.cpp \
34           src/cpp/XMLDocument.cpp \
35           src/cpp/XMLElement.cpp \
36           src/cpp/XMLAttr.cpp \
37           src/cpp/XMLNs.cpp \
38           src/cpp/XMLNodeList.cpp \
39           src/cpp/XMLNodeSet.cpp \
40           src/cpp/XMLXPath.cpp \
41           src/cpp/XMLList.cpp \
42           src/cpp/XMLNotHandledElement.cpp \
43           src/cpp/XMLValidation.cpp \
44           src/cpp/XMLValidationDTD.cpp \
45           src/cpp/XMLValidationSchema.cpp \
46           src/cpp/XMLValidationRelaxNG.cpp
47
48 GATEWAY_C_SOURCES = sci_gateway/c/gw_xml.c
49
50 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_xmlRead.cpp \
51               sci_gateway/cpp/sci_xmlXPath.cpp \
52                       sci_gateway/cpp/sci_extraction.cpp \
53                       sci_gateway/cpp/sci_insertion.cpp \
54                       sci_gateway/cpp/sci_print.cpp \
55                       sci_gateway/cpp/sci_xmlGetOpenStreams.cpp \
56                       sci_gateway/cpp/sci_xmlClose.cpp \
57                       sci_gateway/cpp/sci_xmlDump.cpp \
58                       sci_gateway/cpp/sci_xmlReadStr.cpp \
59                       sci_gateway/cpp/sci_xmlFormat.cpp \
60                       sci_gateway/cpp/sci_percent_XMLList_e.cpp \
61                       sci_gateway/cpp/sci_percent_XMLAttr_e.cpp \
62                       sci_gateway/cpp/sci_percent_XMLList_size.cpp \
63                       sci_gateway/cpp/sci_percent_XMLAttr_size.cpp \
64                       sci_gateway/cpp/sci_percent_XMLList_length.cpp \
65                       sci_gateway/cpp/sci_percent_XMLAttr_length.cpp \
66                       sci_gateway/cpp/sci_percent_c_i_XMLAttr.cpp \
67                       sci_gateway/cpp/sci_percent_s_i_XMLList.cpp \
68                       sci_gateway/cpp/sci_xmlElement.cpp \
69                       sci_gateway/cpp/sci_xmlDocument.cpp \
70                       sci_gateway/cpp/sci_xmlNs.cpp \
71                       sci_gateway/cpp/sci_xmlAddNs.cpp \
72                       sci_gateway/cpp/sci_xmlGetNsByHref.cpp \
73                       sci_gateway/cpp/sci_xmlGetNsByPrefix.cpp \
74                       sci_gateway/cpp/sci_xmlWrite.cpp \
75                       sci_gateway/cpp/sci_percent_foo_i_XMLList.cpp \
76                       sci_gateway/cpp/sci_xmlValidationFile.cpp \
77                       sci_gateway/cpp/sci_xmlValidate.cpp \
78                       sci_gateway/cpp/sci_xmlIsValidObject.cpp \
79                       sci_gateway/cpp/sci_xmlAsNumber.cpp \
80                       sci_gateway/cpp/sci_xmlAsText.cpp \
81                       sci_gateway/cpp/sci_xmlRemove.cpp \
82                       sci_gateway/cpp/sci_xmlSetAttributes.cpp
83
84 libscixml_la_CFLAGS= -I$(srcdir)/includes/ \
85              -I$(top_srcdir)/libs/MALLOC/includes/ \
86              -I$(top_srcdir)/modules/core/includes \
87              -I$(top_srcdir)/modules/api_scilab/includes \
88              -I$(top_srcdir)/modules/output_stream/includes \
89              -I$(top_srcdir)/modules/string/includes \
90              -I$(top_srcdir)/modules/fileio/includes
91
92
93 libscixml_la_CPPFLAGS = -I$(srcdir)/includes/ \
94     -I$(srcdir)/src/cpp/ \
95     -I$(srcdir)/src/c/ \
96     -I$(top_srcdir)/modules/api_scilab/includes \
97     -I$(top_srcdir)/modules/output_stream/includes \
98     -I$(top_srcdir)/modules/string/includes \
99     -I$(top_srcdir)/modules/fileio/includes \
100     $(XML_FLAGS)
101
102
103 pkglib_LTLIBRARIES = libscixml.la 
104 noinst_LTLIBRARIES = libscixml-algo.la 
105
106 libscixml_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
107
108 libscixml_algo_la_SOURCES = $(XML_C_SOURCES) $(XML_JNI_SOURCES) $(XML_CPP_SOURCES)
109 libscixml_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) 
110 libscixml_algo_la_CFLAGS = $(libscixml_la_CFLAGS)
111 libscixml_algo_la_CPPFLAGS = $(libscixml_la_CPPFLAGS)
112
113 libscixml_la_LIBADD = libscixml-algo.la
114
115 # For the code check (splint)
116 CHECK_SRC= $(XML_C_SOURCES) $(GATEWAY_C_SOURCES)
117 INCLUDE_FLAGS = $(libscixml_la_CFLAGS)
118
119 #### xml : include files ####
120 libscixml_la_includedir=$(pkgincludedir)
121
122 #### xml : gateway declaration ####
123 libscixml_la_sci_gatewaydir = $(mydatadir)/sci_gateway
124 libscixml_la_sci_gateway_DATA = sci_gateway/xml_gateway.xml