bc9cddf29c34a61bef52c8ab61b69b9f5dbf76bf
[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
31 STRING_FORTRAN_SOURCES =
32
33 GATEWAY_C_SOURCES = sci_gateway/c/gw_string.c \
34 sci_gateway/c/sci_ascii.c \
35 sci_gateway/c/sci_code2str.c \
36 sci_gateway/c/sci_convstr.c \
37 sci_gateway/c/sci_emptystr.c \
38 sci_gateway/c/sci_grep.c \
39 sci_gateway/c/sci_length.c \
40 sci_gateway/c/sci_part.c \
41 sci_gateway/c/sci_str2code.c \
42 sci_gateway/c/sci_strcat.c \
43 sci_gateway/c/sci_strindex.c \
44 sci_gateway/c/sci_string.c \
45 sci_gateway/c/sci_stripblanks.c \
46 sci_gateway/c/sci_strsplit.c \
47 sci_gateway/c/sci_strsubst.c \
48 sci_gateway/c/sci_tokens.c \
49 sci_gateway/c/sci_strcmp.c \
50 sci_gateway/c/sci_isletter.c \
51 sci_gateway/c/sci_isdigit.c \
52 sci_gateway/c/sci_isalphanum.c \
53 sci_gateway/c/sci_isascii.c \
54 sci_gateway/c/sci_strchr.c \
55 sci_gateway/c/sci_strcspn.c \
56 sci_gateway/c/sci_strncpy.c \
57 sci_gateway/c/sci_strrev.c \
58 sci_gateway/c/sci_strspn.c \
59 sci_gateway/c/sci_strstr.c \
60 sci_gateway/c/sci_strtod.c \
61 sci_gateway/c/sci_strtok.c \
62 sci_gateway/c/sci_regexp.c
63
64
65
66 GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/sci_f_string.f \
67 sci_gateway/fortran/strops.f
68
69 libscistring_la_CPPFLAGS = -I$(srcdir)/src/c \
70         -I$(srcdir)/includes/ \
71         -I$(top_srcdir)/modules/functions/includes/ \
72         -I$(top_srcdir)/modules/api_scilab/includes/ \
73         -I$(top_srcdir)/modules/localization/includes/ \
74         -I$(top_srcdir)/modules/output_stream/includes/ \
75         $(PCRE_CFLAGS) \
76         $(AM_CPPFLAGS)
77
78 if MAINTAINER_MODE
79 pkglib_LTLIBRARIES = libscistring.la
80 noinst_LTLIBRARIES = libscistring-algo.la
81 else
82 noinst_LTLIBRARIES = libscistring-algo.la libscistring.la
83 endif
84
85
86 libscistring_la_LDFLAGS = $(PCRE_LIBS) $(AM_LDFLAGS)
87
88 libscistring_algo_la_SOURCES = $(STRING_C_SOURCES) $(STRING_FORTRAN_SOURCES)
89 libscistring_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
90 libscistring_algo_la_CPPFLAGS = $(libscistring_la_CPPFLAGS)
91
92 # For the code check (splint)
93 CHECK_SRC= $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES)
94 INCLUDE_FLAGS = $(libscistring_la_CPPFLAGS)
95
96 # commented since it is the first module to be processed
97 libscistring_la_LIBADD = libscistring-algo.la 
98
99 #### Target ######
100 modulename=string
101
102
103 #### string : Conf files ####
104 libscistring_la_rootdir = $(mydatadir)
105 libscistring_la_root_DATA =  license.txt 
106
107 ####┬ástring : init scripts ####
108 libscistring_la_etcdir = $(mydatadir)/etc
109 libscistring_la_etc_DATA = etc/string.quit etc/string.start
110
111 ####┬ástring : gateway declaration ####
112 libscistring_la_sci_gatewaydir = $(mydatadir)/sci_gateway
113 libscistring_la_sci_gateway_DATA = sci_gateway/string_gateway.xml
114
115 include $(top_srcdir)/Makefile.incl.am
116