825685c60f6beeb51db3e6c4f0084ccb9bc5f6ab
[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 include $(top_srcdir)/Makefile.incl.am
48
49 PREFERENCES_JNI_SOURCES = src/jni/ScilabPreferences.cpp
50
51 PREFERENCES_C_SOURCES =
52
53 PREFERENCES_CPP_SOURCES =
54
55 GIWS_WRAPPERS = src/jni/ScilabPreferences.giws.xml
56
57 if GIWS
58     BUILT_SOURCES=giws
59 endif
60
61
62 GATEWAY_C_SOURCES = sci_gateway/c/gw_preferences.c
63
64 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_addModulePreferences.cpp \
65                       sci_gateway/cpp/sci_removeModulePreferences.cpp
66
67 libscipreferences_la_CFLAGS= $(JAVA_JNI_INCLUDE) \
68     -I$(top_srcdir)/libs/MALLOC/includes/ \
69     -I$(top_srcdir)/modules/jvm/includes/ \
70     -I$(top_srcdir)/modules/output_stream/includes \
71     -I$(top_srcdir)/modules/localization/includes \
72     -I$(top_srcdir)/modules/api_scilab/includes \
73     -I$(top_srcdir)/modules/fileio/includes \
74     -I$(top_srcdir)/modules/core/includes \
75     -I$(top_srcdir)/modules/functions/includes
76
77 libscipreferences_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
78     -I$(srcdir)/includes/ \
79     -I$(srcdir)/src/cpp/ \
80     -I$(srcdir)/src/c/ \
81     -I$(srcdir)/src/jni/ \
82     -I$(top_srcdir)/modules/jvm/includes/ \
83     -I$(top_srcdir)/modules/fileio/includes \
84     -I$(top_srcdir)/modules/output_stream/includes \
85     -I$(top_srcdir)/modules/localization/includes \
86     -I$(top_srcdir)/modules/api_scilab/includes
87
88 # Without the preferences module 
89 libscipreferences_disable_la_CFLAGS = -Iincludes/ \
90     -I$(top_srcdir)/modules/output_stream/includes
91
92 PREFERENCES_DISABLE_C_SOURCES = src/nopreferences/nopreferences.c
93 libscipreferences_disable_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
94 libscipreferences_disable_la_SOURCES = $(PREFERENCES_DISABLE_C_SOURCES)
95
96 pkglib_LTLIBRARIES = libscipreferences-disable.la
97
98 if GUI
99     pkglib_LTLIBRARIES += libscipreferences.la 
100     noinst_LTLIBRARIES = libscipreferences-algo.la 
101 endif
102
103 libscipreferences_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
104
105 libscipreferences_algo_la_SOURCES = $(PREFERENCES_C_SOURCES) $(PREFERENCES_JNI_SOURCES) $(PREFERENCES_CPP_SOURCES)
106 libscipreferences_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) 
107 libscipreferences_algo_la_CFLAGS = $(libscipreferences_la_CFLAGS)
108 libscipreferences_algo_la_CPPFLAGS = $(libscipreferences_la_CPPFLAGS)
109
110 # For the code check (splint)
111 CHECK_SRC= $(PREFERENCES_C_SOURCES) $(GATEWAY_C_SOURCES)
112 INCLUDE_FLAGS = $(libscipreferences_la_CFLAGS)
113
114
115 #### SWIG Declaration ####
116 SWIG_WRAPPERS = 
117
118 if SWIG
119     BUILT_SOURCES=swig
120 endif
121
122 libscipreferences_la_LIBADD = libscipreferences-algo.la \
123     $(top_builddir)/libs/MALLOC/libscimalloc.la \
124     $(top_builddir)/modules/jvm/libscijvm.la \
125     $(top_builddir)/modules/output_stream/libscioutput_stream.la
126
127
128 #### preferences : gateway declaration ####
129 libscipreferences_la_sci_gatewaydir = $(mydatadir)/sci_gateway
130 libscipreferences_la_sci_gateway_DATA = sci_gateway/preferences_gateway.xml
131
132 if GUI
133     USEANT=1
134 endif