2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) 2011 - DIGITEO
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
13 modulename=preferences
16 #### preferences : Conf files ####
17 libscipreferences_la_rootdir = $(mydatadir)
18 libscipreferences_la_root_DATA = license.txt
21 #### preferences : init scripts & configuration files ####
22 libscipreferences_la_etcdir = $(mydatadir)/etc
23 libscipreferences_la_etc_DATA =
25 include $(top_srcdir)/Makefile.incl.am
28 PREFERENCES_JNI_SOURCES = src/jni/ScilabPreferences.cpp
30 PREFERENCES_C_SOURCES =
32 PREFERENCES_CPP_SOURCES =
34 GIWS_WRAPPERS = src/jni/ScilabPreferences.giws.xml
41 GATEWAY_C_SOURCES = sci_gateway/c/gw_preferences.c
43 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_addModulePreferences.cpp \
44 sci_gateway/cpp/sci_removeModulePreferences.cpp
46 libscipreferences_la_CFLAGS= $(JAVA_JNI_INCLUDE) \
47 -I$(top_srcdir)/libs/MALLOC/includes/ \
48 -I$(top_srcdir)/modules/jvm/includes/ \
49 -I$(top_srcdir)/modules/output_stream/includes \
50 -I$(top_srcdir)/modules/localization/includes \
51 -I$(top_srcdir)/modules/api_scilab/includes \
52 -I$(top_srcdir)/modules/fileio/includes \
53 -I$(top_srcdir)/modules/core/includes \
54 -I$(top_srcdir)/modules/functions/includes
56 libscipreferences_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
57 -I$(srcdir)/includes/ \
58 -I$(srcdir)/src/cpp/ \
60 -I$(srcdir)/src/jni/ \
61 -I$(top_srcdir)/modules/jvm/includes/ \
62 -I$(top_srcdir)/modules/fileio/includes \
63 -I$(top_srcdir)/modules/output_stream/includes \
64 -I$(top_srcdir)/modules/localization/includes \
65 -I$(top_srcdir)/modules/api_scilab/includes
67 # Without the preferences module
68 libscipreferences_disable_la_CFLAGS = -Iincludes/ \
69 -I$(top_srcdir)/modules/output_stream/includes
71 PREFERENCES_DISABLE_C_SOURCES = src/nopreferences/nopreferences.c
72 libscipreferences_disable_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
73 libscipreferences_disable_la_SOURCES = $(PREFERENCES_DISABLE_C_SOURCES)
75 pkglib_LTLIBRARIES = libscipreferences-disable.la
78 pkglib_LTLIBRARIES += libscipreferences.la
79 noinst_LTLIBRARIES = libscipreferences-algo.la
82 libscipreferences_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS) $(X_LIBS) $(X_EXTRA_LIBS)
84 libscipreferences_algo_la_SOURCES = $(PREFERENCES_C_SOURCES) $(PREFERENCES_JNI_SOURCES) $(PREFERENCES_CPP_SOURCES)
85 libscipreferences_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
86 libscipreferences_algo_la_CFLAGS = $(libscipreferences_la_CFLAGS)
87 libscipreferences_algo_la_CPPFLAGS = $(libscipreferences_la_CPPFLAGS)
89 # For the code check (splint)
90 CHECK_SRC= $(PREFERENCES_C_SOURCES) $(GATEWAY_C_SOURCES)
91 INCLUDE_FLAGS = $(libscipreferences_la_CFLAGS)
94 #### SWIG Declaration ####
101 libscipreferences_la_LIBADD = libscipreferences-algo.la \
102 $(top_builddir)/libs/MALLOC/libscimalloc.la \
103 $(top_builddir)/modules/jvm/libscijvm.la \
104 $(top_builddir)/modules/output_stream/libscioutput_stream.la
107 #### preferences : gateway declaration ####
108 libscipreferences_la_sci_gatewaydir = $(mydatadir)/sci_gateway
109 libscipreferences_la_sci_gateway_DATA = sci_gateway/preferences_gateway.xml