bbef76922a9e1bced86dac55a3c27bca038a9efa
[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
23 include $(top_srcdir)/Makefile.incl.am
24
25 SLINT_CXX_SOURCES = \
26 src/cpp/SLintContext.cpp \
27 src/cpp/SLintChecker.cpp \
28 src/cpp/SLintVisitor.cpp \
29 src/cpp/SLint.cpp \
30 src/cpp/SLintOptions.cpp \
31 src/cpp/SciFile.cpp \
32 src/cpp/FileException.cpp \
33 src/cpp/PCREMatcher.cpp \
34 src/cpp/PCREException.cpp \
35 src/cpp/XMLConfig.cpp \
36 src/cpp/SLintXMLException.cpp \
37 src/cpp/SLintScilabResult.cpp \
38 src/cpp/FunctionNameChecker.cpp \
39 src/cpp/FunctionArgsChecker.cpp \
40 src/cpp/VariableNameChecker.cpp \
41 src/cpp/VariablesChecker.cpp \
42 src/cpp/UselessArgChecker.cpp \
43 src/cpp/UselessRetChecker.cpp \
44 src/cpp/RedefinitionChecker.cpp \
45 src/cpp/SingleInstrChecker.cpp \
46 src/cpp/EmptyBlockChecker.cpp \
47 src/cpp/SemicolonAtEOLChecker.cpp \
48 src/cpp/MopenMcloseChecker.cpp \
49 src/cpp/PrintfChecker.cpp \
50 src/cpp/TodoChecker.cpp \
51 src/cpp/McCabeChecker.cpp \
52 src/cpp/McCabeVisitor.cpp \
53 src/cpp/DecimalChecker.cpp \
54 src/cpp/LineLengthChecker.cpp \
55 src/cpp/LinesCountChecker.cpp \
56 src/cpp/IllegalCallsChecker.cpp \
57 src/cpp/NaNChecker.cpp \
58 src/cpp/EqEqChecker.cpp \
59 src/cpp/UselessOpChecker.cpp \
60 src/cpp/UnreachableCodeChecker.cpp \
61 src/cpp/DeprecatedChecker.cpp \
62 src/cpp/SelectChecker.cpp \
63 src/cpp/ImplicitListChecker.cpp \
64 src/cpp/StructChecker.cpp \
65 src/cpp/LoadSaveChecker.cpp \
66 src/cpp/OldNotChecker.cpp \
67 src/cpp/SpacesAroundOpChecker.cpp \
68 src/cpp/BreaksInLoopChecker.cpp \
69 src/cpp/NestedBlocksChecker.cpp \
70 src/cpp/BracketedExpChecker.cpp \
71 src/cpp/NotNotChecker.cpp \
72 src/cpp/SpacesInArgsChecker.cpp \
73 src/cpp/GlobalKeywordChecker.cpp \
74 src/cpp/StatInCondChecker.cpp \
75 src/cpp/CommentRatioChecker.cpp \
76 src/cpp/FunctionArgsOrderChecker.cpp \
77 src/cpp/FunctionTestReturnChecker.cpp \
78 src/cpp/ReturnsCountChecker.cpp \
79 src/cpp/XMLtools.cpp \
80 src/cpp/SLintXmlResult.cpp \
81 src/cpp/AnalysisConfiguration.cpp \
82 src/cpp/AnalysisConfigurationType.cpp \
83 src/cpp/AnalysisRuleParameterType.cpp \
84 src/cpp/AnalysisRuleType.cpp \
85 src/cpp/ExcludedProjectFileType.cpp \
86 src/cpp/RuleLinkType.cpp \
87 src/cpp/Standard.cpp \
88 src/cpp/StandardRuleParameterType.cpp \
89 src/cpp/StandardRuleParameterValueType.cpp \
90 src/cpp/StandardRuleType.cpp \
91 src/cpp/StandardType.cpp \
92 src/cpp/ToolConfiguration.cpp \
93 src/cpp/ToolConfigurationType.cpp \
94 src/cpp/CNESException.cpp \
95 src/cpp/CNESConfig.cpp \
96 src/cpp/CNESResult.cpp
97
98 GATEWAY_CXX_SOURCES = \
99     sci_gateway/cpp/sci_slint.cpp
100
101 libscislint_la_CPPFLAGS = \
102     -I$(srcdir)/includes/ \
103     -I$(srcdir)/src/cpp/ \
104     -I$(top_srcdir)/modules/ast/includes/ast/ \
105     -I$(top_srcdir)/modules/ast/includes/exps/ \
106     -I$(top_srcdir)/modules/ast/includes/operations/ \
107     -I$(top_srcdir)/modules/ast/includes/parse/ \
108     -I$(top_srcdir)/modules/ast/includes/symbol/ \
109     -I$(top_srcdir)/modules/ast/includes/system_env/ \
110     -I$(top_srcdir)/modules/ast/includes/types/ \
111     -I$(top_srcdir)/modules/ast/includes/analysis/ \
112     -I$(top_srcdir)/modules/core/includes/ \
113     -I$(top_srcdir)/modules/api_scilab/includes/ \
114     -I$(top_srcdir)/modules/localization/includes/ \
115     -I$(top_srcdir)/modules/output_stream/includes/ \
116     -I$(top_srcdir)/modules/string/includes/ \
117     -I$(top_srcdir)/modules/fileio/includes/ \
118     -I$(top_srcdir)/modules/string/includes/ \
119     -I$(top_srcdir)/modules/dynamic_link/includes \
120     -I$(top_srcdir)/modules/threads/includes/ \
121     $(XML_FLAGS) \
122     $(PCRE_CFLAGS) \
123     $(SLINT_FLAGS) \
124     $(AM_CPPFLAGS)
125
126 pkglib_LTLIBRARIES = libscislint.la
127 noinst_LTLIBRARIES = libscislint-algo.la
128
129 libscislint_algo_la_SOURCES = $(SLINT_CXX_SOURCES)
130 libscislint_la_SOURCES = $(GATEWAY_CXX_SOURCES)
131 libscislint_algo_la_CPPFLAGS = $(libscislint_la_CPPFLAGS)
132
133 libscislint_la_LDFLAGS = $(AM_LDFLAGS)
134 libscislint_la_LIBADD = libscislint-algo.la $(XML_LIBS)
135
136 # For the code check (splint)
137 INCLUDE_FLAGS = $(libscislint_la_CPPFLAGS)
138
139 #### slint : include files ####
140 libscislint_la_includedir=$(pkgincludedir)
141
142 #### slint : gateway declaration ####
143 libscislint_la_sci_gatewaydir = $(mydatadir)/sci_gateway
144 libscislint_la_sci_gateway_DATA = sci_gateway/slint_gateway.xml