Preferences: connect Java Heap allocation
[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-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/XWizard-expression.xml \
28         etc/XWizard-function.xml \
29         etc/XWizard-xcos.xml \
30         etc/XWizard.xml
31
32 #### preferences : xslt files ####
33 libscipreferences_la_src_xsltdir = $(mydatadir)/src/xslt
34 libscipreferences_la_src_xslt_DATA = \
35         src/xslt/XCommon-toolbars.xsl \
36         src/xslt/XCommon.xsl \
37         src/xslt/XConfiguration.xsl \
38         src/xslt/XGeneric.xsl \
39         src/xslt/XWizard.xsl
40 libscipreferences_la_src_xslt_xwizarddir = $(mydatadir)/src/xslt/XWizard
41 libscipreferences_la_src_xslt_xwizard_DATA = \
42         src/xslt/XWizard/XWizard-any.xsl \
43         src/xslt/XWizard/XWizard-expression.xsl \
44         src/xslt/XWizard/XWizard-function.xsl \
45         src/xslt/XWizard/XWizard-xcos.xsl
46
47 PREFERENCES_JNI_SOURCES = src/jni/ScilabPreferences.cpp
48
49 PREFERENCES_C_SOURCES = src/c/getScilabPreference.c
50
51 GATEWAY_C_SOURCES = sci_gateway/c/gw_preferences.c
52
53 GATEWAY_CXX_SOURCES = sci_gateway/cpp/sci_addModulePreferences.cpp \
54                       sci_gateway/cpp/sci_removeModulePreferences.cpp
55
56 libscipreferences_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
57     -I$(srcdir)/includes/ \
58     -I$(srcdir)/src/cpp/ \
59     -I$(srcdir)/src/c/ \
60     -I$(srcdir)/src/jni/ \
61     $(XML_FLAGS) \
62     -I$(top_srcdir)/libs/MALLOC/includes/ \
63     -I$(top_srcdir)/modules/commons/src/jni/ \
64     -I$(top_srcdir)/modules/jvm/includes/ \
65     -I$(top_srcdir)/modules/fileio/includes/ \
66     -I$(top_srcdir)/modules/output_stream/includes/ \
67     -I$(top_srcdir)/modules/localization/includes/ \
68     -I$(top_srcdir)/modules/api_scilab/includes/ \
69     -I$(top_srcdir)/modules/core/includes/ \
70     -I$(top_srcdir)/modules/functions/includes/ \
71     -I$(top_srcdir)/modules/string/includes/ \
72     $(AM_CPPFLAGS)
73
74 # Without the preferences module 
75 libscipreferences_cli_la_CPPFLAGS = -I$(srcdir)/includes/ \
76         -I$(top_srcdir)/modules/localization/includes/ \
77         -I$(top_srcdir)/modules/output_stream/includes \
78         $(AM_CPPFLAGS)
79
80 PREFERENCES_CLI_C_SOURCES = src/nopreferences/nopreferences.c
81 libscipreferences_cli_la_SOURCES = $(PREFERENCES_CLI_C_SOURCES)
82
83 libscipreferences_la_LDFLAGS = $(X_LIBS) $(X_EXTRA_LIBS) $(XML_LIBS) $(AM_LDFLAGS)
84
85 pkglib_LTLIBRARIES = libscipreferences-cli.la
86
87 if GUI
88     pkglib_LTLIBRARIES += libscipreferences.la 
89     noinst_LTLIBRARIES = libscipreferences-algo.la 
90 endif
91
92
93 libscipreferences_algo_la_SOURCES = $(PREFERENCES_C_SOURCES)
94 libscipreferences_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)  $(PREFERENCES_JNI_SOURCES)
95 libscipreferences_algo_la_CFLAGS = $(libscipreferences_la_CFLAGS)
96 libscipreferences_algo_la_CPPFLAGS = $(libscipreferences_la_CPPFLAGS)
97
98 # For the code check (splint)
99 CHECK_SRC= $(PREFERENCES_C_SOURCES) $(GATEWAY_C_SOURCES)
100 INCLUDE_FLAGS = $(libscipreferences_la_CPPFLAGS)
101
102
103 GIWS_WRAPPERS = src/jni/ScilabPreferences.giws.xml
104 SWIG_WRAPPERS = 
105
106 BUILT_SOURCES=
107 if GIWS
108 BUILT_SOURCES+=giws
109 endif
110 if SWIG
111 BUILT_SOURCES+=swig
112 endif
113
114 libscipreferences_cli_la_LIBADD = libscipreferences-algo.la
115 libscipreferences_la_LIBADD = libscipreferences-algo.la
116
117
118 #### preferences : gateway declaration ####
119 libscipreferences_la_sci_gatewaydir = $(mydatadir)/sci_gateway
120 libscipreferences_la_sci_gateway_DATA = sci_gateway/preferences_gateway.xml
121
122 if GUI
123     USEANT=1
124 endif
125
126 include $(top_srcdir)/Makefile.incl.am