Fix the library linking declaration
[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.1-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_gettext.c \
30 sci_gateway/c/sci_setlanguage.c \
31 sci_gateway/c/sci_getdefaultlanguage.c \
32 sci_gateway/c/sci_getlanguage.c \
33 sci_gateway/c/sci_setdefaultlanguage.c \
34 sci_gateway/c/sci_addlocalizationdomain.c
35
36
37 libscilocalization_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
38                                 -I$(srcdir)/includes/ \
39                                 -I$(srcdir)/src/c/ \
40                                 -I$(top_srcdir)/modules/string/includes/ \
41                                 -I$(top_srcdir)/modules/fileio/includes/ \
42                                 -I$(top_srcdir)/modules/api_scilab/includes/ \
43                                 -I$(top_srcdir)/modules/output_stream/includes \
44                                 -I$(top_srcdir)/modules/localization/includes \
45                                 $(AM_CPPFLAGS)
46
47 pkglib_LTLIBRARIES = libscilocalization.la
48 noinst_LTLIBRARIES = libscilocalization-algo.la
49
50 libscilocalization_la_LDFLAGS = $(AM_LDFLAGS)
51 libscilocalization_la_CFLAGS = $(AM_CFLAGS)
52
53 libscilocalization_algo_la_SOURCES = $(LOCALIZATION_C_SOURCES)
54 libscilocalization_la_SOURCES = $(GATEWAY_C_SOURCES)
55 libscilocalization_algo_la_CPPFLAGS = $(libscilocalization_la_CPPFLAGS)
56 libscilocalization_algo_la_CFLAGS = $(libscilocalization_la_CFLAGS)
57 libscilocalization_algo_la_LDFLAGS = $(libscilocalization_la_LDFLAGS)
58
59 # For the code check (splint)
60 CHECK_SRC= $(libscilocalization_la_SOURCES)
61 INCLUDE_FLAGS = $(libscilocalization_la_CPPFLAGS)
62
63 libscilocalization_la_LIBADD = libscilocalization-algo.la
64
65 # FIXME: platform dependent things should be in configure.ac
66 if IS_MACOSX
67 libscilocalization_la_LDFLAGS += -framework Cocoa
68 libscilocalization_la_LIBADD += -lintl
69 libscilocalization_la_CFLAGS += -framework Cocoa
70 endif
71
72 # $(top_builddir)/modules/io/libsciio.la
73 #### Target ######
74 modulename=localization
75
76 #### localization : Conf files ####
77 libscilocalization_la_rootdir = $(mydatadir)
78 libscilocalization_la_root_DATA =  license.txt
79
80
81 ####localization : init scripts ####
82 libscilocalization_la_etcdir = $(mydatadir)/etc
83 libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
84
85 ####´┐Żlocalization : gateway declaration ####
86 libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
87 libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
88
89
90 ####localization : include files ####
91 libscilocalization_la_includedir=$(pkgincludedir)
92 libscilocalization_la_include_HEADERS = includes/localization.h \
93 includes/setgetlanguage.h \
94 includes/charEncoding.h
95
96 if GUI
97 USEANT=1
98 endif
99
100 #### SWIG Declaration ####
101 SWIG_WRAPPERS = src/jni/Messages.i \
102 src/jni/LocaleToLCID.i
103
104 if SWIG
105 BUILT_SOURCES=swig
106 endif
107
108
109 include $(top_srcdir)/Makefile.incl.am