test of localization
[scilab.git] / scilab / modules / localization / Makefile.am
index 0243523..80ef9e7 100644 (file)
@@ -1,46 +1,69 @@
 ##########
 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
-### INRIA - Scilab 2006 
+### INRIA - Scilab 2006/2007/2008
 ##########
 
-LOCALIZATION_C_SOURCES = src/hashtable_localization.c \
-src/localization.c
+LOCALIZATION_C_SOURCES = \
+src/c/InitializeLocalization.c \
+src/c/setgetlanguage.c \
+src/c/loadsavelanguage.c
 
-libscilocalization_la_CFLAGS=  -Iincludes/ -Isrc/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/libs/hashtable/ $(XML_FLAGS)
+if GUI
+#LOCALIZATION_C_SOURCES += src/c/org_scilab_modules_localization_QueryString.c
+endif
 
-libscilocalization_la_LDFLAGS = $(XML_LIBS)
 
-pkglib_LTLIBRARIES = libscilocalization.la
+GATEWAY_C_SOURCES = sci_gateway/c/gw_localization.c \
+sci_gateway/c/sci_gettext.c \
+sci_gateway/c/sci_setlanguage.c \
+sci_gateway/c/sci_getdefaultlanguage.c \
+sci_gateway/c/sci_getlanguage.c
 
-libscilocalization_la_SOURCES = $(LOCALIZATION_C_SOURCES) 
+#sci_gateway/c/sci_getlanguagealias.c \
+#sci_gateway/c/sci_getlanguagestable.c \
+#sci_gateway/c/sci_addtext.c \
+#sci_gateway/c/sci_removetext.c
 
-libscilocalization_la_LIBADD =         $(top_builddir)/libs/MALLOC/libscimalloc.la \
-$(top_builddir)/libs/hashtable/libscihashtable.la
+libscilocalization_la_CFLAGS=          $(JAVA_JNI_INCLUDE) \
+                               -Iincludes/ \
+                               -Isrc/c/ \
+                               -I$(top_srcdir)/libs/MALLOC/includes/ \
+                               -I$(top_srcdir)/modules/output_stream/includes
 
+libscilocalization_la_LDFLAGS = $(JAVA_JNI_LIBS)
 
+pkglib_LTLIBRARIES = libscilocalization.la
 
+libscilocalization_la_SOURCES = $(LOCALIZATION_C_SOURCES)  $(GATEWAY_C_SOURCES)
 
-#### Target ######
-target=$(datadir)/localization
+libscilocalization_la_LIBADD =         $(top_builddir)/libs/MALLOC/libscimalloc.la \
+$(top_builddir)/libs/hashtable/libscihashtable.la
 
+#### Target ######
+modulename=localization
 
 #### localization : Conf files ####
-libscilocalization_la_rootdir = $(target)
-libscilocalization_la_root_DATA = changelog.txt licence.txt readme.txt VERSION
+libscilocalization_la_rootdir = $(mydatadir)
+libscilocalization_la_root_DATA = changelog.txt licence.txt readme.txt version.xml
 
 
-#### localization : Scilab macros ###
-libscilocalization_la_macrodir = $(target)/macros
-libscilocalization_la_macro_DATA22 = macros/setlanguage.sci macros/setlanguage.bin macros/names macros/lib macros/buildmacros.sce
+####localization : init scripts ####
+libscilocalization_la_etcdir = $(mydatadir)/etc
+libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
 
+####┬álocalization : gateway declaration ####
+libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
+libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
 
-####┬álocalization : init scripts #### 
-libscilocalization_la_etcdir = $(target)/etc
-libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
 
+####localization : include files ####
+libscilocalization_la_includedir=$(pkgincludedir)/localization
+libscilocalization_la_include_HEADERS = includes/localization.h \
+includes/gw_localization.h
+
+if GUI
+USEANT=1
+endif
 
-####┬álocalization : include files ####
-libscilocalization_la_includedir=$(sciincludedir)/localization
-libscilocalization_la_include_HEADERS = includes/localization.h
 
 include $(top_srcdir)/Makefile.incl.am