Bump version numbers to 6.2.0
[scilab.git] / scilab / modules / preferences / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) 2011 - 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=preferences
17
18
19 #### preferences : Conf files ####
20 libscipreferences_la_rootdir = $(mydatadir)
21 libscipreferences_la_root_DATA =  license.txt
22
23
24 #### preferences : init scripts & configuration files ####
25 libscipreferences_la_etcdir = $(mydatadir)/etc
26 libscipreferences_la_etc_DATA = \
27         etc/preferences.quit \
28         etc/preferences.start \
29         etc/XConfiguration.xml \
30         etc/XConfiguration-preference.xml \
31         etc/XConfiguration-preference.xsl \
32         etc/XWizard-expression.xml \
33         etc/XWizard-function.xml \
34         etc/XWizard-xcos.xml \
35         etc/XWizard.xml
36
37 #### preferences : xslt files ####
38 libscipreferences_la_src_xsltdir = $(mydatadir)/src/xslt
39 libscipreferences_la_src_xslt_DATA = \
40         src/xslt/XCommon-toolbars.xsl \
41         src/xslt/XCommon.xsl \
42         src/xslt/XConfiguration.xsl \
43         src/xslt/XGeneric.xsl \
44         src/xslt/XWizard.xsl
45 libscipreferences_la_src_xslt_xwizarddir = $(mydatadir)/src/xslt/XWizard
46 libscipreferences_la_src_xslt_xwizard_DATA = \
47         src/xslt/XWizard/XWizard-any.xsl \
48         src/xslt/XWizard/XWizard-expression.xsl \
49         src/xslt/XWizard/XWizard-function.xsl \
50         src/xslt/XWizard/XWizard-xcos.xsl
51
52 PREFERENCES_JNI_SOURCES = src/jni/ScilabPreferences.cpp
53
54 PREFERENCES_C_SOURCES = src/c/getScilabPreference.c
55
56 GATEWAY_CPP_SOURCES = \
57     sci_gateway/cpp/sci_addModulePreferences.cpp \
58     sci_gateway/cpp/sci_removeModulePreferences.cpp \
59     sci_gateway/cpp/sci_preferences.cpp \
60     sci_gateway/cpp/preferences_gw.cpp
61
62 libscipreferences_la_CPPFLAGS = \
63     $(JAVA_JNI_INCLUDE) \
64     -I$(srcdir)/includes/ \
65     -I$(srcdir)/src/c/ \
66     -I$(srcdir)/src/jni/ \
67     $(XML_FLAGS) \
68     -I$(top_srcdir)/modules/ast/includes/ast/ \
69     -I$(top_srcdir)/modules/ast/includes/analysis/ \
70     -I$(top_srcdir)/modules/ast/includes/exps/ \
71     -I$(top_srcdir)/modules/ast/includes/operations/ \
72     -I$(top_srcdir)/modules/ast/includes/parse/ \
73     -I$(top_srcdir)/modules/ast/includes/symbol/ \
74     -I$(top_srcdir)/modules/ast/includes/system_env/ \
75     -I$(top_srcdir)/modules/ast/includes/types/ \
76     -I$(top_srcdir)/modules/commons/src/jni/ \
77         -I$(top_srcdir)/modules/localization/includes/ \
78         -I$(top_srcdir)/modules/output_stream/includes/ \
79     -I$(top_srcdir)/modules/string/includes/ \
80     -I$(top_srcdir)/modules/dynamic_link/includes/ \
81     -I$(top_srcdir)/modules/fileio/includes/ \
82     -I$(top_srcdir)/modules/api_scilab/includes/ \
83     -I$(top_srcdir)/modules/jvm/includes/ \
84     -I$(top_srcdir)/modules/threads/includes/ \
85     $(AM_CPPFLAGS)
86
87 # Without the preferences module
88 libscipreferences_cli_la_CPPFLAGS = \
89     -I$(srcdir)/includes/ \
90     -I$(top_srcdir)/modules/ast/includes/ast/ \
91     -I$(top_srcdir)/modules/ast/includes/exps/ \
92     -I$(top_srcdir)/modules/ast/includes/operations/ \
93     -I$(top_srcdir)/modules/ast/includes/parse/ \
94     -I$(top_srcdir)/modules/ast/includes/symbol/ \
95     -I$(top_srcdir)/modules/ast/includes/system_env/ \
96     -I$(top_srcdir)/modules/ast/includes/types/ \
97     -I$(top_srcdir)/modules/ast/includes/analysis/ \
98     -I$(top_srcdir)/modules/localization/includes/ \
99     -I$(top_srcdir)/modules/output_stream/includes \
100         -I$(top_srcdir)/modules/string/includes/ \
101     -I$(top_srcdir)/modules/dynamic_link/includes/ \
102     -I$(top_srcdir)/modules/threads/includes/ \
103     $(AM_CPPFLAGS)
104
105 PREFERENCES_CLI_CPP_SOURCES = src/nopreferences/nopreferences.cpp \
106                                                           sci_gateway/cpp/preferences_gw.cpp
107
108 libscipreferences_cli_la_SOURCES = $(PREFERENCES_CLI_CPP_SOURCES)
109
110 libscipreferences_la_LDFLAGS = $(AM_LDFLAGS)
111
112 pkglib_LTLIBRARIES = libscipreferences-cli.la
113
114 if GUI
115     pkglib_LTLIBRARIES += libscipreferences.la
116     noinst_LTLIBRARIES = libscipreferences-algo.la
117 endif
118
119
120 libscipreferences_algo_la_SOURCES = $(PREFERENCES_C_SOURCES)
121 libscipreferences_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)  $(PREFERENCES_JNI_SOURCES)
122 libscipreferences_algo_la_CFLAGS = $(libscipreferences_la_CFLAGS)
123 libscipreferences_algo_la_CPPFLAGS = $(libscipreferences_la_CPPFLAGS)
124
125 # For the code check (splint)
126 CHECK_SRC= $(PREFERENCES_C_SOURCES) $(GATEWAY_C_SOURCES)
127 INCLUDE_FLAGS = $(libscipreferences_la_CPPFLAGS)
128
129
130 GIWS_WRAPPERS = src/jni/ScilabPreferences.giws.xml
131 SWIG_WRAPPERS =
132
133 BUILT_SOURCES=
134 if GIWS
135 BUILT_SOURCES+=giws
136 endif
137 if SWIG
138 BUILT_SOURCES+=swig
139 endif
140
141 libscipreferences_cli_la_LIBADD = libscipreferences-algo.la
142 libscipreferences_la_LIBADD = libscipreferences-algo.la $(X_LIBS) $(X_EXTRA_LIBS) $(XML_LIBS)
143
144
145 if GUI
146     USEANT=1
147 endif
148
149 include $(top_srcdir)/Makefile.incl.am