* Bug #9444 fixed - jvm: remove with_embedded_jre
[scilab.git] / scilab / modules / jvm / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) INRIA   - 2006 - Sylvestre Ledru
4 # Copyright (C) DIGITEO - 2009 - Pierre MARECHAL
5 #
6 # This file must be used under the terms of the CeCILL.
7 # This source file is licensed as described in the file COPYING, which
8 # you should have received as part of this distribution.  The terms
9 # are also available at
10 # http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11 #
12
13
14 #### Target ####
15 modulename=jvm
16
17 #### jvm : Conf files ####
18 libscijvm_la_rootdir = $(mydatadir)
19 libscijvm_la_root_DATA =  license.txt
20
21 #### jvm : init scripts ####
22 libscijvm_la_etcdir = $(mydatadir)/etc
23 libscijvm_la_etc_DATA = etc/jvm.quit etc/jvm.start
24
25
26
27
28 libscijvm_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
29                         -I$(top_srcdir)/modules/dynamic_link/includes/ \
30                         -I$(srcdir)/includes/ \
31                         -I$(srcdir)/src/c \
32                         $(XML_FLAGS) \
33                         -I$(top_srcdir)/modules/output_stream/includes/ \
34                         -I$(top_srcdir)/modules/localization/includes/ \
35                         -I$(top_srcdir)/modules/string/includes/ \
36                         -I$(top_srcdir)/modules/api_scilab/includes/ \
37                         -I$(top_srcdir)/modules/call_scilab/includes/ \
38                         -I$(top_srcdir)/modules/fileio/includes/ \
39                         -I$(top_srcdir)/modules/preferences/includes/ \
40                         $(AM_CPPFLAGS)
41
42 pkglib_LTLIBRARIES = libscijvm-disable.la
43
44 if GUI
45 USEANT=1
46 pkglib_LTLIBRARIES += libscijvm.la
47 noinst_LTLIBRARIES = libscijvm-algo.la
48 endif
49
50 libscijvm_la_LDFLAGS = -lpthread $(XML_LIBS) $(JAVA_JNI_LIBS) $(AM_LDFLAGS)
51
52 # FIXME: This a platform specific flag, this should be done on configure.ac
53 if IS_MACOSX
54 libscijvm_la_LDFLAGS += -framework JavaVM
55 endif
56
57 libscijvm_la_LIBADD = libscijvm-algo.la
58
59 #### jvm : gateway declaration ####
60 libscijvm_la_sci_gatewaydir = $(mydatadir)/sci_gateway
61 libscijvm_la_sci_gateway_DATA = sci_gateway/jvm_gateway.xml
62
63 #### jvm :  dtd files ####
64 libscijvm_la_xmldir = $(mydatadir)/xml
65 libscijvm_la_xml_DATA = xml/classpath.dtd  xml/librarypath.dtd
66
67 #### jvm : include files ####
68 libscijvm_la_includedir=$(pkgincludedir)
69 libscijvm_la_include_HEADERS = includes/getScilabJavaVM.h \
70 includes/getScilabJNIEnv.h \
71 includes/addToClasspath.h \
72 includes/addToLibrarypath.h \
73 includes/getScilabObject.h
74
75 GATEWAY_C_SOURCES = sci_gateway/c/sci_system_getproperty.c \
76 sci_gateway/c/sci_system_setproperty.c \
77 sci_gateway/c/sci_javaclasspath.c \
78 sci_gateway/c/gw_jvm.c \
79 sci_gateway/c/sci_javalibrarypath.c
80
81
82 JVM_C_SOURCES = src/c/InitializeJVM.c \
83 src/c/TerminateJVM.c \
84 src/c/JVM_Unix.c \
85 src/c/JVM.c \
86 src/c/addToClasspath.c \
87 src/c/loadOnUseClassPath.c \
88 src/c/loadBackGroundClassPath.c \
89 src/c/getClasspath.c \
90 src/c/system_getproperty.c \
91 src/c/system_setproperty.c \
92 src/c/loadClasspath.c \
93 src/c/createMainScilabObject.c \
94 src/c/JVM_commons.c \
95 src/c/catchIfJavaException.c \
96 src/c/loadLibrarypath.c \
97 src/c/getLibrarypath.c \
98 src/c/addToLibrarypath.c \
99 src/c/getJvmOptions.c
100
101 libscijvm_disable_la_SOURCES = src/nojvm/nojvm.c
102 libscijvm_disable_la_CPPFLAGS = -I$(srcdir)/includes/ \
103                         -I$(top_srcdir)/modules/call_scilab/includes/ \
104                         -I$(srcdir)/src/c \
105                         -I$(top_srcdir)/modules/localization/includes/ \
106                         -I$(top_srcdir)/modules/api_scilab/includes/ \
107                         -I$(top_srcdir)/modules/output_stream/includes/ \
108                         -I$(top_srcdir)/modules/preferences/src/c \
109                         $(AM_CPPFLAGS)
110
111 libscijvm_algo_la_SOURCES = $(JVM_C_SOURCES)
112 libscijvm_la_SOURCES = $(GATEWAY_C_SOURCES)
113 libscijvm_algo_la_CPPFLAGS = $(libscijvm_la_CPPFLAGS)
114
115 # For the code check (splint)
116 CHECK_SRC= $(libscijvm_la_SOURCES)
117 INCLUDE_FLAGS = $(libscijvm_la_CPPFLAGS)
118
119 CLEANFILES = etc/jvm_options.xml
120
121 include $(top_srcdir)/Makefile.incl.am