bf4d4c2a9a7f6bd1a8dc8b729c9ef8945e477ce7
[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_C_SOURCES = src/c/code2str.c \
7 src/c/stripblanks.c \
8 src/c/convstr.c \
9 src/c/men_Sutils.c \
10 src/c/tokens.c \
11 src/c/strsplit.c \
12 src/c/partfunction.c \
13 src/c/InitializeString.c \
14 src/c/setScilabCharactersCodes.c \
15 src/c/cvstr.c \
16 src/c/getfastcode.c \
17 src/c/pcre_private.c \
18 src/c/pcre_error.c \
19 src/c/isletter.c \
20 src/c/isdigit.c \
21 src/c/strsubst.c \
22 src/c/stristr.c \
23 src/c/stringsstrrchr.c \
24 src/c/stringsstrrev.c \
25 src/c/stringsCompare.c \
26 src/c/isalphanum.c \
27 src/c/StringConvert.c \
28 src/c/scistrtostr.c \
29 src/c/stringToDouble.c \
30 src/c/isnum.c \
31 src/c/stringToComplex.c \
32 src/c/complex_array.c
33
34 STRING_FORTRAN_SOURCES =
35
36 GATEWAY_C_SOURCES = sci_gateway/c/gw_string.c \
37 sci_gateway/c/sci_ascii.c \
38 sci_gateway/c/sci_code2str.c \
39 sci_gateway/c/sci_convstr.c \
40 sci_gateway/c/sci_emptystr.c \
41 sci_gateway/c/sci_grep.c \
42 sci_gateway/c/sci_length.c \
43 sci_gateway/c/sci_part.c \
44 sci_gateway/c/sci_str2code.c \
45 sci_gateway/c/sci_strcat.c \
46 sci_gateway/c/sci_strindex.c \
47 sci_gateway/c/sci_string.c \
48 sci_gateway/c/sci_stripblanks.c \
49 sci_gateway/c/sci_strsplit.c \
50 sci_gateway/c/sci_strsubst.c \
51 sci_gateway/c/sci_tokens.c \
52 sci_gateway/c/sci_strcmp.c \
53 sci_gateway/c/sci_isletter.c \
54 sci_gateway/c/sci_isdigit.c \
55 sci_gateway/c/sci_isalphanum.c \
56 sci_gateway/c/sci_isascii.c \
57 sci_gateway/c/sci_strchr.c \
58 sci_gateway/c/sci_strcspn.c \
59 sci_gateway/c/sci_strncpy.c \
60 sci_gateway/c/sci_strrev.c \
61 sci_gateway/c/sci_strspn.c \
62 sci_gateway/c/sci_strstr.c \
63 sci_gateway/c/sci_strtod.c \
64 sci_gateway/c/sci_strtok.c \
65 sci_gateway/c/sci_regexp.c \
66 sci_gateway/c/sci_isnum.c
67
68
69
70 GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/sci_f_string.f \
71 sci_gateway/fortran/strops.f
72
73 libscistring_la_CPPFLAGS = -I$(srcdir)/src/c \
74         -I$(srcdir)/includes/ \
75         -I$(top_srcdir)/modules/functions/includes/ \
76         -I$(top_srcdir)/modules/api_scilab/includes/ \
77         -I$(top_srcdir)/modules/localization/includes/ \
78         -I$(top_srcdir)/modules/spreadsheet/src/c/ \
79         -I$(top_srcdir)/modules/output_stream/includes/ \
80         $(PCRE_CFLAGS) \
81         $(AM_CPPFLAGS)
82
83 if MAINTAINER_MODE
84 pkglib_LTLIBRARIES = libscistring.la
85 noinst_LTLIBRARIES = libscistring-algo.la
86 else
87 noinst_LTLIBRARIES = libscistring-algo.la libscistring.la
88 endif
89
90
91 libscistring_la_LDFLAGS = $(PCRE_LIBS) $(AM_LDFLAGS)
92
93 libscistring_algo_la_SOURCES = $(STRING_C_SOURCES) $(STRING_FORTRAN_SOURCES)
94 libscistring_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
95 libscistring_algo_la_CPPFLAGS = $(libscistring_la_CPPFLAGS)
96
97 # For the code check (splint)
98 CHECK_SRC= $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES)
99 INCLUDE_FLAGS = $(libscistring_la_CPPFLAGS)
100
101 # commented since it is the first module to be processed
102 libscistring_la_LIBADD = libscistring-algo.la
103
104 #### Target ######
105 modulename=string
106
107
108 #### string : Conf files ####
109 libscistring_la_rootdir = $(mydatadir)
110 libscistring_la_root_DATA =  license.txt
111
112 ####┬ástring : init scripts ####
113 libscistring_la_etcdir = $(mydatadir)/etc
114 libscistring_la_etc_DATA = etc/string.quit etc/string.start
115
116 ####┬ástring : gateway declaration ####
117 libscistring_la_sci_gatewaydir = $(mydatadir)/sci_gateway
118 libscistring_la_sci_gateway_DATA = sci_gateway/string_gateway.xml
119
120 include $(top_srcdir)/Makefile.incl.am
121