774a18f84bc923274f00f106384266b71bb8373c
[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
25 include $(top_srcdir)/Makefile.incl.am
26
27
28 PREFERENCES_JNI_SOURCES = src/jni/ScilabPreferences.cpp
29
30 PREFERENCES_C_SOURCES =
31
32 PREFERENCES_CPP_SOURCES =
33
34 GIWS_WRAPPERS = src/jni/ScilabPreferences.giws.xml
35
36 if GIWS
37     BUILT_SOURCES=giws
38 endif
39
40
41 GATEWAY_C_SOURCES = sci_gateway/c/gw_preferences.c
42
43 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_addToolboxInfos.cpp \
44                       sci_gateway/cpp/sci_removeToolboxInfos.cpp
45
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
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     -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
66
67 # Without the preferences module 
68 libscipreferences_disable_la_CFLAGS = -Iincludes/ \
69     -I$(top_srcdir)/modules/output_stream/includes
70
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)
74
75 pkglib_LTLIBRARIES = libscipreferences-disable.la
76
77 if GUI
78     pkglib_LTLIBRARIES += libscipreferences.la 
79     noinst_LTLIBRARIES = libscipreferences-algo.la 
80 endif
81
82 libscipreferences_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
83
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)
88
89 # For the code check (splint)
90 CHECK_SRC= $(PREFERENCES_C_SOURCES) $(GATEWAY_C_SOURCES)
91 INCLUDE_FLAGS = $(libscipreferences_la_CFLAGS)
92
93
94 #### SWIG Declaration ####
95 SWIG_WRAPPERS = 
96
97 if SWIG
98     BUILT_SOURCES=swig
99 endif
100
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
105
106
107 #### preferences : gateway declaration ####
108 libscipreferences_la_sci_gatewaydir = $(mydatadir)/sci_gateway
109 libscipreferences_la_sci_gateway_DATA = sci_gateway/preferences_gateway.xml
110
111 if GUI
112     USEANT=1
113 endif