blob: 64fd61d68ae99f378a392968a31e94ba38cffe85 (
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
# Copyright (C) 2007 - INRIA - Sylvestre LEDRU
#
# 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.1-en.txt
if GUI
#List of the c files
COMPLETION_JNI_SOURCES = src/jni/Completion_wrap.c
USEANT=1
endif
# List of the c files
COMPLETION_C_SOURCES = src/c/completion.c \
src/c/completion_generic.c \
src/c/getfilesdictionary.c \
src/c/getmacrosdictionary.c \
src/c/getfieldsdictionary.c \
src/c/toolsdictionary.c \
src/c/completion_wrap_java.c \
src/c/getPartLine.c \
src/c/getCommonPart.c \
src/c/completeLine.c \
src/c/completeLine_wrap_java.c
COMPLETION_CXX_SOURCES = src/cpp/FieldsManager.cpp \
src/cpp/XMLFieldsGetter.cpp \
src/cpp/XMLDocFieldsGetter.cpp \
src/cpp/XMLElemFieldsGetter.cpp \
src/cpp/XMLAttrFieldsGetter.cpp \
src/cpp/XMLNsFieldsGetter.cpp \
src/cpp/XMLListFieldsGetter.cpp \
src/cpp/XMLSetFieldsGetter.cpp \
src/cpp/EOFieldsGetter.cpp \
src/cpp/UnknownMlistFieldsGetter.cpp \
src/cpp/StructFieldsGetter.cpp \
src/cpp/HandleFieldsGetter.cpp \
src/cpp/getfields.cpp
# List of the gateway c files
GATEWAY_C_SOURCES = sci_gateway/c/sci_completion.c \
sci_gateway/c/gw_completion.c
# Includes need for the compilation
libscicompletion_la_CPPFLAGS = -I$(srcdir)/includes/ \
-I$(srcdir)/src/c/ \
-I$(srcdir)/src/cpp/ \
-I$(top_srcdir)/modules/api_scilab/includes/ \
-I$(top_srcdir)/modules/functions/includes/ \
-I$(top_srcdir)/modules/localization/includes/ \
-I$(top_srcdir)/modules/output_stream/includes/ \
-I$(top_srcdir)/modules/graphics/includes/ \
-I$(top_srcdir)/modules/fileio/includes/ \
-I$(top_srcdir)/modules/string/includes/ \
-I$(top_srcdir)/modules/xml/includes/ \
-I$(top_srcdir)/modules/xml/src/cpp/ \
-I$(top_srcdir)/modules/external_objects/includes \
$(JAVA_JNI_INCLUDE) \
$(XML_FLAGS) \
$(AM_CPPFLAGS)
# Name of the future library (.la will be replace by .so, .a, etc regarding
# the system)
pkglib_LTLIBRARIES = libscicompletion.la
noinst_LTLIBRARIES = libscicompletion-algo.la
# All the sources needed by libscicompletion.la
libscicompletion_algo_la_SOURCES = $(COMPLETION_JNI_SOURCES) $(COMPLETION_C_SOURCES) $(COMPLETION_CXX_SOURCES)
libscicompletion_la_SOURCES = $(GATEWAY_C_SOURCES)
libscicompletion_algo_la_CPPFLAGS = $(libscicompletion_la_CPPFLAGS)
# For the code check (splint)
CHECK_SRC= $(COMPLETION_C_SOURCES) $(GATEWAY_C_SOURCES)
INCLUDE_FLAGS = $(libscicompletion_la_CPPFLAGS)
## Libraries necessary
libscicompletion_la_LIBADD = libscicompletion-algo.la
#### Name of the module and the path ######
modulename=completion
#### completion : Conf files ####
libscicompletion_la_rootdir = $(mydatadir)
libscicompletion_la_root_DATA = license.txt
#### completion : init scripts ####
libscicompletion_la_etcdir = $(mydatadir)/etc
libscicompletion_la_etc_DATA = etc/completion.quit etc/completion.start
#### completion : gateway declaration ####
libscicompletion_la_sci_gatewaydir = $(mydatadir)/sci_gateway
libscicompletion_la_sci_gateway_DATA = sci_gateway/completion_gateway.xml
#### completion : include files ####
libscicompletion_la_includedir=$(pkgincludedir)
libscicompletion_la_include_HEADERS = includes/gw_completion.h \
includes/completion.h \
includes/getCommonPart.h \
includes/getPartLine.h \
includes/dynlib_completion.h \
includes/completeLine.h
#### completion : test file ####
libscicompletion_la_testutilitiesdir = $(mydatadir)/tests/utilities
libscicompletion_la_testutilities_DATA = tests/utilities/build_primitives.sce \
tests/utilities/sci_completeline.c \
tests/utilities/sci_getcommonpart.c \
tests/utilities/sci_getfields.c \
tests/utilities/sci_getfilepartlevel.c \
tests/utilities/sci_getpartlevel.c
#### SWIG Declaration ####
SWIG_WRAPPERS = src/jni/Completion.i
if SWIG
BUILT_SOURCES=swig
endif
# Provides macros compilation, Java compilation, cleaning
# If you want Makefile to call ant, added USEANT=1
include $(top_srcdir)/Makefile.incl.am
|