Fix the library linking declaration
[scilab.git] / scilab / modules / xml / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) 2012 - Scilab Enterprises - 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.1-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_CXX_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_CXX_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_xmlGetOpenDocs.cpp \
56                       sci_gateway/cpp/sci_xmlDelete.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                       sci_gateway/cpp/sci_xmlName.cpp \
84                       sci_gateway/cpp/sci_xmlAppend.cpp \
85                       sci_gateway/cpp/sci_htmlRead.cpp \
86                       sci_gateway/cpp/sci_htmlReadStr.cpp \
87                       sci_gateway/cpp/sci_htmlWrite.cpp \
88                       sci_gateway/cpp/sci_htmlDump.cpp
89
90 libscixml_la_CPPFLAGS = -I$(srcdir)/includes/ \
91     -I$(srcdir)/src/cpp/ \
92     -I$(srcdir)/src/c/ \
93     -I$(top_srcdir)/modules/core/includes/ \
94     -I$(top_srcdir)/modules/api_scilab/includes/ \
95     -I$(top_srcdir)/modules/localization/includes/ \
96     -I$(top_srcdir)/modules/output_stream/includes/ \
97     -I$(top_srcdir)/modules/string/includes/ \
98     -I$(top_srcdir)/modules/fileio/includes/ \
99     $(XML_FLAGS) \
100     $(AM_CPPFLAGS)
101
102
103 pkglib_LTLIBRARIES = libscixml.la
104 noinst_LTLIBRARIES = libscixml-algo.la
105
106 libscixml_algo_la_SOURCES = $(XML_C_SOURCES) $(XML_JNI_SOURCES) $(XML_CXX_SOURCES)
107 libscixml_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)
108 libscixml_algo_la_CPPFLAGS = $(libscixml_la_CPPFLAGS)
109
110 libscixml_la_LDFLAGS = $(AM_LDFLAGS)
111 libscixml_la_LIBADD = libscixml-algo.la $(XML_LIBS)
112
113 # For the code check (splint)
114 CHECK_SRC= $(XML_C_SOURCES) $(GATEWAY_C_SOURCES)
115 INCLUDE_FLAGS = $(libscixml_la_CPPFLAGS)
116
117 #### xml : include files ####
118 libscixml_la_includedir=$(pkgincludedir)
119
120 #### xml : gateway declaration ####
121 libscixml_la_sci_gatewaydir = $(mydatadir)/sci_gateway
122 libscixml_la_sci_gateway_DATA = sci_gateway/xml_gateway.xml