c029097dc4629d4d6155e6eae902b0237cd68eb9
[scilab.git] / scilab / modules / jvm / Makefile.am
1 ##########
2 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
3 ### INRIA - Scilab 2006 
4 ##########
5
6
7 libscijvm_la_CFLAGS=  $(JAVA_JNI_INCLUDE) -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/libs/dynamiclibrary/includes/ -Iincludes/ -Isrc/c $(XML_FLAGS)
8
9 libscijvm_la_LDFLAGS = $(JAVA_JNI_LIBS) -lpthread -ldl $(XML_LIBS)
10
11 pkglib_LTLIBRARIES = libscijvm.la
12
13
14 libscijvm_la_LIBADD = $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la
15
16 modulename=jvm
17
18 #### jvm : Conf files ####
19 libscijvm_la_rootdir = $(mydatadir)
20 libscijvm_la_root_DATA = changelog.txt licence.txt readme.txt version.xml
21
22 #### jvm : init scripts #### 
23 libscijvm_la_etcdir = $(mydatadir)/etc
24 libscijvm_la_etc_DATA = etc/jvm.quit etc/jvm.start
25
26 #### jvm : gateway declaration #### 
27 libscijvm_la_sci_gatewaydir = $(mydatadir)/sci_gateway
28 libscijvm_la_sci_gateway_DATA = sci_gateway/jvm_gateway.xml
29
30 #### jvm : include files ####
31 libscijvm_la_includedir=$(pkgincludedir)/jvm
32 libscijvm_la_include_HEADERS = includes/TerminateJVM.h \
33 includes/getScilabJavaVM.h \
34 includes/getScilabJNIEnv.h \
35 includes/InitializeJVM.h \
36 includes/gw_jvm.h \
37 includes/JniUtils.h \
38 includes/addToClasspath.h
39
40 if WITH_JAVA
41
42 GATEWAY_C_SOURCES = sci_gateway/c/sci_system_getproperty.c \
43 sci_gateway/c/sci_with_embedded_jre.c \
44 sci_gateway/c/sci_javaclasspath.c \
45 sci_gateway/c/gw_jvm.c
46
47 JVM_C_SOURCES = src/c/InitializeJVM.c \
48 src/c/TerminateJVM.c \
49 src/c/JVM_Unix.c \
50 src/c/JVM.c \
51 src/c/JniUtils.c \
52 src/c/addToClasspath.c \
53 src/c/getClasspath.c \
54 src/c/system_getproperty.c \
55 src/c/loadClasspath.c \
56 src/c/createMainScilabObject.c \
57 src/c/JVM_commons.c \
58 src/c/catchIfJavaException.c
59
60 USEANT=1
61
62 else
63
64 JVM_C_SOURCES = src/nojvm/nojvm.c
65
66 endif
67
68 libscijvm_la_SOURCES = $(JVM_C_SOURCES) $(GATEWAY_C_SOURCES)
69
70
71 include $(top_srcdir)/Makefile.incl.am