replug dynamic load of modules
[scilab.git] / scilab / modules / ast / Makefile.am
1 ##
2 ##  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 ##  Copyright (C) 2007-2008 - DIGITEO - Bruno JOFRET
4 ##  Copyright (C) 2007-2008 - DIGITEO - Antoine ELIAS
5 ##
6 ##  This file must be used under the terms of the CeCILL.
7 ##  This source file is licensed as described in the file COPYING, which
8 ##  you should have received as part of this distribution.  The terms
9 ##  are also available at
10 ##  http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 ##
12 ##
13
14 pkglib_LTLIBRARIES      = libsciast.la
15
16 libsciast_la_SOURCES = \
17         src/cpp/libAst.cpp \
18         src/cpp/visitor_common.cpp \
19         src/cpp/printvisitor.cpp \
20         src/cpp/debugvisitor.cpp \
21         src/cpp/mutevisitor.cpp \
22         src/cpp/shortcutvisitor.cpp \
23         src/cpp/scilabexception.cpp
24
25 libsciast_la_CXXFLAGS = \
26         -Iincludes \
27         -Isrc/cpp \
28     -I$(top_srcdir)/modules/symbol/includes \
29         -I$(top_srcdir)/modules/types/includes \
30         -I$(top_srcdir)/modules/functions_manager/includes \
31         -I$(top_srcdir)/modules/elementary_functions/includes \
32         -I$(top_srcdir)/modules/operations/includes \
33         -I$(top_srcdir)/modules/output_stream/includes \
34         -I$(top_srcdir)/modules/system_env/includes \
35         -I$(top_srcdir)/modules/api_scilab/includes \
36         -I$(top_srcdir)/modules/string/includes \
37         -I$(top_srcdir)/modules/threads/includes \
38     -I$(top_srcdir)/libs/dynamiclibrary/includes
39
40
41 libsciast_la_includedir=$(pkgincludedir)/ast
42 libsciast_la_include_HEADERS =
43
44 ####################
45 ## Automated test ##
46 ####################
47 check_INCLUDES = \
48     -I$(top_srcdir)/modules/symbol/includes \
49         -Iincludes/ \
50         -Isrc/cpp
51
52 check_LDADD     = \
53     $(top_builddir)/modules/symbol/libsciSymbol.la \
54         $(top_builddir)/modules/ast/libsciast.la \
55         $(top_builddir)/modules/types/libsciTypes.la
56
57 check_PROGRAMS = \
58     testConstExp \
59         testVarExp \
60                                                                                         testControlExp
61
62 TESTS = \
63     testConstExp \
64         testVarExp \
65         testControlExp
66
67 testConstExp_SOURCES    = src/cpp/testConstExp.cpp
68 testConstExp_CXXFLAGS   = $(check_INCLUDES)
69 testConstExp_LDADD      = $(check_LDADD)
70
71 testVarExp_SOURCES      = src/cpp/testVarExp.cpp
72 testVarExp_CXXFLAGS     = $(check_INCLUDES)
73 testVarExp_LDADD        = $(check_LDADD)
74
75 testControlExp_SOURCES  = src/cpp/testControlExp.cpp
76 testControlExp_CXXFLAGS = $(check_INCLUDES)
77 testControlExp_LDADD    = $(check_LDADD)
78
79