provide check-code target to use splint
Sylvestre Ledru [Tue, 7 Oct 2008 15:54:17 +0000 (15:54 +0000)]
130 files changed:
scilab/Makefile.incl.am
scilab/libs/MALLOC/Makefile.am
scilab/libs/MALLOC/Makefile.in
scilab/libs/Makefile.am
scilab/libs/blas/Makefile.in
scilab/libs/doublylinkedlist/Makefile.am
scilab/libs/doublylinkedlist/Makefile.in
scilab/libs/dynamiclibrary/Makefile.am
scilab/libs/dynamiclibrary/Makefile.in
scilab/libs/hashtable/Makefile.am
scilab/libs/hashtable/Makefile.in
scilab/libs/lapack/Makefile.in
scilab/libs/libst/Makefile.am
scilab/libs/libst/Makefile.in
scilab/modules/Makefile.am
scilab/modules/Makefile.in
scilab/modules/action_binding/Makefile.am
scilab/modules/action_binding/Makefile.in
scilab/modules/arnoldi/Makefile.am
scilab/modules/arnoldi/Makefile.in
scilab/modules/boolean/Makefile.am
scilab/modules/boolean/Makefile.in
scilab/modules/cacsd/Makefile.am
scilab/modules/cacsd/Makefile.in
scilab/modules/compatibility_functions/Makefile.in
scilab/modules/completion/Makefile.am
scilab/modules/completion/Makefile.in
scilab/modules/console/Makefile.am
scilab/modules/console/Makefile.in
scilab/modules/core/Makefile.am
scilab/modules/core/Makefile.in
scilab/modules/data_structures/Makefile.am
scilab/modules/data_structures/Makefile.in
scilab/modules/demo_tools/Makefile.in
scilab/modules/development_tools/Makefile.in
scilab/modules/differential_equations/Makefile.am
scilab/modules/differential_equations/Makefile.in
scilab/modules/double/Makefile.am
scilab/modules/double/Makefile.in
scilab/modules/dynamic_link/Makefile.am
scilab/modules/dynamic_link/Makefile.in
scilab/modules/elementary_functions/Makefile.am
scilab/modules/elementary_functions/Makefile.in
scilab/modules/fftw/Makefile.am
scilab/modules/fftw/Makefile.in
scilab/modules/fileio/Makefile.am
scilab/modules/fileio/Makefile.in
scilab/modules/functions/Makefile.in
scilab/modules/genetic_algorithms/Makefile.in
scilab/modules/graphic_export/Makefile.am
scilab/modules/graphic_export/Makefile.in
scilab/modules/graphics/Makefile.am
scilab/modules/graphics/Makefile.in
scilab/modules/gui/Makefile.am
scilab/modules/gui/Makefile.in
scilab/modules/helptools/Makefile.am
scilab/modules/helptools/Makefile.in
scilab/modules/history_manager/Makefile.am
scilab/modules/history_manager/Makefile.in
scilab/modules/integer/Makefile.am
scilab/modules/integer/Makefile.in
scilab/modules/interpolation/Makefile.am
scilab/modules/interpolation/Makefile.in
scilab/modules/intersci/Makefile.am
scilab/modules/intersci/Makefile.in
scilab/modules/io/Makefile.am
scilab/modules/io/Makefile.in
scilab/modules/javasci/Makefile.am
scilab/modules/javasci/Makefile.in
scilab/modules/jvm/Makefile.am
scilab/modules/jvm/Makefile.in
scilab/modules/linear_algebra/Makefile.am
scilab/modules/linear_algebra/Makefile.in
scilab/modules/localization/Makefile.am
scilab/modules/localization/Makefile.in
scilab/modules/m2sci/Makefile.in
scilab/modules/maple2scilab/Makefile.in
scilab/modules/matio/Makefile.am
scilab/modules/matio/Makefile.in
scilab/modules/metanet/Makefile.am
scilab/modules/metanet/Makefile.in
scilab/modules/mexlib/Makefile.am
scilab/modules/mexlib/Makefile.in
scilab/modules/optimization/Makefile.am
scilab/modules/optimization/Makefile.in
scilab/modules/output_stream/Makefile.am
scilab/modules/output_stream/Makefile.in
scilab/modules/overloading/Makefile.in
scilab/modules/parameters/Makefile.in
scilab/modules/polynomials/Makefile.am
scilab/modules/polynomials/Makefile.in
scilab/modules/pvm/Makefile.am
scilab/modules/pvm/Makefile.in
scilab/modules/randlib/Makefile.am
scilab/modules/randlib/Makefile.in
scilab/modules/renderer/Makefile.am
scilab/modules/renderer/Makefile.in
scilab/modules/scicos/Makefile.am
scilab/modules/scicos/Makefile.in
scilab/modules/scicos_blocks/Makefile.am
scilab/modules/scicos_blocks/Makefile.in
scilab/modules/scilab2fortran/Makefile.in
scilab/modules/scipad/Makefile.in
scilab/modules/shell/Makefile.am
scilab/modules/shell/Makefile.in
scilab/modules/signal_processing/Makefile.am
scilab/modules/signal_processing/Makefile.in
scilab/modules/simulated_annealing/Makefile.in
scilab/modules/sound/Makefile.am
scilab/modules/sound/Makefile.in
scilab/modules/sparse/Makefile.am
scilab/modules/sparse/Makefile.in
scilab/modules/special_functions/Makefile.am
scilab/modules/special_functions/Makefile.in
scilab/modules/spreadsheet/Makefile.am
scilab/modules/spreadsheet/Makefile.in
scilab/modules/statistics/Makefile.am
scilab/modules/statistics/Makefile.in
scilab/modules/string/Makefile.am
scilab/modules/string/Makefile.in
scilab/modules/symbolic/Makefile.am
scilab/modules/symbolic/Makefile.in
scilab/modules/tclsci/Makefile.am
scilab/modules/tclsci/Makefile.in
scilab/modules/texmacs/Makefile.in
scilab/modules/time/Makefile.am
scilab/modules/time/Makefile.in
scilab/modules/umfpack/Makefile.am
scilab/modules/umfpack/Makefile.in
scilab/modules/windows_tools/Makefile.in

