Add convstr to YaSp
[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 = src/cpp/stripblanks.cpp
7
8 STRING_C_SOURCES = src/c/code2str.c \
9 src/c/convstr.c \
10 src/c/men_Sutils.c \
11 src/c/tokens.c \
12 src/c/strcatfunction.c \
13 src/c/strsplitfunction.c \
14 src/c/partfunction.c \
15 src/c/InitializeString.c \
16 src/c/setScilabCharactersCodes.c \
17 src/c/cvstr.c \
18 src/c/getfastcode.c \
19 src/c/pcre_private.c \
20 src/c/pcre_error.c \
21 src/c/isletter.c \
22 src/c/isdigit.c \
23 src/c/strsubst.c \
24 src/c/stringsstrrchr.c \
25 src/c/stringsstrrev.c \
26 src/c/stringsCompare.c \
27 src/c/isalphanum.c \
28 src/c/StringConvert.c \
29 src/c/os_wcsdup.c \
30 src/c/scistrtostr.c
31
32 STRING_FORTRAN_SOURCES =
33
34 GATEWAY_C_SOURCES = sci_gateway/c/gw_string.c \
35 sci_gateway/c/sci_code2str.c \
36 sci_gateway/c/sci_str2code.c \
37 sci_gateway/c/sci_strsplit.c \
38 sci_gateway/c/sci_tokens.c \
39 sci_gateway/c/sci_strcmp.c \
40 sci_gateway/c/sci_isletter.c \
41 sci_gateway/c/sci_isdigit.c \
42 sci_gateway/c/sci_isalphanum.c \
43 sci_gateway/c/sci_isascii.c \
44 sci_gateway/c/sci_strchr.c \
45 sci_gateway/c/sci_strcspn.c \
46 sci_gateway/c/sci_strncpy.c \
47 sci_gateway/c/sci_strrev.c \
48 sci_gateway/c/sci_strspn.c \
49 sci_gateway/c/sci_strstr.c \
50 sci_gateway/c/sci_strtod.c \
51 sci_gateway/c/sci_strtok.c
52
53 GATEWAY_CPP_SOURCES = \
54         sci_gateway/cpp/sci_stripblanks.cpp \
55         sci_gateway/cpp/sci_grep.cpp \
56         sci_gateway/cpp/string_gw.cpp \
57         sci_gateway/cpp/sci_regexp.cpp \
58         sci_gateway/cpp/sci_part.cpp \
59         sci_gateway/cpp/sci_length.cpp \
60         sci_gateway/cpp/sci_strindex.cpp \
61         sci_gateway/cpp/sci_strsubst.cpp \
62         sci_gateway/cpp/sci_ascii.cpp \
63         sci_gateway/cpp/sci_strcat.cpp \
64         sci_gateway/cpp/sci_string.cpp \
65         sci_gateway/cpp/sci_convstr.cpp
66
67
68 GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/sci_string.f \
69 sci_gateway/fortran/strops.f
70
71 libscistring_la_CFLAGS= $(PCRE_CFLAGS) \
72         -I$(srcdir)/src/c \
73         -I$(srcdir)/includes/ \
74         -I$(top_srcdir)/libs/MALLOC/includes/ \
75         -I$(top_srcdir)/modules/operations/includes \
76         -I$(top_srcdir)/modules/api_scilab/includes \
77         -I$(top_srcdir)/modules/localization/includes \
78         -I$(top_srcdir)/modules/output_stream/includes \
79         -I$(top_srcdir)/modules/system_env/includes
80
81 libscistring_la_CPPFLAGS= $(PCRE_CFLAGS) \
82         -I$(srcdir)/src/c \
83         -I$(srcdir)/src/cpp \
84         -I$(srcdir)/includes/ \
85         -I$(top_srcdir)/libs/MALLOC/includes/ \
86         -I$(top_srcdir)/modules/operations/includes \
87         -I$(top_srcdir)/modules/api_scilab/includes \
88         -I$(top_srcdir)/modules/localization/includes \
89         -I$(top_srcdir)/modules/output_stream/includes \
90         -I$(top_srcdir)/modules/functions_manager/includes \
91         -I$(top_srcdir)/modules/symbol/includes \
92         -I$(top_srcdir)/modules/abstractSyntaxTree/includes \
93         -I$(top_srcdir)/modules/elementary_funcions/includes \
94         -I$(top_srcdir)/modules//includes \
95         -I$(top_srcdir)/modules/core/includes \
96         -I$(top_srcdir)/modules/types/includes
97
98
99 pkglib_LTLIBRARIES = libscistring.la
100
101 libscistring_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(PCRE_LIBS)
102
103 libscistring_la_SOURCES = $(STRING_CPP_SOURCES) $(STRING_C_SOURCES) $(STRING_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_CPP_SOURCES)
104
105
106 # For the code check (splint)
107 CHECK_SRC= $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES)
108 INCLUDE_FLAGS = $(libscistring_la_CFLAGS)
109
110 # commented since it is the first module to be processed
111 #  $(top_builddir)/modules/polynomials/libscipolynomials.la
112 libscistring_la_LIBADD = $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
113 #### Target ######
114 modulename=string
115
116
117 #### string : Conf files ####
118 libscistring_la_rootdir = $(mydatadir)
119 libscistring_la_root_DATA =  license.txt version.xml
120
121 ####┬ástring : init scripts ####
122 libscistring_la_etcdir = $(mydatadir)/etc
123 libscistring_la_etc_DATA = etc/string.quit etc/string.start
124
125 ####┬ástring : gateway declaration ####
126 libscistring_la_sci_gatewaydir = $(mydatadir)/sci_gateway
127 libscistring_la_sci_gateway_DATA = sci_gateway/string_gateway.xml
128
129 include $(top_srcdir)/Makefile.incl.am
130