SLint: add xml conf files
[scilab.git] / scilab / modules / slint / Makefile.am
1 ##
2 ##  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 ##  Copyright (C) 2007-2008 - DIGITEO - Bruno JOFRET
4 ##  Copyright (C) 2007-2008 - DIGITEO - Antoine ELIAS
5 ##
6 ##  This file must be used under the terms of the CeCILL.
7 ##  This source file is licensed as described in the file COPYING, which
8 ##  you should have received as part of this distribution.  The terms
9 ##  are also available at
10 ##  http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 ##
12 ##
13
14 #### Target ######
15 modulename=slint
16
17 ####io : init scripts ####
18 libscislint_la_etcdir = $(mydatadir)/etc
19 libscislint_la_etc_DATA = \
20     etc/slint.quit \
21     etc/slint.start \
22     etc/slint.xml \
23     etc/cnes_analysis_conf.xml \
24     etc/cnes_tool_conf.xml
25
26 include $(top_srcdir)/Makefile.incl.am
27
28 SLINT_CXX_SOURCES = \
29 src/cpp/SLintContext.cpp \
30 src/cpp/SLintChecker.cpp \
31 src/cpp/SLintVisitor.cpp \
32 src/cpp/SLint.cpp \
33 src/cpp/SLintOptions.cpp \
34 src/cpp/SciFile.cpp \
35 src/cpp/FileException.cpp \
36 src/cpp/PCREMatcher.cpp \
37 src/cpp/PCREException.cpp \
38 src/cpp/XMLConfig.cpp \
39 src/cpp/SLintXMLException.cpp \
40 src/cpp/SLintScilabResult.cpp \
41 src/cpp/FunctionNameChecker.cpp \
42 src/cpp/FunctionArgsChecker.cpp \
43 src/cpp/VariableNameChecker.cpp \
44 src/cpp/VariablesChecker.cpp \
45 src/cpp/UselessArgChecker.cpp \
46 src/cpp/UselessRetChecker.cpp \
47 src/cpp/RedefinitionChecker.cpp \
48 src/cpp/SingleInstrChecker.cpp \
49 src/cpp/EmptyBlockChecker.cpp \
50 src/cpp/SemicolonAtEOLChecker.cpp \
51 src/cpp/MopenMcloseChecker.cpp \
52 src/cpp/PrintfChecker.cpp \
53 src/cpp/TodoChecker.cpp \
54 src/cpp/McCabeChecker.cpp \
55 src/cpp/McCabeVisitor.cpp \
56 src/cpp/DecimalChecker.cpp \
57 src/cpp/LineLengthChecker.cpp \
58 src/cpp/LinesCountChecker.cpp \
59 src/cpp/IllegalCallsChecker.cpp \
60 src/cpp/NaNChecker.cpp \
61 src/cpp/EqEqChecker.cpp \
62 src/cpp/UselessOpChecker.cpp \
63 src/cpp/UnreachableCodeChecker.cpp \
64 src/cpp/DeprecatedChecker.cpp \
65 src/cpp/SelectChecker.cpp \
66 src/cpp/ImplicitListChecker.cpp \
67 src/cpp/StructChecker.cpp \
68 src/cpp/LoadSaveChecker.cpp \
69 src/cpp/OldNotChecker.cpp \
70 src/cpp/SpacesAroundOpChecker.cpp \
71 src/cpp/BreaksInLoopChecker.cpp \
72 src/cpp/NestedBlocksChecker.cpp \
73 src/cpp/BracketedExpChecker.cpp \
74 src/cpp/NotNotChecker.cpp \
75 src/cpp/SpacesInArgsChecker.cpp \
76 src/cpp/GlobalKeywordChecker.cpp \
77 src/cpp/StatInCondChecker.cpp \
78 src/cpp/CommentRatioChecker.cpp \
79 src/cpp/FunctionArgsOrderChecker.cpp \
80 src/cpp/FunctionTestReturnChecker.cpp \
81 src/cpp/ReturnsCountChecker.cpp \
82 src/cpp/XMLtools.cpp \
83 src/cpp/SLintXmlResult.cpp \
84 src/cpp/AnalysisConfiguration.cpp \
85 src/cpp/AnalysisConfigurationType.cpp \
86 src/cpp/AnalysisRuleParameterType.cpp \
87 src/cpp/AnalysisRuleType.cpp \
88 src/cpp/ExcludedProjectFileType.cpp \
89 src/cpp/RuleLinkType.cpp \
90 src/cpp/Standard.cpp \
91 src/cpp/StandardRuleParameterType.cpp \
92 src/cpp/StandardRuleParameterValueType.cpp \
93 src/cpp/StandardRuleType.cpp \
94 src/cpp/StandardType.cpp \
95 src/cpp/ToolConfiguration.cpp \
96 src/cpp/ToolConfigurationType.cpp \
97 src/cpp/CNESException.cpp \
98 src/cpp/CNESConfig.cpp \
99 src/cpp/CNESResult.cpp
100
101 GATEWAY_CXX_SOURCES = \
102     sci_gateway/cpp/sci_slint.cpp
103
104 libscislint_la_CPPFLAGS = \
105     -I$(srcdir)/includes/ \
106     -I$(srcdir)/src/cpp/ \
107     -I$(top_srcdir)/modules/ast/includes/ast/ \
108     -I$(top_srcdir)/modules/ast/includes/exps/ \
109     -I$(top_srcdir)/modules/ast/includes/operations/ \
110     -I$(top_srcdir)/modules/ast/includes/parse/ \
111     -I$(top_srcdir)/modules/ast/includes/symbol/ \
112     -I$(top_srcdir)/modules/ast/includes/system_env/ \
113     -I$(top_srcdir)/modules/ast/includes/types/ \
114     -I$(top_srcdir)/modules/ast/includes/analysis/ \
115     -I$(top_srcdir)/modules/core/includes/ \
116     -I$(top_srcdir)/modules/api_scilab/includes/ \
117     -I$(top_srcdir)/modules/localization/includes/ \
118     -I$(top_srcdir)/modules/output_stream/includes/ \
119     -I$(top_srcdir)/modules/string/includes/ \
120     -I$(top_srcdir)/modules/fileio/includes/ \
121     -I$(top_srcdir)/modules/string/includes/ \
122     -I$(top_srcdir)/modules/dynamic_link/includes \
123     -I$(top_srcdir)/modules/threads/includes/ \
124     $(XML_FLAGS) \
125     $(PCRE_CFLAGS) \
126     $(SLINT_FLAGS) \
127     $(AM_CPPFLAGS)
128
129 pkglib_LTLIBRARIES = libscislint.la
130 noinst_LTLIBRARIES = libscislint-algo.la
131
132 libscislint_algo_la_SOURCES = $(SLINT_CXX_SOURCES)
133 libscislint_la_SOURCES = $(GATEWAY_CXX_SOURCES)
134 libscislint_algo_la_CPPFLAGS = $(libscislint_la_CPPFLAGS)
135
136 libscislint_la_LDFLAGS = $(AM_LDFLAGS)
137 libscislint_la_LIBADD = libscislint-algo.la $(XML_LIBS)
138
139 # For the code check (splint)
140 INCLUDE_FLAGS = $(libscislint_la_CPPFLAGS)
141
142 #### slint : include files ####
143 libscislint_la_includedir=$(pkgincludedir)
144
145 #### slint : gateway declaration ####
146 libscislint_la_sci_gatewaydir = $(mydatadir)/sci_gateway
147 libscislint_la_sci_gateway_DATA = sci_gateway/slint_gateway.xml