make distclean really removes all
[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-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)/libs/MALLOC/includes/ \
30                         -I$(top_srcdir)/libs/dynamiclibrary/includes/ \
31                         -I$(srcdir)/includes/ \
32                         -I$(srcdir)/src/c \
33                         $(XML_FLAGS) \
34                         -I$(top_srcdir)/modules/output_stream/includes/ \
35                         -I$(top_srcdir)/modules/localization/includes/ \
36                         -I$(top_srcdir)/modules/string/includes/ \
37                         -I$(top_srcdir)/modules/api_scilab/includes/ \
38                         -I$(top_srcdir)/modules/call_scilab/includes/ \
39                         -I$(top_srcdir)/modules/fileio/includes/ \
40                         -I$(top_srcdir)/modules/preferences/includes/ \
41                         $(AM_CPPFLAGS)
42
43 pkglib_LTLIBRARIES = libscijvm-disable.la
44
45 if GUI
46 USEANT=1
47 pkglib_LTLIBRARIES += libscijvm.la
48 noinst_LTLIBRARIES = libscijvm-algo.la
49 endif
50
51 libscijvm_la_LDFLAGS = -lpthread $(XML_LIBS) $(JAVA_JNI_LIBS) $(AM_LDFLAGS)
52
53 # FIXME: This a platform specific flag, this should be done on configure.ac
54 if IS_MACOSX 
55 libscijvm_la_LDFLAGS += -framework JavaVM
56 endif
57
58 libscijvm_la_LIBADD = libscijvm-algo.la
59
60 #### jvm : gateway declaration ####
61 libscijvm_la_sci_gatewaydir = $(mydatadir)/sci_gateway
62 libscijvm_la_sci_gateway_DATA = sci_gateway/jvm_gateway.xml
63
64 #### jvm :  dtd files ####
65 libscijvm_la_xmldir = $(mydatadir)/xml
66 libscijvm_la_xml_DATA = xml/classpath.dtd  xml/librarypath.dtd
67
68 #### jvm : include files ####
69 libscijvm_la_includedir=$(pkgincludedir)
70 libscijvm_la_include_HEADERS = includes/getScilabJavaVM.h \
71 includes/getScilabJNIEnv.h \
72 includes/addToClasspath.h \
73 includes/addToLibrarypath.h \
74 includes/getScilabObject.h
75
76 GATEWAY_C_SOURCES = sci_gateway/c/sci_system_getproperty.c \
77 sci_gateway/c/sci_system_setproperty.c \
78 sci_gateway/c/sci_with_embedded_jre.c \
79 sci_gateway/c/sci_javaclasspath.c \
80 sci_gateway/c/gw_jvm.c \
81 sci_gateway/c/sci_javalibrarypath.c
82
83
84 JVM_C_SOURCES = src/c/InitializeJVM.c \
85 src/c/TerminateJVM.c \
86 src/c/JVM_Unix.c \
87 src/c/JVM.c \
88 src/c/addToClasspath.c \
89 src/c/loadOnUseClassPath.c \
90 src/c/loadBackGroundClassPath.c \
91 src/c/getClasspath.c \
92 src/c/system_getproperty.c \
93 src/c/system_setproperty.c \
94 src/c/loadClasspath.c \
95 src/c/createMainScilabObject.c \
96 src/c/JVM_commons.c \
97 src/c/catchIfJavaException.c \
98 src/c/loadLibrarypath.c \
99 src/c/getLibrarypath.c \
100 src/c/addToLibrarypath.c \
101 src/c/getJvmOptions.c
102
103 libscijvm_disable_la_SOURCES = src/nojvm/nojvm.c
104 libscijvm_disable_la_CPPFLAGS = -I$(srcdir)/includes/ \
105                         -I$(top_srcdir)/libs/MALLOC/includes/ \
106                         -I$(top_srcdir)/modules/call_scilab/includes/ \
107                         -I$(srcdir)/src/c \
108                         -I$(top_srcdir)/modules/localization/includes/ \
109                         -I$(top_srcdir)/modules/api_scilab/includes/ \
110                         -I$(top_srcdir)/modules/output_stream/includes/ \
111                         -I$(top_srcdir)/modules/preferences/src/c \
112                         $(AM_CPPFLAGS)
113
114 libscijvm_algo_la_SOURCES = $(JVM_C_SOURCES)
115 libscijvm_la_SOURCES = $(GATEWAY_C_SOURCES)
116 libscijvm_algo_la_CPPFLAGS = $(libscijvm_la_CPPFLAGS)
117
118 # For the code check (splint)
119 CHECK_SRC= $(libscijvm_la_SOURCES)
120 INCLUDE_FLAGS = $(libscijvm_la_CPPFLAGS)
121
122 CLEANFILES = etc/jvm_options.xml
123
124 include $(top_srcdir)/Makefile.incl.am