remove jimsgetpath (won't support it)
[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-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/ScilabJavaClass.cpp \
39 src/jni/ScilabJavaObject.cpp \
40 src/jni/ScilabClassLoader.cpp
41
42 #src/cpp/ScilabObjectsCPP.cpp
43 # src/cpp/WrapAsDirectBuffer.cpp
44 GATEWAY_C_SOURCES = sci_gateway/c/gw_external_objects_java.c \
45 sci_gateway/cpp/sci_jimport.cpp \
46 sci_gateway/cpp/sci_jgetclassname.cpp \
47 sci_gateway/cpp/sci_jwrap.cpp \
48 sci_gateway/cpp/sci_jgetmethods.cpp \
49 sci_gateway/cpp/sci_jgetfields.cpp \
50 sci_gateway/cpp/sci_jgetfield.cpp \
51 sci_gateway/cpp/sci_jcompile.cpp \
52 sci_gateway/cpp/sci_jnewInstance.cpp \
53 sci_gateway/cpp/sci_jremove.cpp \
54 sci_gateway/cpp/sci_jexists.cpp \
55 sci_gateway/cpp/sci_junwrap.cpp \
56 sci_gateway/cpp/sci_junwraprem.cpp \
57 sci_gateway/cpp/sci_jenableTrace.cpp \
58 sci_gateway/cpp/sci_jdisableTrace.cpp \
59 sci_gateway/cpp/sci_jdeff.cpp \
60 sci_gateway/cpp/sci_jvoid.cpp \
61 sci_gateway/cpp/sci_jarray.cpp \
62 sci_gateway/cpp/sci_jcast.cpp \
63 sci_gateway/cpp/sci_jallowClassReloading.cpp \
64 sci_gateway/cpp/sci_jwrapinfloat.cpp
65
66 GIWS_WRAPPERS = src/jni/ScilabObjects.giws.xml
67
68 if GIWS
69 BUILT_SOURCES=giws
70 endif
71
72 GATEWAY_CPP_SOURCES =
73 libsciexternal_objects_java_la_CFLAGS= -I$(srcdir)/includes/ \
74              -I$(top_srcdir)/libs/MALLOC/includes/ \
75              -I$(top_srcdir)/modules/core/includes \
76              -I$(top_srcdir)/modules/api_scilab/includes \
77              -I$(top_srcdir)/modules/output_stream/includes \
78              -I$(top_srcdir)/modules/string/includes \
79              -I$(top_srcdir)/modules/fileio/includes
80
81
82 libsciexternal_objects_java_la_CPPFLAGS = -I$(srcdir)/includes/ \
83     -I$(srcdir)/src/cpp/ \
84     -I$(srcdir)/src/c/ \
85     -I$(srcdir)/src/jni/ \
86     -I$(top_srcdir)/libs/MALLOC/includes/ \
87     -I$(top_srcdir)/modules/localization/includes \
88     -I$(top_srcdir)/modules/api_scilab/includes \
89     -I$(top_srcdir)/modules/output_stream/includes \
90     -I$(top_srcdir)/modules/string/includes \
91     -I$(top_srcdir)/modules/fileio/includes \
92     -I$(top_srcdir)/modules/jvm/includes \
93     -I$(top_srcdir)/modules/core/src/c \
94     -I$(top_srcdir)/modules/external_objects/includes \
95         -I$(top_srcdir)/modules/commons/src/jni/ \
96     $(JAVA_JNI_INCLUDE)
97
98
99 pkglib_LTLIBRARIES = libsciexternal_objects_java.la 
100 noinst_LTLIBRARIES = libsciexternal_objects_java-algo.la 
101
102 libsciexternal_objects_java_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
103
104 libsciexternal_objects_java_algo_la_SOURCES = $(EXTERNAL_OBJECTS_JAVA_C_SOURCES) $(EXTERNAL_OBJECTS_JAVA_JNI_SOURCES) $(EXTERNAL_OBJECTS_JAVA_CPP_SOURCES)
105 libsciexternal_objects_java_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) 
106 libsciexternal_objects_java_algo_la_CFLAGS = $(libsciexternal_objects_java_la_CFLAGS)
107 libsciexternal_objects_java_algo_la_CPPFLAGS = $(libsciexternal_objects_java_la_CPPFLAGS)
108
109 libsciexternal_objects_java_la_LIBADD = libsciexternal_objects_java-algo.la $(top_builddir)/modules/commons/libscicommons.la $(top_builddir)/modules/jvm/libscijvm.la
110
111 # For the code check (splint)
112 CHECK_SRC= $(EXTERNAL_OBJECTS_JAVA_C_SOURCES) $(GATEWAY_C_SOURCES)
113 INCLUDE_FLAGS = $(libsciexternal_objects_java_la_CFLAGS)
114
115 #### external_objects_java : gateway declaration ####
116 libsciexternal_objects_java_la_sci_gatewaydir = $(mydatadir)/sci_gateway
117 libsciexternal_objects_java_la_sci_gateway_DATA = sci_gateway/external_objects_java_gateway.xml
118
119 #### external_objects_java : include files ####
120 libsciexternal_objects_java_la_includedir=$(pkgincludedir)
121 libsciexternal_objects_java_la_include_HEADERS =
122
123 if GUI
124 USEANT=1
125 endif