utf: module string 2
[scilab.git] / scilab / modules / string / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2006-2007 - INRIA - Sylvestre LEDRU
3 #
4 # This file is distributed under the same license as the Scilab package.
5
6 STRING_CPP_SOURCES = \
7     src/cpp/stripblanks.cpp \
8     src/cpp/sort_inter.cpp \
9     src/cpp/os_wtoi.cpp
10
11 STRING_C_SOURCES = \
12     src/c/men_Sutils.c \
13     src/c/tokens.c \
14     src/c/strsplit.c \
15     src/c/partfunction.c \
16     src/c/cvstr.c \
17     src/c/getfastcode.c \
18     src/c/pcre_private.c \
19     src/c/pcre_error.c \
20     src/c/isletter.c \
21     src/c/isdigit.c \
22     src/c/strsubst.c \
23     src/c/stristr.c \
24     src/c/stringsstrrev.c \
25     src/c/stringsCompare.c \
26     src/c/isalphanum.c \
27     src/c/StringConvert.c \
28     src/c/os_wcsdup.c \
29     src/c/os_wcstok.c \
30     src/c/scistrtostr.c \
31     src/c/stringToDouble.c \
32     src/c/stringToComplex.c \
33     src/c/complex_array.c \
34     src/c/isascii.c \
35     src/c/isnum.c
36
37 GATEWAY_CPP_SOURCES = \
38     sci_gateway/cpp/sci_stripblanks.cpp \
39     sci_gateway/cpp/sci_grep.cpp \
40     sci_gateway/cpp/string_gw.cpp \
41     sci_gateway/cpp/sci_regexp.cpp \
42     sci_gateway/cpp/sci_part.cpp \
43     sci_gateway/cpp/sci_length.cpp \
44     sci_gateway/cpp/sci_strindex.cpp \
45     sci_gateway/cpp/sci_strsubst.cpp \
46     sci_gateway/cpp/sci_ascii.cpp \
47     sci_gateway/cpp/sci_strcat.cpp \
48     sci_gateway/cpp/sci_string.cpp \
49     sci_gateway/cpp/sci_convstr.cpp \
50     sci_gateway/cpp/sci_strncpy.cpp \
51     sci_gateway/cpp/sci_strrchr.cpp \
52     sci_gateway/cpp/sci_strchr.cpp \
53     sci_gateway/cpp/sci_strstr.cpp \
54     sci_gateway/cpp/sci_strrev.cpp \
55     sci_gateway/cpp/sci_strtod.cpp \
56     sci_gateway/cpp/sci_tokens.cpp \
57     sci_gateway/cpp/sci_strcmp.cpp \
58     sci_gateway/cpp/sci_isletter.cpp \
59     sci_gateway/cpp/sci_strcspn.cpp \
60     sci_gateway/cpp/sci_strtok.cpp \
61     sci_gateway/cpp/sci_strspn.cpp \
62     sci_gateway/cpp/sci_isalphanum.cpp \
63     sci_gateway/cpp/sci_isdigit.cpp \
64     sci_gateway/cpp/sci_isascii.cpp \
65     sci_gateway/cpp/sci_strsplit.cpp \
66     sci_gateway/cpp/sci_isnum.cpp
67
68 libscistring_la_CFLAGS= \
69     $(PCRE_CFLAGS) \
70         -I$(srcdir)/src/c \
71         -I$(srcdir)/includes/ \
72     -I$(top_srcdir)/modules/ast/includes/ast/ \
73     -I$(top_srcdir)/modules/ast/includes/exps/ \
74     -I$(top_srcdir)/modules/ast/includes/operations/ \
75     -I$(top_srcdir)/modules/ast/includes/parse/ \
76     -I$(top_srcdir)/modules/ast/includes/symbol/ \
77     -I$(top_srcdir)/modules/ast/includes/system_env/ \
78     -I$(top_srcdir)/modules/ast/includes/types/ \
79         -I$(top_srcdir)/modules/functions/includes \
80         -I$(top_srcdir)/modules/api_scilab/includes \
81         -I$(top_srcdir)/modules/localization/includes \
82         -I$(top_srcdir)/modules/output_stream/includes
83
84 libscistring_la_CPPFLAGS= \
85     $(PCRE_CFLAGS) \
86         -I$(srcdir)/src/c \
87         -I$(srcdir)/src/cpp \
88         -I$(srcdir)/includes/ \
89     -I$(top_srcdir)/modules/ast/includes/ast/ \
90     -I$(top_srcdir)/modules/ast/includes/exps/ \
91     -I$(top_srcdir)/modules/ast/includes/operations/ \
92     -I$(top_srcdir)/modules/ast/includes/parse/ \
93     -I$(top_srcdir)/modules/ast/includes/symbol/ \
94     -I$(top_srcdir)/modules/ast/includes/system_env/ \
95     -I$(top_srcdir)/modules/ast/includes/types/ \
96     -I$(top_srcdir)/modules/ast/includes/analysis/ \
97         -I$(top_srcdir)/modules/api_scilab/includes \
98         -I$(top_srcdir)/modules/localization/includes \
99         -I$(top_srcdir)/modules/output_stream/includes \
100         -I$(top_srcdir)/modules/functions_manager/includes \
101         -I$(top_srcdir)/modules/core/includes \
102     -I$(top_srcdir)/modules/dynamic_link/includes \
103     -I$(top_srcdir)/modules/threads/includes \
104     -I$(top_srcdir)/modules/console/includes \
105     -I$(top_srcdir)/modules/dynamic_link/includes
106
107 libscistring_algo_la_CPPFLAGS = $(libscistring_la_CPPFLAGS)
108
109 if MAINTAINER_MODE
110 pkglib_LTLIBRARIES = libscistring.la
111 noinst_LTLIBRARIES = libscistring-algo.la
112 else
113 noinst_LTLIBRARIES = libscistring-algo.la libscistring.la
114 endif
115
116
117 libscistring_la_LDFLAGS = $(AM_LDFLAGS)
118
119 libscistring_algo_la_SOURCES = $(STRING_C_SOURCES) $(STRING_CPP_SOURCES)
120 libscistring_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
121 libscistring_algo_la_CFLAGS = $(libscistring_la_CFLAGS)
122
123 # For the code check (splint)
124 CHECK_SRC= $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES)
125 INCLUDE_FLAGS = $(libscistring_la_CFLAGS)
126
127 # commented since it is the first module to be processed
128 libscistring_la_LIBADD = libscistring-algo.la $(PCRE_LIBS)
129
130 #### Target ######
131 modulename=string
132
133
134 #### string : Conf files ####
135 libscistring_la_rootdir = $(mydatadir)
136 libscistring_la_root_DATA =  license.txt
137
138 ####�string : init scripts ####
139 libscistring_la_etcdir = $(mydatadir)/etc
140 libscistring_la_etc_DATA = \
141     etc/string.quit \
142     etc/string.start
143
144 ####�string : gateway declaration ####
145 libscistring_la_sci_gatewaydir = $(mydatadir)/sci_gateway
146 libscistring_la_sci_gateway_DATA = sci_gateway/string_gateway.xml
147
148 #### string : include files ####
149 libscistring_la_includedir=$(pkgincludedir)
150 libscistring_la_include_HEADERS = \
151 includes/complex_array.h \
152 includes/cvstr.h \
153 includes/dynlib_string_gw.h \
154 includes/dynlib_string.h \
155 includes/getfastcode.h \
156 includes/men_Sutils.h \
157 includes/os_string.h \
158 includes/os_wcstok.h \
159 includes/pcre_private.h \
160 includes/scistrtostr.h \
161 includes/StringConvert.h \
162 includes/string_gw.hxx \
163 includes/stringToComplex.h \
164 includes/stringToDouble.h \
165 includes/stristr.h \
166 includes/strsubst.h
167
168
169
170 include $(top_srcdir)/Makefile.incl.am
171