summaryrefslogtreecommitdiffstats
path: root/scilab/modules/xpad/Makefile.am
blob: 0000c578608c997ef7b84d78ff949c9f5873c4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#
# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
# Copyright (C) DIGITEO - 2009 - Allan CORNET
# 
# This file must be used under the terms of the CeCILL.
# This source file is licensed as described in the file COPYING, which
# you should have received as part of this distribution.  The terms
# are also available at    
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#

#### Target ######
modulename=xpad


#### xpad : Conf files ####
libscixpad_la_rootdir = $(mydatadir)
libscixpad_la_root_DATA = changelog.txt license.txt readme.txt version.xml


#### xpad : init scripts ####
libscixpad_la_etcdir = $(mydatadir)/etc
libscixpad_la_etc_DATA = 	etc/xpadConfiguration.xml \
				etc/xpad.quit \
				etc/xpad.start

include $(top_srcdir)/Makefile.incl.am


XPAD_JNI_SOURCES = src/jni/ScilabKeywords_wrap.c

XPAD_C_SOURCES = src/c/ScilabKeywords.c

XPAD_CPP_SOURCES = src/jni/Xpad.cpp \
	src/cpp/callxpad.cpp \
	src/jni/GiwsException.cpp


GIWS_WRAPPERS = src/jni/Xpad.giws.xml

if GIWS
BUILT_SOURCES=giws
endif


GATEWAY_C_SOURCES = sci_gateway/c/gw_xpad.c

GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_xpad.cpp \
sci_gateway/cpp/sci_closeXpadFromScilab.cpp

libscixpad_la_CFLAGS= $(JAVA_JNI_INCLUDE) \
			-I$(top_srcdir)/libs/MALLOC/includes/ \
			-I$(top_srcdir)/modules/jvm/includes/ \
			-I$(top_srcdir)/modules/output_stream/includes \
			-I$(top_srcdir)/modules/localization/includes \
			-I$(top_srcdir)/modules/api_scilab/includes \
			-I$(top_srcdir)/modules/fileio/includes \
			-I$(top_srcdir)/modules/core/includes \
			-I$(top_srcdir)/modules/functions/includes

libscixpad_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
			-I$(srcdir)/includes/ \
			-I$(srcdir)/src/cpp/ \
			-I$(srcdir)/src/c/ \
			-I$(srcdir)/src/jni/ \
	 		-I$(top_srcdir)/modules/jvm/includes/ \
			-I$(top_srcdir)/modules/fileio/includes \
			-I$(top_srcdir)/modules/output_stream/includes \
			-I$(top_srcdir)/modules/localization/includes \
			-I$(top_srcdir)/modules/api_scilab/includes

# Without the xpad module 
libscixpad_disable_la_CFLAGS = -Iincludes/ \
			-I$(top_srcdir)/modules/output_stream/includes

XPAD_DISABLE_C_SOURCES = src/noxpad/noxpad.c
libscixpad_disable_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
libscixpad_disable_la_SOURCES = $(XPAD_DISABLE_C_SOURCES)

pkglib_LTLIBRARIES = libscixpad-disable.la

if GUI
pkglib_LTLIBRARIES += libscixpad.la 
endif

libscixpad_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)

libscixpad_la_SOURCES = $(XPAD_C_SOURCES) $(XPAD_JNI_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(XPAD_CPP_SOURCES)

# For the code check (splint)
CHECK_SRC= $(XPAD_C_SOURCES) $(GATEWAY_C_SOURCES)
INCLUDE_FLAGS = $(libscixpad_la_CFLAGS)


#### SWIG Declaration ####
SWIG_WRAPPERS = src/jni/ScilabKeywords.i 

if SWIG
BUILT_SOURCES=swig
endif

libscixpad_la_LIBADD = $(top_builddir)/modules/core/libscicore.la \
$(top_builddir)/libs/MALLOC/libscimalloc.la \
$(top_builddir)/modules/output_stream/libscioutput_stream.la


#### xpad : gateway declaration ####
libscixpad_la_sci_gatewaydir = $(mydatadir)/sci_gateway
libscixpad_la_sci_gateway_DATA = sci_gateway/xpad_gateway.xml

if GUI
USEANT=1
endif