11b2d070a1f86bd5ff76b5000f94d339217f4437
[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 # This file must be used under the terms of the CeCILL.
6 # This source file is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution. The terms
8 # are also available at
9 # http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
10 #
11
12 #### Target ######
13 modulename=preferences
14
15
16 #### preferences : Conf files ####
17 libscipreferences_la_rootdir = $(mydatadir)
18 libscipreferences_la_root_DATA =  license.txt
19
20
21 #### preferences : init scripts & configuration files ####
22 libscipreferences_la_etcdir = $(mydatadir)/etc
23 libscipreferences_la_etc_DATA = \
24         etc/preferences.quit \
25         etc/preferences.start \
26         etc/XConfiguration.xml \
27         etc/XConfiguration-preference.xml \
28         etc/XConfiguration-preference.xsl \
29         etc/XWizard-expression.xml \
30         etc/XWizard-function.xml \
31         etc/XWizard-xcos.xml \
32         etc/XWizard.xml
33
34 #### preferences : xslt files ####
35 libscipreferences_la_src_xsltdir = $(mydatadir)/src/xslt
36 libscipreferences_la_src_xslt_DATA = \
37         src/xslt/XCommon-toolbars.xsl \
38         src/xslt/XCommon.xsl \
39         src/xslt/XConfiguration.xsl \
40         src/xslt/XGeneric.xsl \
41         src/xslt/XWizard.xsl
42 libscipreferences_la_src_xslt_xwizarddir = $(mydatadir)/src/xslt/XWizard
43 libscipreferences_la_src_xslt_xwizard_DATA = \
44         src/xslt/XWizard/XWizard-any.xsl \
45         src/xslt/XWizard/XWizard-expression.xsl \
46         src/xslt/XWizard/XWizard-function.xsl \
47         src/xslt/XWizard/XWizard-xcos.xsl
48
49 PREFERENCES_JNI_SOURCES = src/jni/ScilabPreferences.cpp
50
51 PREFERENCES_C_SOURCES = src/c/getScilabPreference.c
52
53 GATEWAY_CXX_SOURCES = \
54     sci_gateway/cpp/sci_addModulePreferences.cpp \
55     sci_gateway/cpp/sci_removeModulePreferences.cpp \
56     sci_gateway/cpp/sci_preferences.cpp
57
58 libscipreferences_la_CPPFLAGS = \
59     $(JAVA_JNI_INCLUDE) \
60     -I$(srcdir)/includes/ \
61     -I$(srcdir)/src/c/ \
62     -I$(srcdir)/src/jni/ \
63     $(XML_FLAGS) \
64     -I$(top_srcdir)/modules/ast/includes/ast/ \
65     -I$(top_srcdir)/modules/ast/includes/exps/ \
66     -I$(top_srcdir)/modules/ast/includes/operations/ \
67     -I$(top_srcdir)/modules/ast/includes/parse/ \
68     -I$(top_srcdir)/modules/ast/includes/symbol/ \
69     -I$(top_srcdir)/modules/ast/includes/system_env/ \
70     -I$(top_srcdir)/modules/ast/includes/types/ \
71     -I$(top_srcdir)/modules/commons/src/jni/ \
72     -I$(top_srcdir)/modules/jvm/includes/ \
73     -I$(top_srcdir)/modules/fileio/includes/ \
74     -I$(top_srcdir)/modules/output_stream/includes/ \
75     -I$(top_srcdir)/modules/localization/includes/ \
76     -I$(top_srcdir)/modules/api_scilab/includes/ \
77     -I$(top_srcdir)/modules/core/includes/ \
78     -I$(top_srcdir)/modules/functions/includes/ \
79     -I$(top_srcdir)/modules/string/includes/ \
80     $(AM_CPPFLAGS)
81
82 # Without the preferences module
83 libscipreferences_cli_la_CPPFLAGS = \
84     -I$(srcdir)/includes/ \
85     -I$(top_srcdir)/modules/ast/includes/ast/ \
86     -I$(top_srcdir)/modules/ast/includes/exps/ \
87     -I$(top_srcdir)/modules/ast/includes/operations/ \
88     -I$(top_srcdir)/modules/ast/includes/parse/ \
89     -I$(top_srcdir)/modules/ast/includes/symbol/ \
90     -I$(top_srcdir)/modules/ast/includes/system_env/ \
91     -I$(top_srcdir)/modules/ast/includes/types/ \
92     -I$(top_srcdir)/modules/ast/includes/analysis/ \
93     -I$(top_srcdir)/modules/localization/includes/ \
94     -I$(top_srcdir)/modules/output_stream/includes \
95     $(AM_CPPFLAGS)
96
97 PREFERENCES_CLI_C_SOURCES = src/nopreferences/nopreferences.c
98 libscipreferences_cli_la_SOURCES = $(PREFERENCES_CLI_C_SOURCES)
99
100 libscipreferences_la_LDFLAGS = $(AM_LDFLAGS)
101
102 pkglib_LTLIBRARIES = libscipreferences-cli.la
103
104 if GUI
105     pkglib_LTLIBRARIES += libscipreferences.la
106     noinst_LTLIBRARIES = libscipreferences-algo.la
107 endif
108
109
110 libscipreferences_algo_la_SOURCES = $(PREFERENCES_C_SOURCES)
111 libscipreferences_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)  $(PREFERENCES_JNI_SOURCES)
112 libscipreferences_algo_la_CFLAGS = $(libscipreferences_la_CFLAGS)
113 libscipreferences_algo_la_CPPFLAGS = $(libscipreferences_la_CPPFLAGS)
114
115 # For the code check (splint)
116 CHECK_SRC= $(PREFERENCES_C_SOURCES) $(GATEWAY_C_SOURCES)
117 INCLUDE_FLAGS = $(libscipreferences_la_CPPFLAGS)
118
119
120 GIWS_WRAPPERS = src/jni/ScilabPreferences.giws.xml
121 SWIG_WRAPPERS =
122
123 BUILT_SOURCES=
124 if GIWS
125 BUILT_SOURCES+=giws
126 endif
127 if SWIG
128 BUILT_SOURCES+=swig
129 endif
130
131 libscipreferences_cli_la_LIBADD = libscipreferences-algo.la
132 libscipreferences_la_LIBADD = libscipreferences-algo.la $(X_LIBS) $(X_EXTRA_LIBS) $(XML_LIBS)
133
134
135 #### preferences : gateway declaration ####
136 libscipreferences_la_sci_gatewaydir = $(mydatadir)/sci_gateway
137 libscipreferences_la_sci_gateway_DATA = sci_gateway/preferences_gateway.xml
138
139 if GUI
140     USEANT=1
141 endif
142
143 include $(top_srcdir)/Makefile.incl.am