Useless thanks to gettext
[scilab.git] / scilab / modules / localization / Makefile.am
index ed78af8..80ef9e7 100644 (file)
@@ -1,57 +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
 
-liblocalization_la_CFLAGS=  -Iincludes/ -Isrc/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/libs/hashtable/ $(XML_FLAGS)
-liblocalization_la_LDFLAGS= $(XML_LIBS)
+if GUI
+#LOCALIZATION_C_SOURCES += src/c/org_scilab_modules_localization_QueryString.c
+endif
 
-lib_LTLIBRARIES = liblocalization.la
 
-liblocalization_la_SOURCES = $(LOCALIZATION_C_SOURCES) 
+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
 
-liblocalization_la_LIBADD =    $(top_builddir)/libs/MALLOC/libmalloc.la \
-$(top_builddir)/libs/hashtable/libhashtable.la
+#sci_gateway/c/sci_getlanguagealias.c \
+#sci_gateway/c/sci_getlanguagestable.c \
+#sci_gateway/c/sci_addtext.c \
+#sci_gateway/c/sci_removetext.c
 
-liblocalization_la_PKGCONFIG = localization.pc
+libscilocalization_la_CFLAGS=          $(JAVA_JNI_INCLUDE) \
+                               -Iincludes/ \
+                               -Isrc/c/ \
+                               -I$(top_srcdir)/libs/MALLOC/includes/ \
+                               -I$(top_srcdir)/modules/output_stream/includes
 
-datadir=${prefix}/modules
-#### Target ######
-target=$(datadir)/localization
+libscilocalization_la_LDFLAGS = $(JAVA_JNI_LIBS)
 
+pkglib_LTLIBRARIES = libscilocalization.la
 
-#### localization : Conf files ####
-liblocalization_la_rootdir = $(target)
-liblocalization_la_root_DATA = changelog.txt licence.txt readme.txt VERSION
+libscilocalization_la_SOURCES = $(LOCALIZATION_C_SOURCES)  $(GATEWAY_C_SOURCES)
 
+libscilocalization_la_LIBADD =         $(top_builddir)/libs/MALLOC/libscimalloc.la \
+$(top_builddir)/libs/hashtable/libscihashtable.la
 
-#### localization : Scilab macros ###
-liblocalization_la_macrodir = $(target)/macros
-liblocalization_la_macro_DATA = macros/setlanguage.sci macros/setlanguage.bin macros/names macros/lib macros/buildmacros.sce
+#### Target ######
+modulename=localization
+
+#### localization : Conf files ####
+libscilocalization_la_rootdir = $(mydatadir)
+libscilocalization_la_root_DATA = changelog.txt licence.txt readme.txt version.xml
 
 
-#### localization : init scripts #### 
-liblocalization_la_etcdir = $(target)/etc
-liblocalization_la_etc_DATA = etc/localization.quit etc/localization.start
+####localization : init scripts ####
+libscilocalization_la_etcdir = $(mydatadir)/etc
+libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
 
-#### localization : documentation FR #### 
-liblocalization_la_helpfrdir = $(target)/help/fr
-liblocalization_la_helpfr_DATA = help/fr/whatis.htm \
-help/fr/language.htm \
-help/fr/setlanguage.htm
+#### localization : gateway declaration ####
+libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
+libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
 
 
-#### localization : documentation EN #### 
-liblocalization_la_helpendir = $(target)/help/eng
-liblocalization_la_helpen_DATA = help/eng/whatis.htm \
-help/eng/language.htm \
-help/eng/setlanguage.htm
+####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 ####
-liblocalization_la_includedir=$(includedir)/localization
-liblocalization_la_include_HEADERS = includes/localization.h
 
+include $(top_srcdir)/Makefile.incl.am