664ce54dabd97049ced1963508eef1746773d1a3
[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_convstr.c \
37 sci_gateway/c/sci_str2code.c \
38 sci_gateway/c/sci_strsplit.c \
39 sci_gateway/c/sci_tokens.c \
40 sci_gateway/c/sci_strcmp.c \
41 sci_gateway/c/sci_isletter.c \
42 sci_gateway/c/sci_isdigit.c \
43 sci_gateway/c/sci_isalphanum.c \
44 sci_gateway/c/sci_isascii.c \
45 sci_gateway/c/sci_strchr.c \
46 sci_gateway/c/sci_strcspn.c \
47 sci_gateway/c/sci_strncpy.c \
48 sci_gateway/c/sci_strrev.c \
49 sci_gateway/c/sci_strspn.c \
50 sci_gateway/c/sci_strstr.c \
51 sci_gateway/c/sci_strtod.c \
52 sci_gateway/c/sci_strtok.c
53
54 GATEWAY_CPP_SOURCES = \
55         sci_gateway/cpp/sci_stripblanks.cpp \
56         sci_gateway/cpp/sci_grep.cpp \
57         sci_gateway/cpp/string_gw.cpp \
58         sci_gateway/cpp/sci_regexp.cpp \
59         sci_gateway/cpp/sci_part.cpp \
60         sci_gateway/cpp/sci_length.cpp \
61         sci_gateway/cpp/sci_strindex.cpp \
62         sci_gateway/cpp/sci_strsubst.cpp \
63         sci_gateway/cpp/sci_ascii.cpp \
64         sci_gateway/cpp/sci_strcat.cpp \
65         sci_gateway/cpp/sci_string.cpp
66
67 GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/sci_string.f \
68 sci_gateway/fortran/strops.f
69
70 libscistring_la_CFLAGS= $(PCRE_CFLAGS) \
71         -I$(srcdir)/src/c \
72         -I$(srcdir)/includes/ \
73         -I$(top_srcdir)/libs/MALLOC/includes/ \
74         -I$(top_srcdir)/modules/operations/includes \
75         -I$(top_srcdir)/modules/api_scilab/includes \
76         -I$(top_srcdir)/modules/localization/includes \
77         -I$(top_srcdir)/modules/output_stream/includes \
78         -I$(top_srcdir)/modules/system_env/includes
79
80 libscistring_la_CPPFLAGS= $(PCRE_CFLAGS) \
81         -I$(srcdir)/src/c \
82         -I$(srcdir)/src/cpp \
83         -I$(srcdir)/includes/ \
84         -I$(top_srcdir)/libs/MALLOC/includes/ \
85         -I$(top_srcdir)/modules/operations/includes \
86         -I$(top_srcdir)/modules/api_scilab/includes \
87         -I$(top_srcdir)/modules/localization/includes \
88         -I$(top_srcdir)/modules/output_stream/includes \
89         -I$(top_srcdir)/modules/functions_manager/includes \
90         -I$(top_srcdir)/modules/symbol/includes \
91         -I$(top_srcdir)/modules/abstractSyntaxTree/includes \
92         -I$(top_srcdir)/modules/elementary_funcions/includes \
93         -I$(top_srcdir)/modules//includes \
94         -I$(top_srcdir)/modules/core/includes \
95         -I$(top_srcdir)/modules/types/includes
96
97
98 pkglib_LTLIBRARIES = libscistring.la
99
100 libscistring_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(PCRE_LIBS)
101
102 libscistring_la_SOURCES = $(STRING_CPP_SOURCES) $(STRING_C_SOURCES) $(STRING_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_CPP_SOURCES)
103
104
105 # For the code check (splint)
106 CHECK_SRC= $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES)
107 INCLUDE_FLAGS = $(libscistring_la_CFLAGS)
108
109 # commented since it is the first module to be processed
110 #  $(top_builddir)/modules/polynomials/libscipolynomials.la
111 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
112 #### Target ######
113 modulename=string
114
115
116 #### string : Conf files ####
117 libscistring_la_rootdir = $(mydatadir)
118 libscistring_la_root_DATA =  license.txt version.xml
119
120 ####┬ástring : init scripts ####
121 libscistring_la_etcdir = $(mydatadir)/etc
122 libscistring_la_etc_DATA = etc/string.quit etc/string.start
123
124 ####┬ástring : gateway declaration ####
125 libscistring_la_sci_gatewaydir = $(mydatadir)/sci_gateway
126 libscistring_la_sci_gateway_DATA = sci_gateway/string_gateway.xml
127
128 include $(top_srcdir)/Makefile.incl.am
129