3f0dbd90b09ba2f681cfeec8afc1a8df3c74a0ab
[scilab.git] / scilab / modules / types / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) DIGITEO - 2010 - Allan CORNET
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=types
14
15
16 #### types : Conf files ####
17 libscitypes_la_rootdir = $(mydatadir)
18 libscitypes_la_root_DATA =  license.txt 
19
20
21 #### types : init scripts ####
22 libscitypes_la_etcdir = $(mydatadir)/etc
23 libscitypes_la_etc_DATA = etc/types.quit \
24                           etc/types.start
25
26 include $(top_srcdir)/Makefile.incl.am
27
28
29 TYPES_JNI_SOURCES = 
30
31 TYPES_C_SOURCES = src/jni/getScilabVariable_wrap.c
32
33 TYPES_CPP_SOURCES = src/cpp/ScilabToJava.cpp \
34                     src/jni/ScilabVariables.cpp \
35                     src/jni/ScilabVariablesRefresh.cpp \
36                     src/jni/ScilabPolynomialToJava.cpp
37
38 GIWS_WRAPPERS = src/jni/ScilabVariables.giws.xml
39
40 if GIWS
41 BUILT_SOURCES=giws
42 endif
43
44
45 #GATEWAY_C_SOURCES =
46
47 #GATEWAY_CPP_SOURCES =
48
49 libscitypes_la_CFLAGS = $(JAVA_JNI_INCLUDE) \
50                         -I$(srcdir)/includes
51
52 libscitypes_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
53                            -I$(srcdir)/src/jni \
54                            -I$(srcdir)/src/cpp \
55                            -I$(srcdir)/includes \
56                            -I$(top_srcdir)/modules/commons/src/jni/ \
57                            -I$(top_srcdir)/modules/jvm/includes/ \
58                            -I$(top_srcdir)/modules/output_stream/includes \
59                            -I$(top_srcdir)/modules/api_scilab/includes
60
61 # Without the types module
62 libscitypes_disable_la_CFLAGS =
63
64 TYPES_DISABLE_C_SOURCES =
65 libscitypes_disable_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
66 libscitypes_disable_la_SOURCES = $(TYPES_DISABLE_C_SOURCES)
67 libscitypes_algo_la_SOURCES = $(TYPES_C_SOURCES) $(TYPES_JNI_SOURCES) $(TYPES_CPP_SOURCES)
68 libscitypes_algo_la_CFLAGS = $(libscitypes_la_CFLAGS)
69 libscitypes_algo_la_CPPFLAGS = $(libscitypes_la_CPPFLAGS)
70
71 libscitypes_la_LIBADD = $(top_builddir)/modules/commons/libscicommons.la \
72                         $(top_builddir)/modules/jvm/libscijvm.la \
73                         $(top_builddir)/modules/libscilab-cli/libscilab-cli.la
74
75 pkglib_LTLIBRARIES = libscitypes-disable.la
76
77 if GUI
78 pkglib_LTLIBRARIES += libscitypes.la
79 noinst_LTLIBRARIES = libscitypes-algo.la
80 endif
81
82 libscitypes_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
83
84 libscitypes_la_SOURCES = $(TYPES_C_SOURCES) $(TYPES_JNI_SOURCES) $(TYPES_CPP_SOURCES)
85 #libscitypes_algo_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
86
87 # For the code check (splint)
88 CHECK_SRC= $(TYPES_C_SOURCES) $(GATEWAY_C_SOURCES)
89 INCLUDE_FLAGS = $(libscitypes_la_CFLAGS)
90
91
92 #### SWIG Declaration ####
93 SWIG_WRAPPERS = src/jni/sci_types.i \
94                 src/jni/getScilabVariable.i
95
96
97
98 if SWIG
99 BUILT_SOURCES=swig
100 endif
101
102 if GIWS
103 BUILT_SOURCES += giws-exception
104 endif
105
106 #### types : gateway declaration ####
107 libscitypes_la_sci_gatewaydir = $(mydatadir)/sci_gateway
108 libscitypes_la_sci_gateway_DATA =
109
110 if NEED_JAVA
111 USEANT=1
112 endif