bug 3051 + cleaning
[scilab.git] / scilab / modules / completion / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2007 - INRIA - Sylvestre LEDRU
3 #
4 # This file must be used under the terms of the CeCILL.
5 # This source file is licensed as described in the file COPYING, which
6 # you should have received as part of this distribution.  The terms
7 # are also available at
8 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10 if GUI
11 #List of the c files
12 COMPLETION_JNI_SOURCES = src/jni/Completion_wrap.c 
13 USEANT=1
14
15 endif
16
17 # List of the c files
18 COMPLETION_C_SOURCES = src/c/completion.c \
19 src/c/completion_generic.c \
20 src/c/getfilesdictionary.c \
21 src/c/getfulldictionary.c \
22 src/c/getmacrosdictionary.c \
23 src/c/toolsdictionary.c \
24 src/c/completion_wrap_java.c \
25 src/c/getPartLine.c \
26 src/c/getCommonPart.c
27
28 # List of the gateway c files
29 GATEWAY_C_SOURCES = sci_gateway/c/sci_completion.c \
30 sci_gateway/c/gw_completion.c
31
32 # Includes need for the compilation
33 libscicompletion_la_CFLAGS=     $(JAVA_JNI_INCLUDE) \
34                                 -I$(srcdir)/includes/ \
35                                 -I$(srcdir)/src/c/ \
36                                 -I$(top_srcdir)/libs/MALLOC/includes/ \
37                                 -I$(top_srcdir)/modules/graphics/includes/ \
38                                 -I$(top_srcdir)/modules/fileio/includes/ \
39                                 -I$(top_srcdir)/modules/output_stream/includes
40
41 # Name of the future library (.la will be replace by .so, .a, etc regarding
42 # the system)
43 pkglib_LTLIBRARIES = libscicompletion.la
44
45 libscicompletion_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
46
47 # All the sources needed by libscicompletion.la
48 libscicompletion_la_SOURCES = $(COMPLETION_JNI_SOURCES) $(COMPLETION_C_SOURCES) $(GATEWAY_C_SOURCES)
49
50 # For the code check (splint)
51 CHECK_SRC= $(COMPLETION_C_SOURCES) $(GATEWAY_C_SOURCES)
52 INCLUDE_FLAGS = $(libscicompletion_la_CFLAGS)
53
54 ## Libraries necessary
55 ## Change to include other Scilab modules/lib
56 libscicompletion_la_LIBADD =  $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la 
57 #$(top_builddir)/modules/graphics/libscigraphics.la
58 #### Name of the module and the path ######
59 modulename=completion
60
61 #### completion : Conf files ####
62 libscicompletion_la_rootdir = $(mydatadir)
63 libscicompletion_la_root_DATA = changelog.txt license.txt readme.txt version.xml
64
65 #### completion : init scripts ####
66 libscicompletion_la_etcdir = $(mydatadir)/etc
67 libscicompletion_la_etc_DATA = etc/completion.quit etc/completion.start
68
69 #### completion : gateway declaration ####
70 libscicompletion_la_sci_gatewaydir = $(mydatadir)/sci_gateway
71 libscicompletion_la_sci_gateway_DATA = sci_gateway/completion_gateway.xml
72
73 #### completion : include files ####
74 libscicompletion_la_includedir=$(pkgincludedir)/completion
75 libscicompletion_la_include_HEADERS = includes/gw_completion.h \
76 includes/completion.h
77
78 #### SWIG Declaration ####
79 SWIG_WRAPPERS = src/jni/Completion.i 
80
81 if SWIG
82 BUILT_SOURCES=swig
83 endif
84
85
86 # Provides macros compilation, Java compilation, cleaning
87 # If you want Makefile to call ant, added USEANT=1
88
89
90 include $(top_srcdir)/Makefile.incl.am