34c63ddcbad10b6e1a0519893f4598d85356208e
[scilab.git] / scilab / modules / external_objects / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
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=external_objects
14
15
16 #### external_objects : Conf files ####
17 libsciexternal_objects_la_rootdir = $(mydatadir)
18 libsciexternal_objects_la_root_DATA =  license.txt 
19
20
21 #### external_objects : init scripts & configuration files ####
22 libsciexternal_objects_la_etcdir = $(mydatadir)/etc
23 libsciexternal_objects_la_etc_DATA = etc/external_objects.quit \
24                                                                          etc/external_objects.start
25
26 include $(top_srcdir)/Makefile.incl.am
27
28 EXTERNAL_OBJECTS_JNI_SOURCES = 
29
30 EXTERNAL_OBJECTS_C_SOURCES = 
31
32 EXTERNAL_OBJECTS_CPP_SOURCES = src/cpp/ScilabEnvironments.cpp \
33                                src/cpp/ScilabObjects.cpp \
34                                src/cpp/OptionsHelper.cpp \
35                                src/cpp/addToClasspath.cpp \
36                                src/cpp/getClasspath.cpp \
37                                src/cpp/getsetOptions.cpp \
38                                src/cpp/getEnvironmentInfos.cpp \
39                                src/cpp/array.cpp \
40                                src/cpp/operation.cpp \
41                                src/cpp/cast.cpp \
42                                src/cpp/compile.cpp \
43                                src/cpp/convMatrixMethod.cpp \
44                                src/cpp/deff.cpp \
45                                src/cpp/display.cpp \
46                                src/cpp/doubleExclam_invoke.cpp \
47                                src/cpp/classExtract.cpp \
48                                src/cpp/objectExtract.cpp \
49                                src/cpp/objectInsert.cpp \
50                                src/cpp/objectPrint.cpp \
51                                src/cpp/exists.cpp \
52                                src/cpp/getClassName.cpp \
53                                src/cpp/getEnvironmentName.cpp \
54                                src/cpp/getField.cpp \
55                                src/cpp/getFields.cpp \
56                                src/cpp/getMethods.cpp \
57                                src/cpp/getRepresentation.cpp \
58                                src/cpp/import.cpp \
59                                src/cpp/invoke.cpp \
60                                src/cpp/invoke_asref.cpp \
61                                src/cpp/invoke_lu.cpp \
62                                src/cpp/trace.cpp \
63                                src/cpp/newInstance.cpp \
64                                src/cpp/remove.cpp \
65                                src/cpp/setField.cpp \
66                                src/cpp/evalString.cpp \
67                                src/cpp/addNamedVariable.cpp \
68                                src/cpp/getNamedVariable.cpp \
69                                src/cpp/unwrap.cpp \
70                                src/cpp/wrap.cpp \
71                                src/cpp/unwrapremove.cpp \
72                                src/cpp/wrapAsRef.cpp \
73                                src/cpp/invoker.cpp \
74                                src/cpp/getEnvId.cpp \
75                                src/cpp/ScilabOptionsSetter.cpp \
76                                src/cpp/ScilabAutoCleaner.cpp \
77                                src/cpp/ExternalObjectsFunction.cpp \
78                                src/cpp/wrapInFloat.cpp
79
80 GATEWAY_C_SOURCES = sci_gateway/c/gw_external_objects.c
81
82 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_percent_EObj_e.cpp \
83         sci_gateway/cpp/sci_percent_EObj_p.cpp \
84         sci_gateway/cpp/sci_percent_foo_i_EObj.cpp \
85         sci_gateway/cpp/sci_percent_EClass_e.cpp \
86         sci_gateway/cpp/sci_percent_EObj_a_foo.cpp \
87         sci_gateway/cpp/sci_percent_EObj_d_foo.cpp \
88         sci_gateway/cpp/sci_percent_EObj_g_foo.cpp \
89         sci_gateway/cpp/sci_percent_EObj_h_foo.cpp \
90         sci_gateway/cpp/sci_percent_EObj_j_foo.cpp \
91         sci_gateway/cpp/sci_percent_EObj_k_foo.cpp \
92         sci_gateway/cpp/sci_percent_EObj_l_foo.cpp \
93         sci_gateway/cpp/sci_percent_EObj_m_foo.cpp \
94         sci_gateway/cpp/sci_percent_EObj_n_foo.cpp \
95         sci_gateway/cpp/sci_percent_EObj_o_foo.cpp \
96         sci_gateway/cpp/sci_percent_EObj_p_foo.cpp \
97         sci_gateway/cpp/sci_percent_EObj_q_foo.cpp \
98         sci_gateway/cpp/sci_percent_EObj_r_foo.cpp \
99         sci_gateway/cpp/sci_percent_EObj_s_foo.cpp \
100         sci_gateway/cpp/sci_percent_EObj_x_foo.cpp \
101         sci_gateway/cpp/sci_percent_EObj_y_foo.cpp \
102         sci_gateway/cpp/sci_percent_EObj_z_foo.cpp \
103         sci_gateway/cpp/sci_percent_EObj_1_foo.cpp \
104         sci_gateway/cpp/sci_percent_EObj_2_foo.cpp \
105         sci_gateway/cpp/sci_percent_EObj_3_foo.cpp \
106         sci_gateway/cpp/sci_percent_EObj_4_foo.cpp \
107         sci_gateway/cpp/sci_percent_EObj_0.cpp \
108         sci_gateway/cpp/sci_percent_EObj_5.cpp \
109         sci_gateway/cpp/sci_percent_EObj_t.cpp \
110         sci_gateway/cpp/sci_doubleExclam_invoke_.cpp \
111         sci_gateway/cpp/sci_invoke_lu.cpp \
112         sci_gateway/cpp/sci_percent_EObj_disp.cpp
113
114 libsciexternal_objects_la_CFLAGS= -I$(srcdir)/includes/ \
115              -I$(top_srcdir)/modules/core/includes \
116              -I$(top_srcdir)/modules/api_scilab/includes \
117              -I$(top_srcdir)/modules/output_stream/includes \
118              -I$(top_srcdir)/modules/string/includes \
119              -I$(top_srcdir)/modules/fileio/includes
120
121
122 libsciexternal_objects_la_CPPFLAGS = -I$(srcdir)/includes/ \
123     -I$(srcdir)/src/cpp/ \
124     -I$(srcdir)/src/c/ \
125     -I$(top_srcdir)/modules/localization/includes \
126     -I$(top_srcdir)/modules/api_scilab/includes \
127     -I$(top_srcdir)/modules/output_stream/includes \
128     -I$(top_srcdir)/modules/string/includes \
129     -I$(top_srcdir)/modules/fileio/includes \
130     -I$(top_srcdir)/modules/core/src/c \
131     $(EXTERNAL_OBJECTS_FLAGS)
132
133
134 pkglib_LTLIBRARIES = libsciexternal_objects.la 
135 noinst_LTLIBRARIES = libsciexternal_objects-algo.la 
136
137 libsciexternal_objects_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
138
139 libsciexternal_objects_algo_la_SOURCES = $(EXTERNAL_OBJECTS_C_SOURCES) $(EXTERNAL_OBJECTS_JNI_SOURCES) $(EXTERNAL_OBJECTS_CPP_SOURCES)
140 libsciexternal_objects_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) 
141 libsciexternal_objects_algo_la_CFLAGS = $(libsciexternal_objects_la_CFLAGS)
142 libsciexternal_objects_algo_la_CPPFLAGS = $(libsciexternal_objects_la_CPPFLAGS)
143
144 libsciexternal_objects_la_LIBADD = libsciexternal_objects-algo.la $(X_LIBS) $(X_EXTRA_LIBS)
145
146 # For the code check (splint)
147 CHECK_SRC= $(EXTERNAL_OBJECTS_C_SOURCES) $(GATEWAY_C_SOURCES)
148 INCLUDE_FLAGS = $(libsciexternal_objects_la_CFLAGS)
149
150 #### external_objects : gateway declaration ####
151 libsciexternal_objects_la_sci_gatewaydir = $(mydatadir)/sci_gateway
152 libsciexternal_objects_la_sci_gateway_DATA = sci_gateway/external_objects_gateway.xml
153
154 #### external_objects : include files ####
155 libsciexternal_objects_la_includedir=$(pkgincludedir)
156 libsciexternal_objects_la_include_HEADERS = includes/ExternalObjects.h \
157 includes/dynlib_external_objects_scilab.h \
158 includes/OptionsHelper.hxx \
159 includes/ScilabAbstractEnvironmentException.hxx \
160 includes/ScilabAbstractInvoker.hxx \
161 includes/ScilabAbstractOptionsSetter.hxx \
162 includes/ScilabEnvironments.hxx \
163 includes/ScilabGatewayOptions.hxx \
164 includes/ScilabOptionsSetter.hxx \
165 includes/ScilabAbstractEnvironment.hxx \
166 includes/ScilabAbstractEnvironmentWrapper.hxx \
167 includes/ScilabAbstractMemoryAllocator.hxx \
168 includes/ScilabAutoCleaner.hxx \
169 includes/ScilabGateway.hxx \
170 includes/ScilabObjects.hxx \
171 includes/ScilabStream.hxx