Update jflex to 1.8.2
[scilab.git] / scilab / modules / scinotes / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) 2009-2010 - DIGITEO
4 #
5 # Copyright (C) 2012 - 2016 - Scilab Enterprises
6 #
7 # This file is hereby licensed under the terms of the GNU GPL v2.0,
8 # pursuant to article 5.3.4 of the CeCILL v.2.1.
9 # This file was originally licensed under the terms of the CeCILL v2.1,
10 # and continues to be available under such terms.
11 # For more information, see the COPYING file which you should have received
12 # along with this program.
13 #
14
15 #### Target ######
16 modulename=scinotes
17
18
19 #### scinotes : Conf files ####
20 libsciscinotes_la_rootdir = $(mydatadir)
21 libsciscinotes_la_root_DATA =  license.txt
22
23
24 #### scinotes : init scripts & configuration files ####
25 libsciscinotes_la_etcdir = $(mydatadir)/etc
26 libsciscinotes_la_etc_DATA = \
27         etc/scinotesConfiguration.xml \
28         etc/keysConfiguration.xml \
29         etc/scinotesGUIConfiguration.xml \
30         etc/scinotes.quit \
31         etc/scinotes.start \
32         etc/XConfiguration-scinotes.xml \
33         etc/XConfiguration-scinotes.xsl
34
35 SCINOTES_JNI_SOURCES = src/jni/ScilabKeywords_wrap.c
36
37 SCINOTES_C_SOURCES = src/c/ScilabKeywords.c
38
39 SCINOTES_CXX_SOURCES = \
40     src/jni/SciNotes.cpp \
41     src/cpp/callscinotes.cpp
42
43 GATEWAY_CXX_SOURCES = \
44     sci_gateway/cpp/sci_scinotes.cpp \
45     sci_gateway/cpp/sci_closeSciNotesFromScilab.cpp
46
47 libsciscinotes_la_CPPFLAGS = \
48     -I$(srcdir)/includes/ \
49     -I$(srcdir)/src/cpp/ \
50     -I$(srcdir)/src/c/ \
51     -I$(srcdir)/src/jni/ \
52     -I$(top_srcdir)/modules/ast/includes/ast/ \
53     -I$(top_srcdir)/modules/ast/includes/exps/ \
54     -I$(top_srcdir)/modules/ast/includes/operations/ \
55     -I$(top_srcdir)/modules/ast/includes/parse/ \
56     -I$(top_srcdir)/modules/ast/includes/symbol/ \
57     -I$(top_srcdir)/modules/ast/includes/system_env/ \
58     -I$(top_srcdir)/modules/ast/includes/types/ \
59     -I$(top_srcdir)/modules/ast/includes/analysis/ \
60     -I$(top_srcdir)/modules/api_scilab/includes/ \
61     -I$(top_srcdir)/modules/commons/src/jni/ \
62     -I$(top_srcdir)/modules/core/includes/ \
63     -I$(top_srcdir)/modules/fileio/includes/ \
64     -I$(top_srcdir)/modules/functions/includes/ \
65     -I$(top_srcdir)/modules/jvm/includes/ \
66     -I$(top_srcdir)/modules/localization/includes/ \
67     -I$(top_srcdir)/modules/output_stream/includes/ \
68     -I$(top_srcdir)/modules/string/includes/ \
69     $(JAVA_JNI_INCLUDE) \
70     $(AM_CPPFLAGS)
71
72 # Without the scinotes module
73 libsciscinotes_disable_la_CPPFLAGS = \
74     -I$(srcdir)/includes/ \
75     -I$(top_srcdir)/modules/ast/includes/ast/ \
76     -I$(top_srcdir)/modules/ast/includes/exps/ \
77     -I$(top_srcdir)/modules/ast/includes/operations/ \
78     -I$(top_srcdir)/modules/ast/includes/parse/ \
79     -I$(top_srcdir)/modules/ast/includes/symbol/ \
80     -I$(top_srcdir)/modules/ast/includes/system_env/ \
81     -I$(top_srcdir)/modules/ast/includes/types/ \
82     -I$(top_srcdir)/modules/localization/includes/ \
83     -I$(top_srcdir)/modules/output_stream/includes/ \
84     $(AM_CPPFLAGS)
85
86 SCINOTES_DISABLE_C_SOURCES = src/noscinotes/noscinotes.c
87 SCINOTES_DISABLE_CPP_SOURCES = src/noscinotes/noscinotes_gw.cpp
88 libsciscinotes_disable_la_SOURCES = $(SCINOTES_DISABLE_C_SOURCES) $(SCINOTES_DISABLE_CPP_SOURCES)
89
90 pkglib_LTLIBRARIES = libsciscinotes-disable.la
91
92 if GUI
93     pkglib_LTLIBRARIES += libsciscinotes.la
94     noinst_LTLIBRARIES = libsciscinotes-algo.la
95 endif
96
97 libsciscinotes_la_LDFLAGS = $(AM_LDFLAGS)
98
99 libsciscinotes_algo_la_SOURCES = $(SCINOTES_C_SOURCES) $(SCINOTES_JNI_SOURCES) $(SCINOTES_CXX_SOURCES)
100 libsciscinotes_la_SOURCES = $(GATEWAY_CXX_SOURCES)
101 libsciscinotes_algo_la_CPPFLAGS = $(libsciscinotes_la_CPPFLAGS)
102
103 # For the code check (splint)
104 CHECK_SRC= $(SCINOTES_C_SOURCES)
105 INCLUDE_FLAGS = $(libsciscinotes_la_CPPFLAGS)
106
107 GIWS_WRAPPERS = src/jni/SciNotes.giws.xml
108 SWIG_WRAPPERS = src/jni/ScilabKeywords.i
109
110 BUILT_SOURCES=
111 if GIWS
112 BUILT_SOURCES+=giws
113 endif
114 if SWIG
115 BUILT_SOURCES+=swig
116 endif
117
118 libsciscinotes_la_LIBADD = libsciscinotes-algo.la $(X_LIBS) $(X_EXTRA_LIBS)
119
120 #### scinotes : gateway declaration ####
121 libsciscinotes_la_sci_gatewaydir = $(mydatadir)/sci_gateway
122 libsciscinotes_la_sci_gateway_DATA = sci_gateway/scinotes_gateway.xml
123
124 if GUI
125 if BUILD_HELP
126     USEANT=1
127 endif
128 endif
129
130 include $(top_srcdir)/Makefile.incl.am