Merge remote-tracking branch 'origin/master' into YaSp
[scilab.git] / scilab / modules / localization / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2006-2008 - 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
11 LOCALIZATION_C_SOURCES = \
12 src/c/InitializeLocalization.c \
13 src/c/setgetlanguage.c \
14 src/c/getLcidString.c \
15 src/c/charEncoding.c \
16 src/c/setdefaultlanguage.c
17
18 if NEED_JAVA
19 LOCALIZATION_C_SOURCES+=src/jni/Messages_wrap.c \
20 src/jni/LocaleToLCID_wrap.c \
21 src/jni/setdefaultlanguage_wrap.c
22 endif
23
24 if IS_MACOSX
25 LOCALIZATION_C_SOURCES += src/c/getLocaleInfo_Apple.c
26 endif
27
28 GATEWAY_C_SOURCES = sci_gateway/c/gw_localization.c \
29         sci_gateway/c/sci_dgettext.c
30
31 GATEWAY_CPP_SOURCES = \
32         sci_gateway/cpp/localization_gw.cpp \
33         sci_gateway/cpp/sci_gettext.cpp \
34         sci_gateway/cpp/sci_setdefaultlanguage.cpp \
35         sci_gateway/cpp/sci_getdefaultlanguage.cpp \
36         sci_gateway/cpp/sci_setlanguage.cpp \
37         sci_gateway/cpp/sci_getlanguage.cpp
38
39 libscilocalization_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
40                                 -I$(srcdir)/includes/ \
41                                 -I$(srcdir)/src/c/ \
42                                 -I$(top_srcdir)/libs/MALLOC/includes/ \
43                                 -I$(top_srcdir)/modules/functions_manager/includes/ \
44                                 -I$(top_srcdir)/modules/types/includes/ \
45                                 -I$(top_srcdir)/modules/core/includes/ \
46                                 -I$(top_srcdir)/modules/symbol/includes/ \
47                                 -I$(top_srcdir)/modules/ast/includes/ \
48                                 -I$(top_srcdir)/modules/system_env/includes/ \
49                                 -I$(top_srcdir)/modules/string/includes/ \
50                                 -I$(top_srcdir)/modules/fileio/includes/ \
51                                 -I$(top_srcdir)/modules/api_scilab/includes/ \
52                                 -I$(top_srcdir)/modules/operations/includes/ \
53                                 -I$(top_srcdir)/modules/output_stream/includes/ \
54                                 -I$(top_srcdir)/libs/dynamiclibrary/includes/ \
55                                 $(AM_CPPFLAGS)
56
57 pkglib_LTLIBRARIES = libscilocalization.la
58 noinst_LTLIBRARIES = libscilocalization-algo.la
59
60 libscilocalization_la_LDFLAGS = $(AM_LDFLAGS)
61 libscilocalization_la_CFLAGS = $(AM_CFLAGS)
62
63 # FIXME: platform dependent things should be in configure.ac
64 if IS_MACOSX
65 libscilocalization_la_LDFLAGS += -lintl -framework Cocoa
66 libscilocalization_la_CFLAGS += -lintl -framework Cocoa
67 endif
68
69 libscilocalization_algo_la_SOURCES = $(LOCALIZATION_C_SOURCES)
70 libscilocalization_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
71 libscilocalization_algo_la_CPPFLAGS = $(libscilocalization_la_CPPFLAGS)
72
73 # For the code check (splint)
74 CHECK_SRC= $(libscilocalization_la_SOURCES)
75 INCLUDE_FLAGS = $(libscilocalization_la_CPPFLAGS)
76
77 libscilocalization_la_LIBADD = libscilocalization-algo.la
78
79 # $(top_builddir)/modules/io/libsciio.la
80 #### Target ######
81 modulename=localization
82
83 #### localization : Conf files ####
84 libscilocalization_la_rootdir = $(mydatadir)
85 libscilocalization_la_root_DATA =  license.txt
86
87
88 ####localization : init scripts ####
89 libscilocalization_la_etcdir = $(mydatadir)/etc
90 libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
91
92 ####´┐Żlocalization : gateway declaration ####
93 libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
94 libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
95
96
97 ####localization : include files ####
98 libscilocalization_la_includedir=$(pkgincludedir)
99 libscilocalization_la_include_HEADERS = includes/localization.h \
100 includes/setgetlanguage.h \
101 includes/charEncoding.h
102
103 if GUI
104 USEANT=1
105 endif
106
107 #### SWIG Declaration ####
108 SWIG_WRAPPERS = src/jni/Messages.i \
109 src/jni/LocaleToLCID.i
110
111 if SWIG
112 BUILT_SOURCES=swig
113 endif
114
115
116 include $(top_srcdir)/Makefile.incl.am