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