modules using java in nwni mode fixed.
[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 # Copyright (C) 2012 - 2016 - Scilab Enterprises
7 #
8 # This file is hereby licensed under the terms of the GNU GPL v2.0,
9 # pursuant to article 5.3.4 of the CeCILL v.2.1.
10 # This file was originally licensed under the terms of the CeCILL v2.1,
11 # and continues to be available under such terms.
12 # For more information, see the COPYING file which you should have received
13 # along with this program.
14 #
15
16
17 #### Target ####
18 modulename=jvm
19
20 #### jvm : Conf files ####
21 libscijvm_la_rootdir = $(mydatadir)
22 libscijvm_la_root_DATA =  license.txt
23
24 #### jvm : init scripts ####
25 libscijvm_la_etcdir = $(mydatadir)/etc
26 libscijvm_la_etc_DATA = \
27     etc/jvm.quit \
28     etc/jvm.start
29
30
31
32
33 libscijvm_la_CPPFLAGS = \
34     $(JAVA_JNI_INCLUDE) \
35     -I$(srcdir)/includes/ \
36     -I$(srcdir)/src/c \
37     -I$(top_srcdir)/modules/ast/includes/ast/ \
38     -I$(top_srcdir)/modules/ast/includes/exps/ \
39     -I$(top_srcdir)/modules/ast/includes/operations/ \
40     -I$(top_srcdir)/modules/ast/includes/parse/ \
41     -I$(top_srcdir)/modules/ast/includes/symbol/ \
42     -I$(top_srcdir)/modules/ast/includes/system_env/ \
43     -I$(top_srcdir)/modules/ast/includes/types/ \
44     -I$(top_srcdir)/modules/ast/includes/analysis/ \
45     -I$(top_srcdir)/modules/api_scilab/includes/ \
46     -I$(top_srcdir)/modules/call_scilab/includes/ \
47     -I$(top_srcdir)/modules/output_stream/includes/ \
48     -I$(top_srcdir)/modules/localization/includes/ \
49     -I$(top_srcdir)/modules/string/includes/ \
50     -I$(top_srcdir)/modules/functions_manager/includes/ \
51     -I$(top_srcdir)/modules/fileio/includes/ \
52     -I$(top_srcdir)/modules/dynamic_link/includes \
53     -I$(top_srcdir)/modules/preferences/includes/ \
54     $(XML_FLAGS) \
55     $(AM_CPPFLAGS)
56
57 pkglib_LTLIBRARIES = libscijvm-disable.la
58
59 if GUI
60 USEANT=1
61 pkglib_LTLIBRARIES += libscijvm.la
62 noinst_LTLIBRARIES = libscijvm-algo.la
63 endif
64
65 libscijvm_la_LDFLAGS = -pthread $(AM_LDFLAGS)
66
67 # FIXME: This a platform specific flag, this should be done on configure.ac
68 if IS_MACOSX
69 libscijvm_la_LDFLAGS += -framework JavaVM
70 endif
71
72 libscijvm_la_LIBADD = libscijvm-algo.la $(XML_LIBS) $(JAVA_JNI_LIBS)
73
74 #### jvm : gateway declaration ####
75 libscijvm_la_sci_gatewaydir = $(mydatadir)/sci_gateway
76 libscijvm_la_sci_gateway_DATA = sci_gateway/jvm_gateway.xml
77
78 #### jvm :  dtd files ####
79 libscijvm_la_xmldir = $(mydatadir)/xml
80 libscijvm_la_xml_DATA = \
81     xml/classpath.dtd  \
82     xml/librarypath.dtd
83
84 #### jvm : include files ####
85 libscijvm_la_includedir=$(pkgincludedir)
86 libscijvm_la_include_HEADERS = \
87     includes/getScilabJavaVM.h \
88     includes/getScilabJNIEnv.h \
89     includes/addToClasspath.h \
90     includes/addToLibrarypath.h \
91     includes/getScilabObject.h
92
93 GATEWAY_C_SOURCES = \
94     sci_gateway/c/sci_javaclasspath.c \
95     sci_gateway/c/sci_javalibrarypath.c
96
97 GATEWAY_CPP_SOURCES = \
98     sci_gateway/cpp/sci_system_getproperty.cpp \
99     sci_gateway/cpp/sci_system_setproperty.cpp
100
101 JVM_C_SOURCES = \
102     src/c/InitializeJVM.c \
103     src/c/TerminateJVM.c \
104     src/c/JVM_Unix.c \
105     src/c/JVM.c \
106     src/c/addToClasspath.c \
107     src/c/loadOnUseClassPath.c \
108     src/c/loadBackGroundClassPath.c \
109     src/c/getClasspath.c \
110     src/c/system_getproperty.c \
111     src/c/system_setproperty.c \
112     src/c/loadClasspath.c \
113     src/c/createMainScilabObject.c \
114     src/c/JVM_commons.c \
115     src/c/catchIfJavaException.c \
116     src/c/loadLibrarypath.c \
117     src/c/getLibrarypath.c \
118     src/c/addToLibrarypath.c \
119     src/c/getJvmOptions.c
120
121 JVM_DISABLE_C_SOURCES = src/nojvm/nojvm.c
122 libscijvm_disable_la_SOURCES = $(JVM_DISABLE_C_SOURCES)
123
124 libscijvm_disable_la_CPPFLAGS = \
125     -I$(srcdir)/includes/ \
126     -I$(top_srcdir)/modules/ast/includes/ast/ \
127     -I$(top_srcdir)/modules/ast/includes/exps/ \
128     -I$(top_srcdir)/modules/ast/includes/operations/ \
129     -I$(top_srcdir)/modules/ast/includes/parse/ \
130     -I$(top_srcdir)/modules/ast/includes/symbol/ \
131     -I$(top_srcdir)/modules/ast/includes/system_env/ \
132     -I$(top_srcdir)/modules/ast/includes/types/ \
133     -I$(top_srcdir)/modules/ast/includes/analysis/ \
134     -I$(top_srcdir)/modules/output_stream/includes/ \
135     -I$(top_srcdir)/modules/localization/includes/ \
136     -I$(top_srcdir)/modules/functions_manager/includes/
137
138 libscijvm_algo_la_SOURCES = $(JVM_C_SOURCES)
139 libscijvm_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
140 libscijvm_algo_la_CPPFLAGS = $(libscijvm_la_CPPFLAGS)
141
142 # For the code check (splint)
143 CHECK_SRC= $(libscijvm_la_SOURCES)
144 INCLUDE_FLAGS = $(libscijvm_la_CPPFLAGS)
145
146 CLEANFILES = etc/jvm_options.xml
147
148 include $(top_srcdir)/Makefile.incl.am