Fix the library linking declaration
[scilab.git] / scilab / modules / external_objects_java / 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_java
14
15
16 #### external_objects_java : Conf files ####
17 libsciexternal_objects_java_la_rootdir = $(mydatadir)
18 libsciexternal_objects_java_la_root_DATA =  license.txt
19
20
21 #### external_objects_java : init scripts & configuration files ####
22 libsciexternal_objects_java_la_etcdir = $(mydatadir)/etc
23 libsciexternal_objects_java_la_etc_DATA = etc/external_objects_java.quit \
24                                                                          etc/external_objects_java.start
25
26 include $(top_srcdir)/Makefile.incl.am
27
28 EXTERNAL_OBJECTS_JAVA_JNI_SOURCES =
29
30 EXTERNAL_OBJECTS_JAVA_C_SOURCES =
31
32 EXTERNAL_OBJECTS_JAVA_CPP_SOURCES = src/cpp/ScilabJavaEnvironment.cpp \
33 src/cpp/NoMoreScilabMemoryException.cpp \
34 src/cpp/JavaOptionsSetter.cpp \
35 src/cpp/ScilabJavaEnvironmentWrapper.cpp \
36 src/jni/ScilabJavaArray.cpp \
37 src/jni/ScilabJavaCompiler.cpp \
38 src/jni/ScilabJarCreator.cpp \
39 src/jni/ScilabJavaClass.cpp \
40 src/jni/ScilabJavaObject.cpp \
41 src/jni/ScilabClassLoader.cpp \
42 src/jni/ScilabOperations.cpp
43
44 #src/cpp/ScilabObjectsCPP.cpp
45 # src/cpp/WrapAsDirectBuffer.cpp
46 GATEWAY_C_SOURCES = sci_gateway/c/gw_external_objects_java.c \
47 sci_gateway/cpp/sci_jimport.cpp \
48 sci_gateway/cpp/sci_jgetclassname.cpp \
49 sci_gateway/cpp/sci_jwrap.cpp \
50 sci_gateway/cpp/sci_jgetmethods.cpp \
51 sci_gateway/cpp/sci_jgetfields.cpp \
52 sci_gateway/cpp/sci_jgetfield.cpp \
53 sci_gateway/cpp/sci_jcompile.cpp \
54 sci_gateway/cpp/sci_jcreatejar.cpp \
55 sci_gateway/cpp/sci_jnewInstance.cpp \
56 sci_gateway/cpp/sci_jremove.cpp \
57 sci_gateway/cpp/sci_jexists.cpp \
58 sci_gateway/cpp/sci_junwrap.cpp \
59 sci_gateway/cpp/sci_jautoUnwrap.cpp \
60 sci_gateway/cpp/sci_junwraprem.cpp \
61 sci_gateway/cpp/sci_jenableTrace.cpp \
62 sci_gateway/cpp/sci_jdisableTrace.cpp \
63 sci_gateway/cpp/sci_jdeff.cpp \
64 sci_gateway/cpp/sci_jinvoke.cpp \
65 sci_gateway/cpp/sci_jarray.cpp \
66 sci_gateway/cpp/sci_jcast.cpp \
67 sci_gateway/cpp/sci_jallowClassReloading.cpp \
68 sci_gateway/cpp/sci_jwrapinfloat.cpp \
69 sci_gateway/cpp/sci_jsetfield.cpp \
70 sci_gateway/cpp/sci_jautoTranspose.cpp \
71 sci_gateway/cpp/sci_jconvMatrixMethod.cpp \
72 sci_gateway/cpp/sci_jgetinfo.cpp \
73 sci_gateway/cpp/sci_jinvoke_db.cpp
74
75 GIWS_WRAPPERS = src/jni/ScilabObjects.giws.xml
76
77 if GIWS
78 GIWS_OPTIONS=--enable-return-size-array
79 BUILT_SOURCES=giws
80 endif
81
82 GATEWAY_CPP_SOURCES =
83 libsciexternal_objects_java_la_CFLAGS= -I$(srcdir)/includes/ \
84              -I$(top_srcdir)/libs/MALLOC/includes/ \
85              -I$(top_srcdir)/modules/core/includes \
86              -I$(top_srcdir)/modules/api_scilab/includes \
87              -I$(top_srcdir)/modules/output_stream/includes \
88              -I$(top_srcdir)/modules/string/includes \
89              -I$(top_srcdir)/modules/fileio/includes
90
91
92 libsciexternal_objects_java_la_CPPFLAGS = -I$(srcdir)/includes/ \
93     -I$(srcdir)/src/cpp/ \
94     -I$(srcdir)/src/c/ \
95     -I$(srcdir)/src/jni/ \
96     -I$(top_srcdir)/libs/MALLOC/includes/ \
97     -I$(top_srcdir)/modules/localization/includes \
98     -I$(top_srcdir)/modules/api_scilab/includes \
99     -I$(top_srcdir)/modules/output_stream/includes \
100     -I$(top_srcdir)/modules/string/includes \
101     -I$(top_srcdir)/modules/fileio/includes \
102     -I$(top_srcdir)/modules/jvm/includes \
103     -I$(top_srcdir)/modules/core/src/c \
104     -I$(top_srcdir)/modules/external_objects/includes \
105         -I$(top_srcdir)/modules/commons/src/jni/ \
106     $(JAVA_JNI_INCLUDE)
107
108
109 pkglib_LTLIBRARIES = libsciexternal_objects_java.la
110 noinst_LTLIBRARIES = libsciexternal_objects_java-algo.la
111
112 libsciexternal_objects_java_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
113
114 libsciexternal_objects_java_algo_la_SOURCES = $(EXTERNAL_OBJECTS_JAVA_C_SOURCES) $(EXTERNAL_OBJECTS_JAVA_JNI_SOURCES) $(EXTERNAL_OBJECTS_JAVA_CPP_SOURCES)
115 libsciexternal_objects_java_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
116 libsciexternal_objects_java_algo_la_CFLAGS = $(libsciexternal_objects_java_la_CFLAGS)
117 libsciexternal_objects_java_algo_la_CPPFLAGS = $(libsciexternal_objects_java_la_CPPFLAGS)
118
119 libsciexternal_objects_java_la_LIBADD = \
120                 libsciexternal_objects_java-algo.la \
121                 $(top_builddir)/modules/commons/libscicommons.la \
122                 $(top_builddir)/modules/jvm/libscijvm.la \
123                 $(X_LIBS) $(X_EXTRA_LIBS)
124
125 # For the code check (splint)
126 CHECK_SRC= $(EXTERNAL_OBJECTS_JAVA_C_SOURCES) $(GATEWAY_C_SOURCES)
127 INCLUDE_FLAGS = $(libsciexternal_objects_java_la_CFLAGS)
128
129 #### external_objects_java : gateway declaration ####
130 libsciexternal_objects_java_la_sci_gatewaydir = $(mydatadir)/sci_gateway
131 libsciexternal_objects_java_la_sci_gateway_DATA = sci_gateway/external_objects_java_gateway.xml
132
133 #### external_objects_java : include files ####
134 libsciexternal_objects_java_la_includedir=$(pkgincludedir)
135 libsciexternal_objects_java_la_include_HEADERS =
136
137 #### external_objects_java : test files ####
138 libsciexternal_objects_java_la_testsdir = $(mydatadir)/tests/
139 libsciexternal_objects_java_la_tests_DATA = \
140 tests/libintl.jar
141
142 if GUI
143 USEANT=1
144 endif
145