index 0cdc0f1..0ad9fe0 100644 (file)
@@ -20,12 +20,18 @@ mydatadir=$(pkgdatadir)/modules/$(modulename)
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+
+# splint options
+SPLINT_OPTIONS=-weak -booltype BOOL
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
+
 
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
index d18dd64..efcd81f 100644 (file)
@@ -24,6 +24,10 @@ libscimalloc_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscimalloc_la_SOURCES = $(MALLOC_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(MALLOC_C_SOURCES)
+INCLUDE_FLAGS = $(libscimalloc_la_CFLAGS)
+
 libscimalloc_la_LIBADD = 
 
 #### Target ######
index 81b92a9..4eef6df 100644 (file)
@@ -321,6 +321,10 @@ libscimalloc_la_CFLAGS =
 pkglib_LTLIBRARIES = libscimalloc.la
 libscimalloc_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscimalloc_la_SOURCES = $(MALLOC_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(MALLOC_C_SOURCES)
+INCLUDE_FLAGS = $(libscimalloc_la_CFLAGS)
 libscimalloc_la_LIBADD = 
 
 #### Target ######
@@ -329,6 +333,9 @@ modulename = malloc
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -704,12 +711,14 @@ uninstall-am: uninstall-libscimalloc_la_includeHEADERS \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 6af542f..5be65d6 100644 (file)
@@ -24,3 +24,4 @@ SUBDIRS += lapack
 endif 
 
 SUBDIRS += .
+
index 7392bb1..1332dee 100644 (file)
@@ -390,6 +390,9 @@ modulename = blas
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -705,12 +708,14 @@ uninstall-am: uninstall-pkglibLTLIBRARIES
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index b6af6e7..582dda7 100644 (file)
@@ -17,6 +17,10 @@ libscidoublylinkedlist_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscidoublylinkedlist_la_SOURCES = $(DOUBLYLINKEDLIST_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(DOUBLYLINKEDLIST_C_SOURCES)
+INCLUDE_FLAGS = $(libscidoublylinkedlist_la_CFLAGS)
+
 libscidoublylinkedlist_la_LIBADD = 
 
 #### Target ######
index 14fcac1..ee63206 100644 (file)
@@ -314,6 +314,10 @@ libscidoublylinkedlist_la_CFLAGS = -I$(srcdir)/src/ -I$(srcdir)/includes/
 pkglib_LTLIBRARIES = libscidoublylinkedlist.la
 libscidoublylinkedlist_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscidoublylinkedlist_la_SOURCES = $(DOUBLYLINKEDLIST_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(DOUBLYLINKEDLIST_C_SOURCES)
+INCLUDE_FLAGS = $(libscidoublylinkedlist_la_CFLAGS)
 libscidoublylinkedlist_la_LIBADD = 
 
 #### Target ######
@@ -322,6 +326,9 @@ modulename = doublylinkedlist
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -682,12 +689,14 @@ uninstall-am: uninstall-libscidoublylinkedlist_la_includeHEADERS \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index bf40a41..cfb6307 100644 (file)
@@ -18,6 +18,10 @@ libscidynamiclibrary_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscidynamiclibrary_la_SOURCES = $(DYNAMICLIBRARY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(DYNAMICLIBRARY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidynamiclibrary_la_CFLAGS)
+
 libscidynamiclibrary_la_LIBADD = 
 
 #### Target ######
index 5a2948e..1143296 100644 (file)
@@ -316,6 +316,10 @@ libscidynamiclibrary_la_CFLAGS = -Isrc/ -I$(srcdir)/includes/
 pkglib_LTLIBRARIES = libscidynamiclibrary.la
 libscidynamiclibrary_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscidynamiclibrary_la_SOURCES = $(DYNAMICLIBRARY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(DYNAMICLIBRARY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidynamiclibrary_la_CFLAGS)
 libscidynamiclibrary_la_LIBADD = 
 
 #### Target ######
@@ -324,6 +328,9 @@ modulename = dynamiclibrary
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -683,12 +690,14 @@ uninstall-am: uninstall-libscidynamiclibrary_la_includeHEADERS \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 4c3d051..84f0e93 100644 (file)
@@ -7,21 +7,21 @@ HASHTABLE_C_SOURCES = hashtable_utility.c \
 hashtable_itr.c \
 hashtable.c
 
-
 libscihashtable_la_includedir=$(pkgincludedir)/hashtable
 
 libscihashtable_la_include_HEADERS = ./hashtable_itr.h \
 ./hashtable.h \
 ./hashtable_utility.h
 
-#libscihashtable_la_CFLAGS=  
-
 pkglib_LTLIBRARIES = libscihashtable.la
 
 libscihashtable_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscihashtable_la_SOURCES = $(HASHTABLE_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(HASHTABLE_C_SOURCES)
+
 libscihashtable_la_LIBADD = 
 
 #### Target ######
index d09de60..11818bd 100644 (file)
@@ -314,11 +314,12 @@ libscihashtable_la_include_HEADERS = ./hashtable_itr.h \
 ./hashtable.h \
 ./hashtable_utility.h
 
-
-#libscihashtable_la_CFLAGS=  
 pkglib_LTLIBRARIES = libscihashtable.la
 libscihashtable_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscihashtable_la_SOURCES = $(HASHTABLE_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(HASHTABLE_C_SOURCES)
 libscihashtable_la_LIBADD = 
 
 #### Target ######
@@ -327,6 +328,9 @@ modulename = hashtable
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -681,12 +685,14 @@ uninstall-am: uninstall-libscihashtable_la_includeHEADERS \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 3531eef..f9f1e95 100644 (file)
@@ -661,6 +661,9 @@ libscilapack_la_PKGCONFIG = lapack.pc
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -993,12 +996,14 @@ libdummy_lapack_la-slamch.lo: slamch.f
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index bd28218..435b939 100644 (file)
@@ -12,6 +12,9 @@ libscilibst_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscilibst_la_SOURCES = $(LIBST_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(LIBST_C_SOURCES)
+
 libscilibst_la_LIBADD =
 
 #### Target ######
index eb90bd5..dadab50 100644 (file)
@@ -304,6 +304,9 @@ LIBST_C_SOURCES = libst.c  misc.c
 pkglib_LTLIBRARIES = libscilibst.la
 libscilibst_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscilibst_la_SOURCES = $(LIBST_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(LIBST_C_SOURCES)
 libscilibst_la_LIBADD = 
 
 #### Target ######
@@ -312,6 +315,9 @@ modulename = libst
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -644,12 +650,14 @@ uninstall-am: uninstall-pkglibLTLIBRARIES
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 2761808..b45fb5e 100644 (file)
@@ -145,19 +145,17 @@ $(top_builddir)/modules/mexlib/libmex.la \
        $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
        $(top_builddir)/modules/output_stream/libscioutput_stream.la \
        $(top_builddir)/modules/sound/libscisound.la \
-       $(top_builddir)/modules/helptools/libscihelptools.la
-
-# These libs are loaded dynamical by Scilab
-#      $(top_builddir)/modules/matio/libscimatio.la
-#      $(top_builddir)/modules/randlib/libscirandlib.la
-#      $(top_builddir)/modules/optimization/libscioptimization.la
-#      $(top_builddir)/modules/arnoldi/libsciarnoldi.la
-#      $(top_builddir)/modules/symbolic/libscisymbolic.la
-#      $(top_builddir)/modules/metanet/libscimetanet.la
-#      $(top_builddir)/modules/spreadsheet/libscispreadsheet.la
-#      $(top_builddir)/modules/statistics/libscistatistics.la
-#      $(top_builddir)/modules/signal_processing/libscisignal_processing.la
-#      $(top_builddir)/modules/interpolation/libsciinterpolation.la
+       $(top_builddir)/modules/helptools/libscihelptools.la \
+       $(top_builddir)/modules/matio/libscimatio.la \
+       $(top_builddir)/modules/randlib/libscirandlib.la \
+       $(top_builddir)/modules/optimization/libscioptimization.la \
+       $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
+       $(top_builddir)/modules/symbolic/libscisymbolic.la \
+       $(top_builddir)/modules/metanet/libscimetanet.la \
+       $(top_builddir)/modules/spreadsheet/libscispreadsheet.la \
+       $(top_builddir)/modules/statistics/libscistatistics.la \
+       $(top_builddir)/modules/signal_processing/libscisignal_processing.la \
+       $(top_builddir)/modules/interpolation/libsciinterpolation.la
 
 # Dev in progress
 
index efbba86..f64a00d 100644 (file)
@@ -390,20 +390,18 @@ $(top_builddir)/modules/mexlib/libmex.la \
        $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
        $(top_builddir)/modules/output_stream/libscioutput_stream.la \
        $(top_builddir)/modules/sound/libscisound.la \
-       $(top_builddir)/modules/helptools/libscihelptools.la
-
-
-# These libs are loaded dynamical by Scilab
-#      $(top_builddir)/modules/matio/libscimatio.la
-#      $(top_builddir)/modules/randlib/libscirandlib.la
-#      $(top_builddir)/modules/optimization/libscioptimization.la
-#      $(top_builddir)/modules/arnoldi/libsciarnoldi.la
-#      $(top_builddir)/modules/symbolic/libscisymbolic.la
-#      $(top_builddir)/modules/metanet/libscimetanet.la
-#      $(top_builddir)/modules/spreadsheet/libscispreadsheet.la
-#      $(top_builddir)/modules/statistics/libscistatistics.la
-#      $(top_builddir)/modules/signal_processing/libscisignal_processing.la
-#      $(top_builddir)/modules/interpolation/libsciinterpolation.la
+       $(top_builddir)/modules/helptools/libscihelptools.la \
+       $(top_builddir)/modules/matio/libscimatio.la \
+       $(top_builddir)/modules/randlib/libscirandlib.la \
+       $(top_builddir)/modules/optimization/libscioptimization.la \
+       $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
+       $(top_builddir)/modules/symbolic/libscisymbolic.la \
+       $(top_builddir)/modules/metanet/libscimetanet.la \
+       $(top_builddir)/modules/spreadsheet/libscispreadsheet.la \
+       $(top_builddir)/modules/statistics/libscistatistics.la \
+       $(top_builddir)/modules/signal_processing/libscisignal_processing.la \
+       $(top_builddir)/modules/interpolation/libsciinterpolation.la
+
 
 # Dev in progress
 
index 8d7e32c..363833f 100644 (file)
@@ -49,6 +49,10 @@ libsciaction_binding_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 # All the sources needed by libsciaction_binding.la
 libsciaction_binding_la_SOURCES = $(ACTION_BINDING_C_SOURCES) $(CONSOLE_C_JNI_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(ACTION_BINDING_C_SOURCES)
+INCLUDE_FLAGS = $(libsciaction_binding_la_CFLAGS)
+
 ## Libraries necessary
 ## Change to include other Scilab modules/lib
 libsciaction_binding_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
index 9c0b077..02d98ff 100644 (file)
@@ -369,6 +369,10 @@ libsciaction_binding_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 # All the sources needed by libsciaction_binding.la
 libsciaction_binding_la_SOURCES = $(ACTION_BINDING_C_SOURCES) $(CONSOLE_C_JNI_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(ACTION_BINDING_C_SOURCES)
+INCLUDE_FLAGS = $(libsciaction_binding_la_CFLAGS)
 libsciaction_binding_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 #### Name of the module and the path ######
 modulename = action_binding
@@ -392,6 +396,9 @@ libsciaction_binding_la_include_HEADERS = includes/dynamic_menus.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -842,12 +849,14 @@ uninstall-am: uninstall-libsciaction_binding_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index fcf1ecc..3cabfcf 100644 (file)
@@ -76,6 +76,10 @@ libsciarnoldi_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libsciarnoldi_la_SOURCES =  $(ARNOLDI_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciarnoldi_la_CFLAGS)
+
 libsciarnoldi_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la
 
 if USE_EMBEDDED_LAPACK
index 645086c..48beb11 100644 (file)
@@ -422,6 +422,10 @@ libsciarnoldi_la_FFLAGS = -I$(srcdir)/src/arpack/
 pkglib_LTLIBRARIES = libsciarnoldi.la
 libsciarnoldi_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libsciarnoldi_la_SOURCES = $(ARNOLDI_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciarnoldi_la_CFLAGS)
 libsciarnoldi_la_LIBADD = $(top_builddir)/modules/core/libscicore.la \
        $(am__append_1) $(am__append_2)
 
@@ -447,6 +451,9 @@ libsciarnoldi_la_include_HEADERS = includes/gw_arnoldi.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1074,12 +1081,14 @@ uninstall-am: uninstall-libsciarnoldi_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index fbb2600..9f76f6b 100644 (file)
@@ -29,6 +29,10 @@ libsciboolean_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libsciboolean_la_SOURCES = $(BOOLEAN_C_SOURCES) $(BOOLEAN_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(BOOLEAN_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciboolean_la_CFLAGS)
+
 libsciboolean_la_LIBADD = \
        $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
        $(top_builddir)/modules/elementary_functions/libscielementary_functions.la
index 8fc1280..ffb459c 100644 (file)
@@ -355,6 +355,10 @@ libsciboolean_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libsciboolean.la
 libsciboolean_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libsciboolean_la_SOURCES = $(BOOLEAN_C_SOURCES) $(BOOLEAN_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(BOOLEAN_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciboolean_la_CFLAGS)
 libsciboolean_la_LIBADD =  \
        $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
        $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
@@ -382,6 +386,9 @@ includes/matboolean.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -879,12 +886,14 @@ uninstall-am: uninstall-libsciboolean_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 5bd6585..f8aaec7 100644 (file)
@@ -220,6 +220,12 @@ libscicacsd_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)  $(ATLAS_LIBS)
 
 libscicacsd_la_SOURCES = $(CACSD_FORTRAN_SOURCES) $(SLICOT_FORTRAN_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
 
+
+# For the code check (splint)
+CHECK_SRC= $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscicacsd_la_CFLAGS)
+
+
 # cyclic deps $(top_builddir)/modules/polynomials/libscipolynomials.la
 libscicacsd_la_LIBADD =  $(top_builddir)/modules/mexlib/libmx.la $(top_builddir)/modules/mexlib/libmat.la  $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/differential_equations/libscidifferential_equations.la $(top_builddir)/modules/linear_algebra/libscilinear_algebra.la $(top_builddir)/modules/mexlib/libmex.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
index 2a761fa..6ee66e3 100644 (file)
@@ -647,6 +647,10 @@ pkglib_LTLIBRARIES = libscicacsd.la
 libscicacsd_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)  $(ATLAS_LIBS)
 libscicacsd_la_SOURCES = $(CACSD_FORTRAN_SOURCES) $(SLICOT_FORTRAN_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscicacsd_la_CFLAGS)
+
 # cyclic deps $(top_builddir)/modules/polynomials/libscipolynomials.la
 libscicacsd_la_LIBADD = $(top_builddir)/modules/mexlib/libmx.la \
        $(top_builddir)/modules/mexlib/libmat.la \
@@ -715,6 +719,9 @@ demos/tracking/track.dem.sce
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1851,12 +1858,14 @@ uninstall-am: uninstall-libscicacsd_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 31f14b8..85e962b 100644 (file)
@@ -288,6 +288,9 @@ top_srcdir = @top_srcdir@
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -564,12 +567,14 @@ uninstall-am: uninstall-libscicompatibility_functions_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 4c4089a..cd7e9e4 100644 (file)
@@ -45,6 +45,10 @@ libscicompletion_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 # All the sources needed by libscicompletion.la
 libscicompletion_la_SOURCES = $(COMPLETION_JNI_SOURCES) $(COMPLETION_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(COMPLETION_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscicompletion_la_CFLAGS)
+
 ## Libraries necessary
 ## Change to include other Scilab modules/lib
 libscicompletion_la_LIBADD =  $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
index d17c0fd..00be1e9 100644 (file)
@@ -377,6 +377,10 @@ libscicompletion_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 # All the sources needed by libscicompletion.la
 libscicompletion_la_SOURCES = $(COMPLETION_JNI_SOURCES) $(COMPLETION_C_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(COMPLETION_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscicompletion_la_CFLAGS)
 libscicompletion_la_LIBADD = $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 #$(top_builddir)/modules/graphics/libscigraphics.la
 #### Name of the module and the path ######
@@ -407,6 +411,9 @@ SWIG_WRAPPERS = src/jni/Completion.i
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -905,12 +912,14 @@ uninstall-am: uninstall-libscicompletion_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 5426c34..3d7ac87 100644 (file)
@@ -66,6 +66,10 @@ libsciconsole_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 # All the sources needed by libsciconsole.la
 libsciconsole_la_SOURCES = $(CONSOLE_C_JNI_SOURCES) $(CONSOLE_C_SOURCES) $(CONSOLE_CPP_JNI_SOURCES) $(CONSOLE_CPP_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(CONSOLE_C_JNI_SOURCES) $(CONSOLE_C_SOURCES)
+INCLUDE_FLAGS = $(libsciconsole_la_CFLAGS)
+
 ## Libraries necessary
 ## Change to include other Scilab modules/lib
 libsciconsole_la_LIBADD =  $(top_builddir)/modules/action_binding/libsciaction_binding.la $(top_builddir)/modules/shell/libscishell.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/libs/MALLOC/libscimalloc.la 
index 13037df..9585d99 100644 (file)
@@ -399,6 +399,10 @@ libsciconsole_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 # All the sources needed by libsciconsole.la
 libsciconsole_la_SOURCES = $(CONSOLE_C_JNI_SOURCES) $(CONSOLE_C_SOURCES) $(CONSOLE_CPP_JNI_SOURCES) $(CONSOLE_CPP_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(CONSOLE_C_JNI_SOURCES) $(CONSOLE_C_SOURCES)
+INCLUDE_FLAGS = $(libsciconsole_la_CFLAGS)
 libsciconsole_la_LIBADD = $(top_builddir)/modules/action_binding/libsciaction_binding.la $(top_builddir)/modules/shell/libscishell.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/libs/MALLOC/libscimalloc.la 
 # java code is needed $(top_builddir)/modules/jvm/libscijvm.la
 #### Name of the module and the path ######
@@ -445,6 +449,9 @@ includes/SetConsolePrompt.hxx
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -997,12 +1004,14 @@ uninstall-am: uninstall-libsciconsole_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index a686598..61e9f06 100644 (file)
@@ -85,7 +85,6 @@ src/c/readGateway.c \
 src/c/comparehandles.c \
 src/c/setPrecisionFPU.c
 
-
 if USE_DYNAMIC_STACK
 CORE_C_SOURCES += src/c/scimem64.c
 endif
@@ -206,7 +205,6 @@ if USE_DYNAMIC_STACK
 CORE_FORTRAN_SOURCES += src/fortran/relocstack.f
 endif
 
-
 GATEWAY_C_SOURCES = sci_gateway/c/sci_stacksize.c \
 sci_gateway/c/sci_resume.c \
 sci_gateway/c/sci_mtlb_mode.c \
@@ -271,7 +269,6 @@ sci_gateway/c/sci_libraryinfo.c \
 sci_gateway/c/sci_getvariablesonstack.c \
 sci_gateway/c/sci_readgateway.c
 
-
 GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/sci_errclear.f \
 sci_gateway/fortran/sci_funcprot.f \
 sci_gateway/fortran/sci_global.f \
@@ -302,7 +299,7 @@ sci_gateway/fortran/sci_mode.f \
 sci_gateway/fortran/sci_debug.f \
 sci_gateway/fortran/sci_isglobal.f
 
-libscicore_la_CFLAGS=          -I$(srcdir)/includes/ \
+libscicore_la_CFLAGS = -I$(srcdir)/includes/ \
                        -I$(srcdir)/src/c/ \
                        -I$(top_srcdir)/libs/MALLOC/includes/ \
             -I$(top_srcdir)/libs/dynamiclibrary/includes/ \
@@ -318,6 +315,8 @@ libscicore_la_CFLAGS=       -I$(srcdir)/includes/ \
             -I$(top_srcdir)/modules/fileio/includes \
                        $(XML_FLAGS)
 
+
+
 # Used by sci_getdebuginfo:
 if TCLTK
 libscicore_la_CFLAGS +=   $(TCL_INC_PATH) \
@@ -328,6 +327,10 @@ pkglib_LTLIBRARIES = libscicore.la
 
 libscicore_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(XML_LIBS)
 
+# For the code check (splint)
+CHECK_SRC= $(CORE_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscicore_la_CFLAGS)
+
 libscicore_la_SOURCES = $(CORE_C_SOURCES) $(CORE_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(JNI_SOURCES)
 
 # Commented because it is easier to comment first the core module
@@ -442,4 +445,3 @@ demos/intro/Makefile \
 demos/intro/dem01_gateway.sce
 
 include $(top_srcdir)/Makefile.incl.am
-
index b5dc2df..00b82e4 100644 (file)
@@ -759,6 +759,10 @@ libscicore_la_CFLAGS = -I$(srcdir)/includes/ -I$(srcdir)/src/c/ \
        $(am__append_3)
 pkglib_LTLIBRARIES = libscicore.la
 libscicore_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(XML_LIBS)
+
+# For the code check (splint)
+CHECK_SRC = $(CORE_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscicore_la_CFLAGS)
 libscicore_la_SOURCES = $(CORE_C_SOURCES) $(CORE_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(JNI_SOURCES)
 
 # Commented because it is easier to comment first the core module
@@ -876,6 +880,9 @@ demos/intro/dem01_gateway.sce
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -2870,12 +2877,14 @@ uninstall-am: uninstall-libscicore_la_demosintroDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 8167321..4beba3a 100644 (file)
@@ -52,6 +52,10 @@ libscidata_structures_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscidata_structures_la_SOURCES = $(DATA_STRUCTURES_C_SOURCES) $(DATA_STRUCTURES_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(DATA_STRUCTURES_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidata_structures_la_CFLAGS)
+
 # cyclic deps $(top_builddir)/modules/polynomials/libscipolynomials.la 
 libscidata_structures_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/integer/libsciinteger.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
index c224fdd..c07158b 100644 (file)
@@ -396,6 +396,10 @@ pkglib_LTLIBRARIES = libscidata_structures.la
 libscidata_structures_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscidata_structures_la_SOURCES = $(DATA_STRUCTURES_C_SOURCES) $(DATA_STRUCTURES_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(DATA_STRUCTURES_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidata_structures_la_CFLAGS)
+
 # cyclic deps $(top_builddir)/modules/polynomials/libscipolynomials.la 
 libscidata_structures_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/integer/libsciinteger.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
@@ -423,6 +427,9 @@ includes/gw_data_structures2.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1020,12 +1027,14 @@ uninstall-am: uninstall-libscidata_structures_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 3132416..45f2ef5 100644 (file)
@@ -303,6 +303,9 @@ libdemo_tools_la_images_DATA = images/logo_scilab.png
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -587,12 +590,14 @@ uninstall-am: uninstall-libdemo_tools_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 0f0ecff..fb1595e 100644 (file)
@@ -296,6 +296,9 @@ libdevelopment_tools_la_etc_DATA = etc/development_tools.quit etc/development_to
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -561,12 +564,14 @@ uninstall-am: uninstall-libdevelopment_tools_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 179c4fc..f726cb9 100644 (file)
@@ -224,6 +224,10 @@ libscidifferential_equations_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION
 
 libscidifferential_equations_la_SOURCES = $(DIFFERENTIAL_EQUATIONS_C_SOURCES) $(DIFFERENTIAL_EQUATIONS_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(DIFFERENTIAL_EQUATIONS_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidifferential_equations_la_CFLAGS)
+
 libscidifferential_equations_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/dynamic_link/libscidynamic_link.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
 
index 5a7910d..8de0232 100644 (file)
@@ -594,6 +594,10 @@ libscidifferential_equations_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscidifferential_equations.la
 libscidifferential_equations_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscidifferential_equations_la_SOURCES = $(DIFFERENTIAL_EQUATIONS_C_SOURCES) $(DIFFERENTIAL_EQUATIONS_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(DIFFERENTIAL_EQUATIONS_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidifferential_equations_la_CFLAGS)
 libscidifferential_equations_la_LIBADD =  \
        $(top_builddir)/modules/core/libscicore.la \
        $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
@@ -630,6 +634,9 @@ includes/gw_differential_equations6.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1554,12 +1561,14 @@ uninstall-am: uninstall-libscidifferential_equations_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 4c645d8..1279050 100644 (file)
@@ -35,6 +35,10 @@ libscidouble_la_CFLAGS = -I$(top_srcdir)/modules/output_stream/includes
 
 libscidouble_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidouble_la_CFLAGS)
+
 libscidouble_la_LIBADD =  $(top_builddir)/modules/boolean/libsciboolean.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/polynomials/libscipolynomials.la $(top_builddir)/modules/linear_algebra/libscilinear_algebra.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
 
index dea81f2..3ea85ce 100644 (file)
@@ -354,6 +354,10 @@ pkglib_LTLIBRARIES = libscidouble.la
 libscidouble_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscidouble_la_CFLAGS = -I$(top_srcdir)/modules/output_stream/includes
 libscidouble_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidouble_la_CFLAGS)
 libscidouble_la_LIBADD =  \
        $(top_builddir)/modules/boolean/libsciboolean.la \
        $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
@@ -378,6 +382,9 @@ libscidouble_la_etc_DATA = etc/double.quit etc/double.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -826,12 +833,14 @@ uninstall-am: uninstall-libscidouble_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index ae9c2bd..0404de3 100644 (file)
@@ -30,6 +30,10 @@ pkglib_LTLIBRARIES = libscidynamic_link.la
 libscidynamic_link_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscidynamic_link_la_SOURCES = $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC=  $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidynamic_link_la_CFLAGS)
+
 # cyclic $(top_builddir)/modules/core/libscicore.la 
 libscidynamic_link_la_LIBADD =  $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 #### Target ######
index 7634e75..d5328b3 100644 (file)
@@ -372,6 +372,10 @@ pkglib_LTLIBRARIES = libscidynamic_link.la
 libscidynamic_link_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscidynamic_link_la_SOURCES = $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscidynamic_link_la_CFLAGS)
+
 # cyclic $(top_builddir)/modules/core/libscicore.la 
 libscidynamic_link_la_LIBADD = $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 #### Target ######
@@ -418,6 +422,9 @@ src/scripts/scicompile.sh
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -977,12 +984,14 @@ uninstall-am: uninstall-libscidynamic_link_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index f00be0e..2166103 100644 (file)
@@ -392,6 +392,10 @@ libscielementary_functions_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscielementary_functions_la_SOURCES = $(SLATEC_SOURCES) $(LINPACK_SOURCES) $(ELEMENTARIES_FUNCTIONS_C_SOURCES) $(ELEMENTARIES_FUNCTIONS_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(ELEMENTARIES_FUNCTIONS_CPP_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(ELEMENTARIES_FUNCTIONS_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscielementary_functions_la_CFLAGS)
+
 libscielementary_functions_la_LIBADD = libdummy-elementary_functions.la
 # Commented because it is one of the first module to be compiled
 #libdummy-elementary_functions.la $(top_builddir)/modules/core/libscicore.la  $(top_builddir)/modules/polynomials/libscipolynomials.la $(top_builddir)/libs/blas/libsciblas.la $(top_builddir)/modules/sparse/libscisparse.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/libs/lapack/libscilapack.la $(top_builddir)/modules/integer/libsciinteger.la  $(top_builddir)/modules/cacsd/libscicacsd.la
index 8712e17..770c1ae 100644 (file)
@@ -1076,6 +1076,10 @@ libscielementary_functions_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscielementary_functions.la
 libscielementary_functions_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscielementary_functions_la_SOURCES = $(SLATEC_SOURCES) $(LINPACK_SOURCES) $(ELEMENTARIES_FUNCTIONS_C_SOURCES) $(ELEMENTARIES_FUNCTIONS_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(ELEMENTARIES_FUNCTIONS_CPP_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(ELEMENTARIES_FUNCTIONS_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscielementary_functions_la_CFLAGS)
 libscielementary_functions_la_LIBADD = libdummy-elementary_functions.la
 
 #### Target ######
@@ -1111,6 +1115,9 @@ includes/unsfdcopy.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -2968,12 +2975,14 @@ libdummy_elementary_functions_la-icopy.lo: src/fortran/linpack/icopy.f
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 0b53b6b..f4c5af0 100644 (file)
@@ -48,6 +48,10 @@ libscifftw_la_sci_gateway_DATA = sci_gateway/fftw_gateway.xml
 
 libscifftw_la_SOURCES = $(FFTW_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(FFTW_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscifftw_la_CFLAGS)
+
 libscifftw_la_LIBADD =  $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la
 libscifftw_la_CFLAGS=          -I$(srcdir)/includes/ \
                        -I$(srcdir)/src/c/ \
index cce9154..6185714 100644 (file)
@@ -391,6 +391,10 @@ libscifftw_la_etc_DATA = etc/fftw.quit etc/fftw.start
 @FFTW_TRUE@libscifftw_la_sci_gateway_DATA = sci_gateway/fftw_gateway.xml
 @FFTW_FALSE@libscifftw_la_SOURCES = $(FFTW_C_SOURCES)
 @FFTW_TRUE@libscifftw_la_SOURCES = $(FFTW_C_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+@FFTW_TRUE@CHECK_SRC = $(FFTW_C_SOURCES) $(GATEWAY_C_SOURCES)
+@FFTW_TRUE@INCLUDE_FLAGS = $(libscifftw_la_CFLAGS)
 @FFTW_TRUE@libscifftw_la_LIBADD = $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la
 @FFTW_FALSE@libscifftw_la_CFLAGS = -I$(top_srcdir)/modules/output_stream/includes
 @FFTW_TRUE@libscifftw_la_CFLAGS = -I$(srcdir)/includes/ \
@@ -417,6 +421,9 @@ libscifftw_la_etc_DATA = etc/fftw.quit etc/fftw.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -941,12 +948,14 @@ uninstall-am: uninstall-libscifftw_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 7d3e9c5..af4bd3a 100644 (file)
@@ -81,6 +81,10 @@ libscifileio_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscifileio_la_SOURCES = $(FILEIO_SOURCES) $(GATEWAY_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(FILEIO_SOURCES) $(GATEWAY_SOURCES)
+INCLUDE_FLAGS = $(libscifileio_la_CFLAGS)
+
 # pb of order $(top_builddir)/modules/shell/libscishell.la
 libscifileio_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la  $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/libs/libst/libscilibst.la
 #### Target ######
index c431cb3..3430ae3 100644 (file)
@@ -436,6 +436,10 @@ pkglib_LTLIBRARIES = libscifileio.la
 libscifileio_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscifileio_la_SOURCES = $(FILEIO_SOURCES) $(GATEWAY_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(FILEIO_SOURCES) $(GATEWAY_SOURCES)
+INCLUDE_FLAGS = $(libscifileio_la_CFLAGS)
+
 # pb of order $(top_builddir)/modules/shell/libscishell.la
 libscifileio_la_LIBADD = $(top_builddir)/modules/core/libscicore.la  $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/libs/libst/libscilibst.la
 #### Target ######
@@ -487,6 +491,9 @@ nobase_libscifileio_la_demos_DATA =
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1418,12 +1425,14 @@ uninstall-am: uninstall-libscifileio_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index afc94ab..99b391b 100644 (file)
@@ -296,6 +296,9 @@ libscifunctions_la_etc_DATA = etc/functions.quit etc/functions.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -559,12 +562,14 @@ uninstall-am: uninstall-libscifunctions_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index a175202..f0e3154 100644 (file)
@@ -328,6 +328,9 @@ examples/Ising/plot_potts2d.sci
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -635,12 +638,14 @@ uninstall-am: uninstall-libgenetic_algorithms_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 27d70d2..7697bad 100644 (file)
@@ -49,6 +49,10 @@ libscigraphic_export_la_CPPFLAGS =   $(JAVA_JNI_INCLUDE) \
 # All the sources needed by libscigraphic_export.la
 libscigraphic_export_la_SOURCES = $(GRAPHIC_EXPORT_C_SOURCES) $(GATEWAY_C_SOURCES) $(GRAPHIC_EXPORT_CPP_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(GRAPHIC_EXPORT_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscigraphic_export_la_CPPFLAGS)
+
 ## Libraries necessary
 ## Change to include other Scilab modules/lib
 libscigraphic_export_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
index 1c002ad..ee1b32b 100644 (file)
@@ -416,6 +416,10 @@ top_srcdir = @top_srcdir@
 
 # All the sources needed by libscigraphic_export.la
 @GUI_TRUE@libscigraphic_export_la_SOURCES = $(GRAPHIC_EXPORT_C_SOURCES) $(GATEWAY_C_SOURCES) $(GRAPHIC_EXPORT_CPP_SOURCES)
+
+# For the code check (splint)
+@GUI_TRUE@CHECK_SRC = $(GRAPHIC_EXPORT_C_SOURCES) $(GATEWAY_C_SOURCES)
+@GUI_TRUE@INCLUDE_FLAGS = $(libscigraphic_export_la_CPPFLAGS)
 @GUI_TRUE@libscigraphic_export_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 @GUI_TRUE@GIWS_WRAPPERS = src/jni/FileExporter.giws.xml \
 @GUI_TRUE@src/jni/GL2PSToJOGL.giws.xml \
@@ -465,6 +469,9 @@ includes/sci_xs2svg.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1088,12 +1095,14 @@ uninstall-am: uninstall-libscigraphic_export_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index f714d99..d99db9a 100644 (file)
@@ -403,6 +403,10 @@ libscigraphics_la_CXXFLAGS =       -Iincludes/ \
 
 libscigraphics_la_SOURCES = $(GRAPHICS_C_SOURCES) $(GATEWAY_C_SOURCES) $(GRAPHICS_CPP_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(GRAPHICS_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscigraphics_la_CFLAGS)
+
 libscigraphics_la_LIBADD =  $(top_builddir)/libs/hashtable/libscihashtable.la $(top_builddir)/modules/action_binding/libsciaction_binding.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/renderer/libscirenderer.la $(top_builddir)/modules/tclsci/libscitclsci.la $(top_builddir)/modules/gui/libscigui.la $(top_builddir)/libs/doublylinkedlist/libscidoublylinkedlist.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/fileio/libscifileio.la
 
 
index 5f8c896..e6fbf18 100644 (file)
@@ -1470,6 +1470,10 @@ libscigraphics_la_CFLAGS =  \
 
 @GUI_FALSE@libscigraphics_la_SOURCES = $(GRAPHICS_C_SOURCES)
 @GUI_TRUE@libscigraphics_la_SOURCES = $(GRAPHICS_C_SOURCES) $(GATEWAY_C_SOURCES) $(GRAPHICS_CPP_SOURCES)
+
+# For the code check (splint)
+@GUI_TRUE@CHECK_SRC = $(GRAPHICS_C_SOURCES) $(GATEWAY_C_SOURCES)
+@GUI_TRUE@INCLUDE_FLAGS = $(libscigraphics_la_CFLAGS)
 @GUI_TRUE@libscigraphics_la_LIBADD =  \
 @GUI_TRUE@     $(top_builddir)/libs/hashtable/libscihashtable.la \
 @GUI_TRUE@     $(top_builddir)/modules/action_binding/libsciaction_binding.la \
@@ -1795,6 +1799,9 @@ modulename = graphics
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -5197,12 +5204,14 @@ uninstall-am: uninstall-libscigraphics_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index ab79cb5..8732a15 100644 (file)
@@ -149,7 +149,9 @@ sci_gateway/c/sci_helpbrowser.c \
 sci_gateway/c/sci_uigetfont.c \
 sci_gateway/c/sci_uigetcolor.c \
 sci_gateway/c/sci_getcallbackobject.c \
-sci_gateway/c/sci_exportUI.c \
+sci_gateway/c/sci_exportUI.c
+
+GATEWAY_CPP_SOURCES = \
 sci_gateway/cpp/sci_printsetupbox.cpp \
 sci_gateway/cpp/sci_toprint.cpp \
 sci_gateway/cpp/sci_printfigure.cpp \
@@ -178,6 +180,7 @@ libscigui_la_CFLAGS=        -I$(srcdir)/src/c/ \
 
 libscigui_la_CFLAGS += $(JAVA_JNI_INCLUDE) \
                        -I$(top_srcdir)/modules/jvm/includes/ \
+                       -I$(top_srcdir)/modules/renderer/includes/ \
                        -I$(top_srcdir)/modules/string/includes/
 
 libscigui_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
@@ -195,7 +198,6 @@ libscigui_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
                        -I$(top_srcdir)/modules/output_stream/includes \
                        -I$(top_srcdir)/modules/graphics/includes/ \
                        -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
-                       -Isrc/jni/ \
                        -I$(top_srcdir)/modules/graphic_export/includes/ \
                        -I$(top_srcdir)/modules/string/includes/
 
@@ -211,7 +213,11 @@ pkglib_LTLIBRARIES = libscigui.la
 
 libscigui_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS) $(X_LIBS) $(X_EXTRA_LIBS)
 
-libscigui_la_SOURCES = $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GUI_CPP_SOURCES)
+libscigui_la_SOURCES = $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GUI_CPP_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC= $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscigui_la_CFLAGS)
 
 #  cyclic $(top_builddir)/modules/graphics/libscigraphics.la $(top_builddir)/modules/jvm/libscijvm.la
 libscigui_la_LIBADD = $(top_builddir)/modules/renderer/libscirenderer.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
index bf829d4..27f1064 100644 (file)
@@ -220,14 +220,14 @@ am__libscigui_la_SOURCES_DIST = src/nogui/nogui.c src/c/TerminateGui.c \
 @GUI_TRUE@     libscigui_la-sci_uigetfont.lo \
 @GUI_TRUE@     libscigui_la-sci_uigetcolor.lo \
 @GUI_TRUE@     libscigui_la-sci_getcallbackobject.lo \
-@GUI_TRUE@     libscigui_la-sci_exportUI.lo \
-@GUI_TRUE@     libscigui_la-sci_printsetupbox.lo \
+@GUI_TRUE@     libscigui_la-sci_exportUI.lo
+@GUI_TRUE@am__objects_3 = libscigui_la-sci_printsetupbox.lo \
 @GUI_TRUE@     libscigui_la-sci_toprint.lo \
 @GUI_TRUE@     libscigui_la-sci_printfigure.lo \
 @GUI_TRUE@     libscigui_la-sci_setlookandfeel.lo \
 @GUI_TRUE@     libscigui_la-sci_getinstalledlookandfeels.lo \
 @GUI_TRUE@     libscigui_la-sci_getlookandfeel.lo
-@GUI_TRUE@am__objects_3 = libscigui_la-InitUIMenu.lo \
+@GUI_TRUE@am__objects_4 = libscigui_la-InitUIMenu.lo \
 @GUI_TRUE@     libscigui_la-CallScilabBridge.lo \
 @GUI_TRUE@     libscigui_la-Jxclick.lo \
 @GUI_TRUE@     libscigui_la-DestroyUimenu.lo \
@@ -308,7 +308,7 @@ am__libscigui_la_SOURCES_DIST = src/nogui/nogui.c src/c/TerminateGui.c \
 @GUI_TRUE@     libscigui_la-sci_raise_window.lo \
 @GUI_TRUE@     libscigui_la-GiwsException.lo
 am_libscigui_la_OBJECTS = $(am__objects_1) $(am__objects_2) \
-       $(am__objects_3)
+       $(am__objects_3) $(am__objects_4)
 libscigui_la_OBJECTS = $(am_libscigui_la_OBJECTS)
 libscigui_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
@@ -545,6 +545,9 @@ top_srcdir = @top_srcdir@
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -728,7 +731,9 @@ HELP_CHAPTERFILE = addchapter.sce
 @GUI_TRUE@sci_gateway/c/sci_uigetfont.c \
 @GUI_TRUE@sci_gateway/c/sci_uigetcolor.c \
 @GUI_TRUE@sci_gateway/c/sci_getcallbackobject.c \
-@GUI_TRUE@sci_gateway/c/sci_exportUI.c \
+@GUI_TRUE@sci_gateway/c/sci_exportUI.c
+
+@GUI_TRUE@GATEWAY_CPP_SOURCES = \
 @GUI_TRUE@sci_gateway/cpp/sci_printsetupbox.cpp \
 @GUI_TRUE@sci_gateway/cpp/sci_toprint.cpp \
 @GUI_TRUE@sci_gateway/cpp/sci_printfigure.cpp \
@@ -757,6 +762,7 @@ HELP_CHAPTERFILE = addchapter.sce
 @GUI_TRUE@     -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
 @GUI_TRUE@     $(JAVA_JNI_INCLUDE) \
 @GUI_TRUE@     -I$(top_srcdir)/modules/jvm/includes/ \
+@GUI_TRUE@     -I$(top_srcdir)/modules/renderer/includes/ \
 @GUI_TRUE@     -I$(top_srcdir)/modules/string/includes/
 @GUI_TRUE@libscigui_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
 @GUI_TRUE@                     -I$(srcdir)/includes/ \
@@ -773,13 +779,16 @@ HELP_CHAPTERFILE = addchapter.sce
 @GUI_TRUE@                     -I$(top_srcdir)/modules/output_stream/includes \
 @GUI_TRUE@                     -I$(top_srcdir)/modules/graphics/includes/ \
 @GUI_TRUE@                     -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
-@GUI_TRUE@                     -Isrc/jni/ \
 @GUI_TRUE@                     -I$(top_srcdir)/modules/graphic_export/includes/ \
 @GUI_TRUE@                     -I$(top_srcdir)/modules/string/includes/
 
 pkglib_LTLIBRARIES = libscigui.la
 libscigui_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS) $(X_LIBS) $(X_EXTRA_LIBS)
-libscigui_la_SOURCES = $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GUI_CPP_SOURCES)
+libscigui_la_SOURCES = $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GUI_CPP_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscigui_la_CFLAGS)
 
 #  cyclic $(top_builddir)/modules/graphics/libscigraphics.la $(top_builddir)/modules/jvm/libscijvm.la
 libscigui_la_LIBADD = $(top_builddir)/modules/renderer/libscirenderer.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
@@ -2422,12 +2431,14 @@ uninstall-am: uninstall-libscigui_la_demosDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 70fbef0..c13ba3a 100644 (file)
@@ -7,8 +7,9 @@ if GUI
 HELPTOOLS_SOURCES = src/jni/BuildDocObject.cpp \
        src/jni/GiwsException.cpp
 
-GATEWAY_C_SOURCES = sci_gateway/cpp/sci_buildDoc.cpp \
-                       sci_gateway/c/gw_helptools.c
+GATEWAY_C_SOURCES = sci_gateway/c/gw_helptools.c
+
+GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_buildDoc.cpp
 
 GIWS_WRAPPERS = src/jni/BuildDocObject.giws.xml
 
@@ -22,7 +23,10 @@ endif
 
 pkglib_LTLIBRARIES = libscihelptools.la
 
-libscihelptools_la_CFLAGS=     -I$(srcdir)/includes/ 
+libscihelptools_la_CFLAGS=     -I$(srcdir)/includes/ \
+                               -I$(top_srcdir)/modules/output_stream/includes/ \
+                               -I$(top_srcdir)/modules/jvm/includes
+
 
 libscihelptools_la_CPPFLAGS= $(JAVA_JNI_INCLUDE) \
                                -I$(srcdir)/src/jni/ \
@@ -32,7 +36,11 @@ libscihelptools_la_CPPFLAGS= $(JAVA_JNI_INCLUDE) \
 
 libscihelptools_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
-libscihelptools_la_SOURCES =  $(GATEWAY_C_SOURCES) $(HELPTOOLS_SOURCES)
+libscihelptools_la_SOURCES =  $(GATEWAY_C_SOURCES) $(HELPTOOLS_SOURCES) $(GATEWAY_CPP_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC= $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscihelptools_la_CFLAGS)
 
 libscihelptools_la_LIBADD = $(top_builddir)/modules/jvm/libscijvm.la
 
index 97e5a88..0b57b09 100644 (file)
@@ -105,14 +105,15 @@ LTLIBRARIES = $(pkglib_LTLIBRARIES)
 libscihelptools_la_DEPENDENCIES =  \
        $(top_builddir)/modules/jvm/libscijvm.la
 am__libscihelptools_la_SOURCES_DIST = sci_gateway/nogui/nogui.c \
-       sci_gateway/cpp/sci_buildDoc.cpp sci_gateway/c/gw_helptools.c \
-       src/jni/BuildDocObject.cpp src/jni/GiwsException.cpp
+       sci_gateway/c/gw_helptools.c src/jni/BuildDocObject.cpp \
+       src/jni/GiwsException.cpp sci_gateway/cpp/sci_buildDoc.cpp
 @GUI_FALSE@am__objects_1 = libscihelptools_la-nogui.lo
-@GUI_TRUE@am__objects_1 = libscihelptools_la-sci_buildDoc.lo \
-@GUI_TRUE@     libscihelptools_la-gw_helptools.lo
+@GUI_TRUE@am__objects_1 = libscihelptools_la-gw_helptools.lo
 @GUI_TRUE@am__objects_2 = libscihelptools_la-BuildDocObject.lo \
 @GUI_TRUE@     libscihelptools_la-GiwsException.lo
-am_libscihelptools_la_OBJECTS = $(am__objects_1) $(am__objects_2)
+@GUI_TRUE@am__objects_3 = libscihelptools_la-sci_buildDoc.lo
+am_libscihelptools_la_OBJECTS = $(am__objects_1) $(am__objects_2) \
+       $(am__objects_3)
 libscihelptools_la_OBJECTS = $(am_libscihelptools_la_OBJECTS)
 libscihelptools_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
@@ -367,13 +368,15 @@ top_srcdir = @top_srcdir@
 @GUI_TRUE@     src/jni/GiwsException.cpp
 
 @GUI_FALSE@GATEWAY_C_SOURCES = sci_gateway/nogui/nogui.c
-@GUI_TRUE@GATEWAY_C_SOURCES = sci_gateway/cpp/sci_buildDoc.cpp \
-@GUI_TRUE@                     sci_gateway/c/gw_helptools.c
-
+@GUI_TRUE@GATEWAY_C_SOURCES = sci_gateway/c/gw_helptools.c
+@GUI_TRUE@GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_buildDoc.cpp
 @GUI_TRUE@GIWS_WRAPPERS = src/jni/BuildDocObject.giws.xml
 @GIWS_TRUE@@GUI_TRUE@BUILT_SOURCES = giws
 pkglib_LTLIBRARIES = libscihelptools.la
-libscihelptools_la_CFLAGS = -I$(srcdir)/includes/ 
+libscihelptools_la_CFLAGS = -I$(srcdir)/includes/ \
+                               -I$(top_srcdir)/modules/output_stream/includes/ \
+                               -I$(top_srcdir)/modules/jvm/includes
+
 libscihelptools_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
                                -I$(srcdir)/src/jni/ \
                                -I$(srcdir)/includes/ \
@@ -381,7 +384,11 @@ libscihelptools_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
                                -I$(top_srcdir)/modules/output_stream/includes/
 
 libscihelptools_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
-libscihelptools_la_SOURCES = $(GATEWAY_C_SOURCES) $(HELPTOOLS_SOURCES)
+libscihelptools_la_SOURCES = $(GATEWAY_C_SOURCES) $(HELPTOOLS_SOURCES) $(GATEWAY_CPP_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscihelptools_la_CFLAGS)
 libscihelptools_la_LIBADD = $(top_builddir)/modules/jvm/libscijvm.la
 
 #### Target ######
@@ -509,6 +516,9 @@ examples/example_1/help/zh_TW/example_1_function_3.xml
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -688,13 +698,6 @@ libscihelptools_la-gw_helptools.lo: sci_gateway/c/gw_helptools.c
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
 
-libscihelptools_la-sci_buildDoc.lo: sci_gateway/cpp/sci_buildDoc.cpp
-@am__fastdepCXX_TRUE@  $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscihelptools_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscihelptools_la-sci_buildDoc.lo -MD -MP -MF $(DEPDIR)/libscihelptools_la-sci_buildDoc.Tpo -c -o libscihelptools_la-sci_buildDoc.lo `test -f 'sci_gateway/cpp/sci_buildDoc.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_buildDoc.cpp
-@am__fastdepCXX_TRUE@  mv -f $(DEPDIR)/libscihelptools_la-sci_buildDoc.Tpo $(DEPDIR)/libscihelptools_la-sci_buildDoc.Plo
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@     source='sci_gateway/cpp/sci_buildDoc.cpp' object='libscihelptools_la-sci_buildDoc.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscihelptools_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscihelptools_la-sci_buildDoc.lo `test -f 'sci_gateway/cpp/sci_buildDoc.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_buildDoc.cpp
-
 libscihelptools_la-BuildDocObject.lo: src/jni/BuildDocObject.cpp
 @am__fastdepCXX_TRUE@  $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscihelptools_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscihelptools_la-BuildDocObject.lo -MD -MP -MF $(DEPDIR)/libscihelptools_la-BuildDocObject.Tpo -c -o libscihelptools_la-BuildDocObject.lo `test -f 'src/jni/BuildDocObject.cpp' || echo '$(srcdir)/'`src/jni/BuildDocObject.cpp
 @am__fastdepCXX_TRUE@  mv -f $(DEPDIR)/libscihelptools_la-BuildDocObject.Tpo $(DEPDIR)/libscihelptools_la-BuildDocObject.Plo
@@ -709,6 +712,13 @@ libscihelptools_la-GiwsException.lo: src/jni/GiwsException.cpp
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscihelptools_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscihelptools_la-GiwsException.lo `test -f 'src/jni/GiwsException.cpp' || echo '$(srcdir)/'`src/jni/GiwsException.cpp
 
+libscihelptools_la-sci_buildDoc.lo: sci_gateway/cpp/sci_buildDoc.cpp
+@am__fastdepCXX_TRUE@  $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscihelptools_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libscihelptools_la-sci_buildDoc.lo -MD -MP -MF $(DEPDIR)/libscihelptools_la-sci_buildDoc.Tpo -c -o libscihelptools_la-sci_buildDoc.lo `test -f 'sci_gateway/cpp/sci_buildDoc.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_buildDoc.cpp
+@am__fastdepCXX_TRUE@  mv -f $(DEPDIR)/libscihelptools_la-sci_buildDoc.Tpo $(DEPDIR)/libscihelptools_la-sci_buildDoc.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     source='sci_gateway/cpp/sci_buildDoc.cpp' object='libscihelptools_la-sci_buildDoc.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscihelptools_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libscihelptools_la-sci_buildDoc.lo `test -f 'sci_gateway/cpp/sci_buildDoc.cpp' || echo '$(srcdir)/'`sci_gateway/cpp/sci_buildDoc.cpp
+
 mostlyclean-libtool:
        -rm -f *.lo
 
@@ -1220,12 +1230,14 @@ uninstall-am: uninstall-libscihelptools_la_binDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 7eb1e3e..15564ee 100644 (file)
@@ -61,6 +61,10 @@ libscihistory_manager_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(JAV
 # All the sources needed by libscihistory_manager.la
 libscihistory_manager_la_SOURCES = $(HISTORY_MANAGER_C_SOURCES) $(HISTORY_MANAGER_CPP_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(HISTORY_MANAGER_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscihistory_manager_la_CFLAGS)
+
 ## Libraries necessary
 libscihistory_manager_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 modulename=history_manager
index 4e36219..f8e57f2 100644 (file)
@@ -422,6 +422,10 @@ libscihistory_manager_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(JAV
 
 # All the sources needed by libscihistory_manager.la
 libscihistory_manager_la_SOURCES = $(HISTORY_MANAGER_C_SOURCES) $(HISTORY_MANAGER_CPP_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(HISTORY_MANAGER_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscihistory_manager_la_CFLAGS)
 libscihistory_manager_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 modulename = history_manager
 
@@ -452,6 +456,9 @@ SWIG_WRAPPERS = src/jni/HistoryManagement.i
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1051,12 +1058,14 @@ uninstall-am: uninstall-libscihistory_manager_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 71c1c67..6ee4925 100644 (file)
@@ -123,6 +123,10 @@ libsciinteger_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libsciinteger_la_SOURCES = $(INTEGER_C_SOURCES) $(INTEGER_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC=  $(INTEGER_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciinteger_la_CFLAGS)
+
 # cyclic $(top_builddir)/modules/polynomials/libscipolynomials.la
 libsciinteger_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la  $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/libs/libst/libscilibst.la
 
index 3befd2f..eb4322c 100644 (file)
@@ -482,6 +482,10 @@ pkglib_LTLIBRARIES = libsciinteger.la
 libsciinteger_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libsciinteger_la_SOURCES = $(INTEGER_C_SOURCES) $(INTEGER_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(INTEGER_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciinteger_la_CFLAGS)
+
 # cyclic $(top_builddir)/modules/polynomials/libscipolynomials.la
 libsciinteger_la_LIBADD = $(top_builddir)/modules/core/libscicore.la  $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/libs/libst/libscilibst.la
 
@@ -509,6 +513,9 @@ includes/def.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1471,12 +1478,14 @@ uninstall-am: uninstall-libsciinteger_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index cccf4fc..428a392 100644 (file)
@@ -43,6 +43,10 @@ libsciinterpolation_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libsciinterpolation_la_SOURCES = $(SLATEC_SOURCES) $(INTERPOLATION_C_SOURCES) $(INTERPOLATION_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(INTERPOLATION_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciinterpolation_la_CFLAGS)
+
 libsciinterpolation_la_LIBADD = \
        $(top_builddir)/modules/core/libscicore.la \
        $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
index 342716e..0bdf059 100644 (file)
@@ -385,6 +385,10 @@ libsciinterpolation_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libsciinterpolation.la
 libsciinterpolation_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libsciinterpolation_la_SOURCES = $(SLATEC_SOURCES) $(INTERPOLATION_C_SOURCES) $(INTERPOLATION_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(INTERPOLATION_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciinterpolation_la_CFLAGS)
 libsciinterpolation_la_LIBADD = \
        $(top_builddir)/modules/core/libscicore.la \
        $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
@@ -417,6 +421,9 @@ libsciinterpolation_la_demos_DATA = demos/interp_demo.sci
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -988,12 +995,14 @@ uninstall-am: uninstall-libsciinterpolation_la_demosDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index c79680e..1d43c47 100644 (file)
@@ -23,7 +23,6 @@ src/exe/check.c
 
 libsciintersci_la_includedir=$(pkgincludedir)/intersci
 
-
 pkglib_LTLIBRARIES = libsciintersci.la
 
 libsciintersci_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
@@ -37,6 +36,10 @@ libsciintersci_la_CFLAGS =   -I$(top_srcdir)/libs/MALLOC/includes/ \
                                -I$(top_srcdir)/modules/output_stream/includes \
                 -I$(top_srcdir)/modules/string/includes        
 
+# For the code check (splint)
+CHECK_SRC= $(libsciintersci_la_SOURCES)
+INCLUDE_FLAGS = $(libsciintersci_la_CFLAGS)
+
 libsciintersci_la_LIBADD = \
        $(top_builddir)/libs/MALLOC/libscimalloc.la \
        $(top_builddir)/modules/output_stream/libscioutput_stream.la \
index 42d7e13..31c5a2d 100644 (file)
@@ -347,6 +347,10 @@ libsciintersci_la_CFLAGS = -I$(top_srcdir)/libs/MALLOC/includes/ \
                                -I$(top_srcdir)/modules/output_stream/includes \
                 -I$(top_srcdir)/modules/string/includes        
 
+
+# For the code check (splint)
+CHECK_SRC = $(libsciintersci_la_SOURCES)
+INCLUDE_FLAGS = $(libsciintersci_la_CFLAGS)
 libsciintersci_la_LIBADD = \
        $(top_builddir)/libs/MALLOC/libscimalloc.la \
        $(top_builddir)/modules/output_stream/libscioutput_stream.la \
@@ -367,6 +371,9 @@ libsciintersci_la_etc_DATA = etc/intersci.quit etc/intersci.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -952,12 +959,14 @@ uninstall-am: uninstall-binPROGRAMS \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index a972373..5fba1c5 100644 (file)
@@ -84,6 +84,10 @@ libsciio_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libsciio_la_SOURCES = $(IO_C_SOURCES) $(IO_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(IO_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciio_la_CFLAGS)
+
 libsciio_la_LIBADD = libdummy-io.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/tclsci/libscitclsci.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/integer/libsciinteger.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
 
index 98661ef..5f65d47 100644 (file)
@@ -438,6 +438,10 @@ libsciio_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libsciio.la
 libsciio_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libsciio_la_SOURCES = $(IO_C_SOURCES) $(IO_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(IO_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciio_la_CFLAGS)
 libsciio_la_LIBADD = libdummy-io.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/tclsci/libscitclsci.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/integer/libsciinteger.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
 #### Target ######
@@ -466,6 +470,9 @@ includes/setenvc.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1271,12 +1278,14 @@ libdummy_io_la-intmgetl.lo: sci_gateway/fortran/intmgetl.f
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 755bf37..76cbab1 100644 (file)
@@ -31,6 +31,10 @@ libjavasci_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libjavasci_la_SOURCES = $(JAVASCI_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(JAVASCI_C_SOURCES)
+INCLUDE_FLAGS = $(libjavasci_la_CFLAGS)
+
 libjavasci_la_CFLAGS = -I$(srcdir)/includes/ \
                        $(JAVA_JNI_INCLUDE) \
                        $(TCL_INC_PATH) \
index f2f3b9a..9bbefe9 100644 (file)
@@ -364,6 +364,10 @@ modulename = javasci
 @JAVASCI_TRUE@pkglib_LTLIBRARIES = libjavasci.la
 @JAVASCI_TRUE@libjavasci_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 @JAVASCI_TRUE@libjavasci_la_SOURCES = $(JAVASCI_C_SOURCES)
+
+# For the code check (splint)
+@JAVASCI_TRUE@CHECK_SRC = $(JAVASCI_C_SOURCES)
+@JAVASCI_TRUE@INCLUDE_FLAGS = $(libjavasci_la_CFLAGS)
 @JAVASCI_TRUE@libjavasci_la_CFLAGS = -I$(srcdir)/includes/ \
 @JAVASCI_TRUE@                 $(JAVA_JNI_INCLUDE) \
 @JAVASCI_TRUE@                 $(TCL_INC_PATH) \
@@ -445,6 +449,9 @@ modulename = javasci
 # Where all the Scilab stuff is installed (macros, help, ...)
 @JAVASCI_TRUE@mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+@JAVASCI_TRUE@SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -955,12 +962,14 @@ uninstall-am: uninstall-libjavasci_la_etcDATA \
 
 # This target enables tests for Scilab
 @JAVASCI_TRUE@check-local: $(top_builddir)/scilab-bin
+@JAVASCI_TRUE@ @COMMAND="test_run('$(modulename)');quit";\
+@JAVASCI_TRUE@ export LANG=C;\
+@JAVASCI_TRUE@ $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@JAVASCI_TRUE@check-code:
 @JAVASCI_TRUE@ @if test -f build.xml; then \
 @JAVASCI_TRUE@         $(ANT) checkstyle; \
 @JAVASCI_TRUE@ fi;\
-@JAVASCI_TRUE@ COMMAND="test_run('$(modulename)');quit";\
-@JAVASCI_TRUE@ export LANG=C;\
-@JAVASCI_TRUE@ $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@JAVASCI_TRUE@ splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @JAVASCI_TRUE@@NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @JAVASCI_TRUE@@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 32196a1..3423ed8 100644 (file)
@@ -88,5 +88,9 @@ endif
 
 libscijvm_la_SOURCES = $(JVM_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(libscijvm_la_SOURCES)
+INCLUDE_FLAGS = $(libscijvm_la_CFLAGS)
+
 
 include $(top_srcdir)/Makefile.incl.am
index c85c6a1..4841594 100644 (file)
@@ -427,9 +427,16 @@ includes/loadOnUseClassPath.h
 @GUI_TRUE@USEANT = 1
 libscijvm_la_SOURCES = $(JVM_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(libscijvm_la_SOURCES)
+INCLUDE_FLAGS = $(libscijvm_la_CFLAGS)
+
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1042,12 +1049,14 @@ uninstall-am: uninstall-libscijvm_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index e9ca25f..c632386 100644 (file)
@@ -100,6 +100,10 @@ libscilinear_algebra_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscilinear_algebra_la_SOURCES = $(LINEAR_ALGEBRA_FORTRAN_SOURCES) $(LINEAR_ALGEBRA_C_SOURCES) $(SLICOT_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(LINEAR_ALGEBRA_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscilinear_algebra_la_CFLAGS)
+
 libscilinear_algebra_la_LIBADD =  $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/dynamic_link/libscidynamic_link.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
 if USE_EMBEDDED_LAPACK
index 528ec44..c1f2619 100644 (file)
@@ -457,6 +457,10 @@ libscilinear_algebra_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscilinear_algebra.la
 libscilinear_algebra_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscilinear_algebra_la_SOURCES = $(LINEAR_ALGEBRA_FORTRAN_SOURCES) $(LINEAR_ALGEBRA_C_SOURCES) $(SLICOT_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(LINEAR_ALGEBRA_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscilinear_algebra_la_CFLAGS)
 libscilinear_algebra_la_LIBADD = $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
        $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
        $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
@@ -488,6 +492,9 @@ includes/issymmetric.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1246,12 +1253,14 @@ uninstall-am: uninstall-libscilinear_algebra_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 4d0835d..dd556d3 100644 (file)
@@ -40,6 +40,10 @@ libscilocalization_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(JAVA_J
 
 libscilocalization_la_SOURCES = $(LOCALIZATION_C_SOURCES)  $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(libscilocalization_la_SOURCES)
+INCLUDE_FLAGS = $(libscilocalization_la_CFLAGS)
+
 libscilocalization_la_LIBADD =   $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 # $(top_builddir)/modules/io/libsciio.la
 #### Target ######
index 50daa70..126dc78 100644 (file)
@@ -361,6 +361,10 @@ libscilocalization_la_CFLAGS = $(JAVA_JNI_INCLUDE) \
 pkglib_LTLIBRARIES = libscilocalization.la
 libscilocalization_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(JAVA_JNI_LIBS)
 libscilocalization_la_SOURCES = $(LOCALIZATION_C_SOURCES)  $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(libscilocalization_la_SOURCES)
+INCLUDE_FLAGS = $(libscilocalization_la_CFLAGS)
 libscilocalization_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 # $(top_builddir)/modules/io/libsciio.la
 #### Target ######
@@ -392,6 +396,9 @@ includes/localetoutf.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -886,12 +893,14 @@ uninstall-am: uninstall-libscilocalization_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 038ba3f..c068fe0 100644 (file)
@@ -299,6 +299,9 @@ libm2sci_la_etc_DATA = etc/m2sci.quit etc/m2sci.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -561,12 +564,14 @@ uninstall-am: uninstall-libm2sci_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index b30328e..2a0978a 100644 (file)
@@ -296,6 +296,9 @@ libmaple2scilab_la_etc_DATA = etc/maple2scilab.quit etc/maple2scilab.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -559,12 +562,14 @@ uninstall-am: uninstall-libmaple2scilab_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 652e4ac..0a5ac44 100644 (file)
@@ -54,6 +54,10 @@ pkglib_LTLIBRARIES = libscimatio.la
 
 libscimatio_la_SOURCES = $(MATIO_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(libscimatio_la_SOURCES)
+INCLUDE_FLAGS = $(libscimatio_la_CFLAGS)
+
 #### Target ######
 modulename=matio
 
index 8fd13d6..bbe39bd 100644 (file)
@@ -356,6 +356,9 @@ top_srcdir = @top_srcdir@
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -443,6 +446,10 @@ libscimatio_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscimatio.la
 libscimatio_la_SOURCES = $(MATIO_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(libscimatio_la_SOURCES)
+INCLUDE_FLAGS = $(libscimatio_la_CFLAGS)
+
 #### Target ######
 modulename = matio
 
@@ -1019,12 +1026,14 @@ uninstall-am: uninstall-libscimatio_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index bebb10c..bdc4c60 100644 (file)
@@ -127,6 +127,10 @@ libscimetanet_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscimetanet_la_SOURCES = $(METANET_C_SOURCES) $(METANET_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(METANET_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscimetanet_la_CFLAGS)
+
 libscimetanet_la_LIBADD = $(top_builddir)/libs/hashtable/libscihashtable.la $(top_builddir)/modules/intersci/libsciintersci.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
 if USE_EMBEDDED_BLAS
index 8f3731b..017e181 100644 (file)
@@ -482,6 +482,10 @@ libscimetanet_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscimetanet.la
 libscimetanet_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscimetanet_la_SOURCES = $(METANET_C_SOURCES) $(METANET_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(METANET_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscimetanet_la_CFLAGS)
 libscimetanet_la_LIBADD =  \
        $(top_builddir)/libs/hashtable/libscihashtable.la \
        $(top_builddir)/modules/intersci/libsciintersci.la \
@@ -537,6 +541,9 @@ MACROSDIRSEXT = macros/editor macros/graph_tools
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1349,12 +1356,14 @@ uninstall-am: uninstall-libscimetanet_la_demosDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 7ac89ee..1fd1b2f 100644 (file)
@@ -45,6 +45,9 @@ libmx_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 #### Target ######
 modulename=mexlib
 
+# For the code check (splint)
+CHECK_SRC= $(MEXLIB_C_SOURCES)
+INCLUDE_FLAGS = $(MEXLIB_FLAGS)
 
 #### mexlib : Conf files ####
 libmex_la_rootdir = $(mydatadir)
index d2419f5..89d74d7 100644 (file)
@@ -353,6 +353,10 @@ libmx_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 #### Target ######
 modulename = mexlib
 
+# For the code check (splint)
+CHECK_SRC = $(MEXLIB_C_SOURCES)
+INCLUDE_FLAGS = $(MEXLIB_FLAGS)
+
 #### mexlib : Conf files ####
 libmex_la_rootdir = $(mydatadir)
 libmex_la_root_DATA = changelog.txt license.txt readme.txt version.xml
@@ -368,6 +372,9 @@ libmex_la_include_HEADERS = includes/mex.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -783,12 +790,14 @@ uninstall-am: uninstall-libmex_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index fea73d1..c1bdc87 100644 (file)
@@ -129,6 +129,10 @@ libscioptimization_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscioptimization_la_SOURCES = $(OPTIMIZATION_C_SOURCES) $(OPTIMIZATION_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(MINPACK_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(OPTIMIZATION_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscioptimization_la_CFLAGS)
+
 libscioptimization_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la  $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/dynamic_link/libscidynamic_link.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
 if USE_EMBEDDED_LAPACK
index 6c73ce3..38f0290 100644 (file)
@@ -486,6 +486,10 @@ libscioptimization_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscioptimization.la
 libscioptimization_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscioptimization_la_SOURCES = $(OPTIMIZATION_C_SOURCES) $(OPTIMIZATION_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(MINPACK_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(OPTIMIZATION_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscioptimization_la_CFLAGS)
 libscioptimization_la_LIBADD =  \
        $(top_builddir)/modules/core/libscicore.la \
        $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
@@ -541,6 +545,9 @@ demos/optimization.dem.gateway.sce
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1376,12 +1383,14 @@ uninstall-am: uninstall-libscioptimization_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 8e38ed3..fb56a92 100644 (file)
@@ -45,6 +45,10 @@ libscioutput_stream_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscioutput_stream_la_SOURCES = $(OUTPUT_STREAM_C_SOURCES) $(OUTPUT_STREAM_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(JNI_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(OUTPUT_STREAM_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscioutput_stream_la_CFLAGS)
+
 # Many stuff depends on this one ... commented
 #libscioutput_stream_la_LIBADD =  $(top_builddir)/modules/console/libsciconsole.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/shell/libscishell.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la
 #### Target ######
index 569de0f..2f92a4b 100644 (file)
@@ -359,6 +359,10 @@ pkglib_LTLIBRARIES = libscioutput_stream.la
 libscioutput_stream_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscioutput_stream_la_SOURCES = $(OUTPUT_STREAM_C_SOURCES) $(OUTPUT_STREAM_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(JNI_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(OUTPUT_STREAM_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscioutput_stream_la_CFLAGS)
+
 # Many stuff depends on this one ... commented
 #libscioutput_stream_la_LIBADD =  $(top_builddir)/modules/console/libsciconsole.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/shell/libscishell.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la
 #### Target ######
@@ -397,6 +401,9 @@ libscioutput_stream_la_demosintro_DATA =
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -952,12 +959,14 @@ uninstall-am: uninstall-libscioutput_stream_la_demosintroDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index eb71da1..6be9cc3 100644 (file)
@@ -297,6 +297,9 @@ libscioverloading_la_etc_DATA = etc/overloading.quit etc/overloading.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -561,12 +564,14 @@ uninstall-am: uninstall-libscioverloading_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index f1f8246..3ce736f 100644 (file)
@@ -307,6 +307,9 @@ libparameters_la_demos_DATA = demos/params_demo.sce
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -591,12 +594,14 @@ uninstall-am: uninstall-libparameters_la_demosDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 487c5aa..6149c61 100644 (file)
@@ -117,6 +117,10 @@ libscipolynomials_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscipolynomials_la_SOURCES = $(POLYNOMIALS_FORTRAN_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(EISPACK_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= ) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscipolynomials_la_CFLAGS)
+
 libscipolynomials_la_LIBADD =  $(top_builddir)/modules/cacsd/libscicacsd.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/linear_algebra/libscilinear_algebra.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
 
index d0db949..1fb8d10 100644 (file)
@@ -474,6 +474,10 @@ libscipolynomials_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscipolynomials.la
 libscipolynomials_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscipolynomials_la_SOURCES = $(POLYNOMIALS_FORTRAN_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(EISPACK_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = ) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscipolynomials_la_CFLAGS)
 libscipolynomials_la_LIBADD =  \
        $(top_builddir)/modules/cacsd/libscicacsd.la \
        $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
@@ -512,6 +516,9 @@ demos/intro/poly.intro.dem.sce
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1333,12 +1340,14 @@ uninstall-am: uninstall-libscipolynomials_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 0f8c183..3de3e0d 100644 (file)
@@ -58,6 +58,10 @@ libscipvm_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(PVM_LIB) lgpvm3
 
 libscipvm_la_SOURCES = $(PVM_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(PVM_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscipvm_la_CFLAGS)
+
 libscipvm_la_LIBADD =  $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
 modulename=pvm
index a9246e8..0506183 100644 (file)
@@ -460,6 +460,10 @@ top_srcdir = @top_srcdir@
 @PVM_TRUE@libscipvm_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(PVM_LIB) lgpvm3
 @PVM_FALSE@libscipvm_la_SOURCES = $(PVM_C_SOURCES) 
 @PVM_TRUE@libscipvm_la_SOURCES = $(PVM_C_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+@PVM_TRUE@CHECK_SRC = $(PVM_C_SOURCES) $(GATEWAY_C_SOURCES)
+@PVM_TRUE@INCLUDE_FLAGS = $(libscipvm_la_CFLAGS)
 @PVM_FALSE@libscipvm_la_LIBADD = \
 @PVM_FALSE@    $(top_builddir)/modules/core/libscicore.la
 
@@ -502,6 +506,12 @@ top_srcdir = @top_srcdir@
 # Where all the Scilab stuff is installed (macros, help, ...)
 @PVM_TRUE@mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+@PVM_FALSE@SPLINT_OPTIONS = -weak -booltype BOOL
+
+# splint options
+@PVM_TRUE@SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1334,12 +1344,14 @@ uninstall-am: uninstall-libscipvm_la_demosDATA \
 
 # This target enables tests for Scilab
 @PVM_TRUE@check-local: $(top_builddir)/scilab-bin
+@PVM_TRUE@     @COMMAND="test_run('$(modulename)');quit";\
+@PVM_TRUE@     export LANG=C;\
+@PVM_TRUE@     $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@PVM_TRUE@check-code:
 @PVM_TRUE@     @if test -f build.xml; then \
 @PVM_TRUE@             $(ANT) checkstyle; \
 @PVM_TRUE@     fi;\
-@PVM_TRUE@     COMMAND="test_run('$(modulename)');quit";\
-@PVM_TRUE@     export LANG=C;\
-@PVM_TRUE@     $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@PVM_TRUE@     splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@@PVM_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@@PVM_TRUE@     @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
@@ -1483,12 +1495,14 @@ uninstall-am: uninstall-libscipvm_la_demosDATA \
 
 # This target enables tests for Scilab
 @PVM_FALSE@check-local: $(top_builddir)/scilab-bin
+@PVM_FALSE@    @COMMAND="test_run('$(modulename)');quit";\
+@PVM_FALSE@    export LANG=C;\
+@PVM_FALSE@    $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@PVM_FALSE@check-code:
 @PVM_FALSE@    @if test -f build.xml; then \
 @PVM_FALSE@            $(ANT) checkstyle; \
 @PVM_FALSE@    fi;\
-@PVM_FALSE@    COMMAND="test_run('$(modulename)');quit";\
-@PVM_FALSE@    export LANG=C;\
-@PVM_FALSE@    $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@PVM_FALSE@    splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@@PVM_FALSE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@@PVM_FALSE@    @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index cac76f0..e4812e6 100644 (file)
@@ -53,6 +53,10 @@ libscirandlib_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscirandlib_la_SOURCES = $(RANDLIB_C_SOURCES) $(GATEWAY_C_SOURCES) $(RANDLIB_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(RANDLIB_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscirandlib_la_CFLAGS)
+
 libscirandlib_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la
 
 
index c36d2e2..3ece7af 100644 (file)
@@ -386,6 +386,10 @@ libscirandlib_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscirandlib.la
 libscirandlib_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscirandlib_la_SOURCES = $(RANDLIB_C_SOURCES) $(GATEWAY_C_SOURCES) $(RANDLIB_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(RANDLIB_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscirandlib_la_CFLAGS)
 libscirandlib_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la
 
 #### Target ######
@@ -428,6 +432,9 @@ demos/weibull.dem.sce
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1037,12 +1044,14 @@ uninstall-am: uninstall-libscirandlib_la_demosDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index ad82a5c..ad57cf1 100644 (file)
@@ -277,9 +277,15 @@ libscirenderer_la_CPPFLAGS =       $(JAVA_JNI_INCLUDE) \
                                -I$(top_srcdir)/modules/graphic_export/includes/ \
                                -I$(top_srcdir)/modules/elementary_functions/includes/
 
+libscirenderer_la_CFLAGS=      -I$(srcdir)/includes/
+
 # All the sources needed by libscirenderer.la
 libscirenderer_la_SOURCES = $(RENDERER_CPP_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscirenderer_la_CFLAGS)
+
 ## Libraries necessary
 ## Change to include other Scilab modules/lib
 # cyclic $(top_builddir)/modules/graphics/libscigraphics.la 
index 09a791c..1ff4530 100644 (file)
@@ -1094,6 +1094,7 @@ top_srcdir = @top_srcdir@
 @GUI_TRUE@                             -I$(top_srcdir)/modules/graphic_export/includes/ \
 @GUI_TRUE@                             -I$(top_srcdir)/modules/elementary_functions/includes/
 
+@GUI_TRUE@libscirenderer_la_CFLAGS = -I$(srcdir)/includes/
 
 # All the sources needed by libscirenderer.la
 @GUI_FALSE@libscirenderer_la_SOURCES = src/norenderer/norenderer.c
@@ -1101,6 +1102,10 @@ top_srcdir = @top_srcdir@
 # All the sources needed by libscirenderer.la
 @GUI_TRUE@libscirenderer_la_SOURCES = $(RENDERER_CPP_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+@GUI_TRUE@CHECK_SRC = $(GATEWAY_C_SOURCES)
+@GUI_TRUE@INCLUDE_FLAGS = $(libscirenderer_la_CFLAGS)
+
 # cyclic $(top_builddir)/modules/graphics/libscigraphics.la 
 @GUI_TRUE@libscirenderer_la_LIBADD = $(top_builddir)/libs/doublylinkedlist/libscidoublylinkedlist.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
@@ -1193,6 +1198,9 @@ includes/rendererBasicAlgos.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1588,25 +1596,25 @@ distclean-compile:
 @am__fastdepCC_FALSE@  $(LTCOMPILE) -c -o $@ $<
 
 libscirenderer_la-norenderer.lo: src/norenderer/norenderer.c
-@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libscirenderer_la-norenderer.lo -MD -MP -MF $(DEPDIR)/libscirenderer_la-norenderer.Tpo -c -o libscirenderer_la-norenderer.lo `test -f 'src/norenderer/norenderer.c' || echo '$(srcdir)/'`src/norenderer/norenderer.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(libscirenderer_la_CFLAGS) $(CFLAGS) -MT libscirenderer_la-norenderer.lo -MD -MP -MF $(DEPDIR)/libscirenderer_la-norenderer.Tpo -c -o libscirenderer_la-norenderer.lo `test -f 'src/norenderer/norenderer.c' || echo '$(srcdir)/'`src/norenderer/norenderer.c
 @am__fastdepCC_TRUE@   mv -f $(DEPDIR)/libscirenderer_la-norenderer.Tpo $(DEPDIR)/libscirenderer_la-norenderer.Plo
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      source='src/norenderer/norenderer.c' object='libscirenderer_la-norenderer.lo' libtool=yes @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libscirenderer_la-norenderer.lo `test -f 'src/norenderer/norenderer.c' || echo '$(srcdir)/'`src/norenderer/norenderer.c
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(libscirenderer_la_CFLAGS) $(CFLAGS) -c -o libscirenderer_la-norenderer.lo `test -f 'src/norenderer/norenderer.c' || echo '$(srcdir)/'`src/norenderer/norenderer.c
 
 libscirenderer_la-FigureScilabCall_wrap.lo: src/jni/FigureScilabCall_wrap.c
-@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libscirenderer_la-FigureScilabCall_wrap.lo -MD -MP -MF $(DEPDIR)/libscirenderer_la-FigureScilabCall_wrap.Tpo -c -o libscirenderer_la-FigureScilabCall_wrap.lo `test -f 'src/jni/FigureScilabCall_wrap.c' || echo '$(srcdir)/'`src/jni/FigureScilabCall_wrap.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(libscirenderer_la_CFLAGS) $(CFLAGS) -MT libscirenderer_la-FigureScilabCall_wrap.lo -MD -MP -MF $(DEPDIR)/libscirenderer_la-FigureScilabCall_wrap.Tpo -c -o libscirenderer_la-FigureScilabCall_wrap.lo `test -f 'src/jni/FigureScilabCall_wrap.c' || echo '$(srcdir)/'`src/jni/FigureScilabCall_wrap.c
 @am__fastdepCC_TRUE@   mv -f $(DEPDIR)/libscirenderer_la-FigureScilabCall_wrap.Tpo $(DEPDIR)/libscirenderer_la-FigureScilabCall_wrap.Plo
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      source='src/jni/FigureScilabCall_wrap.c' object='libscirenderer_la-FigureScilabCall_wrap.lo' libtool=yes @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libscirenderer_la-FigureScilabCall_wrap.lo `test -f 'src/jni/FigureScilabCall_wrap.c' || echo '$(srcdir)/'`src/jni/FigureScilabCall_wrap.c
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(libscirenderer_la_CFLAGS) $(CFLAGS) -c -o libscirenderer_la-FigureScilabCall_wrap.lo `test -f 'src/jni/FigureScilabCall_wrap.c' || echo '$(srcdir)/'`src/jni/FigureScilabCall_wrap.c
 
 libscirenderer_la-gw_renderer.lo: sci_gateway/c/gw_renderer.c
-@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libscirenderer_la-gw_renderer.lo -MD -MP -MF $(DEPDIR)/libscirenderer_la-gw_renderer.Tpo -c -o libscirenderer_la-gw_renderer.lo `test -f 'sci_gateway/c/gw_renderer.c' || echo '$(srcdir)/'`sci_gateway/c/gw_renderer.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(libscirenderer_la_CFLAGS) $(CFLAGS) -MT libscirenderer_la-gw_renderer.lo -MD -MP -MF $(DEPDIR)/libscirenderer_la-gw_renderer.Tpo -c -o libscirenderer_la-gw_renderer.lo `test -f 'sci_gateway/c/gw_renderer.c' || echo '$(srcdir)/'`sci_gateway/c/gw_renderer.c
 @am__fastdepCC_TRUE@   mv -f $(DEPDIR)/libscirenderer_la-gw_renderer.Tpo $(DEPDIR)/libscirenderer_la-gw_renderer.Plo
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      source='sci_gateway/c/gw_renderer.c' object='libscirenderer_la-gw_renderer.lo' libtool=yes @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libscirenderer_la-gw_renderer.lo `test -f 'sci_gateway/c/gw_renderer.c' || echo '$(srcdir)/'`sci_gateway/c/gw_renderer.c
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscirenderer_la_CPPFLAGS) $(CPPFLAGS) $(libscirenderer_la_CFLAGS) $(CFLAGS) -c -o libscirenderer_la-gw_renderer.lo `test -f 'sci_gateway/c/gw_renderer.c' || echo '$(srcdir)/'`sci_gateway/c/gw_renderer.c
 
 .cpp.o:
 @am__fastdepCXX_TRUE@  $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -3657,12 +3665,14 @@ uninstall-am: uninstall-libscirenderer_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index dffd9bf..599d427 100644 (file)
@@ -108,6 +108,10 @@ libsciscicos_la_CFLAGS= -I$(srcdir)/includes/ \
 
 libsciscicos_la_SOURCES = $(SCICOS_C_SOURCES) $(SCICOS_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(SCICOS_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libsciscicos_la_CFLAGS)
+
 libsciscicos_la_LIBADD =  $(top_builddir)/modules/string/libscistring.la $(top_builddir)/modules/mexlib/libmat.la $(top_builddir)/modules/mexlib/libmx.la $(top_builddir)/modules/intersci/libsciintersci.la $(top_builddir)/modules/graphics/libscigraphics.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/time/libscitime.la $(top_builddir)/modules/dynamic_link/libscidynamic_link.la $(top_builddir)/modules/scicos/libscisundials.la $(top_builddir)/modules/scicos_blocks/libsciscicos_blocks.la $(top_builddir)/modules/mexlib/libmex.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la 
 
 if USE_EMBEDDED_BLAS
index 6e46631..1927eb6 100644 (file)
@@ -517,6 +517,9 @@ libsciscicos_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(RT_LIB)
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -653,6 +656,10 @@ HELP_CHAPTERFILE = addchapter.sce
 
 @SCICOS_FALSE@libsciscicos_la_SOURCES = $(NO_SCICOS_C_SOURCES)
 @SCICOS_TRUE@libsciscicos_la_SOURCES = $(SCICOS_C_SOURCES) $(SCICOS_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+@SCICOS_TRUE@CHECK_SRC = $(SCICOS_C_SOURCES) $(GATEWAY_C_SOURCES)
+@SCICOS_TRUE@INCLUDE_FLAGS = $(libsciscicos_la_CFLAGS)
 @SCICOS_TRUE@libsciscicos_la_LIBADD =  \
 @SCICOS_TRUE@  $(top_builddir)/modules/string/libscistring.la \
 @SCICOS_TRUE@  $(top_builddir)/modules/mexlib/libmat.la \
@@ -1977,12 +1984,14 @@ uninstall-am: uninstall-binPROGRAMS uninstall-libsciscicos_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index ce488de..ba67f15 100644 (file)
@@ -412,6 +412,10 @@ $(SCICOS_BLOCKS_FORTRAN_SOURCES) \
 $(NON_BLOCK_C_SOURCES)
 
 
+# For the code check (splint)
+CHECK_SRC= $(SCICOS_BLOCKS_C_SOURCES) $(NON_BLOCK_C_SOURCES)
+INCLUDE_FLAGS = $(libsciscicos_blocks_la_CFLAGS)
+
 
 #$(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
index f68a547..69fe771 100644 (file)
@@ -805,6 +805,9 @@ modulename = scicos_blocks
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1241,6 +1244,10 @@ HELP_CHAPTERFILE = addchapter.sce
 @SCICOS_TRUE@$(NON_BLOCK_C_SOURCES)
 
 
+# For the code check (splint)
+@SCICOS_TRUE@CHECK_SRC = $(SCICOS_BLOCKS_C_SOURCES) $(NON_BLOCK_C_SOURCES)
+@SCICOS_TRUE@INCLUDE_FLAGS = $(libsciscicos_blocks_la_CFLAGS)
+
 #$(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
 #### scicos_blocks : Generation of the  includes/blocks.h Files ####
@@ -4277,12 +4284,14 @@ uninstall-am: uninstall-libsciscicos_blocks_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 1605263..0168138 100644 (file)
@@ -312,6 +312,9 @@ demos/printspecs.sci
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -597,12 +600,14 @@ uninstall-am: uninstall-libscilab2fortran_la_demosDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index aa07b90..67a61c2 100644 (file)
@@ -439,6 +439,12 @@ top_srcdir = @top_srcdir@
 # Where all the Scilab stuff is installed (macros, help, ...)
 @TCLTK_TRUE@mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+@TCLTK_FALSE@SPLINT_OPTIONS = -weak -booltype BOOL
+
+# splint options
+@TCLTK_TRUE@SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -834,12 +840,14 @@ uninstall-am: uninstall-libsciscipad_la_bindingsDATA \
 
 # This target enables tests for Scilab
 @TCLTK_TRUE@check-local: $(top_builddir)/scilab-bin
+@TCLTK_TRUE@   @COMMAND="test_run('$(modulename)');quit";\
+@TCLTK_TRUE@   export LANG=C;\
+@TCLTK_TRUE@   $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@TCLTK_TRUE@check-code:
 @TCLTK_TRUE@   @if test -f build.xml; then \
 @TCLTK_TRUE@           $(ANT) checkstyle; \
 @TCLTK_TRUE@   fi;\
-@TCLTK_TRUE@   COMMAND="test_run('$(modulename)');quit";\
-@TCLTK_TRUE@   export LANG=C;\
-@TCLTK_TRUE@   $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@TCLTK_TRUE@   splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@@TCLTK_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@@TCLTK_TRUE@   @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
@@ -983,12 +991,14 @@ uninstall-am: uninstall-libsciscipad_la_bindingsDATA \
 
 # This target enables tests for Scilab
 @TCLTK_FALSE@check-local: $(top_builddir)/scilab-bin
+@TCLTK_FALSE@  @COMMAND="test_run('$(modulename)');quit";\
+@TCLTK_FALSE@  export LANG=C;\
+@TCLTK_FALSE@  $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@TCLTK_FALSE@check-code:
 @TCLTK_FALSE@  @if test -f build.xml; then \
 @TCLTK_FALSE@          $(ANT) checkstyle; \
 @TCLTK_FALSE@  fi;\
-@TCLTK_FALSE@  COMMAND="test_run('$(modulename)');quit";\
-@TCLTK_FALSE@  export LANG=C;\
-@TCLTK_FALSE@  $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@TCLTK_FALSE@  splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@@TCLTK_FALSE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@@TCLTK_FALSE@  @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index dcc8968..c8fe8e6 100644 (file)
@@ -55,6 +55,10 @@ libscishell_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(JAVA_JNI_LIBS
 # All the sources needed by libscishell.la
 libscishell_la_SOURCES = $(SHELL_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(libscishell_la_SOURCES)
+INCLUDE_FLAGS = $(libscishell_la_CFLAGS)
+
 ## Libraries necessary
 # cyclic dep $(top_builddir)/modules/console/libsciconsole.la
 libscishell_la_LIBADD =   $(top_builddir)/modules/action_binding/libsciaction_binding.la $(top_builddir)/modules/history_manager/libscihistory_manager.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
index 3546c67..20f94c1 100644 (file)
@@ -383,6 +383,10 @@ libscishell_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(JAVA_JNI_LIBS
 # All the sources needed by libscishell.la
 libscishell_la_SOURCES = $(SHELL_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(libscishell_la_SOURCES)
+INCLUDE_FLAGS = $(libscishell_la_CFLAGS)
+
 # cyclic dep $(top_builddir)/modules/console/libsciconsole.la
 libscishell_la_LIBADD = $(top_builddir)/modules/action_binding/libsciaction_binding.la $(top_builddir)/modules/history_manager/libscihistory_manager.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 # $(top_builddir)/modules/completion/libscicompletion.la
@@ -416,6 +420,9 @@ includes/zzledt.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -972,12 +979,14 @@ uninstall-am: uninstall-libscishell_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index d7a36f8..17a1a3d 100644 (file)
@@ -102,6 +102,10 @@ libscisignal_processing_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscisignal_processing_la_SOURCES = $(SIGNAL_PROCESSING_FORTRAN_SOURCES) $(SIGNAL_PROCESSING_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(SIGNAL_PROCESSING_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscisignal_processing_la_CFLAGS)
+
 libscisignal_processing_la_LIBADD =  $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/dynamic_link/libscidynamic_link.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
 
index 68dc5bf..aeb7f62 100644 (file)
@@ -454,6 +454,10 @@ libscisignal_processing_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscisignal_processing.la
 libscisignal_processing_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscisignal_processing_la_SOURCES = $(SIGNAL_PROCESSING_FORTRAN_SOURCES) $(SIGNAL_PROCESSING_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(SIGNAL_PROCESSING_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscisignal_processing_la_CFLAGS)
 libscisignal_processing_la_LIBADD = $(top_builddir)/modules/elementary_functions/libscielementary_functions.la \
        $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
        $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
@@ -498,6 +502,9 @@ demos/wiener.dem.sce
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1254,12 +1261,14 @@ uninstall-am: uninstall-libscisignal_processing_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 13a443a..58ec130 100644 (file)
@@ -325,6 +325,9 @@ examples/Ising/plot_potts2d.sci
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -632,12 +635,14 @@ uninstall-am: uninstall-libsimulated_annealing_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index ef725aa..0d4ceee 100644 (file)
@@ -24,6 +24,10 @@ libscisound_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscisound_la_SOURCES = $(SOUND_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(libscisound_la_SOURCES)
+INCLUDE_FLAGS = $(libscisound_la_CFLAGS)
+
 libscisound_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/libs/libst/libscilibst.la
 
 
index ca642fb..cfa8442 100644 (file)
@@ -341,6 +341,10 @@ libscisound_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscisound.la
 libscisound_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscisound_la_SOURCES = $(SOUND_C_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(libscisound_la_SOURCES)
+INCLUDE_FLAGS = $(libscisound_la_CFLAGS)
 libscisound_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/libs/libst/libscilibst.la
 
 #### Target ######
@@ -371,6 +375,9 @@ demos/sound.dem.sce
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -868,12 +875,14 @@ uninstall-am: uninstall-libscisound_la_demosDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index e690953..5d50a1b 100644 (file)
@@ -170,6 +170,10 @@ libscisparse_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscisparse_la_SOURCES = $(SPARSE_C_SOURCES) $(SPARSE_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(SPARSE_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscisparse_la_CFLAGS)
+
 libscisparse_la_LIBADD =  $(top_builddir)/modules/io/libsciio.la $(top_builddir)/modules/core/libscicore.la  $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/polynomials/libscipolynomials.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
 if USE_EMBEDDED_LAPACK
index 7093a96..259cab5 100644 (file)
@@ -535,6 +535,10 @@ libscisparse_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscisparse.la
 libscisparse_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscisparse_la_SOURCES = $(SPARSE_C_SOURCES) $(SPARSE_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(SPARSE_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscisparse_la_CFLAGS)
 libscisparse_la_LIBADD = $(top_builddir)/modules/io/libsciio.la \
        $(top_builddir)/modules/core/libscicore.la \
        $(top_builddir)/modules/arnoldi/libsciarnoldi.la \
@@ -573,6 +577,9 @@ includes/spConfig.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1625,12 +1632,14 @@ uninstall-am: uninstall-libscisparse_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index baee6e7..0d78e10 100644 (file)
@@ -45,6 +45,11 @@ pkglib_LTLIBRARIES = libscispecial_functions.la
 libscispecial_functions_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscispecial_functions_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscispecial_functions_la_CFLAGS)
+
 libscispecial_functions_la_LIBADD =   $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/statistics/libscistatistics.la
 
 if USE_EMBEDDED_BLAS
index 8a3c1be..04d579a 100644 (file)
@@ -388,6 +388,10 @@ libscispecial_functions_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscispecial_functions.la
 libscispecial_functions_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscispecial_functions_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscispecial_functions_la_CFLAGS)
 libscispecial_functions_la_LIBADD =  \
        $(top_builddir)/modules/core/libscicore.la \
        $(top_builddir)/modules/output_stream/libscioutput_stream.la \
@@ -413,6 +417,9 @@ libscispecial_functions_la_sci_gateway_DATA = sci_gateway/special_functions_gate
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -996,12 +1003,14 @@ uninstall-am: uninstall-libscispecial_functions_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 6065bed..c24a6bc 100644 (file)
@@ -30,6 +30,10 @@ libscispreadsheet_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscispreadsheet_la_SOURCES = $(SPREADSHEET_C_SOURCES) $(GATEWAY_C_SOURCES) $(RIPOLE_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(SPREADSHEET_C_SOURCES) $(GATEWAY_C_SOURCES) $(RIPOLE_SOURCES)
+INCLUDE_FLAGS = $(libscispreadsheet_la_CFLAGS)
+
 libscispreadsheet_la_LIBADD =  $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 #### Target ######
 modulename=spreadsheet
index ac8536c..4f37780 100644 (file)
@@ -357,6 +357,10 @@ libscispreadsheet_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscispreadsheet.la
 libscispreadsheet_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscispreadsheet_la_SOURCES = $(SPREADSHEET_C_SOURCES) $(GATEWAY_C_SOURCES) $(RIPOLE_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(SPREADSHEET_C_SOURCES) $(GATEWAY_C_SOURCES) $(RIPOLE_SOURCES)
+INCLUDE_FLAGS = $(libscispreadsheet_la_CFLAGS)
 libscispreadsheet_la_LIBADD = $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 #### Target ######
 modulename = spreadsheet
@@ -395,6 +399,9 @@ demos/xls/README
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -939,12 +946,14 @@ uninstall-am: uninstall-libscispreadsheet_la_demosDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 364f636..4edceea 100644 (file)
@@ -92,6 +92,10 @@ libscistatistics_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscistatistics_la_SOURCES = $(STATISTICS_C_SOURCES) $(STATISTICS_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(STATISTICS_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscistatistics_la_CFLAGS)
+
 libscistatistics_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
 
 if USE_EMBEDDED_LAPACK
index a0d73d1..bac01e1 100644 (file)
@@ -438,6 +438,10 @@ libscistatistics_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscistatistics.la
 libscistatistics_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscistatistics_la_SOURCES = $(STATISTICS_C_SOURCES) $(STATISTICS_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(STATISTICS_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscistatistics_la_CFLAGS)
 libscistatistics_la_LIBADD =  \
        $(top_builddir)/modules/core/libscicore.la \
        $(top_builddir)/modules/output_stream/libscioutput_stream.la \
@@ -465,6 +469,9 @@ libscistatistics_la_include_HEADERS = includes/gw_statistics.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1186,12 +1193,14 @@ uninstall-am: uninstall-libscistatistics_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index d30f0f9..1c7e172 100644 (file)
@@ -76,6 +76,10 @@ libscistring_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(PCRE_LIBS)
 libscistring_la_SOURCES = $(STRING_C_SOURCES) $(STRING_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
 
+# For the code check (splint)
+CHECK_SRC= $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscistring_la_CFLAGS)
+
 # commented since it is the first module to be processed
 #  $(top_builddir)/modules/polynomials/libscipolynomials.la 
 libscistring_la_LIBADD = $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
index b91a525..328a924 100644 (file)
@@ -427,6 +427,10 @@ pkglib_LTLIBRARIES = libscistring.la
 libscistring_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(PCRE_LIBS)
 libscistring_la_SOURCES = $(STRING_C_SOURCES) $(STRING_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC = $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscistring_la_CFLAGS)
+
 # commented since it is the first module to be processed
 #  $(top_builddir)/modules/polynomials/libscipolynomials.la 
 libscistring_la_LIBADD = $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
@@ -457,6 +461,9 @@ includes/code2str.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1303,12 +1310,14 @@ uninstall-am: uninstall-libscistring_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index bb3b524..6d18e10 100644 (file)
@@ -28,6 +28,10 @@ libscisymbolic_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscisymbolic_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscisymbolic_la_CFLAGS)
+
 libscisymbolic_la_LIBADD =  $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la
 
 
index fdee932..549d73e 100644 (file)
@@ -351,6 +351,10 @@ libscisymbolic_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscisymbolic.la
 libscisymbolic_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscisymbolic_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(GATEWAY_C_SOURCES)
+INCLUDE_FLAGS = $(libscisymbolic_la_CFLAGS)
 libscisymbolic_la_LIBADD = $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la
 
 #### Target ######
@@ -375,6 +379,9 @@ libscisymbolic_la_include_HEADERS = includes/gw_symbolic.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -849,12 +856,14 @@ uninstall-am: uninstall-libscisymbolic_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 2836119..a31c70a 100644 (file)
@@ -53,6 +53,10 @@ libscitclsci_la_CFLAGS= -I$(srcdir)/includes/ \
 
 libscitclsci_la_SOURCES = $(TCLSCI_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(libscitclsci_la_SOURCES)
+INCLUDE_FLAGS = $(libscitclsci_la_CFLAGS)
+
 libscitclsci_la_LIBADD =  $(top_builddir)/modules/action_binding/libsciaction_binding.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 #### Target ######
 modulename=tclsci
index 06cf7ad..8bc068c 100644 (file)
@@ -424,6 +424,10 @@ top_srcdir = @top_srcdir@
 @TCLTK_TRUE@                   -I$(top_srcdir)/modules/localization/includes
 
 @TCLTK_TRUE@libscitclsci_la_SOURCES = $(TCLSCI_C_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+@TCLTK_TRUE@CHECK_SRC = $(libscitclsci_la_SOURCES)
+@TCLTK_TRUE@INCLUDE_FLAGS = $(libscitclsci_la_CFLAGS)
 @TCLTK_TRUE@libscitclsci_la_LIBADD = $(top_builddir)/modules/action_binding/libsciaction_binding.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 #### Target ######
 @TCLTK_TRUE@modulename = tclsci
@@ -649,6 +653,9 @@ top_srcdir = @top_srcdir@
 # Where all the Scilab stuff is installed (macros, help, ...)
 @TCLTK_TRUE@mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+@TCLTK_TRUE@SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1343,12 +1350,14 @@ uninstall-am: uninstall-libscitclsci_la_demossciGUIDATA \
 
 # This target enables tests for Scilab
 @TCLTK_TRUE@check-local: $(top_builddir)/scilab-bin
+@TCLTK_TRUE@   @COMMAND="test_run('$(modulename)');quit";\
+@TCLTK_TRUE@   export LANG=C;\
+@TCLTK_TRUE@   $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@TCLTK_TRUE@check-code:
 @TCLTK_TRUE@   @if test -f build.xml; then \
 @TCLTK_TRUE@           $(ANT) checkstyle; \
 @TCLTK_TRUE@   fi;\
-@TCLTK_TRUE@   COMMAND="test_run('$(modulename)');quit";\
-@TCLTK_TRUE@   export LANG=C;\
-@TCLTK_TRUE@   $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+@TCLTK_TRUE@   splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@@TCLTK_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@@TCLTK_TRUE@   @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index d8dbaa5..ca9d8eb 100644 (file)
@@ -299,6 +299,9 @@ libscitexmacs_la_etc_DATA = etc/texmacs.quit etc/texmacs.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -562,12 +565,14 @@ uninstall-am: uninstall-libscitexmacs_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index c7f31dd..2e6934b 100644 (file)
@@ -28,6 +28,10 @@ libscitime_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 
 libscitime_la_SOURCES = $(TIME_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(libscitime_la_SOURCES)
+INCLUDE_FLAGS = $(libscitime_la_CFLAGS)
+
 libscitime_la_LIBADD =  $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
 
index bab989c..f18c2f7 100644 (file)
@@ -344,6 +344,10 @@ libscitime_la_CFLAGS = -I$(srcdir)/includes/ \
 pkglib_LTLIBRARIES = libscitime.la
 libscitime_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
 libscitime_la_SOURCES = $(TIME_C_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+CHECK_SRC = $(libscitime_la_SOURCES)
+INCLUDE_FLAGS = $(libscitime_la_CFLAGS)
 libscitime_la_LIBADD = $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
 
 #### Target ######
@@ -375,6 +379,9 @@ includes/sci_calendar.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -875,12 +882,14 @@ uninstall-am: uninstall-libscitime_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 9fbc7b2..2704d17 100644 (file)
@@ -54,6 +54,10 @@ libsciumfpack_la_sci_gateway_DATA = sci_gateway/umfpack_gateway.xml
 
 libsciumfpack_la_SOURCES = $(UMFPACK_C_SOURCES) $(GATEWAY_C_SOURCES)
 
+# For the code check (splint)
+CHECK_SRC= $(libsciumfpack_la_SOURCES)
+INCLUDE_FLAGS = $(libsciumfpack_la_CFLAGS)
+
 libsciumfpack_la_LIBADD =  $(top_builddir)/modules/mexlib/libmx.la \
 $(top_builddir)/modules/mexlib/libmat.la \
 $(top_builddir)/modules/sparse/libscisparse.la \
index 0b76ea4..3fc811e 100644 (file)
@@ -407,6 +407,10 @@ libsciumfpack_la_etc_DATA = etc/umfpack.quit etc/umfpack.start
 @UMFPACK_TRUE@libsciumfpack_la_sci_gateway_DATA = sci_gateway/umfpack_gateway.xml
 @UMFPACK_FALSE@libsciumfpack_la_SOURCES = $(UMFPACK_C_SOURCES)
 @UMFPACK_TRUE@libsciumfpack_la_SOURCES = $(UMFPACK_C_SOURCES) $(GATEWAY_C_SOURCES)
+
+# For the code check (splint)
+@UMFPACK_TRUE@CHECK_SRC = $(libsciumfpack_la_SOURCES)
+@UMFPACK_TRUE@INCLUDE_FLAGS = $(libsciumfpack_la_CFLAGS)
 @UMFPACK_TRUE@libsciumfpack_la_LIBADD =  \
 @UMFPACK_TRUE@ $(top_builddir)/modules/mexlib/libmx.la \
 @UMFPACK_TRUE@ $(top_builddir)/modules/mexlib/libmat.la \
@@ -443,6 +447,9 @@ libsciumfpack_la_etc_DATA = etc/umfpack.quit etc/umfpack.start
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -1012,12 +1019,14 @@ uninstall-am: uninstall-libsciumfpack_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
index 9c9cd90..c1c361d 100644 (file)
@@ -364,6 +364,9 @@ includes/TerminateWindows_tools.h
 # Where all the Scilab stuff is installed (macros, help, ...)
 mydatadir = $(pkgdatadir)/modules/$(modulename)
 
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
 ########################### JAVA ######################################
 #### We are delegating java compilation to ant... Thanks to that
 #### the procedure will be the same with Microsoft Windows (C)
@@ -786,12 +789,14 @@ uninstall-am: uninstall-libsciwindows_tools_la_etcDATA \
 
 # This target enables tests for Scilab
 check-local: $(top_builddir)/scilab-bin
+       @COMMAND="test_run('$(modulename)');quit";\
+       export LANG=C;\
+       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+check-code:
        @if test -f build.xml; then \
                $(ANT) checkstyle; \
        fi;\
-       COMMAND="test_run('$(modulename)');quit";\
-       export LANG=C;\
-       $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
+       splint $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC)
 @NEED_JAVA_TRUE@java:
 # Some configurations needs to export JAVA_HOME in the current env
 @NEED_JAVA_TRUE@       @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \